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

@js-bits/fetch

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@js-bits/fetch - npm Package Compare versions

Comparing version 0.2.0 to 1.0.0

5

index.js

@@ -5,4 +5,3 @@ import nodeFetch from 'node-fetch';

const abortController = typeof AbortController === 'undefined' ? nodeAbortController : AbortController;
export default typeof fetch === 'undefined' ? nodeFetch : fetch;
export { abortController as AbortController };
const exportFetch = typeof fetch === 'undefined' ? nodeFetch : fetch;
export { abortController as AbortController, exportFetch as fetch };

4

index.test.js

@@ -1,3 +0,3 @@

import fetch, { AbortController } from './index.js';
// const { default: fetch, AbortController } = require('./dist/index.cjs');
import { fetch, AbortController } from './index.js';
// const { fetch, AbortController } = require('./dist/index.cjs');

@@ -4,0 +4,0 @@ describe(`fetch`, () => {

{
"name": "@js-bits/fetch",
"version": "0.2.0",
"version": "1.0.0",
"description": "Cross-environment (nodejs/web) fetch API",

@@ -5,0 +5,0 @@ "keywords": [

@@ -24,3 +24,3 @@ # Cross-environment (nodejs/web) fetch APi

```javascript
import fetch, { AbortController } from '@js-bits/fetch';
import { fetch, AbortController } from '@js-bits/fetch';
```

@@ -31,3 +31,3 @@

```javascript
const { default: fetch, AbortController } = require('@js-bits/fetch');
const { fetch, AbortController } = require('@js-bits/fetch');
```

@@ -34,0 +34,0 @@

Sorry, the diff of this file is not supported yet

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