Comparing version
{ | ||
"name": "unenv", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "", | ||
@@ -28,8 +28,8 @@ "repository": "unjs/unenv", | ||
"mime": "^3.0.0", | ||
"node-fetch": "^3.2.4" | ||
"node-fetch": "^3.2.4", | ||
"pathe": "^0.3.0" | ||
}, | ||
"devDependencies": { | ||
"@nuxtjs/eslint-config-typescript": "latest", | ||
"@types/node": "latest", | ||
"@types/node-fetch": "latest", | ||
"@types/node": "^17.0.31", | ||
"consola": "latest", | ||
@@ -36,0 +36,0 @@ "eslint": "latest", |
@@ -58,4 +58,4 @@ # unenv | ||
[node:events](https://nodejs.org/api/events.html) | Polyfilled | [unenv/node/events](./src/runtime/node/events) | ||
[node:fs/promises](https://nodejs.org/api/fs/promises.html) | Mocked | - | ||
[node:fs](https://nodejs.org/api/fs.html) | Mocked | - | ||
[node:fs](https://nodejs.org/api/fs.html) | Polyfilled | [unenv/node/fs](./src/runtime/node/fs) | ||
[node:fs/promises](https://nodejs.org/api/fs/promises.html) | Polyfilled | [unenv/node/fs/promises](./src/runtime/node/fs/promises) | ||
[node:http2](https://nodejs.org/api/http2.html) | Mocked | - | ||
@@ -68,5 +68,5 @@ [node:http](https://nodejs.org/api/http.html) | Polyfilled | [unenv/node/http](./src/runtime/node/http) | ||
[node:os](https://nodejs.org/api/os.html) | Mocked | - | ||
[node:path](https://nodejs.org/api/path.html) | Mocked | - | ||
[node:path](https://nodejs.org/api/path.html) | Polyfilled | [unenv/node/path](./src/runtime/node/path) | ||
[node:perf_hooks](https://nodejs.org/api/perf_hooks.html) | Mocked | - | ||
[node:process](https://nodejs.org/api/process.html) | Polyfilled | - | ||
[node:process](https://nodejs.org/api/process.html) | Polyfilled | [unenv/node/process](./src/runtime/node/process) | ||
[node:punycode](https://nodejs.org/api/punycode.html) | Mocked | - | ||
@@ -77,5 +77,9 @@ [node:querystring](https://nodejs.org/api/querystring.html) | Mocked | - | ||
[node:stream](https://nodejs.org/api/stream.html) | Polyfilled | [unenv/node/stream](./src/runtime/node/stream) | ||
[node:stream/consumers](https://nodejs.org/api/stream.html) | Mocked | [unenv/node/stream/consumers](./src/runtime/node/stream/consumers) | ||
[node:stream/promises](https://nodejs.org/api/stream.html) | Mocked | [unenv/node/stream/promises](./src/runtime/node/stream/promises) | ||
[node:stream/web](https://nodejs.org/api/stream.html) | Native | [unenv/node/stream/web](./src/runtime/node/stream/web) | ||
[node:string_decoder](https://nodejs.org/api/string_decoder.html) | Mocked | - | ||
[node:sys](https://nodejs.org/api/sys.html) | Mocked | - | ||
[node:timers](https://nodejs.org/api/timers.html) | Mocked | - | ||
[node:timers/promises](https://nodejs.org/api/timers.html) | Mocked | - | ||
[node:tls](https://nodejs.org/api/tls.html) | Mocked | - | ||
@@ -86,2 +90,3 @@ [node:trace_events](https://nodejs.org/api/trace_events.html) | Mocked | - | ||
[node:util](https://nodejs.org/api/util.html) | Polyfilled | [unenv/node/util](./src/runtime/node/util) | ||
[node:util/types](https://nodejs.org/api/util.html) | Polyfilled | [unenv/node/util/types](./src/runtime/node/util/types) | ||
[node:v8](https://nodejs.org/api/v8.html) | Mocked | - | ||
@@ -88,0 +93,0 @@ [node:vm](https://nodejs.org/api/vm.html) | Mocked | - |
import type { HeadersObject } from './types'; | ||
export declare function rawHeaders(headers: HeadersObject): any[]; | ||
export declare function mergeFns(...functions: Function[]): (...args: any[]) => void; | ||
export declare function notImplemented(name: string): () => never; | ||
export declare function notImplemented(name: string): () => any; |
@@ -6,4 +6,4 @@ export { Buffer, kMaxLength, INSPECT_MAX_BYTES, SlowBuffer } from './_buffer'; | ||
}; | ||
export declare const resolveObjectURL: () => never; | ||
export declare const transcode: () => never; | ||
export declare const resolveObjectURL: () => any; | ||
export declare const transcode: () => any; | ||
export declare const btoa: typeof globalThis.btoa; | ||
@@ -10,0 +10,0 @@ export declare const atob: typeof globalThis.atob; |
@@ -1,2 +0,3 @@ | ||
declare const _default: _EventEmitter; | ||
export declare const EventEmitter: any; | ||
declare const _default: any; | ||
export default _default; |
@@ -67,1 +67,2 @@ export declare const METHODS: string[]; | ||
}; | ||
export declare const maxHeaderSize = 16384; |
@@ -0,5 +1,14 @@ | ||
import http from 'node:http'; | ||
export * from './_consts'; | ||
export * from './_request'; | ||
export * from './_response'; | ||
export declare const createServer: typeof http.createServer; | ||
export declare const request: typeof http.request; | ||
export declare const get: typeof http.get; | ||
export declare const Server: typeof http.Server; | ||
export declare const OutgoingMessage: typeof http.OutgoingMessage; | ||
export declare const ClientRequest: typeof http.ClientRequest; | ||
export declare const Agent: typeof http.Agent; | ||
export declare const globalAgent: typeof http.globalAgent; | ||
declare const _default: any; | ||
export default _default; |
@@ -16,6 +16,7 @@ /// <reference types="node" /> | ||
readonly remotePort?: number; | ||
readonly readyState: net.SocketReadyState; | ||
constructor(_options?: net.SocketConstructorOpts); | ||
write(_buffer: Uint8Array | string, _arg1?: BufferEncoding | Callback<Error | undefined>, _arg2?: Callback<Error | undefined>): boolean; | ||
connect(_arg1: number | string | net.SocketConnectOpts, _arg2?: string | Callback, _arg3?: Callback): this; | ||
end(_arg1?: Callback | Uint8Array | string, _arg2?: BufferEncoding | Callback, _arg3?: Callback): void; | ||
end(_arg1?: Callback | Uint8Array | string, _arg2?: BufferEncoding | Callback, _arg3?: Callback): this; | ||
setEncoding(_encoding?: BufferEncoding): this; | ||
@@ -22,0 +23,0 @@ pause(): this; |
@@ -1,7 +0,19 @@ | ||
export * from './readable'; | ||
export * from './writable'; | ||
export * from './duplex'; | ||
export * from './transform'; | ||
export * from './mock'; | ||
import stream from 'node:stream'; | ||
export { Readable } from './readable'; | ||
export { Writable } from './writable'; | ||
export { Duplex } from './duplex'; | ||
export { Transform } from './transform'; | ||
export declare const Stream: stream.Stream; | ||
export declare const PassThrough: stream.PassThrough; | ||
export declare const pipeline: typeof stream.pipeline; | ||
export declare const finished: typeof stream.finished; | ||
export declare const addAbortSignal: typeof stream.addAbortSignal; | ||
export declare const isDisturbed: () => any; | ||
export declare const isReadable: () => any; | ||
export declare const compose: () => any; | ||
export declare const isErrored: () => any; | ||
export declare const destroy: () => any; | ||
export declare const _isUint8Array: () => any; | ||
export declare const _uint8ArrayToBuffer: () => any; | ||
declare const _default: any; | ||
export default _default; |
@@ -12,2 +12,4 @@ /// <reference types="node" /> | ||
readonly readableObjectMode: boolean; | ||
readonly readableAborted: boolean; | ||
readonly readableDidRead: boolean; | ||
readable: boolean; | ||
@@ -28,3 +30,3 @@ destroyed: boolean; | ||
_destroy(_error?: any, _callback?: Callback<any>): void; | ||
destroy(error?: Error): void; | ||
destroy(error?: Error): this; | ||
pipe<T>(_destenition: T, _options?: { | ||
@@ -31,0 +33,0 @@ end?: boolean; |
@@ -29,6 +29,6 @@ /// <reference types="node" /> | ||
setDefaultEncoding(_encoding: BufferEncoding): this; | ||
end(arg1: Callback | any, arg2?: Callback | BufferEncoding, arg3?: Callback): void; | ||
end(arg1: Callback | any, arg2?: Callback | BufferEncoding, arg3?: Callback): this; | ||
cork(): void; | ||
uncork(): void; | ||
destroy(_error?: Error): void; | ||
destroy(_error?: Error): this; | ||
} |
@@ -9,5 +9,5 @@ import type util from 'node:util'; | ||
export declare const deprecate: typeof util.deprecate; | ||
export declare const _errnoException: () => never; | ||
export declare const _exceptionWithHostPort: () => never; | ||
export declare const _extend: () => never; | ||
export declare const _errnoException: () => any; | ||
export declare const _exceptionWithHostPort: () => any; | ||
export declare const _extend: () => any; | ||
export declare const callbackify: typeof util.callbackify; | ||
@@ -14,0 +14,0 @@ export declare const getSystemErrorMap: typeof util.getSystemErrorMap; |
@@ -12,12 +12,12 @@ export declare const URL: { | ||
}; | ||
export declare const parseURL: () => never; | ||
export declare const basicURLParse: () => never; | ||
export declare const serializeURL: () => never; | ||
export declare const serializeHost: () => never; | ||
export declare const serializeInteger: () => never; | ||
export declare const serializeURLOrigin: () => never; | ||
export declare const setTheUsername: () => never; | ||
export declare const setThePassword: () => never; | ||
export declare const cannotHaveAUsernamePasswordPort: () => never; | ||
export declare const percentDecodeBytes: () => never; | ||
export declare const percentDecodeString: () => never; | ||
export declare const parseURL: () => any; | ||
export declare const basicURLParse: () => any; | ||
export declare const serializeURL: () => any; | ||
export declare const serializeHost: () => any; | ||
export declare const serializeInteger: () => any; | ||
export declare const serializeURLOrigin: () => any; | ||
export declare const setTheUsername: () => any; | ||
export declare const setThePassword: () => any; | ||
export declare const cannotHaveAUsernamePasswordPort: () => any; | ||
export declare const percentDecodeBytes: () => any; | ||
export declare const percentDecodeString: () => any; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
317668
18.86%7
-12.5%171
16.33%9052
14.39%139
3.73%9
-10%5
25%+ Added
+ Added