@emnapi/core
Advanced tools
@@ -192,2 +192,11 @@ /// <reference types="node" /> | ||
| emnapi: { | ||
| /** | ||
| * Synchronize data between the wasm memory and an ArrayBuffer / view. | ||
| * | ||
| * Note: when a non-shared wasm memory has grown, a view over the | ||
| * detached old buffer is re-created over the current buffer through the | ||
| * intrinsic base-class constructor, so for view inputs the returned view | ||
| * may be a base-class instance (e.g. `Uint8Array` or `DataView`) | ||
| * instead of the subclass that was passed in. | ||
| */ | ||
| syncMemory<T extends ArrayBuffer | ArrayBufferView> ( | ||
@@ -198,3 +207,3 @@ js_to_wasm: boolean, | ||
| len?: number | ||
| ): T | ||
| ): T extends ArrayBufferView ? ArrayBufferView : T | ||
| getMemoryAddress (arrayBufferOrView: ArrayBuffer | ArrayBufferView): PointerInfo | ||
@@ -201,0 +210,0 @@ addSendListener (worker: any): boolean |
@@ -192,2 +192,11 @@ /// <reference types="node" /> | ||
| emnapi: { | ||
| /** | ||
| * Synchronize data between the wasm memory and an ArrayBuffer / view. | ||
| * | ||
| * Note: when a non-shared wasm memory has grown, a view over the | ||
| * detached old buffer is re-created over the current buffer through the | ||
| * intrinsic base-class constructor, so for view inputs the returned view | ||
| * may be a base-class instance (e.g. `Uint8Array` or `DataView`) | ||
| * instead of the subclass that was passed in. | ||
| */ | ||
| syncMemory<T extends ArrayBuffer | ArrayBufferView> ( | ||
@@ -198,3 +207,3 @@ js_to_wasm: boolean, | ||
| len?: number | ||
| ): T | ||
| ): T extends ArrayBufferView ? ArrayBufferView : T | ||
| getMemoryAddress (arrayBufferOrView: ArrayBuffer | ArrayBufferView): PointerInfo | ||
@@ -201,0 +210,0 @@ addSendListener (worker: any): boolean |
@@ -192,2 +192,11 @@ /// <reference types="node" /> | ||
| emnapi: { | ||
| /** | ||
| * Synchronize data between the wasm memory and an ArrayBuffer / view. | ||
| * | ||
| * Note: when a non-shared wasm memory has grown, a view over the | ||
| * detached old buffer is re-created over the current buffer through the | ||
| * intrinsic base-class constructor, so for view inputs the returned view | ||
| * may be a base-class instance (e.g. `Uint8Array` or `DataView`) | ||
| * instead of the subclass that was passed in. | ||
| */ | ||
| syncMemory<T extends ArrayBuffer | ArrayBufferView> ( | ||
@@ -198,3 +207,3 @@ js_to_wasm: boolean, | ||
| len?: number | ||
| ): T | ||
| ): T extends ArrayBufferView ? ArrayBufferView : T | ||
| getMemoryAddress (arrayBufferOrView: ArrayBuffer | ArrayBufferView): PointerInfo | ||
@@ -201,0 +210,0 @@ addSendListener (worker: any): boolean |
@@ -192,2 +192,11 @@ /// <reference types="node" /> | ||
| emnapi: { | ||
| /** | ||
| * Synchronize data between the wasm memory and an ArrayBuffer / view. | ||
| * | ||
| * Note: when a non-shared wasm memory has grown, a view over the | ||
| * detached old buffer is re-created over the current buffer through the | ||
| * intrinsic base-class constructor, so for view inputs the returned view | ||
| * may be a base-class instance (e.g. `Uint8Array` or `DataView`) | ||
| * instead of the subclass that was passed in. | ||
| */ | ||
| syncMemory<T extends ArrayBuffer | ArrayBufferView> ( | ||
@@ -198,3 +207,3 @@ js_to_wasm: boolean, | ||
| len?: number | ||
| ): T | ||
| ): T extends ArrayBufferView ? ArrayBufferView : T | ||
| getMemoryAddress (arrayBufferOrView: ArrayBuffer | ArrayBufferView): PointerInfo | ||
@@ -201,0 +210,0 @@ addSendListener (worker: any): boolean |
+2
-2
| { | ||
| "name": "@emnapi/core", | ||
| "version": "1.11.2", | ||
| "version": "1.11.3", | ||
| "description": "emnapi core", | ||
@@ -30,3 +30,3 @@ "main": "index.js", | ||
| "dependencies": { | ||
| "@emnapi/wasi-threads": "1.2.2", | ||
| "@emnapi/wasi-threads": "1.2.3", | ||
| "tslib": "^2.4.0" | ||
@@ -33,0 +33,0 @@ }, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 4 instances
2217756
8.95%36307
2.54%2
-60%+ Added
- Removed
Updated