| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 244d0c3 commit 76bc4d6
9 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,4 @@ | |||
| 1 | + import { AsyncContextFrameBinding } from './internalBinding/async_context_frame'; | ||
| 1 | 2 | import { AsyncWrapBinding } from './internalBinding/async_wrap'; | |
| 2 | 3 | import { BlobBinding } from './internalBinding/blob'; | |
| 3 | 4 | import { ConfigBinding } from './internalBinding/config'; | |
@@ -7,11 +8,13 @@ import { HttpParserBinding } from './internalBinding/http_parser'; | |||
| 7 | 8 | import { InspectorBinding } from './internalBinding/inspector'; | |
| 8 | 9 | import { FsBinding } from './internalBinding/fs'; | |
| 9 | 10 | import { FsDirBinding } from './internalBinding/fs_dir'; | |
| 11 | + import { ICUBinding } from './internalBinding/icu'; | ||
| 10 | 12 | import { LocksBinding } from './internalBinding/locks'; | |
| 11 | 13 | import { MessagingBinding } from './internalBinding/messaging'; | |
| 12 | 14 | import { OptionsBinding } from './internalBinding/options'; | |
| 13 | 15 | import { OSBinding } from './internalBinding/os'; | |
| 14 | 16 | import { ProcessBinding } from './internalBinding/process'; | |
| 17 | + import { SeaBinding } from './internalBinding/sea'; | ||
| 15 | 18 | import { SerdesBinding } from './internalBinding/serdes'; | |
| 16 | 19 | import { SymbolsBinding } from './internalBinding/symbols'; | |
| 17 | 20 | import { TimersBinding } from './internalBinding/timers'; | |
@@ -25,6 +28,7 @@ import { ModulesBinding } from './internalBinding/modules'; | |||
| 25 | 28 | import { ZlibBinding } from './internalBinding/zlib'; | |
| 26 | 29 | ||
| 27 | 30 | interface InternalBindingMap { | |
| 31 | + async_context_frame: AsyncContextFrameBinding; | ||
| 28 | 32 | async_wrap: AsyncWrapBinding; | |
| 29 | 33 | blob: BlobBinding; | |
| 30 | 34 | config: ConfigBinding; | |
@@ -33,13 +37,15 @@ interface InternalBindingMap { | |||
| 33 | 37 | fs: FsBinding; | |
| 34 | 38 | fs_dir: FsDirBinding; | |
| 35 | 39 | http_parser: HttpParserBinding; | |
| 40 | + icu: ICUBinding; | ||
| 36 | 41 | inspector: InspectorBinding; | |
| 37 | 42 | locks: LocksBinding; | |
| 38 | 43 | messaging: MessagingBinding; | |
| 39 | 44 | modules: ModulesBinding; | |
| 40 | 45 | options: OptionsBinding; | |
| 41 | 46 | os: OSBinding; | |
| 42 | 47 | process: ProcessBinding; | |
| 48 | + sea: SeaBinding; | ||
| 43 | 49 | serdes: SerdesBinding; | |
| 44 | 50 | symbols: SymbolsBinding; | |
| 45 | 51 | timers: TimersBinding; | |
@@ -65,6 +71,7 @@ declare global { | |||
| 65 | 71 | | Int8Array | |
| 66 | 72 | | Int16Array | |
| 67 | 73 | | Int32Array | |
| 74 | + | Float16Array | ||
| 68 | 75 | | Float32Array | |
| 69 | 76 | | Float64Array | |
| 70 | 77 | | BigUint64Array | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,4 @@ | |||
| 1 | + export interface AsyncContextFrameBinding { | ||
| 2 | + getContinuationPreservedEmbedderData(): unknown, | ||
| 3 | + setContinuationPreservedEmbedderData(frame: unknown): void, | ||
| 4 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -287,6 +287,9 @@ export interface ConstantsBinding { | |||
| 287 | 287 | BROTLI_ENCODE: 9; | |
| 288 | 288 | ZSTD_COMPRESS: 10; | |
| 289 | 289 | ZSTD_DECOMPRESS: 11; | |
| 290 | + ZSTD_e_continue: 0; | ||
| 291 | + ZSTD_e_flush: 1; | ||
| 292 | + ZSTD_e_end: 2; | ||
| 290 | 293 | Z_MIN_WINDOWBITS: 8; | |
| 291 | 294 | Z_MAX_WINDOWBITS: 15; | |
| 292 | 295 | Z_DEFAULT_WINDOWBITS: 15; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -2,6 +2,15 @@ declare namespace InternalHttpParserBinding { | |||
| 2 | 2 | type Buffer = Uint8Array; | |
| 3 | 3 | type Stream = object; | |
| 4 | 4 | ||
| 5 | + class ConnectionsList { | ||
| 6 | + constructor(); | ||
| 7 | + | ||
| 8 | + all(): HTTPParser[]; | ||
| 9 | + idle(): HTTPParser[]; | ||
| 10 | + active(): HTTPParser[]; | ||
| 11 | + expired(): HTTPParser[]; | ||
| 12 | + } | ||
| 13 | + | ||
| 5 | 14 | class HTTPParser { | |
| 6 | 15 | static REQUEST: 1; | |
| 7 | 16 | static RESPONSE: 2; | |
@@ -40,6 +49,8 @@ declare namespace InternalHttpParserBinding { | |||
| 40 | 49 | } | |
| 41 | 50 | ||
| 42 | 51 | export interface HttpParserBinding { | |
| 43 | - methods: string[]; | ||
| 52 | + ConnectionsList: typeof InternalHttpParserBinding.ConnectionsList; | ||
| 44 | 53 | HTTPParser: typeof InternalHttpParserBinding.HTTPParser; | |
| 54 | + allMethods: string[]; | ||
| 55 | + methods: string[]; | ||
| 45 | 56 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,18 @@ | |||
| 1 | + export interface ICUBinding { | ||
| 2 | + Converter: object; | ||
| 3 | + decode( | ||
| 4 | + converter: object, | ||
| 5 | + input: ArrayBufferView | ArrayBuffer | SharedArrayBuffer, | ||
| 6 | + flags: number, | ||
| 7 | + fromEncoding: string, | ||
| 8 | + ): string; | ||
| 9 | + getConverter(label: string, flags: number): object | undefined; | ||
| 10 | + getStringWidth(value: string, ambiguousAsFullWidth?: boolean, expandEmojiSequence?: boolean): number; | ||
| 11 | + hasConverter(label: string): boolean; | ||
| 12 | + icuErrName(status: number): string; | ||
| 13 | + transcode( | ||
| 14 | + input: ArrayBufferView | ArrayBuffer | SharedArrayBuffer, | ||
| 15 | + fromEncoding: string, | ||
| 16 | + toEncoding: string, | ||
| 17 | + ): Buffer | number; | ||
| 18 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,5 @@ | |||
| 1 | + export interface SeaBinding { | ||
| 2 | + getAsset(key: string): ArrayBuffer | undefined; | ||
| 3 | + isExperimentalSeaWarningNeeded(): boolean; | ||
| 4 | + isSea(): boolean; | ||
| 5 | + } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,6 @@ | |||
| 1 | 1 | export const async_id_symbol: unique symbol; | |
| 2 | 2 | export const handle_onclose_symbol: unique symbol; | |
| 3 | + export const imported_cjs_symbol: unique symbol; | ||
| 3 | 4 | export const no_message_symbol: unique symbol; | |
| 4 | 5 | export const messaging_deserialize_symbol: unique symbol; | |
| 5 | 6 | export const messaging_transfer_symbol: unique symbol; | |
@@ -13,6 +14,7 @@ export const trigger_async_id_symbol: unique symbol; | |||
| 13 | 14 | export interface SymbolsBinding { | |
| 14 | 15 | async_id_symbol: typeof async_id_symbol; | |
| 15 | 16 | handle_onclose_symbol: typeof handle_onclose_symbol; | |
| 17 | + imported_cjs_symbol: typeof imported_cjs_symbol; | ||
| 16 | 18 | no_message_symbol: typeof no_message_symbol; | |
| 17 | 19 | messaging_deserialize_symbol: typeof messaging_deserialize_symbol; | |
| 18 | 20 | messaging_transfer_symbol: typeof messaging_transfer_symbol; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -46,4 +46,22 @@ export interface UtilBinding { | |||
| 46 | 46 | parseEnv(content: string): Record<string, string>; | |
| 47 | 47 | styleText(format: Array<string> | string, text: string): string; | |
| 48 | 48 | isInsideNodeModules(frameLimit: number, defaultValue: unknown): boolean; | |
| 49 | + | ||
| 50 | + constants: { | ||
| 51 | + kPending: 0; | ||
| 52 | + kFulfilled: 1; | ||
| 53 | + kRejected: 2; | ||
| 54 | + kExiting: 0; | ||
| 55 | + kExitCode: 1; | ||
| 56 | + kHasExitCode: 2; | ||
| 57 | + ALL_PROPERTIES: 0; | ||
| 58 | + ONLY_WRITABLE: 1; | ||
| 59 | + ONLY_ENUMERABLE: 2; | ||
| 60 | + ONLY_CONFIGURABLE: 4; | ||
| 61 | + SKIP_STRINGS: 8; | ||
| 62 | + SKIP_SYMBOLS: 16; | ||
| 63 | + kDisallowCloneAndTransfer: 0; | ||
| 64 | + kTransferable: 1; | ||
| 65 | + kCloneable: 2; | ||
| 66 | + }; | ||
| 49 | 67 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -280,6 +280,7 @@ declare namespace primordials { | |||
| 280 | 280 | export const FunctionPrototypeApply: UncurryThis<typeof Function.prototype.apply> | |
| 281 | 281 | export const FunctionPrototypeBind: UncurryThis<typeof Function.prototype.bind> | |
| 282 | 282 | export const FunctionPrototypeCall: UncurryThis<typeof Function.prototype.call> | |
| 283 | + export const FunctionPrototypeSymbolHasInstance: UncurryMethod<typeof Function.prototype, typeof Symbol.hasInstance> | ||
| 283 | 284 | export const FunctionPrototypeToString: UncurryThis<typeof Function.prototype.toString> | |
| 284 | 285 | export import Int16Array = globalThis.Int16Array; | |
| 285 | 286 | export const Int16ArrayPrototype: typeof Int16Array.prototype | |
@@ -371,6 +372,8 @@ declare namespace primordials { | |||
| 371 | 372 | export const RegExpPrototypeGetSource: UncurryGetter<typeof RegExp.prototype, "source">; | |
| 372 | 373 | export const RegExpPrototypeGetSticky: UncurryGetter<typeof RegExp.prototype, "sticky">; | |
| 373 | 374 | export const RegExpPrototypeGetUnicode: UncurryGetter<typeof RegExp.prototype, "unicode">; | |
| 375 | + export const RegExpPrototypeSymbolReplace: UncurryMethod<typeof RegExp.prototype, typeof Symbol.replace> | ||
| 376 | + export const RegExpPrototypeSymbolSplit: UncurryMethod<typeof RegExp.prototype, typeof Symbol.split> | ||
| 374 | 377 | export import Set = globalThis.Set; | |
| 375 | 378 | export const SetLength: typeof Set.length | |
| 376 | 379 | export const SetName: typeof Set.name | |
| Back | FazBrowse Home | New Git URL |
0 commit comments