-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: replace request
with got
for HTTP calls
#289
Conversation
@@ -2,6 +2,7 @@ | |||
"extends": "@salesforce/dev-config/tsconfig", | |||
"compilerOptions": { | |||
"outDir": "lib", | |||
"allowSyntheticDefaultImports": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wasn't able to build the plugin without this 🤷🏼
TooTallNate/node-agent-base#56
throw new Error(`Unexpected test url - ${url}`); | ||
} | ||
}; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this UT was from when plugin-trust was doing raw HTTP calls to npm, we switched to npm here:
#154
so no need to stub got
, the error is thrown from here:
plugin-trust/src/shared/npmCommand.ts
Line 189 in 1affd57
const err = new SfError(error, 'ShellParseError'); |
@@ -509,109 +546,6 @@ describe('InstallationVerification Tests', () => { | |||
}); | |||
}); | |||
|
|||
it.skip('server error', async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto, this UT was testing the HTTP calls to npm, we run npm show
now (see prev comment)
QA notes: linked plugin-trust not tested: proxies |
What does this PR do?
replace
request
dependency withgot
.request is deprecated: https://www.npmjs.com/package/request
What issues does this PR fix or reference?
@W-0@