teeny-request
Advanced tools
Comparing version 7.2.0 to 8.0.0
@@ -74,3 +74,3 @@ "use strict"; | ||
: require('https-proxy-agent'); | ||
const proxyOpts = { ...url_1.parse(proxy), ...poolOptions }; | ||
const proxyOpts = { ...(0, url_1.parse)(proxy), ...poolOptions }; | ||
return new Agent(proxyOpts); | ||
@@ -77,0 +77,0 @@ } |
@@ -68,7 +68,2 @@ /** | ||
declare function teenyRequest(reqOpts: Options): Request; | ||
declare namespace teenyRequest { | ||
var defaults: (defaults: CoreOptions) => (reqOpts: Options, callback?: RequestCallback<any> | undefined) => void | Request; | ||
var stats: TeenyStatistics; | ||
var resetStats: () => void; | ||
} | ||
declare function teenyRequest(reqOpts: Options, callback: RequestCallback): void; | ||
@@ -75,0 +70,0 @@ declare namespace teenyRequest { |
@@ -72,3 +72,3 @@ "use strict"; | ||
} | ||
options.agent = agents_1.getAgent(uri, reqOpts); | ||
options.agent = (0, agents_1.getAgent)(uri, reqOpts); | ||
return { uri, options }; | ||
@@ -141,3 +141,3 @@ } | ||
teenyRequest.stats.requestStarting(); | ||
node_fetch_1.default(uri, options).then(res => { | ||
(0, node_fetch_1.default)(uri, options).then(res => { | ||
teenyRequest.stats.requestFinished(); | ||
@@ -186,3 +186,3 @@ const header = res.headers.get('content-type'); | ||
teenyRequest.stats.requestStarting(); | ||
node_fetch_1.default(uri, options).then(res => { | ||
(0, node_fetch_1.default)(uri, options).then(res => { | ||
teenyRequest.stats.requestFinished(); | ||
@@ -206,3 +206,3 @@ responseStream = res.body; | ||
teenyRequest.stats.requestStarting(); | ||
node_fetch_1.default(uri, options).then(res => { | ||
(0, node_fetch_1.default)(uri, options).then(res => { | ||
teenyRequest.stats.requestFinished(); | ||
@@ -209,0 +209,0 @@ const header = res.headers.get('content-type'); |
# Changelog | ||
## [8.0.0](https://github.com/googleapis/teeny-request/compare/v7.2.0...v8.0.0) (2022-05-09) | ||
### ⚠ BREAKING CHANGES | ||
* drop node 10, update typescript to 4.6.3 (#279) | ||
### Build System | ||
* drop node 10, update typescript to 4.6.3 ([#279](https://github.com/googleapis/teeny-request/issues/279)) ([6f12739](https://github.com/googleapis/teeny-request/commit/6f1273993ae667078abae41a8029833749a25e6a)) | ||
## [7.2.0](https://github.com/googleapis/teeny-request/compare/v7.1.3...v7.2.0) (2022-03-31) | ||
@@ -4,0 +15,0 @@ |
{ | ||
"name": "teeny-request", | ||
"version": "7.2.0", | ||
"version": "8.0.0", | ||
"description": "Like request, but smaller.", | ||
@@ -8,3 +8,3 @@ "main": "./build/src/index.js", | ||
"engines": { | ||
"node": ">=10" | ||
"node": ">=12" | ||
}, | ||
@@ -50,3 +50,3 @@ "scripts": { | ||
"@compodoc/compodoc": "^1.1.9", | ||
"@types/mocha": "^8.0.0", | ||
"@types/mocha": "^9.1.1", | ||
"@types/node-fetch": "^2.5.7", | ||
@@ -57,8 +57,8 @@ "@types/sinon": "^10.0.0", | ||
"codecov": "^3.1.0", | ||
"gts": "^3.0.0", | ||
"gts": "^3.1.0", | ||
"linkinator": "^2.0.0", | ||
"mocha": "^8.0.0", | ||
"mocha": "^10.0.0", | ||
"nock": "^13.0.0", | ||
"sinon": "^13.0.0", | ||
"typescript": "^3.8.3" | ||
"typescript": "^4.6.3", | ||
"sinon": "^14.0.0" | ||
}, | ||
@@ -65,0 +65,0 @@ "nyc": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
64604
727