Comparing version 3.0.2 to 3.0.3-rc-13f660f
@@ -8,1 +8,9 @@ const fetch = require('node-fetch'); | ||
); | ||
global.window = {}; | ||
Object.assign(global.window, | ||
fetch, | ||
{ | ||
fetch: fetch.bind(global.window) | ||
} | ||
); |
{ | ||
"name": "gofor", | ||
"version": "3.0.2", | ||
"version": "3.0.3-rc-13f660f", | ||
"description": "Lean, isomorphic fetch decorator that reverse merges default options", | ||
@@ -45,4 +45,4 @@ "keywords": [ | ||
"publishConfig": { | ||
"tag": "latest" | ||
"tag": "gofor-browser" | ||
} | ||
} |
@@ -91,3 +91,3 @@ /** | ||
return function(...args) { | ||
return fetch(...args); | ||
return window.fetch(...args); | ||
}; | ||
@@ -98,5 +98,5 @@ } | ||
return { | ||
Headers, | ||
Request, | ||
Response | ||
Headers: window.Headers, | ||
Request: window.Request, | ||
Response: window.Response | ||
}; | ||
@@ -103,0 +103,0 @@ } |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
13808
284
1