@emnapi/core
Advanced tools
Comparing version 0.34.0 to 0.35.0
@@ -16,2 +16,6 @@ import type { Context } from '@emnapi/runtime' | ||
export declare interface CreateWorkerInfo { | ||
type: 'pthread' | 'async-work' | ||
} | ||
export declare type BaseCreateOptions = { | ||
@@ -21,3 +25,4 @@ filename?: string | ||
reuseWorker?: boolean | ||
onCreateWorker?: () => any | ||
asyncWorkPoolSize?: number | ||
onCreateWorker?: (info: CreateWorkerInfo) => any | ||
print?: (str: string) => void | ||
@@ -72,2 +77,4 @@ printErr?: (str: string) => void | ||
startThread (tid: number, startArg: number): void | ||
initWorker (arg: number): void | ||
executeAsyncWork (work: number): void | ||
postMessage?: (msg: any) => any | ||
@@ -89,2 +96,3 @@ } | ||
overwriteImports?: (importObject: WebAssembly.Imports) => WebAssembly.Imports | ||
onInstantiated?: (instance: WebAssembly.Instance, module: WebAssembly.Module) => void | ||
getMemory?: (exports: WebAssembly.Exports) => WebAssembly.Memory | ||
@@ -91,0 +99,0 @@ getTable?: (exports: WebAssembly.Exports) => WebAssembly.Table |
@@ -16,2 +16,6 @@ import type { Context } from '@emnapi/runtime' | ||
export declare interface CreateWorkerInfo { | ||
type: 'pthread' | 'async-work' | ||
} | ||
export declare type BaseCreateOptions = { | ||
@@ -21,3 +25,4 @@ filename?: string | ||
reuseWorker?: boolean | ||
onCreateWorker?: () => any | ||
asyncWorkPoolSize?: number | ||
onCreateWorker?: (info: CreateWorkerInfo) => any | ||
print?: (str: string) => void | ||
@@ -72,2 +77,4 @@ printErr?: (str: string) => void | ||
startThread (tid: number, startArg: number): void | ||
initWorker (arg: number): void | ||
executeAsyncWork (work: number): void | ||
postMessage?: (msg: any) => any | ||
@@ -89,2 +96,3 @@ } | ||
overwriteImports?: (importObject: WebAssembly.Imports) => WebAssembly.Imports | ||
onInstantiated?: (instance: WebAssembly.Instance, module: WebAssembly.Module) => void | ||
getMemory?: (exports: WebAssembly.Exports) => WebAssembly.Memory | ||
@@ -91,0 +99,0 @@ getTable?: (exports: WebAssembly.Exports) => WebAssembly.Table |
{ | ||
"name": "@emnapi/core", | ||
"version": "0.34.0", | ||
"version": "0.35.0", | ||
"description": "emnapi core", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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 not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1519382
28056