Comparing version 0.1.3 to 0.1.4
@@ -1,5 +0,5 @@ | ||
const url=require('url') | ||
global.URL=url.URL | ||
global.URLSearchParams=url.URLSearchParams | ||
const url = require('url') | ||
global.URL = url.URL | ||
global.URLSearchParams = url.URLSearchParams | ||
module.exports=require('./').create(require('node-fetch')) | ||
module.exports = require('./xfetch').create(require('node-fetch')) |
{ | ||
"name": "xfetch-js", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "", | ||
"main": "xfetch.js", | ||
"main": "node.js", | ||
"browser": "xfetch.min.js", | ||
@@ -7,0 +7,0 @@ "scripts": { |
@@ -45,4 +45,5 @@ # xfetch-js | ||
```js | ||
const xf = require('xfetch-js/node') | ||
const xf = require('xfetch-js') | ||
// This one will pollute global.URL and global.URLSearchParams, then return a xfetch client with node-fetch | ||
// If you want a pure xfetch instance, use require('xfetch-js/xfetch') | ||
@@ -49,0 +50,0 @@ xf('https://postman-echo.com/get/', { qs: { foo: 'bar' } }) |
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
12282
69