@whatwg-node/node-fetch
Advanced tools
Comparing version 0.0.1-alpha-20230130162825-1e02017 to 0.0.1-alpha-20230130163402-dac6604
/// <reference types="node" /> | ||
import { Readable } from 'stream'; | ||
import { PonyfillBlob } from './Blob'; | ||
import { Readable } from 'stream'; | ||
import { PonyfillFormData } from './FormData'; | ||
@@ -5,0 +5,0 @@ import { PonyfillReadableStream } from './ReadableStream'; |
14
index.js
@@ -7,10 +7,10 @@ 'use strict'; | ||
const fs = require('fs'); | ||
const http = require('http'); | ||
const https = require('https'); | ||
const stream = require('stream'); | ||
const url = require('url'); | ||
const events = require('@whatwg-node/events'); | ||
const busboy = _interopDefault(require('busboy')); | ||
const buffer = require('buffer'); | ||
const stream = require('stream'); | ||
const busboy = _interopDefault(require('busboy')); | ||
const url = require('url'); | ||
const fs = require('fs'); | ||
@@ -34,2 +34,3 @@ // Will be removed after v14 reaches EOL | ||
// Will be removed after v14 reaches EOL | ||
class PonyfillAbortSignal extends events.EventTarget { | ||
@@ -332,3 +333,6 @@ constructor() { | ||
if (fileName != null) { | ||
return new PonyfillFile([blob], fileName, { type: blob.type, lastModified: blob.lastModified }); | ||
return new PonyfillFile([blob], fileName, { | ||
type: blob.type, | ||
lastModified: blob.lastModified, | ||
}); | ||
} | ||
@@ -335,0 +339,0 @@ return blob; |
{ | ||
"name": "@whatwg-node/node-fetch", | ||
"version": "0.0.1-alpha-20230130162825-1e02017", | ||
"version": "0.0.1-alpha-20230130163402-dac6604", | ||
"description": "Fetch API implementation for Node", | ||
@@ -5,0 +5,0 @@ "sideEffects": false, |
@@ -1,2 +0,2 @@ | ||
import { PonyfillBody, BodyPonyfillInit, PonyfillBodyOptions } from './Body'; | ||
import { BodyPonyfillInit, PonyfillBody, PonyfillBodyOptions } from './Body'; | ||
import { PonyfillHeadersInit } from './Headers'; | ||
@@ -3,0 +3,0 @@ export type RequestPonyfillInit = PonyfillBodyOptions & Omit<RequestInit, 'body' | 'headers'> & { |
@@ -1,2 +0,2 @@ | ||
import { PonyfillBody, BodyPonyfillInit, PonyfillBodyOptions } from './Body'; | ||
import { BodyPonyfillInit, PonyfillBody, PonyfillBodyOptions } from './Body'; | ||
import { PonyfillHeadersInit } from './Headers'; | ||
@@ -3,0 +3,0 @@ export type ResponsePonyfilInit = PonyfillBodyOptions & Omit<ResponseInit, 'headers'> & { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
77122
2078