Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

xfetch-js

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

xfetch-js - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

8

node.js

@@ -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' } })

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc