@php-wasm/node
Advanced tools
+15
-11
@@ -10,2 +10,6 @@ /** | ||
| type FSNode = Emscripten.FS.FSNode; | ||
| type HeapAccessor<T> = { | ||
| get(offset: number): T; | ||
| set(offset: number, value: T): void; | ||
| }; | ||
| type NonZeroNumber = Exclude<number, 0>; | ||
@@ -44,12 +48,12 @@ export type WasmUserSpaceContext = { | ||
| memory: { | ||
| HEAP8: Int8Array; | ||
| HEAPU8: Uint8Array; | ||
| HEAP16: Int16Array; | ||
| HEAPU16: Uint16Array; | ||
| HEAP32: Int32Array; | ||
| HEAPU32: Uint32Array; | ||
| HEAPF32: Float32Array; | ||
| HEAP64: BigInt64Array; | ||
| HEAPU64: BigUint64Array; | ||
| HEAPF64: Float64Array; | ||
| HEAP8: HeapAccessor<number>; | ||
| HEAPU8: HeapAccessor<number>; | ||
| HEAP16: HeapAccessor<number>; | ||
| HEAPU16: HeapAccessor<number>; | ||
| HEAP32: HeapAccessor<number>; | ||
| HEAPU32: HeapAccessor<number>; | ||
| HEAPF32: HeapAccessor<number>; | ||
| HEAP64: HeapAccessor<bigint>; | ||
| HEAPU64: HeapAccessor<bigint>; | ||
| HEAPF64: HeapAccessor<bigint>; | ||
| }; | ||
@@ -82,3 +86,3 @@ wasmImports: { | ||
| }; | ||
| export declare function bindUserSpace({ fileLockManager }: WasmKernelSpace, { pid, memory: { HEAP16, HEAP64, HEAP32 }, constants: { F_RDLCK, F_WRLCK, F_UNLCK, F_GETFL, O_ACCMODE, O_RDONLY, O_WRONLY, O_APPEND, O_NONBLOCK, F_SETFL, F_GETLK, F_SETLK, F_SETLKW, SEEK_SET, SEEK_CUR, SEEK_END, LOCK_SH, LOCK_EX, LOCK_NB, LOCK_UN, }, errnoCodes: { EBADF, EINVAL, EAGAIN, EWOULDBLOCK }, wasmImports: { builtin_fcntl64, builtin_fd_close, js_wasm_trace }, wasmExports: { wasm_get_end_offset }, syscalls: { getStreamFromFD }, FS, PROXYFS, NODEFS, }: WasmUserSpaceContext): WasmUserSpaceAPI; | ||
| export declare function bindUserSpace({ fileLockManager }: WasmKernelSpace, { pid, memory, constants: { F_RDLCK, F_WRLCK, F_UNLCK, F_GETFL, O_ACCMODE, O_RDONLY, O_WRONLY, O_APPEND, O_NONBLOCK, F_SETFL, F_GETLK, F_SETLK, F_SETLKW, SEEK_SET, SEEK_CUR, SEEK_END, LOCK_SH, LOCK_EX, LOCK_NB, LOCK_UN, }, errnoCodes: { EBADF, EINVAL, EAGAIN, EWOULDBLOCK }, wasmImports: { builtin_fcntl64, builtin_fd_close, js_wasm_trace }, wasmExports: { wasm_get_end_offset }, syscalls: { getStreamFromFD }, FS, PROXYFS, NODEFS, }: WasmUserSpaceContext): WasmUserSpaceAPI; | ||
| export {}; |
+15
-15
| { | ||
| "name": "@php-wasm/node", | ||
| "version": "3.1.3", | ||
| "version": "3.1.4", | ||
| "description": "PHP.wasm for Node.js", | ||
@@ -41,3 +41,3 @@ "repository": { | ||
| "types": "index.d.ts", | ||
| "gitHead": "54bb87ba4c9624ec02f60194a2f1938b3f42477b", | ||
| "gitHead": "a7cde6f2a2d3cef27f51f24e9ddadbe5ca05344b", | ||
| "engines": { | ||
@@ -56,15 +56,15 @@ "node": ">=20.10.0", | ||
| "yargs": "17.7.2", | ||
| "@php-wasm/node-polyfills": "3.1.3", | ||
| "@php-wasm/universal": "3.1.3", | ||
| "@php-wasm/node-8-5": "3.1.3", | ||
| "@php-wasm/node-8-4": "3.1.3", | ||
| "@php-wasm/node-8-3": "3.1.3", | ||
| "@php-wasm/node-8-2": "3.1.3", | ||
| "@php-wasm/node-8-1": "3.1.3", | ||
| "@php-wasm/node-8-0": "3.1.3", | ||
| "@php-wasm/node-7-4": "3.1.3", | ||
| "@php-wasm/cli-util": "3.1.3", | ||
| "@php-wasm/logger": "3.1.3", | ||
| "@php-wasm/util": "3.1.3", | ||
| "@wp-playground/common": "3.1.3" | ||
| "@php-wasm/node-polyfills": "3.1.4", | ||
| "@php-wasm/universal": "3.1.4", | ||
| "@php-wasm/node-8-5": "3.1.4", | ||
| "@php-wasm/node-8-4": "3.1.4", | ||
| "@php-wasm/node-8-3": "3.1.4", | ||
| "@php-wasm/node-8-2": "3.1.4", | ||
| "@php-wasm/node-8-1": "3.1.4", | ||
| "@php-wasm/node-8-0": "3.1.4", | ||
| "@php-wasm/node-7-4": "3.1.4", | ||
| "@php-wasm/cli-util": "3.1.4", | ||
| "@php-wasm/logger": "3.1.4", | ||
| "@php-wasm/util": "3.1.4", | ||
| "@wp-playground/common": "3.1.4" | ||
| }, | ||
@@ -71,0 +71,0 @@ "packageManager": "npm@10.9.2", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 4 instances in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 4 instances in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 3 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
30959070
04534
0.29%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated
Updated
Updated
Updated
Updated
Updated
Updated
Updated
Updated
Updated