@jsprismarine/native-network 0.23.0-unstable-20261121073620 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -3
- package/dist/ffi.d.ts +1 -1
- package/dist/ffi.d.ts.map +1 -1
- package/dist/ffi.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/native/manifest.json.js +20 -20
- package/native/manifest.json +20 -20
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @jsprismarine/native-network
|
|
2
2
|
|
|
3
|
-
## 0.23.0
|
|
3
|
+
## 0.23.0
|
|
4
4
|
|
|
5
5
|
### Minor Changes
|
|
6
6
|
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
`ScriptHostErrors.LibraryNotBuilt` is replaced by `LibraryNotInstalled`, whose message says how to approve the install script for npm, pnpm or Bun. New entries cover a failed or corrupt download, a malformed manifest, and a library that is not the published build.
|
|
26
26
|
|
|
27
27
|
`@jsprismarine/native-network` exports `PUBLISHED_PLATFORMS`, the platforms it publishes builds for.
|
|
28
|
-
- Updated dependencies [[`60edd7a`](https://github.com/JSPrismarine/JSPrismarine/commit/60edd7a1234650367fe5c2406ee402641be33ed9), [`bf419b8`](https://github.com/JSPrismarine/JSPrismarine/commit/bf419b82bfea52c095ca09b02c1c4ac955ac1d0a), [`c8e1685`](https://github.com/JSPrismarine/JSPrismarine/commit/c8e1685ae8316255d39674af9d00ac8d778f674d), [`b41035b`](https://github.com/JSPrismarine/JSPrismarine/commit/b41035be9b61570008b3405aa169418b19081915), [`4bda824`](https://github.com/JSPrismarine/JSPrismarine/commit/4bda8241a8631da2d205133c85fd361871d6cf61), [`7e2e6f3`](https://github.com/JSPrismarine/JSPrismarine/commit/7e2e6f3cff1f20a11a3f59aac94c68a33fa71a35), [`3e71a8d`](https://github.com/JSPrismarine/JSPrismarine/commit/3e71a8dd75bd0a97e0f8587666f60f160844ff0b), [`586269e`](https://github.com/JSPrismarine/JSPrismarine/commit/586269e324cddfe57caf4206f387895cda6d479f), [`5d2fb0e`](https://github.com/JSPrismarine/JSPrismarine/commit/5d2fb0eb3730e59260a09e60c130e57e5fdb099c), [`936970c`](https://github.com/JSPrismarine/JSPrismarine/commit/936970c04f98b392e4b753f3c89224da3d03cb49), [`57caf26`](https://github.com/JSPrismarine/JSPrismarine/commit/57caf2632f92e5da55ce6eedc4eb0be3d66190d4), [`4b590cf`](https://github.com/JSPrismarine/JSPrismarine/commit/4b590cf6c529d17d8df20d8eab9b2157dc213a19), [`349a814`](https://github.com/JSPrismarine/JSPrismarine/commit/349a81448bfc8be2f901efe14527b8c9334f11eb), [`
|
|
29
|
-
- @jsprismarine/errors@0.23.0
|
|
28
|
+
- Updated dependencies [[`60edd7a`](https://github.com/JSPrismarine/JSPrismarine/commit/60edd7a1234650367fe5c2406ee402641be33ed9), [`bf419b8`](https://github.com/JSPrismarine/JSPrismarine/commit/bf419b82bfea52c095ca09b02c1c4ac955ac1d0a), [`c8e1685`](https://github.com/JSPrismarine/JSPrismarine/commit/c8e1685ae8316255d39674af9d00ac8d778f674d), [`b41035b`](https://github.com/JSPrismarine/JSPrismarine/commit/b41035be9b61570008b3405aa169418b19081915), [`4bda824`](https://github.com/JSPrismarine/JSPrismarine/commit/4bda8241a8631da2d205133c85fd361871d6cf61), [`7e2e6f3`](https://github.com/JSPrismarine/JSPrismarine/commit/7e2e6f3cff1f20a11a3f59aac94c68a33fa71a35), [`3e71a8d`](https://github.com/JSPrismarine/JSPrismarine/commit/3e71a8dd75bd0a97e0f8587666f60f160844ff0b), [`586269e`](https://github.com/JSPrismarine/JSPrismarine/commit/586269e324cddfe57caf4206f387895cda6d479f), [`5d2fb0e`](https://github.com/JSPrismarine/JSPrismarine/commit/5d2fb0eb3730e59260a09e60c130e57e5fdb099c), [`936970c`](https://github.com/JSPrismarine/JSPrismarine/commit/936970c04f98b392e4b753f3c89224da3d03cb49), [`57caf26`](https://github.com/JSPrismarine/JSPrismarine/commit/57caf2632f92e5da55ce6eedc4eb0be3d66190d4), [`4b590cf`](https://github.com/JSPrismarine/JSPrismarine/commit/4b590cf6c529d17d8df20d8eab9b2157dc213a19), [`349a814`](https://github.com/JSPrismarine/JSPrismarine/commit/349a81448bfc8be2f901efe14527b8c9334f11eb), [`56200a6`](https://github.com/JSPrismarine/JSPrismarine/commit/56200a61535d916f0c41a11d077752b194e4c08b), [`c500335`](https://github.com/JSPrismarine/JSPrismarine/commit/c5003358e3a7199593c6ddcdbe4bdf63f8c29fac), [`e090dd7`](https://github.com/JSPrismarine/JSPrismarine/commit/e090dd75379edbfc415d84925e48af29aaa4864e), [`6e758f9`](https://github.com/JSPrismarine/JSPrismarine/commit/6e758f9de80c357c12d992bf473f1bdac86fb274), [`93a1b61`](https://github.com/JSPrismarine/JSPrismarine/commit/93a1b610493f401c4ac62881f70b3dee8c882f33), [`e1c982e`](https://github.com/JSPrismarine/JSPrismarine/commit/e1c982eeed0dfd682b5680c45c69159e21fd9ec0), [`9579362`](https://github.com/JSPrismarine/JSPrismarine/commit/9579362b4070e246d6300d2f4e2dca2ab4715124), [`f18ef7c`](https://github.com/JSPrismarine/JSPrismarine/commit/f18ef7c595f58a267b5371baab96390d0282616d), [`cf88d2f`](https://github.com/JSPrismarine/JSPrismarine/commit/cf88d2f8c2184bd4e116db888d4528fa27f5338d), [`d6c69e4`](https://github.com/JSPrismarine/JSPrismarine/commit/d6c69e43051eb091f0b4a17c0f33799f5944caf3), [`0792e2a`](https://github.com/JSPrismarine/JSPrismarine/commit/0792e2a7e6e5e98729b80df412262fd549ea3cb9), [`1c3be54`](https://github.com/JSPrismarine/JSPrismarine/commit/1c3be5465a2865072ac0f16b4848ee0cd9b6b13a), [`db04d85`](https://github.com/JSPrismarine/JSPrismarine/commit/db04d8520c1d43b88196c14229f36f5c8e71f3c1)]:
|
|
29
|
+
- @jsprismarine/errors@0.23.0
|
|
30
30
|
|
|
31
31
|
## 0.22.0
|
|
32
32
|
|
package/dist/ffi.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export interface NativeSymbols {
|
|
|
19
19
|
jsp_pc_add_remote_candidate(pc: number, candidate: Uint8Array, mid: Uint8Array): number;
|
|
20
20
|
jsp_pc_local_description(pc: number, buffer: Uint8Array, size: number): number;
|
|
21
21
|
jsp_pc_selected_pair(pc: number, buffer: Uint8Array, size: number): number;
|
|
22
|
-
/** Missing from a library built before it, which
|
|
22
|
+
/** Missing from a library built before it, which `bindLibrary` still loads. */
|
|
23
23
|
jsp_pc_round_trip_time?(pc: number): number;
|
|
24
24
|
jsp_pc_close(pc: number): number;
|
|
25
25
|
jsp_pc_delete(pc: number): number;
|
package/dist/ffi.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ffi.d.ts","sources":["../src/ffi.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,0FAA0F;AAC1F,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,MAAM,CAAC;AAE5C,6FAA6F;AAC7F,MAAM,WAAW,aAAa;IAC1B,eAAe,IAAI,MAAM,CAAC;IAC1B,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5D,eAAe,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IACzE,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC,WAAW,IAAI,IAAI,CAAC;IACpB,YAAY,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;IACrD,aAAa,CACT,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,UAAU,EACvB,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,eAAe,EAA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C,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC;SACtC,CAAC;KACL,CAAC;IACF,aAAa,CAAC,MAAM,EAAE,eAAe,GAAG,MAAM,CAAC;CAClD;AAcD;;;;;;;;;GASG;AACH,eAAO,MAAM,SAAS,QAAS,OAAO,WAAW,MAAM,KAAG,OAIzD,CAAC;AAoBF;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,SAAU,MAAM,KAAG,YA4D1C,CAAC"}
|
package/dist/ffi.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ffi.js","names":[],"sources":["../src/ffi.ts"],"sourcesContent":["/**\n * Binds the library's flat C interface (`native/include/jsp_native_network.h`) through the\n * runtime's own FFI: `node:ffi` under Node.js, `bun:ffi` under Bun. Every call is synchronous and\n * nothing calls back, so neither FFI has to carry a call from a foreign thread.\n */\n\nimport { NativeNetworkErrors } from '@jsprismarine/errors/native-network';\n\n/** A pointer the FFI hands to native code: a bigint under Node.js, a number under Bun. */\nexport type NativePointer = bigint | number;\n\n/** The C interface, one method per exported function. Strings are NUL-terminated buffers. */\nexport interface NativeSymbols {\n jsp_abi_version(): number;\n jsp_events_open(wakePort: number, logLevel: number): number;\n jsp_events_read(queue: number, buffer: Uint8Array, size: number): number;\n jsp_events_close(queue: number): void;\n jsp_cleanup(): void;\n jsp_classify(data: Uint8Array, size: number): number;\n jsp_pc_create(\n queue: number,\n bindAddress: Uint8Array,\n iceServers: Uint8Array,\n portBegin: number,\n portEnd: number,\n enableIceUdpMux: number,\n maxMessageSize: number\n ): number;\n jsp_pc_set_remote_description(pc: number, sdp: Uint8Array, type: Uint8Array): number;\n jsp_pc_set_local_description(pc: number, type: Uint8Array): number;\n jsp_pc_add_remote_candidate(pc: number, candidate: Uint8Array, mid: Uint8Array): number;\n jsp_pc_local_description(pc: number, buffer: Uint8Array, size: number): number;\n jsp_pc_selected_pair(pc: number, buffer: Uint8Array, size: number): number;\n /** Missing from a library built before it, which {@link bindLibrary} still loads. */\n jsp_pc_round_trip_time?(pc: number): number;\n jsp_pc_close(pc: number): number;\n jsp_pc_delete(pc: number): number;\n jsp_dc_create(pc: number, label: Uint8Array, unordered: number, maxRetransmits: number): number;\n jsp_dc_send(dc: number, data: Uint8Array, size: number): number;\n jsp_dc_buffered_amount(dc: number): number;\n jsp_dc_set_buffered_amount_low_threshold(dc: number, amount: number): number;\n jsp_dc_close(dc: number): number;\n jsp_dc_delete(dc: number): number;\n jsp_mux_open(bindAddress: Uint8Array, port: number): number;\n jsp_mux_attach(\n handle: number,\n family: number,\n inbound: NativePointer,\n inboundSize: number,\n outbound: NativePointer,\n outboundSize: number,\n wakePort: number\n ): number;\n jsp_mux_detach(handle: number, family: number): number;\n jsp_mux_close(handle: number): number;\n jsp_mux_stats(handle: number, out: Uint8Array, count: number): number;\n}\n\n/** A bound library, and how to take a pointer to shared memory for it. */\nexport interface BoundLibrary {\n readonly symbols: NativeSymbols;\n /** The address of a shared buffer's memory, which never moves while the buffer lives. */\n pointerOf(memory: SharedArrayBuffer): NativePointer;\n close(): void;\n}\n\n/** The argument and result kinds the interface uses, named once for both FFIs. */\ntype Kind = 'i32' | 'void' | 'buffer' | 'pointer';\n\nconst signatures: Record<keyof NativeSymbols, readonly [Kind, readonly Kind[]]> = {\n jsp_abi_version: ['i32', []],\n jsp_events_open: ['i32', ['i32', 'i32']],\n jsp_events_read: ['i32', ['i32', 'buffer', 'i32']],\n jsp_events_close: ['void', ['i32']],\n jsp_cleanup: ['void', []],\n jsp_classify: ['i32', ['buffer', 'i32']],\n jsp_pc_create: ['i32', ['i32', 'buffer', 'buffer', 'i32', 'i32', 'i32', 'i32']],\n jsp_pc_set_remote_description: ['i32', ['i32', 'buffer', 'buffer']],\n jsp_pc_set_local_description: ['i32', ['i32', 'buffer']],\n jsp_pc_add_remote_candidate: ['i32', ['i32', 'buffer', 'buffer']],\n jsp_pc_local_description: ['i32', ['i32', 'buffer', 'i32']],\n jsp_pc_selected_pair: ['i32', ['i32', 'buffer', 'i32']],\n jsp_pc_round_trip_time: ['i32', ['i32']],\n jsp_pc_close: ['i32', ['i32']],\n jsp_pc_delete: ['i32', ['i32']],\n jsp_dc_create: ['i32', ['i32', 'buffer', 'i32', 'i32']],\n jsp_dc_send: ['i32', ['i32', 'buffer', 'i32']],\n jsp_dc_buffered_amount: ['i32', ['i32']],\n jsp_dc_set_buffered_amount_low_threshold: ['i32', ['i32', 'i32']],\n jsp_dc_close: ['i32', ['i32']],\n jsp_dc_delete: ['i32', ['i32']],\n jsp_mux_open: ['i32', ['buffer', 'i32']],\n jsp_mux_attach: ['i32', ['i32', 'i32', 'pointer', 'i32', 'pointer', 'i32', 'i32']],\n jsp_mux_detach: ['i32', ['i32', 'i32']],\n jsp_mux_close: ['i32', ['i32']],\n jsp_mux_stats: ['i32', ['i32', 'buffer', 'i32']]\n};\n\n/**\n * Symbols a library built from older sources lacks. Such a build stays loadable, because an\n * install keeps the published one until the manifest points at a newer one, and the binding\n * leaves each symbol it lacks undefined.\n */\nconst optionalSymbols: ReadonlySet<string> = new Set(['jsp_pc_round_trip_time'] satisfies (keyof NativeSymbols)[]);\n\nconst requiredSignatures = Object.entries(signatures).filter(([name]) => !optionalSymbols.has(name));\nconst optionalSignatures = Object.entries(signatures).filter(([name]) => optionalSymbols.has(name));\n\n/** The part of `node:ffi` this binding uses; Node.js 26 ships no types for it yet. */\nexport interface NodeFfi {\n dlopen(\n path: string,\n definitions: Record<string, { arguments: string[]; return: string }>\n ): {\n functions: Record<string, (...args: unknown[]) => unknown>;\n lib: {\n close(): void;\n /** Binds one more symbol; throws when the library does not export it. */\n getFunction(\n name: string,\n definition: { arguments: string[]; return: string }\n ): (...args: unknown[]) => unknown;\n };\n };\n getRawPointer(memory: ArrayBufferLike): bigint;\n}\n\n/** The part of `bun:ffi` this binding uses. */\ninterface BunFfi {\n dlopen(\n path: string,\n definitions: Record<string, { args: string[]; returns: string }>\n ): { symbols: Record<string, (...args: unknown[]) => unknown>; close(): void };\n ptr(view: Uint8Array): number;\n}\n\nconst nodeKinds: Record<Kind, string> = { i32: 'int32', void: 'void', buffer: 'buffer', pointer: 'pointer' };\nconst bunKinds: Record<Kind, string> = { i32: 'i32', void: 'void', buffer: 'ptr', pointer: 'ptr' };\n\n/**\n * The `node:ffi` module as this file calls it.\n *\n * `process.getBuiltinModule` answers undefined on a Node.js built without FFI or started with\n * `--no-experimental-ffi`, which would otherwise fail later at `dlopen` with a TypeError that\n * names nothing.\n * @param ffi - What the runtime answered for `node:ffi`.\n * @param version - The running Node.js version, for the message.\n * @throws {NativeLibraryError} When the runtime has no `node:ffi`.\n */\nexport const nodeFfiOf = (ffi: unknown, version: string): NodeFfi => {\n if (ffi === undefined) throw new NativeNetworkErrors.FfiUnavailable({ version });\n // `node:ffi` has no published types; NodeFfi above is the part this file calls.\n return ffi as NodeFfi;\n};\n\n/**\n * Loads `node:ffi` without its experimental warning, which would otherwise print on every start.\n * Only that one warning is held back.\n */\nconst loadNodeFfi = (): NodeFfi => {\n const emitWarning = process.emitWarning;\n process.emitWarning = ((warning: string | Error, ...rest: unknown[]) => {\n const text = typeof warning === 'string' ? warning : warning.message;\n if (text.includes('FFI is an experimental feature')) return;\n Reflect.apply(emitWarning, process, [warning, ...rest]);\n }) as typeof process.emitWarning;\n try {\n return nodeFfiOf(process.getBuiltinModule('node:ffi'), process.version);\n } finally {\n process.emitWarning = emitWarning;\n }\n};\n\n/**\n * Opens the library with the running runtime's FFI.\n * @param path - The shared library's file.\n * @returns The bound library.\n * @throws {NativeLibraryError} When Node.js has no `node:ffi`.\n * @throws {Error} When the library does not load.\n */\nexport const bindLibrary = (path: string): BoundLibrary => {\n if (process.versions.bun !== undefined) {\n // `bun:ffi` has no types in this workspace; BunFfi above is the part this file calls.\n const bun = process.getBuiltinModule('bun:ffi' as 'node:fs') as unknown as BunFfi;\n const definitionOf = ([result, parameters]: readonly [Kind, readonly Kind[]]) => ({\n args: parameters.map((kind) => bunKinds[kind]),\n returns: bunKinds[result]\n });\n const opened = bun.dlopen(\n path,\n Object.fromEntries(requiredSignatures.map(([name, signature]) => [name, definitionOf(signature)]))\n );\n const symbols = { ...opened.symbols };\n // `bun:ffi` binds symbols only through `dlopen`, which refuses a missing one, so each\n // optional symbol opens the library once more.\n const extra: { close(): void }[] = [];\n for (const [name, signature] of optionalSignatures) {\n try {\n const one = bun.dlopen(path, { [name]: definitionOf(signature) });\n extra.push(one);\n const bound = one.symbols[name];\n if (bound !== undefined) symbols[name] = bound;\n } catch {\n // A build from before the symbol: it stays undefined.\n }\n }\n return {\n // The definitions above name every NativeSymbols member with its C signature.\n symbols: symbols as unknown as NativeSymbols,\n pointerOf: (memory) => bun.ptr(new Uint8Array(memory)),\n close: () => {\n for (const one of extra) one.close();\n opened.close();\n }\n };\n }\n\n const node = loadNodeFfi();\n const definitionOf = ([result, parameters]: readonly [Kind, readonly Kind[]]) => ({\n arguments: parameters.map((kind) => nodeKinds[kind]),\n return: nodeKinds[result]\n });\n const opened = node.dlopen(\n path,\n Object.fromEntries(requiredSignatures.map(([name, signature]) => [name, definitionOf(signature)]))\n );\n const functions = { ...opened.functions };\n for (const [name, signature] of optionalSignatures) {\n try {\n functions[name] = opened.lib.getFunction(name, definitionOf(signature));\n } catch {\n // A build from before the symbol: it stays undefined.\n }\n }\n return {\n // The definitions above name every NativeSymbols member with its C signature.\n symbols: functions as unknown as NativeSymbols,\n pointerOf: (memory) => node.getRawPointer(memory),\n close: () => opened.lib.close()\n };\n};\n"],"mappings":";;;;;;;AAqEA,IAAM,aAA4E;CAC9E,iBAAiB,CAAC,OAAO,CAAC,CAAC;CAC3B,iBAAiB,CAAC,OAAO,CAAC,OAAO,KAAK,CAAC;CACvC,iBAAiB,CAAC,OAAO;EAAC;EAAO;EAAU;CAAK,CAAC;CACjD,kBAAkB,CAAC,QAAQ,CAAC,KAAK,CAAC;CAClC,aAAa,CAAC,QAAQ,CAAC,CAAC;CACxB,cAAc,CAAC,OAAO,CAAC,UAAU,KAAK,CAAC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AAM,MAAM,IAAI,OAAO,MAAM,GAAG,OAAO,aAAa,SAAS,EAAE,CAAC;GAChE,MAAM,KAAK,GAAG;GACd,MAAM,QAAQ,IAAI,QAAQ;GAC1B,IAAI,UAAU,KAAA,GAAW,QAAQ,QAAQ;EAC7C,QAAQ,CAER;EAEJ,OAAO;GAEM;GACT,YAAY,WAAW,IAAI,IAAI,IAAI,WAAW,MAAM,CAAC;GACrD,aAAa;IACT,KAAK,MAAM,OAAO,OAAO,IAAI,MAAM;IACnC,OAAO,MAAM;GACjB;EACJ;CACJ;CAEA,MAAM,OAAO,YAAY;CACzB,MAAM,gBAAgB,CAAC,QAAQ,iBAAmD;EAC9E,WAAW,WAAW,KAAK,SAAS,UAAU,KAAK;EACnD,QAAQ,UAAU;CACtB;CACA,MAAM,SAAS,KAAK,OAChB,MACA,OAAO,YAAY,mBAAmB,KAAK,CAAC,MAAM,eAAe,CAAC,MAAM,aAAa,SAAS,CAAC,CAAC,CAAC,CACrG;CACA,MAAM,YAAY,EAAE,GAAG,OAAO,UAAU;CACxC,KAAK,MAAM,CAAC,MAAM,cAAc,oBAC5B,IAAI;EACA,UAAU,QAAQ,OAAO,IAAI,YAAY,MAAM,aAAa,SAAS,CAAC;CAC1E,QAAQ,CAER;CAEJ,OAAO;EAEH,SAAS;EACT,YAAY,WAAW,KAAK,cAAc,MAAM;EAChD,aAAa,OAAO,IAAI,MAAM;CAClC;AACJ"}
|
|
1
|
+
{"version":3,"file":"ffi.js","names":[],"sources":["../src/ffi.ts"],"sourcesContent":["/**\n * Binds the library's flat C interface (`native/include/jsp_native_network.h`) through the\n * runtime's own FFI: `node:ffi` under Node.js, `bun:ffi` under Bun. Every call is synchronous and\n * nothing calls back, so neither FFI has to carry a call from a foreign thread.\n */\n\nimport { NativeNetworkErrors } from '@jsprismarine/errors/native-network';\n\n/** A pointer the FFI hands to native code: a bigint under Node.js, a number under Bun. */\nexport type NativePointer = bigint | number;\n\n/** The C interface, one method per exported function. Strings are NUL-terminated buffers. */\nexport interface NativeSymbols {\n jsp_abi_version(): number;\n jsp_events_open(wakePort: number, logLevel: number): number;\n jsp_events_read(queue: number, buffer: Uint8Array, size: number): number;\n jsp_events_close(queue: number): void;\n jsp_cleanup(): void;\n jsp_classify(data: Uint8Array, size: number): number;\n jsp_pc_create(\n queue: number,\n bindAddress: Uint8Array,\n iceServers: Uint8Array,\n portBegin: number,\n portEnd: number,\n enableIceUdpMux: number,\n maxMessageSize: number\n ): number;\n jsp_pc_set_remote_description(pc: number, sdp: Uint8Array, type: Uint8Array): number;\n jsp_pc_set_local_description(pc: number, type: Uint8Array): number;\n jsp_pc_add_remote_candidate(pc: number, candidate: Uint8Array, mid: Uint8Array): number;\n jsp_pc_local_description(pc: number, buffer: Uint8Array, size: number): number;\n jsp_pc_selected_pair(pc: number, buffer: Uint8Array, size: number): number;\n /** Missing from a library built before it, which `bindLibrary` still loads. */\n jsp_pc_round_trip_time?(pc: number): number;\n jsp_pc_close(pc: number): number;\n jsp_pc_delete(pc: number): number;\n jsp_dc_create(pc: number, label: Uint8Array, unordered: number, maxRetransmits: number): number;\n jsp_dc_send(dc: number, data: Uint8Array, size: number): number;\n jsp_dc_buffered_amount(dc: number): number;\n jsp_dc_set_buffered_amount_low_threshold(dc: number, amount: number): number;\n jsp_dc_close(dc: number): number;\n jsp_dc_delete(dc: number): number;\n jsp_mux_open(bindAddress: Uint8Array, port: number): number;\n jsp_mux_attach(\n handle: number,\n family: number,\n inbound: NativePointer,\n inboundSize: number,\n outbound: NativePointer,\n outboundSize: number,\n wakePort: number\n ): number;\n jsp_mux_detach(handle: number, family: number): number;\n jsp_mux_close(handle: number): number;\n jsp_mux_stats(handle: number, out: Uint8Array, count: number): number;\n}\n\n/** A bound library, and how to take a pointer to shared memory for it. */\nexport interface BoundLibrary {\n readonly symbols: NativeSymbols;\n /** The address of a shared buffer's memory, which never moves while the buffer lives. */\n pointerOf(memory: SharedArrayBuffer): NativePointer;\n close(): void;\n}\n\n/** The argument and result kinds the interface uses, named once for both FFIs. */\ntype Kind = 'i32' | 'void' | 'buffer' | 'pointer';\n\nconst signatures: Record<keyof NativeSymbols, readonly [Kind, readonly Kind[]]> = {\n jsp_abi_version: ['i32', []],\n jsp_events_open: ['i32', ['i32', 'i32']],\n jsp_events_read: ['i32', ['i32', 'buffer', 'i32']],\n jsp_events_close: ['void', ['i32']],\n jsp_cleanup: ['void', []],\n jsp_classify: ['i32', ['buffer', 'i32']],\n jsp_pc_create: ['i32', ['i32', 'buffer', 'buffer', 'i32', 'i32', 'i32', 'i32']],\n jsp_pc_set_remote_description: ['i32', ['i32', 'buffer', 'buffer']],\n jsp_pc_set_local_description: ['i32', ['i32', 'buffer']],\n jsp_pc_add_remote_candidate: ['i32', ['i32', 'buffer', 'buffer']],\n jsp_pc_local_description: ['i32', ['i32', 'buffer', 'i32']],\n jsp_pc_selected_pair: ['i32', ['i32', 'buffer', 'i32']],\n jsp_pc_round_trip_time: ['i32', ['i32']],\n jsp_pc_close: ['i32', ['i32']],\n jsp_pc_delete: ['i32', ['i32']],\n jsp_dc_create: ['i32', ['i32', 'buffer', 'i32', 'i32']],\n jsp_dc_send: ['i32', ['i32', 'buffer', 'i32']],\n jsp_dc_buffered_amount: ['i32', ['i32']],\n jsp_dc_set_buffered_amount_low_threshold: ['i32', ['i32', 'i32']],\n jsp_dc_close: ['i32', ['i32']],\n jsp_dc_delete: ['i32', ['i32']],\n jsp_mux_open: ['i32', ['buffer', 'i32']],\n jsp_mux_attach: ['i32', ['i32', 'i32', 'pointer', 'i32', 'pointer', 'i32', 'i32']],\n jsp_mux_detach: ['i32', ['i32', 'i32']],\n jsp_mux_close: ['i32', ['i32']],\n jsp_mux_stats: ['i32', ['i32', 'buffer', 'i32']]\n};\n\n/**\n * Symbols a library built from older sources lacks. Such a build stays loadable, because an\n * install keeps the published one until the manifest points at a newer one, and the binding\n * leaves each symbol it lacks undefined.\n */\nconst optionalSymbols: ReadonlySet<string> = new Set(['jsp_pc_round_trip_time'] satisfies (keyof NativeSymbols)[]);\n\nconst requiredSignatures = Object.entries(signatures).filter(([name]) => !optionalSymbols.has(name));\nconst optionalSignatures = Object.entries(signatures).filter(([name]) => optionalSymbols.has(name));\n\n/** The part of `node:ffi` this binding uses; Node.js 26 ships no types for it yet. */\nexport interface NodeFfi {\n dlopen(\n path: string,\n definitions: Record<string, { arguments: string[]; return: string }>\n ): {\n functions: Record<string, (...args: unknown[]) => unknown>;\n lib: {\n close(): void;\n /** Binds one more symbol; throws when the library does not export it. */\n getFunction(\n name: string,\n definition: { arguments: string[]; return: string }\n ): (...args: unknown[]) => unknown;\n };\n };\n getRawPointer(memory: ArrayBufferLike): bigint;\n}\n\n/** The part of `bun:ffi` this binding uses. */\ninterface BunFfi {\n dlopen(\n path: string,\n definitions: Record<string, { args: string[]; returns: string }>\n ): { symbols: Record<string, (...args: unknown[]) => unknown>; close(): void };\n ptr(view: Uint8Array): number;\n}\n\nconst nodeKinds: Record<Kind, string> = { i32: 'int32', void: 'void', buffer: 'buffer', pointer: 'pointer' };\nconst bunKinds: Record<Kind, string> = { i32: 'i32', void: 'void', buffer: 'ptr', pointer: 'ptr' };\n\n/**\n * The `node:ffi` module as this file calls it.\n *\n * `process.getBuiltinModule` answers undefined on a Node.js built without FFI or started with\n * `--no-experimental-ffi`, which would otherwise fail later at `dlopen` with a TypeError that\n * names nothing.\n * @param ffi - What the runtime answered for `node:ffi`.\n * @param version - The running Node.js version, for the message.\n * @throws {NativeLibraryError} When the runtime has no `node:ffi`.\n */\nexport const nodeFfiOf = (ffi: unknown, version: string): NodeFfi => {\n if (ffi === undefined) throw new NativeNetworkErrors.FfiUnavailable({ version });\n // `node:ffi` has no published types; NodeFfi above is the part this file calls.\n return ffi as NodeFfi;\n};\n\n/**\n * Loads `node:ffi` without its experimental warning, which would otherwise print on every start.\n * Only that one warning is held back.\n */\nconst loadNodeFfi = (): NodeFfi => {\n const emitWarning = process.emitWarning;\n process.emitWarning = ((warning: string | Error, ...rest: unknown[]) => {\n const text = typeof warning === 'string' ? warning : warning.message;\n if (text.includes('FFI is an experimental feature')) return;\n Reflect.apply(emitWarning, process, [warning, ...rest]);\n }) as typeof process.emitWarning;\n try {\n return nodeFfiOf(process.getBuiltinModule('node:ffi'), process.version);\n } finally {\n process.emitWarning = emitWarning;\n }\n};\n\n/**\n * Opens the library with the running runtime's FFI.\n * @param path - The shared library's file.\n * @returns The bound library.\n * @throws {NativeLibraryError} When Node.js has no `node:ffi`.\n * @throws {Error} When the library does not load.\n */\nexport const bindLibrary = (path: string): BoundLibrary => {\n if (process.versions.bun !== undefined) {\n // `bun:ffi` has no types in this workspace; BunFfi above is the part this file calls.\n const bun = process.getBuiltinModule('bun:ffi' as 'node:fs') as unknown as BunFfi;\n const definitionOf = ([result, parameters]: readonly [Kind, readonly Kind[]]) => ({\n args: parameters.map((kind) => bunKinds[kind]),\n returns: bunKinds[result]\n });\n const opened = bun.dlopen(\n path,\n Object.fromEntries(requiredSignatures.map(([name, signature]) => [name, definitionOf(signature)]))\n );\n const symbols = { ...opened.symbols };\n // `bun:ffi` binds symbols only through `dlopen`, which refuses a missing one, so each\n // optional symbol opens the library once more.\n const extra: { close(): void }[] = [];\n for (const [name, signature] of optionalSignatures) {\n try {\n const one = bun.dlopen(path, { [name]: definitionOf(signature) });\n extra.push(one);\n const bound = one.symbols[name];\n if (bound !== undefined) symbols[name] = bound;\n } catch {\n // A build from before the symbol: it stays undefined.\n }\n }\n return {\n // The definitions above name every NativeSymbols member with its C signature.\n symbols: symbols as unknown as NativeSymbols,\n pointerOf: (memory) => bun.ptr(new Uint8Array(memory)),\n close: () => {\n for (const one of extra) one.close();\n opened.close();\n }\n };\n }\n\n const node = loadNodeFfi();\n const definitionOf = ([result, parameters]: readonly [Kind, readonly Kind[]]) => ({\n arguments: parameters.map((kind) => nodeKinds[kind]),\n return: nodeKinds[result]\n });\n const opened = node.dlopen(\n path,\n Object.fromEntries(requiredSignatures.map(([name, signature]) => [name, definitionOf(signature)]))\n );\n const functions = { ...opened.functions };\n for (const [name, signature] of optionalSignatures) {\n try {\n functions[name] = opened.lib.getFunction(name, definitionOf(signature));\n } catch {\n // A build from before the symbol: it stays undefined.\n }\n }\n return {\n // The definitions above name every NativeSymbols member with its C signature.\n symbols: functions as unknown as NativeSymbols,\n pointerOf: (memory) => node.getRawPointer(memory),\n close: () => opened.lib.close()\n };\n};\n"],"mappings":";;;;;;;AAqEA,IAAM,aAA4E;CAC9E,iBAAiB,CAAC,OAAO,CAAC,CAAC;CAC3B,iBAAiB,CAAC,OAAO,CAAC,OAAO,KAAK,CAAC;CACvC,iBAAiB,CAAC,OAAO;EAAC;EAAO;EAAU;CAAK,CAAC;CACjD,kBAAkB,CAAC,QAAQ,CAAC,KAAK,CAAC;CAClC,aAAa,CAAC,QAAQ,CAAC,CAAC;CACxB,cAAc,CAAC,OAAO,CAAC,UAAU,KAAK,CAAC;CACvC,eAAe,CAAC,OAAO;EAAC;EAAO;EAAU;EAAU;EAAO;EAAO;EAAO;CAAK,CAAC;CAC9E,+BAA+B,CAAC,OAAO;EAAC;EAAO;EAAU;CAAQ,CAAC;CAClE,8BAA8B,CAAC,OAAO,CAAC,OAAO,QAAQ,CAAC;CACvD,6BAA6B,CAAC,OAAO;EAAC;EAAO;EAAU;CAAQ,CAAC;CAChE,0BAA0B,CAAC,OAAO;EAAC;EAAO;EAAU;CAAK,CAAC;CAC1D,sBAAsB,CAAC,OAAO;EAAC;EAAO;EAAU;CAAK,CAAC;CACtD,wBAAwB,CAAC,OAAO,CAAC,KAAK,CAAC;CACvC,cAAc,CAAC,OAAO,CAAC,KAAK,CAAC;CAC7B,eAAe,CAAC,OAAO,CAAC,KAAK,CAAC;CAC9B,eAAe,CAAC,OAAO;EAAC;EAAO;EAAU;EAAO;CAAK,CAAC;CACtD,aAAa,CAAC,OAAO;EAAC;EAAO;EAAU;CAAK,CAAC;CAC7C,wBAAwB,CAAC,OAAO,CAAC,KAAK,CAAC;CACvC,0CAA0C,CAAC,OAAO,CAAC,OAAO,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,IAAI;EACA,UAAU,QAAQ,OAAO,IAAI,YAAY,MAAM,aAAa,SAAS,CAAC;CAC1E,QAAQ,CAER;CAEJ,OAAO;EAEH,SAAS;EACT,YAAY,WAAW,KAAK,cAAc,MAAM;EAChD,aAAa,OAAO,IAAI,MAAM;CAClC;AACJ"}
|
package/dist/index.d.ts
CHANGED
|
@@ -15,4 +15,7 @@ export { bundledManifest, parseManifest, readManifest } from './manifest.js';
|
|
|
15
15
|
export type { ManifestFile, ManifestPlatform, NativeManifest } from './manifest.js';
|
|
16
16
|
export { PACKAGE_NAME, approvalAdvice, verifyLibrary } from './library.js';
|
|
17
17
|
export { operatingSystemOf } from './platform.js';
|
|
18
|
+
export type { NativeSymbols } from './ffi.js';
|
|
19
|
+
export type { LocateOptions } from './library.js';
|
|
20
|
+
export type { NativePointer } from './ffi.js';
|
|
18
21
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AACnF,YAAY,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAC/D,YAAY,EACR,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,cAAc,EACd,qBAAqB,EACrB,mBAAmB,EACnB,qBAAqB,EACxB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AACrF,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,EAAE,W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AAE,aAAa,EAAE,MAAM,WAAW,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/E,YAAY,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,YAAY,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAChG,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC1E,YAAY,EAAE,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,YAAY,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3C,YAAY,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC/C,YAAY,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC"}
|
|
@@ -1,78 +1,78 @@
|
|
|
1
1
|
// native/manifest.json
|
|
2
2
|
var $comment = "Written by the publish job of the package's native library workflow (scripts/native/write-manifest.mts). `build` is the hash of the native sources the builds were made from (src/nativeHash.ts), and `baseUrl` the GitHub release that holds them.";
|
|
3
|
-
var build = "
|
|
4
|
-
var baseUrl = "https://github.com/JSPrismarine/JSPrismarine/releases/download/native-network-build-
|
|
3
|
+
var build = "2bc68bbb54d536b8";
|
|
4
|
+
var baseUrl = "https://github.com/JSPrismarine/JSPrismarine/releases/download/native-network-build-2bc68bbb54d536b8";
|
|
5
5
|
var platforms = {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"shared": {
|
|
8
8
|
"file": "darwin-arm64-libjsp_native_network.dylib",
|
|
9
9
|
"bytes": 2227608,
|
|
10
|
-
"sha256": "
|
|
10
|
+
"sha256": "81e30a2192948c1448de4bb8506f4718aa2cc357044852cc89bcc45da53dcae7"
|
|
11
11
|
},
|
|
12
12
|
"static": {
|
|
13
13
|
"file": "darwin-arm64-libjsp_native_network.a",
|
|
14
|
-
"bytes":
|
|
15
|
-
"sha256": "
|
|
14
|
+
"bytes": 5044424,
|
|
15
|
+
"sha256": "d5ee5233aa56c713c43d6d38136544bfa3964130a8a696ebbe5a288f9da15c43"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"linux-arm64-gnu": {
|
|
19
19
|
"shared": {
|
|
20
20
|
"file": "linux-arm64-gnu-libjsp_native_network.so",
|
|
21
21
|
"bytes": 2691496,
|
|
22
|
-
"sha256": "
|
|
22
|
+
"sha256": "12bf41391368f979c326a5e5fc6344c4deb370efecf4debba63f0b8585eb12e5"
|
|
23
23
|
},
|
|
24
24
|
"static": {
|
|
25
25
|
"file": "linux-arm64-gnu-libjsp_native_network.a",
|
|
26
|
-
"bytes":
|
|
27
|
-
"sha256": "
|
|
26
|
+
"bytes": 8804096,
|
|
27
|
+
"sha256": "3b5acb147c6ad868eaabb7223bb1f5e7bf28020b36ec8606331f830e14dffa32"
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"linux-arm64-musl": {
|
|
31
31
|
"shared": {
|
|
32
32
|
"file": "linux-arm64-musl-libjsp_native_network.so",
|
|
33
33
|
"bytes": 2953080,
|
|
34
|
-
"sha256": "
|
|
34
|
+
"sha256": "5ac50faeaf77ed9db74763b409f6d9848275b1f962eef41b2c3cd1c3b2a66307"
|
|
35
35
|
},
|
|
36
36
|
"static": {
|
|
37
37
|
"file": "linux-arm64-musl-libjsp_native_network.a",
|
|
38
|
-
"bytes":
|
|
39
|
-
"sha256": "
|
|
38
|
+
"bytes": 9273496,
|
|
39
|
+
"sha256": "1d4bfdc7fedbdea6e967fd6074fc89961af1bc13a95e54093917aa6835e85f61"
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"linux-x64-gnu": {
|
|
43
43
|
"shared": {
|
|
44
44
|
"file": "linux-x64-gnu-libjsp_native_network.so",
|
|
45
45
|
"bytes": 2880072,
|
|
46
|
-
"sha256": "
|
|
46
|
+
"sha256": "e3748485b4e2b5b66db11013c8e9e066a0c9bedfa0e121b6b3b0a6471306ec89"
|
|
47
47
|
},
|
|
48
48
|
"static": {
|
|
49
49
|
"file": "linux-x64-gnu-libjsp_native_network.a",
|
|
50
|
-
"bytes":
|
|
51
|
-
"sha256": "
|
|
50
|
+
"bytes": 8813058,
|
|
51
|
+
"sha256": "02390ab43e71a9def1370aa36a92f5fd51fa6109979d8e81fdbd5edac879890b"
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
"linux-x64-musl": {
|
|
55
55
|
"shared": {
|
|
56
56
|
"file": "linux-x64-musl-libjsp_native_network.so",
|
|
57
57
|
"bytes": 3170384,
|
|
58
|
-
"sha256": "
|
|
58
|
+
"sha256": "0f15186cce43096303eb947ed9181619219a5a67a9e68922727447b7ae44a113"
|
|
59
59
|
},
|
|
60
60
|
"static": {
|
|
61
61
|
"file": "linux-x64-musl-libjsp_native_network.a",
|
|
62
|
-
"bytes":
|
|
63
|
-
"sha256": "
|
|
62
|
+
"bytes": 9313484,
|
|
63
|
+
"sha256": "fd025bc4a048f24621e69a816f41da08e0b486bc082f2536dde7b9c1f3e62696"
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
"win32-x64": {
|
|
67
67
|
"shared": {
|
|
68
68
|
"file": "win32-x64-libjsp_native_network.dll",
|
|
69
69
|
"bytes": 2210816,
|
|
70
|
-
"sha256": "
|
|
70
|
+
"sha256": "cb0bcd1a622ff1d1892bc02c078ad779aacbcc43fbd768eeb1c3756f7a0b2bf2"
|
|
71
71
|
},
|
|
72
72
|
"static": {
|
|
73
73
|
"file": "win32-x64-libjsp_native_network.lib",
|
|
74
|
-
"bytes":
|
|
75
|
-
"sha256": "
|
|
74
|
+
"bytes": 35328378,
|
|
75
|
+
"sha256": "5117f979393e416bcdc853e81bfae00e4d27da69507cbbfefbe3934d264099a0"
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
};
|
package/native/manifest.json
CHANGED
|
@@ -1,78 +1,78 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$comment": "Written by the publish job of the package's native library workflow (scripts/native/write-manifest.mts). `build` is the hash of the native sources the builds were made from (src/nativeHash.ts), and `baseUrl` the GitHub release that holds them.",
|
|
3
|
-
"build": "
|
|
4
|
-
"baseUrl": "https://github.com/JSPrismarine/JSPrismarine/releases/download/native-network-build-
|
|
3
|
+
"build": "2bc68bbb54d536b8",
|
|
4
|
+
"baseUrl": "https://github.com/JSPrismarine/JSPrismarine/releases/download/native-network-build-2bc68bbb54d536b8",
|
|
5
5
|
"platforms": {
|
|
6
6
|
"darwin-arm64": {
|
|
7
7
|
"shared": {
|
|
8
8
|
"file": "darwin-arm64-libjsp_native_network.dylib",
|
|
9
9
|
"bytes": 2227608,
|
|
10
|
-
"sha256": "
|
|
10
|
+
"sha256": "81e30a2192948c1448de4bb8506f4718aa2cc357044852cc89bcc45da53dcae7"
|
|
11
11
|
},
|
|
12
12
|
"static": {
|
|
13
13
|
"file": "darwin-arm64-libjsp_native_network.a",
|
|
14
|
-
"bytes":
|
|
15
|
-
"sha256": "
|
|
14
|
+
"bytes": 5044424,
|
|
15
|
+
"sha256": "d5ee5233aa56c713c43d6d38136544bfa3964130a8a696ebbe5a288f9da15c43"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"linux-arm64-gnu": {
|
|
19
19
|
"shared": {
|
|
20
20
|
"file": "linux-arm64-gnu-libjsp_native_network.so",
|
|
21
21
|
"bytes": 2691496,
|
|
22
|
-
"sha256": "
|
|
22
|
+
"sha256": "12bf41391368f979c326a5e5fc6344c4deb370efecf4debba63f0b8585eb12e5"
|
|
23
23
|
},
|
|
24
24
|
"static": {
|
|
25
25
|
"file": "linux-arm64-gnu-libjsp_native_network.a",
|
|
26
|
-
"bytes":
|
|
27
|
-
"sha256": "
|
|
26
|
+
"bytes": 8804096,
|
|
27
|
+
"sha256": "3b5acb147c6ad868eaabb7223bb1f5e7bf28020b36ec8606331f830e14dffa32"
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"linux-arm64-musl": {
|
|
31
31
|
"shared": {
|
|
32
32
|
"file": "linux-arm64-musl-libjsp_native_network.so",
|
|
33
33
|
"bytes": 2953080,
|
|
34
|
-
"sha256": "
|
|
34
|
+
"sha256": "5ac50faeaf77ed9db74763b409f6d9848275b1f962eef41b2c3cd1c3b2a66307"
|
|
35
35
|
},
|
|
36
36
|
"static": {
|
|
37
37
|
"file": "linux-arm64-musl-libjsp_native_network.a",
|
|
38
|
-
"bytes":
|
|
39
|
-
"sha256": "
|
|
38
|
+
"bytes": 9273496,
|
|
39
|
+
"sha256": "1d4bfdc7fedbdea6e967fd6074fc89961af1bc13a95e54093917aa6835e85f61"
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"linux-x64-gnu": {
|
|
43
43
|
"shared": {
|
|
44
44
|
"file": "linux-x64-gnu-libjsp_native_network.so",
|
|
45
45
|
"bytes": 2880072,
|
|
46
|
-
"sha256": "
|
|
46
|
+
"sha256": "e3748485b4e2b5b66db11013c8e9e066a0c9bedfa0e121b6b3b0a6471306ec89"
|
|
47
47
|
},
|
|
48
48
|
"static": {
|
|
49
49
|
"file": "linux-x64-gnu-libjsp_native_network.a",
|
|
50
|
-
"bytes":
|
|
51
|
-
"sha256": "
|
|
50
|
+
"bytes": 8813058,
|
|
51
|
+
"sha256": "02390ab43e71a9def1370aa36a92f5fd51fa6109979d8e81fdbd5edac879890b"
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
54
|
"linux-x64-musl": {
|
|
55
55
|
"shared": {
|
|
56
56
|
"file": "linux-x64-musl-libjsp_native_network.so",
|
|
57
57
|
"bytes": 3170384,
|
|
58
|
-
"sha256": "
|
|
58
|
+
"sha256": "0f15186cce43096303eb947ed9181619219a5a67a9e68922727447b7ae44a113"
|
|
59
59
|
},
|
|
60
60
|
"static": {
|
|
61
61
|
"file": "linux-x64-musl-libjsp_native_network.a",
|
|
62
|
-
"bytes":
|
|
63
|
-
"sha256": "
|
|
62
|
+
"bytes": 9313484,
|
|
63
|
+
"sha256": "fd025bc4a048f24621e69a816f41da08e0b486bc082f2536dde7b9c1f3e62696"
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
"win32-x64": {
|
|
67
67
|
"shared": {
|
|
68
68
|
"file": "win32-x64-libjsp_native_network.dll",
|
|
69
69
|
"bytes": 2210816,
|
|
70
|
-
"sha256": "
|
|
70
|
+
"sha256": "cb0bcd1a622ff1d1892bc02c078ad779aacbcc43fbd768eeb1c3756f7a0b2bf2"
|
|
71
71
|
},
|
|
72
72
|
"static": {
|
|
73
73
|
"file": "win32-x64-libjsp_native_network.lib",
|
|
74
|
-
"bytes":
|
|
75
|
-
"sha256": "
|
|
74
|
+
"bytes": 35328378,
|
|
75
|
+
"sha256": "5117f979393e416bcdc853e81bfae00e4d27da69507cbbfefbe3934d264099a0"
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsprismarine/native-network",
|
|
3
|
-
"version": "0.23.0
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"description": "Networking in native code for JSPrismarine: WebRTC peer connections on libdatachannel, and a UDP port RakNet shares with NetherNet",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"license": "(MIT OR MPL-2.0)",
|
|
41
41
|
"homepage": "https://github.com/JSPrismarine/JSPrismarine/tree/master/packages/native-network",
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@jsprismarine/raknet": "0.23.0
|
|
43
|
+
"@jsprismarine/raknet": "0.23.0",
|
|
44
44
|
"@types/node": "26.6.6",
|
|
45
45
|
"glob": "14.0.6",
|
|
46
46
|
"rimraf": "6.1.4",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"vitest": "5.1.1"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@jsprismarine/errors": "0.23.0
|
|
53
|
+
"@jsprismarine/errors": "0.23.0"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"clean": "rimraf dist jsp *.tsbuildinfo vite.config.ts.timestamp-* .tsup .turbo",
|