Comparing version 1.5.1 to 1.6.0
/// <reference types="node" /> | ||
import { AbortSignal } from 'abort-controller'; | ||
import { Agent } from 'https'; | ||
@@ -51,2 +52,3 @@ export declare class GaxiosError<T = any> extends Error { | ||
retry?: boolean; | ||
signal?: AbortSignal; | ||
size?: number; | ||
@@ -53,0 +55,0 @@ } |
{ | ||
"name": "gaxios", | ||
"version": "1.5.1", | ||
"version": "1.6.0", | ||
"description": "A simple common HTTP client specifically for Google APIs and services.", | ||
@@ -14,2 +14,4 @@ "main": "build/src/index.js", | ||
"samples-test": "cd samples/ && npm link ../ && npm test && cd ../", | ||
"presystem-test": "npm run compile", | ||
"system-test": "mocha build/system-test --timeout 40000", | ||
"clean": "gts clean", | ||
@@ -32,4 +34,7 @@ "compile": "tsc -p . && npm run fix", | ||
"@commitlint/config-conventional": "^7.1.2", | ||
"@types/execa": "^0.9.0", | ||
"@types/extend": "^3.0.0", | ||
"@types/mocha": "^5.2.5", | ||
"@types/mv": "^2.1.0", | ||
"@types/ncp": "^2.0.1", | ||
"@types/nock": "^9.3.0", | ||
@@ -39,6 +44,10 @@ "@types/node": "^10.5.6", | ||
"@types/sinon": "^7.0.0", | ||
"@types/tmp": "0.0.33", | ||
"assert-rejects": "^1.0.0", | ||
"codecov": "^3.0.4", | ||
"execa": "^1.0.0", | ||
"gts": "^0.9.0", | ||
"mocha": "^5.2.0", | ||
"mv": "^2.1.1", | ||
"ncp": "^2.0.0", | ||
"nock": "^9.6.0", | ||
@@ -50,5 +59,7 @@ "nyc": "^12.0.2", | ||
"source-map-support": "^0.5.6", | ||
"tmp": "0.0.33", | ||
"typescript": "~3.3.0" | ||
}, | ||
"dependencies": { | ||
"abort-controller": "^2.0.2", | ||
"extend": "^3.0.2", | ||
@@ -55,0 +66,0 @@ "https-proxy-agent": "^2.2.1", |
@@ -129,3 +129,7 @@ # gaxios | ||
// Enables default configuration for retries. | ||
retry: boolean; | ||
retry: boolean, | ||
// Cancelling a request requires the `abort-controller` library. | ||
// See https://github.com/bitinn/node-fetch#request-cancellation-with-abortsignal | ||
signal?: AbortSignal | ||
} | ||
@@ -132,0 +136,0 @@ ``` |
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
47547
540
139
4
27
+ Addedabort-controller@^2.0.2
+ Addedabort-controller@2.0.3(transitive)
+ Addedevent-target-shim@5.0.1(transitive)