Remove requestOptions2GotOptions compatibility layer (#7270)
* gzip --> decompress * strictSSL --> https.rejectUnauthorized * auth --> username/password * qs --> searchParams * fix base service auth docs * completely remove requestOptions2GotOptions layer * update the docs Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
This commit is contained in:
@@ -79,7 +79,7 @@ export default class Bundlephobia extends BaseJsonService {
|
||||
const packageQuery = `${scope ? `${scope}/` : ''}${packageName}${
|
||||
version ? `@${version}` : ''
|
||||
}`
|
||||
const options = { qs: { package: packageQuery } }
|
||||
const options = { searchParams: { package: packageQuery } }
|
||||
return this._requestJson({
|
||||
schema,
|
||||
url: 'https://bundlephobia.com/api/size',
|
||||
|
||||
Reference in New Issue
Block a user