Skip to content

Commit

Permalink
Merge pull request #224 from snyk/fix/upgrade-needle
Browse files Browse the repository at this point in the history
fix: upgrade needle and disable proxy in needle
  • Loading branch information
neonnoon authored Dec 19, 2023
2 parents a777917 + 8947705 commit c982553
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 25 deletions.
57 changes: 34 additions & 23 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
},
"devDependencies": {
"@types/jest": "^26.0.12",
"@types/needle": "^2.5.2",
"@types/needle": "^3.3.0",
"@types/node": "^14.6.2",
"@types/write": "^2.0.1",
"@typescript-eslint/eslint-plugin": "^4.31.2",
Expand Down Expand Up @@ -86,7 +86,7 @@
"lodash.pick": "^4.4.0",
"lodash.union": "^4.6.0",
"multimatch": "^5.0.0",
"needle": "3.0.0",
"needle": "^3.3.0",
"p-map": "^3.0.0",
"uuid": "^8.3.2",
"yaml": "^1.10.2"
Expand Down
1 change: 1 addition & 0 deletions src/needle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export async function makeRequest<T = void>(
}

const options: needle.NeedleOptions = {
use_proxy_from_env_var: false,
headers: payload.headers,
open_timeout: TIMEOUT_DEFAULT, // No timeout
response_timeout: payload.timeout || TIMEOUT_DEFAULT,
Expand Down

0 comments on commit c982553

Please sign in to comment.