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

@libsql/isomorphic-fetch

Package Overview
Dependencies
Maintainers
3
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@libsql/isomorphic-fetch - npm Package Compare versions

Comparing version 0.2.5 to 0.3.0

19

node.js

@@ -1,21 +0,6 @@

import http from 'http';
import https from 'https';
const _Request = Request;
const _Headers = Headers;
const httpAgent = new http.Agent({ keepAlive: true });
const httpsAgent = new https.Agent({ keepAlive: true });
const _fetch = fetch;
function agentSelector(parsedUrl) {
if (parsedUrl.protocol === 'https:') {
return httpsAgent;
} else {
return httpAgent;
}
}
function fetchWithAgentSelection(resource, options = {}) {
return fetch(resource, { agent: agentSelector, ...options });
}
export { fetchWithAgentSelection as fetch, _Request as Request, _Headers as Headers};
export { _fetch as fetch, _Request as Request, _Headers as Headers};

2

package.json
{
"name": "@libsql/isomorphic-fetch",
"version": "0.2.5",
"version": "0.3.0",
"keywords": [

@@ -5,0 +5,0 @@ "fetch",

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