Comparing version 1.8.3 to 1.8.4
@@ -32,2 +32,3 @@ "use strict"; | ||
const URL = isbrowser_1.isBrowser() ? window.URL : url.URL; | ||
const fetch = isbrowser_1.isBrowser() ? window.fetch : node_fetch_1.default; | ||
// tslint:disable-next-line variable-name no-any | ||
@@ -68,3 +69,3 @@ let HttpsProxyAgent; | ||
else { | ||
const res = yield node_fetch_1.default(opts.url, opts); | ||
const res = yield fetch(opts.url, opts); | ||
const data = yield this.getResponseData(opts, res); | ||
@@ -71,0 +72,0 @@ translatedResponse = this.translateResponse(opts, res, data); |
{ | ||
"name": "gaxios", | ||
"version": "1.8.3", | ||
"version": "1.8.4", | ||
"description": "A simple common HTTP client specifically for Google APIs and services.", | ||
@@ -11,5 +11,4 @@ "main": "build/src/index.js", | ||
"scripts": { | ||
"lint": "semistandard && gts check", | ||
"lint": "gts check", | ||
"test": "nyc mocha build/test", | ||
"samples-test": "cd samples/ && npm link ../ && npm test && cd ../", | ||
"presystem-test": "npm run compile", | ||
@@ -19,7 +18,6 @@ "system-test": "mocha build/system-test --timeout 40000", | ||
"compile": "tsc -p . && npm run fix", | ||
"fix": "gts fix && semistandard --fix", | ||
"fix": "gts fix", | ||
"prepare": "npm run compile", | ||
"pretest": "npm run compile", | ||
"codecov": "nyc report --reporter=json && codecov -f coverage/*.json", | ||
"commitlint": "git log -1 --pretty=%B | commitlint", | ||
"webpack": "webpack", | ||
@@ -36,4 +34,2 @@ "prebrowser-test": "npm run compile", | ||
"devDependencies": { | ||
"@commitlint/cli": "^7.5.2", | ||
"@commitlint/config-conventional": "^7.5.0", | ||
"@types/express": "^4.16.1", | ||
@@ -49,3 +45,3 @@ "@types/execa": "^0.9.0", | ||
"@types/sinon": "^7.0.7", | ||
"@types/tmp": "0.0.34", | ||
"@types/tmp": "0.1.0", | ||
"assert-rejects": "^1.0.0", | ||
@@ -56,3 +52,3 @@ "codecov": "^3.2.0", | ||
"gts": "^0.9.0", | ||
"is-docker": "^1.1.0", | ||
"is-docker": "^2.0.0", | ||
"karma": "^4.0.0", | ||
@@ -71,6 +67,5 @@ "karma-chrome-launcher": "^2.2.0", | ||
"null-loader": "^0.1.1", | ||
"nyc": "^13.3.0", | ||
"nyc": "^14.0.0", | ||
"puppeteer": "^1.12.2", | ||
"semantic-release": "^15.13.3", | ||
"semistandard": "^13.0.1", | ||
"semantic-release": "^15.13.9", | ||
"sinon": "^7.2.5", | ||
@@ -77,0 +72,0 @@ "source-map-support": "^0.5.10", |
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
Network access
Supply chain riskThis module accesses the network.
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
40
591
50784
2