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

@whatwg-node/fetch

Package Overview
Dependencies
Maintainers
1
Versions
478
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@whatwg-node/fetch - npm Package Compare versions

Comparing version 0.6.10-alpha-20230207082824-72139f9 to 0.7.0-alpha-20230207093208-c16434f

tests/type-api-check.ts

10

CHANGELOG.md
# @whatwg-node/fetch
## 0.6.10-alpha-20230207082824-72139f9
## 0.7.0-alpha-20230207093208-c16434f
### Minor Changes
- [#318](https://github.com/ardatan/whatwg-node/pull/318)
[`2bffaa6`](https://github.com/ardatan/whatwg-node/commit/2bffaa6889b4460176a86e01689f6593d0596132)
Thanks [@ardatan](https://github.com/ardatan)! - Typed Request and Response objects
### Patch Changes

@@ -9,3 +15,3 @@

[[`724cf94`](https://github.com/ardatan/whatwg-node/commit/724cf94f8e076ba1dcd45bce476ce20dafc640be)]:
- @whatwg-node/node-fetch@0.0.6-alpha-20230207082824-72139f9
- @whatwg-node/node-fetch@0.0.6-alpha-20230207093208-c16434f

@@ -12,0 +18,0 @@ ## 0.6.9

11

dist/index.d.ts
/// <reference lib="dom" />
/// <reference types="urlpattern-polyfill" />
type TypedResponse<T> = Omit<Response, 'json'> & {
json(): Promise<T>;
}
type TypedResponseConstructor = typeof Response & {
new <T>(...args: ConstructorParameters<typeof Response>): TypedResponse<T>;
json<T>(data: T): TypedResponse<T>;
}
declare const _fetch: typeof fetch;
declare const _Request: typeof Request;
declare const _Response: typeof Response;
declare const _Response: TypedResponseConstructor;
declare const _Headers: typeof Headers;

@@ -8,0 +17,0 @@ declare const _FormData: typeof FormData;

{
"name": "@whatwg-node/fetch",
"version": "0.6.10-alpha-20230207082824-72139f9",
"version": "0.7.0-alpha-20230207093208-c16434f",
"description": "Cross Platform Smart Fetch Ponyfill",

@@ -17,3 +17,3 @@ "repository": {

"@peculiar/webcrypto": "^1.4.0",
"@whatwg-node/node-fetch": "0.0.6-alpha-20230207082824-72139f9",
"@whatwg-node/node-fetch": "0.0.6-alpha-20230207093208-c16434f",
"busboy": "^1.6.0",

@@ -20,0 +20,0 @@ "urlpattern-polyfill": "^6.0.2",

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