Comparing version 12.5.2 to 12.5.3
@@ -852,4 +852,3 @@ "use strict"; | ||
if (!cacheableStore.has(cache)) { | ||
// @ts-expect-error The code below is for newer CacheableRequest version | ||
const cacheableRequest = new cacheable_request_1.default(((requestOptions, handler) => { | ||
cacheableStore.set(cache, new cacheable_request_1.default(((requestOptions, handler) => { | ||
const result = requestOptions._request(requestOptions, handler); | ||
@@ -892,4 +891,3 @@ // TODO: remove this when `cacheable-request` supports async request functions. | ||
return result; | ||
}), cache); | ||
cacheableStore.set(cache, cacheableRequest.request()); | ||
}), cache)); | ||
} | ||
@@ -896,0 +894,0 @@ } |
310
package.json
{ | ||
"name": "got-cjs", | ||
"version": "12.5.2", | ||
"description": "Human-friendly and powerful HTTP request library for Node.js", | ||
"license": "MIT", | ||
"repository": "apify/got-cjs", | ||
"funding": "https://github.com/sindresorhus/got?sponsor=1", | ||
"type": "commonjs", | ||
"types": "./dist/source/index.d.ts", | ||
"engines": { | ||
"node": ">=12" | ||
}, | ||
"scripts": { | ||
"test": "xo && tsc --noEmit && ava", | ||
"release": "np", | ||
"build": "del-cli dist && tsc", | ||
"prepare": "npm run build" | ||
}, | ||
"files": [ | ||
"dist/source" | ||
], | ||
"keywords": [ | ||
"http", | ||
"https", | ||
"http2", | ||
"get", | ||
"got", | ||
"url", | ||
"uri", | ||
"request", | ||
"simple", | ||
"curl", | ||
"wget", | ||
"fetch", | ||
"net", | ||
"network", | ||
"gzip", | ||
"brotli", | ||
"requests", | ||
"human-friendly", | ||
"axios", | ||
"superagent", | ||
"node-fetch", | ||
"ky" | ||
], | ||
"dependencies": { | ||
"@sindresorhus/is": "4.6.0", | ||
"@szmarczak/http-timer": "4.0.6", | ||
"cacheable-lookup": "6.1.0", | ||
"cacheable-request": "8.3.1", | ||
"decompress-response": "^6.0.0", | ||
"form-data-encoder": "1.7.2", | ||
"get-stream": "^6.0.1", | ||
"http2-wrapper": "^2.1.10", | ||
"lowercase-keys": "2.0.0", | ||
"p-cancelable": "2.1.1", | ||
"responselike": "2.0.1" | ||
}, | ||
"devDependencies": { | ||
"@hapi/bourne": "^3.0.0", | ||
"@sindresorhus/tsconfig": "^3.0.1", | ||
"@sinonjs/fake-timers": "^9.1.1", | ||
"@types/benchmark": "^2.1.2", | ||
"@types/express": "^4.17.13", | ||
"@types/node": "^18.7.23", | ||
"@types/pem": "^1.9.6", | ||
"@types/pify": "^5.0.1", | ||
"@types/readable-stream": "^2.3.13", | ||
"@types/request": "^2.48.8", | ||
"@types/sinon": "^10.0.11", | ||
"@types/sinonjs__fake-timers": "^8.1.1", | ||
"@types/tough-cookie": "^4.0.1", | ||
"ava": "^4.3.3", | ||
"axios": "^0.27.2", | ||
"benchmark": "^2.1.4", | ||
"bluebird": "^3.7.2", | ||
"body-parser": "^1.19.2", | ||
"create-cert": "^1.0.6", | ||
"create-test-server": "^3.0.1", | ||
"del-cli": "^5.0.0", | ||
"delay": "^5.0.0", | ||
"express": "^4.17.3", | ||
"form-data": "^4.0.0", | ||
"formdata-node": "4.4.1", | ||
"nock": "^13.2.4", | ||
"node-fetch": "2.6.7", | ||
"np": "^7.6.0", | ||
"nyc": "^15.1.0", | ||
"p-event": "4.2.0", | ||
"pem": "^1.14.6", | ||
"pify": "5.0.0", | ||
"readable-stream": "^4.2.0", | ||
"request": "^2.88.2", | ||
"sinon": "^14.0.0", | ||
"slow-stream": "0.0.4", | ||
"tempy": "1.0.1", | ||
"then-busboy": "^5.2.1", | ||
"to-readable-stream": "2.1.0", | ||
"tough-cookie": "4.0.0", | ||
"ts-node": "^10.8.2", | ||
"type-fest": "^3.0.0", | ||
"typescript": "~4.8.2", | ||
"xo": "^0.52.2", | ||
"@types/node-fetch": "2.6.2" | ||
}, | ||
"sideEffects": false, | ||
"ava": { | ||
"files": [ | ||
"test/*" | ||
], | ||
"timeout": "1m", | ||
"extensions": { | ||
"ts": "module" | ||
}, | ||
"nodeArguments": [ | ||
"--loader=ts-node/esm" | ||
] | ||
}, | ||
"nyc": { | ||
"reporter": [ | ||
"text", | ||
"html", | ||
"lcov" | ||
], | ||
"extension": [ | ||
".ts" | ||
], | ||
"exclude": [ | ||
"**/test/**" | ||
] | ||
}, | ||
"xo": { | ||
"ignores": [ | ||
"documentation/examples/*" | ||
], | ||
"rules": { | ||
"@typescript-eslint/no-empty-function": "off", | ||
"n/no-deprecated-api": "off", | ||
"n/prefer-global/url": "off", | ||
"n/prefer-global/url-search-params": "off", | ||
"@typescript-eslint/no-implicit-any-catch": "off", | ||
"unicorn/prefer-node-protocol": "off", | ||
"ava/assertion-arguments": "off", | ||
"@typescript-eslint/no-unsafe-member-access": "off", | ||
"@typescript-eslint/no-unsafe-return": "off", | ||
"@typescript-eslint/no-unsafe-assignment": "off", | ||
"@typescript-eslint/no-unsafe-call": "off", | ||
"@typescript-eslint/await-thenable": "off", | ||
"@typescript-eslint/no-redundant-type-constituents": "off", | ||
"no-lone-blocks": "off", | ||
"unicorn/no-await-expression-member": "off" | ||
} | ||
}, | ||
"runkitExampleFilename": "./documentation/examples/runkit-example.js", | ||
"main": "./dist/source/index.js" | ||
} | ||
"name": "got-cjs", | ||
"version": "12.5.3", | ||
"description": "Human-friendly and powerful HTTP request library for Node.js", | ||
"license": "MIT", | ||
"repository": "apify/got-cjs", | ||
"funding": "https://github.com/sindresorhus/got?sponsor=1", | ||
"type": "commonjs", | ||
"types": "./dist/source/index.d.ts", | ||
"engines": { | ||
"node": ">=12" | ||
}, | ||
"scripts": { | ||
"test": "xo && tsc --noEmit && ava", | ||
"release": "np", | ||
"build": "del-cli dist && tsc", | ||
"prepare": "npm run build" | ||
}, | ||
"files": [ | ||
"dist/source" | ||
], | ||
"keywords": [ | ||
"http", | ||
"https", | ||
"http2", | ||
"get", | ||
"got", | ||
"url", | ||
"uri", | ||
"request", | ||
"simple", | ||
"curl", | ||
"wget", | ||
"fetch", | ||
"net", | ||
"network", | ||
"gzip", | ||
"brotli", | ||
"requests", | ||
"human-friendly", | ||
"axios", | ||
"superagent", | ||
"node-fetch", | ||
"ky" | ||
], | ||
"dependencies": { | ||
"@sindresorhus/is": "4.6.0", | ||
"@szmarczak/http-timer": "4.0.6", | ||
"cacheable-lookup": "6.1.0", | ||
"cacheable-request": "7.0.2", | ||
"decompress-response": "^6.0.0", | ||
"form-data-encoder": "1.7.2", | ||
"get-stream": "^6.0.1", | ||
"http2-wrapper": "^2.1.10", | ||
"lowercase-keys": "2.0.0", | ||
"p-cancelable": "2.1.1", | ||
"responselike": "2.0.1" | ||
}, | ||
"devDependencies": { | ||
"@hapi/bourne": "^3.0.0", | ||
"@sindresorhus/tsconfig": "^3.0.1", | ||
"@sinonjs/fake-timers": "^9.1.1", | ||
"@types/benchmark": "^2.1.2", | ||
"@types/express": "^4.17.13", | ||
"@types/node": "^18.7.23", | ||
"@types/pem": "^1.9.6", | ||
"@types/pify": "^5.0.1", | ||
"@types/readable-stream": "^2.3.13", | ||
"@types/request": "^2.48.8", | ||
"@types/sinon": "^10.0.11", | ||
"@types/sinonjs__fake-timers": "^8.1.1", | ||
"@types/tough-cookie": "^4.0.1", | ||
"ava": "^4.3.3", | ||
"axios": "^0.27.2", | ||
"benchmark": "^2.1.4", | ||
"bluebird": "^3.7.2", | ||
"body-parser": "^1.19.2", | ||
"create-cert": "^1.0.6", | ||
"create-test-server": "^3.0.1", | ||
"del-cli": "^5.0.0", | ||
"delay": "^5.0.0", | ||
"express": "^4.17.3", | ||
"form-data": "^4.0.0", | ||
"formdata-node": "4.4.1", | ||
"nock": "^13.2.4", | ||
"node-fetch": "2.6.7", | ||
"np": "^7.6.0", | ||
"nyc": "^15.1.0", | ||
"p-event": "4.2.0", | ||
"pem": "^1.14.6", | ||
"pify": "5.0.0", | ||
"readable-stream": "^4.2.0", | ||
"request": "^2.88.2", | ||
"sinon": "^14.0.0", | ||
"slow-stream": "0.0.4", | ||
"tempy": "1.0.1", | ||
"then-busboy": "^5.2.1", | ||
"to-readable-stream": "2.1.0", | ||
"tough-cookie": "4.0.0", | ||
"ts-node": "^10.8.2", | ||
"type-fest": "^3.0.0", | ||
"typescript": "~4.8.2", | ||
"xo": "^0.52.2", | ||
"@types/node-fetch": "2.6.2" | ||
}, | ||
"sideEffects": false, | ||
"ava": { | ||
"files": [ | ||
"test/*" | ||
], | ||
"timeout": "1m", | ||
"extensions": { | ||
"ts": "module" | ||
}, | ||
"nodeArguments": [ | ||
"--loader=ts-node/esm" | ||
] | ||
}, | ||
"nyc": { | ||
"reporter": [ | ||
"text", | ||
"html", | ||
"lcov" | ||
], | ||
"extension": [ | ||
".ts" | ||
], | ||
"exclude": [ | ||
"**/test/**" | ||
] | ||
}, | ||
"xo": { | ||
"ignores": [ | ||
"documentation/examples/*" | ||
], | ||
"rules": { | ||
"@typescript-eslint/no-empty-function": "off", | ||
"n/no-deprecated-api": "off", | ||
"n/prefer-global/url": "off", | ||
"n/prefer-global/url-search-params": "off", | ||
"@typescript-eslint/no-implicit-any-catch": "off", | ||
"unicorn/prefer-node-protocol": "off", | ||
"ava/assertion-arguments": "off", | ||
"@typescript-eslint/no-unsafe-member-access": "off", | ||
"@typescript-eslint/no-unsafe-return": "off", | ||
"@typescript-eslint/no-unsafe-assignment": "off", | ||
"@typescript-eslint/no-unsafe-call": "off", | ||
"@typescript-eslint/await-thenable": "off", | ||
"@typescript-eslint/no-redundant-type-constituents": "off", | ||
"no-lone-blocks": "off", | ||
"unicorn/no-await-expression-member": "off" | ||
} | ||
}, | ||
"runkitExampleFilename": "./documentation/examples/runkit-example.js", | ||
"main": "./dist/source/index.js" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
263301
5668
+ Addedcacheable-request@7.0.2(transitive)
+ Addedclone-response@1.0.3(transitive)
+ Addedend-of-stream@1.4.4(transitive)
+ Addedget-stream@5.2.0(transitive)
+ Addedmimic-response@1.0.1(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpump@3.0.2(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removedcacheable-request@8.3.1(transitive)
Updatedcacheable-request@7.0.2