@ic-reactor/core 1.6.0-beta.1 → 1.6.0-beta.3
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.
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
declare module '@ic-reactor/parser' {
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* @param {string} prog
|
|
6
|
+
* @returns {string}
|
|
7
|
+
*/
|
|
8
|
+
export function did_to_js(prog: string): string;
|
|
9
|
+
/**
|
|
10
|
+
* @param {string} prog
|
|
11
|
+
* @returns {string}
|
|
12
|
+
*/
|
|
13
|
+
export function did_to_ts(prog: string): string;
|
|
14
|
+
|
|
15
|
+
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
16
|
+
|
|
17
|
+
export interface InitOutput {
|
|
18
|
+
readonly memory: WebAssembly.Memory;
|
|
19
|
+
readonly did_to_js: (a: number, b: number, c: number) => void;
|
|
20
|
+
readonly did_to_ts: (a: number, b: number, c: number) => void;
|
|
21
|
+
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
22
|
+
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
23
|
+
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
24
|
+
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
28
|
+
/**
|
|
29
|
+
* Instantiates the given `module`, which can either be bytes or
|
|
30
|
+
* a precompiled `WebAssembly.Module`.
|
|
31
|
+
*
|
|
32
|
+
* @param {SyncInitInput} module
|
|
33
|
+
*
|
|
34
|
+
* @returns {InitOutput}
|
|
35
|
+
*/
|
|
36
|
+
export function initSync(module: SyncInitInput): InitOutput;
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
40
|
+
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
41
|
+
*
|
|
42
|
+
* @param {InitInput | Promise<InitInput>} module_or_path
|
|
43
|
+
*
|
|
44
|
+
* @returns {Promise<InitOutput>}
|
|
45
|
+
*/
|
|
46
|
+
export default function __wbg_init (module_or_path?: InitInput | Promise<InitInput>): Promise<InitOutput>;
|
|
47
|
+
|
|
48
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ic-reactor/core",
|
|
3
|
-
"version": "1.6.0-beta.
|
|
3
|
+
"version": "1.6.0-beta.3",
|
|
4
4
|
"description": "A library for intracting with the Internet Computer canisters",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -41,7 +41,9 @@
|
|
|
41
41
|
"zustand": "^4.5"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@ic-reactor/parser": "^0.1.0-beta.1"
|
|
44
|
+
"@ic-reactor/parser": "^0.1.0-beta.1",
|
|
45
|
+
"@types/copyfiles": "^2",
|
|
46
|
+
"copyfiles": "^2.4.1"
|
|
45
47
|
},
|
|
46
48
|
"scripts": {
|
|
47
49
|
"test": "NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules\" npx jest",
|
|
@@ -49,11 +51,12 @@
|
|
|
49
51
|
"bundle": "npm run bundle:dev && npm run bundle:prod",
|
|
50
52
|
"bundle:dev": "npx webpack --mode development",
|
|
51
53
|
"bundle:prod": "npx webpack --mode production",
|
|
52
|
-
"build": "npx tsc && npm run bundle",
|
|
54
|
+
"build": "npx tsc && npm run bundle && npm run copy",
|
|
55
|
+
"copy": "copyfiles -u 1 \"src/**/*.d.ts\" dist",
|
|
53
56
|
"clean": "npx rimraf dist && npx rimraf umd && npx rimraf node_modules"
|
|
54
57
|
},
|
|
55
58
|
"engines": {
|
|
56
59
|
"node": ">=10"
|
|
57
60
|
},
|
|
58
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "a2c93951f4a89664203d35522adb586355507299"
|
|
59
62
|
}
|