Comparing version 3.0.3-rc-67deecc to 3.0.3-rc-926b934
const fetch = require('node-fetch'); | ||
global.window = global; | ||
Object.assign(global, | ||
@@ -8,9 +10,1 @@ require('chai'), | ||
); | ||
global.window = {}; | ||
Object.assign(global.window, | ||
fetch, | ||
{ | ||
fetch: fetch.bind(global.window) | ||
} | ||
); |
{ | ||
"name": "gofor", | ||
"version": "3.0.3-rc-67deecc", | ||
"version": "3.0.3-rc-926b934", | ||
"description": "Lean, isomorphic fetch decorator that reverse merges default options", | ||
@@ -45,4 +45,4 @@ "keywords": [ | ||
"publishConfig": { | ||
"tag": "gofor-browser" | ||
"tag": "2019-05-21-apply-fetch-with-window" | ||
} | ||
} |
@@ -91,3 +91,3 @@ /** | ||
return function(...args) { | ||
return fetch.apply(window, args); | ||
return window.fetch(...args); | ||
}; | ||
@@ -94,0 +94,0 @@ } |
5
13688
278