New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@stepzen/fetch

Package Overview
Dependencies
Maintainers
0
Versions
213
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stepzen/fetch - npm Package Compare versions

Comparing version 0.45.0-beta.0 to 0.45.0-experimental.8333304

4

lib/index.d.ts

@@ -1,4 +0,4 @@

import { RequestInfo, RequestInit, Response } from 'node-fetch';
declare const fetch: (url: RequestInfo, init?: RequestInit) => Promise<Response>;
import type { RequestInfo, RequestInit, Response } from 'node-fetch';
declare const fetch: (url: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
export default fetch;
//# sourceMappingURL=index.d.ts.map
// Copyright IBM Corp. 2020, 2024
import { Agent as HttpAgent } from 'node:http';
import { Agent as HttpsAgent } from 'node:https';
import fetchCJSModule from 'node-fetch';
import fetch0 from 'node-fetch';
// workaround for https://github.com/steprz/stepzen-cli/issues/934

@@ -27,3 +27,3 @@ const httpAgent = new HttpAgent({

}
return fetchCJSModule.default(url, {
return fetch0(url, {
agent: urlstr.startsWith('https:') ? httpsAgent : httpAgent,

@@ -30,0 +30,0 @@ ...init,

{
"name": "@stepzen/fetch",
"description": "StepZen implementation of the fetch() API for NodeJS",
"version": "0.45.0-beta.0",
"version": "0.45.0-experimental.8333304",
"author": "StepZen Ltd",

@@ -26,3 +26,3 @@ "license": "MIT",

"debug": "^4.3.4",
"node-fetch": "^2.6.9"
"node-fetch": "^3.3.2"
},

@@ -34,3 +34,2 @@ "devDependencies": {

"@types/mocha": "^10.0.9",
"@types/node-fetch": "^2.6.2",
"chai": "^4.3.10",

@@ -51,3 +50,3 @@ "fancy-test": "^1.4.10",

},
"gitHead": "d5bc28933e720f1d6a8ee3d5075b50156c717919"
"gitHead": "83333044828d7a82d7dd0ad61a462be8eee23522"
}
// Copyright IBM Corp. 2020, 2024
import type {RequestInfo, RequestInit, Response} from 'node-fetch'
import {Agent as HttpAgent} from 'node:http'
import {Agent as HttpsAgent} from 'node:https'
import fetchCJSModule from 'node-fetch'
import {RequestInfo, RequestInit, Response} from 'node-fetch'
import fetch0 from 'node-fetch'

@@ -22,3 +23,3 @@ // workaround for https://github.com/steprz/stepzen-cli/issues/934

const fetch = async (
url: RequestInfo,
url: RequestInfo | URL,
init?: RequestInit,

@@ -35,3 +36,3 @@ ): Promise<Response> => {

return fetchCJSModule.default(url, {
return fetch0(url, {
agent: urlstr.startsWith('https:') ? httpsAgent : httpAgent,

@@ -38,0 +39,0 @@ ...init,

Sorry, the diff of this file is not supported yet

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