@ampproject/toolbox-runtime-fetch
Advanced tools
Comparing version 2.7.1 to 2.7.2
@@ -19,3 +19,3 @@ /** | ||
const cacheListProvider = require('@ampproject/toolbox-cache-list'); | ||
const crossFetch = require('cross-fetch'); | ||
const nodeFetch = require('node-fetch'); | ||
const fse = require('fs-extra'); | ||
@@ -40,3 +40,3 @@ const https = require('https'); | ||
constructor(fetch, cacheList, runtimeVersion) { | ||
this.fetch_ = fetch || crossFetch; | ||
this.fetch_ = fetch || nodeFetch; | ||
this.cacheList_ = cacheList || cacheListProvider; | ||
@@ -43,0 +43,0 @@ this.runtimeVersion_ = runtimeVersion || runtimeVersionProvider; |
{ | ||
"name": "@ampproject/toolbox-runtime-fetch", | ||
"version": "2.7.1", | ||
"version": "2.7.2", | ||
"description": "Download the AMP runtime", | ||
@@ -23,8 +23,8 @@ "main": "index.js", | ||
"dependencies": { | ||
"@ampproject/toolbox-cache-list": "^2.7.1", | ||
"@ampproject/toolbox-core": "^2.7.1", | ||
"@ampproject/toolbox-runtime-version": "^2.7.1", | ||
"@ampproject/toolbox-cache-list": "^2.7.2", | ||
"@ampproject/toolbox-core": "^2.7.2", | ||
"@ampproject/toolbox-runtime-version": "^2.7.2", | ||
"at-least-node": "1.0.0", | ||
"cross-fetch": "3.0.6", | ||
"fs-extra": "9.0.1" | ||
"fs-extra": "9.0.1", | ||
"node-fetch": "2.6.1" | ||
}, | ||
@@ -35,3 +35,3 @@ "bugs": { | ||
"homepage": "https://github.com/ampproject/amp-toolbox/tree/main/packages/runtime-fetch", | ||
"gitHead": "9b159391d776396512b01ec250fa76941713c763" | ||
"gitHead": "83d1d4290d9da2683596506cff266c68e618fa81" | ||
} |
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
26829
+ Addednode-fetch@2.6.1
- Removedcross-fetch@3.0.6
- Removedcross-fetch@3.0.6(transitive)