openchemlib-search-wasm 1.2.0 → 2.0.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/README.md +148 -0
- package/lib/hex.d.ts +31 -0
- package/lib/hex.d.ts.map +1 -0
- package/lib/hex.js +41 -0
- package/lib/hex.js.map +1 -0
- package/lib/index.d.ts +58 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +83 -7
- package/lib/index.js.map +1 -1
- package/lib/scan.d.ts +37 -7
- package/lib/scan.d.ts.map +1 -1
- package/lib/scan.js +90 -11
- package/lib/scan.js.map +1 -1
- package/lib/strongHash.d.ts +9 -0
- package/lib/strongHash.d.ts.map +1 -0
- package/lib/strongHash.js +56 -0
- package/lib/strongHash.js.map +1 -0
- package/lib/types.d.ts +37 -1
- package/lib/types.d.ts.map +1 -1
- package/lib/types.js +11 -0
- package/lib/types.js.map +1 -1
- package/lib/wasm/load.d.ts.map +1 -1
- package/lib/wasm/load.js +9 -1
- package/lib/wasm/load.js.map +1 -1
- package/lib/wasm/log.d.ts +36 -0
- package/lib/wasm/log.d.ts.map +1 -0
- package/lib/wasm/log.js +52 -0
- package/lib/wasm/log.js.map +1 -0
- package/package.json +1 -1
- package/src/hex.ts +43 -0
- package/src/index.ts +147 -5
- package/src/scan.ts +169 -16
- package/src/strongHash.ts +57 -0
- package/src/types.ts +56 -0
- package/src/wasm/load.ts +10 -1
- package/src/wasm/log.ts +66 -0
- package/wasm/data.js +1 -1
- package/wasm/runtime.d.ts +6 -0
package/wasm/runtime.d.ts
CHANGED
|
@@ -17,6 +17,12 @@ export interface LoadOptions {
|
|
|
17
17
|
/** A memory to instantiate against instead of creating one. */
|
|
18
18
|
external?: WebAssembly.Memory;
|
|
19
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* Called with the import object once the runtime has installed its own entries, so one of them
|
|
22
|
+
* can be replaced before instantiation. `teavmConsole` is the entry that matters here: the
|
|
23
|
+
* runtime fills it with character sinks that call `console.log` and `console.error`.
|
|
24
|
+
*/
|
|
25
|
+
installImports?: (imports: Record<string, unknown>) => void;
|
|
20
26
|
}
|
|
21
27
|
|
|
22
28
|
export function load(
|