Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/cli/download-md.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ let downloadMarkdown = async (fileName: string) => {
let url = `https://raw.githubusercontent.com/johnlindquist/kit-docs/main/${fileName}`
process.send?.(`Downloading ${url}...`)
let buffer = await download(url, undefined, {
rejectUnauthorized: false,
// rejectUnauthorized: false - removed for security reasons
})
await writeFile(kitPath(fileName), buffer)
process.send?.(`Successfully downloaded ${fileName}`)
Expand Down
2 changes: 1 addition & 1 deletion src/emoji/download-emoji.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ try {
`https://www.scriptkit.com/api/emoji`,
kitPath("data"),
{
rejectUnauthorized: false,
// rejectUnauthorized: false - removed for security reasons
}
)
global.log(`😘 Emoji updated`)
Expand Down
2 changes: 1 addition & 1 deletion src/help/download-docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ try {
`https://www.scriptkit.com/api/docs`,
kitPath("data"),
{
rejectUnauthorized: false,
// rejectUnauthorized: false - removed for security reasons
}
)

Expand Down
2 changes: 1 addition & 1 deletion src/hot/download-hot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ try {
`https://www.scriptkit.com/api/hot`,
kitPath("data"),
{
rejectUnauthorized: false,
// rejectUnauthorized: false - removed for security reasons
}
)
global.log(`🔥 Hot updated`)
Expand Down
4 changes: 2 additions & 2 deletions src/setup/clone-examples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { KIT_FIRST_PATH } from '../core/utils.js'
async function downloadAndSetupExamples() {
let destination = kenvPath('tmp')
await download('https://github.com/johnlindquist/kit-examples-ts/archive/main.zip', destination, {
extract: true,
rejectUnauthorized: false
extract: true
// rejectUnauthorized: false - removed for security reasons
})

let source = path.join(destination, 'kit-examples-main')
Expand Down