logic-mesh 0.1.6 → 0.1.8
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/logic_mesh.d.ts +3 -1
- package/logic_mesh_bg.js +25 -33
- package/logic_mesh_bg.wasm +0 -0
- package/package.json +1 -1
package/logic_mesh.d.ts
CHANGED
|
@@ -168,14 +168,16 @@ export class EngineCommand {
|
|
|
168
168
|
* # Arguments
|
|
169
169
|
* * `block_name` - The name of the block to evaluate
|
|
170
170
|
* * `inputs` - The input values to the block
|
|
171
|
+
* * `lib` - Optional, the library to load the block from, defaults to "core"
|
|
171
172
|
*
|
|
172
173
|
* # Returns
|
|
173
174
|
* A list of values representing the outputs of the block
|
|
174
175
|
* @param {string} block_name
|
|
175
176
|
* @param {any[]} inputs
|
|
177
|
+
* @param {string | undefined} [lib]
|
|
176
178
|
* @returns {Promise<any>}
|
|
177
179
|
*/
|
|
178
|
-
evalBlock(block_name: string, inputs: any[]): Promise<any>;
|
|
180
|
+
evalBlock(block_name: string, inputs: any[], lib?: string): Promise<any>;
|
|
179
181
|
/**
|
|
180
182
|
* Creates a watch on block changes
|
|
181
183
|
* @param {Function} callback
|
package/logic_mesh_bg.js
CHANGED
|
@@ -279,7 +279,7 @@ function handleError(f, args) {
|
|
|
279
279
|
wasm.__wbindgen_export_5(addHeapObject(e));
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
|
-
function
|
|
282
|
+
function __wbg_adapter_153(arg0, arg1, arg2, arg3) {
|
|
283
283
|
wasm.__wbindgen_export_6(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
284
284
|
}
|
|
285
285
|
|
|
@@ -567,19 +567,23 @@ export class EngineCommand {
|
|
|
567
567
|
* # Arguments
|
|
568
568
|
* * `block_name` - The name of the block to evaluate
|
|
569
569
|
* * `inputs` - The input values to the block
|
|
570
|
+
* * `lib` - Optional, the library to load the block from, defaults to "core"
|
|
570
571
|
*
|
|
571
572
|
* # Returns
|
|
572
573
|
* A list of values representing the outputs of the block
|
|
573
574
|
* @param {string} block_name
|
|
574
575
|
* @param {any[]} inputs
|
|
576
|
+
* @param {string | undefined} [lib]
|
|
575
577
|
* @returns {Promise<any>}
|
|
576
578
|
*/
|
|
577
|
-
evalBlock(block_name, inputs) {
|
|
579
|
+
evalBlock(block_name, inputs, lib) {
|
|
578
580
|
const ptr0 = passStringToWasm0(block_name, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
579
581
|
const len0 = WASM_VECTOR_LEN;
|
|
580
582
|
const ptr1 = passArrayJsValueToWasm0(inputs, wasm.__wbindgen_export_0);
|
|
581
583
|
const len1 = WASM_VECTOR_LEN;
|
|
582
|
-
|
|
584
|
+
var ptr2 = isLikeNone(lib) ? 0 : passStringToWasm0(lib, wasm.__wbindgen_export_0, wasm.__wbindgen_export_1);
|
|
585
|
+
var len2 = WASM_VECTOR_LEN;
|
|
586
|
+
const ret = wasm.enginecommand_evalBlock(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
583
587
|
return takeObject(ret);
|
|
584
588
|
}
|
|
585
589
|
/**
|
|
@@ -636,9 +640,8 @@ export function __wbindgen_is_array(arg0) {
|
|
|
636
640
|
return ret;
|
|
637
641
|
};
|
|
638
642
|
|
|
639
|
-
export function
|
|
640
|
-
|
|
641
|
-
return addHeapObject(ret);
|
|
643
|
+
export function __wbg_setTimeout_f36afbef8475144f(arg0, arg1) {
|
|
644
|
+
setTimeout(getObject(arg0), arg1);
|
|
642
645
|
};
|
|
643
646
|
|
|
644
647
|
export function __wbindgen_error_new(arg0, arg1) {
|
|
@@ -646,6 +649,11 @@ export function __wbindgen_error_new(arg0, arg1) {
|
|
|
646
649
|
return addHeapObject(ret);
|
|
647
650
|
};
|
|
648
651
|
|
|
652
|
+
export function __wbindgen_string_new(arg0, arg1) {
|
|
653
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
654
|
+
return addHeapObject(ret);
|
|
655
|
+
};
|
|
656
|
+
|
|
649
657
|
export function __wbindgen_is_undefined(arg0) {
|
|
650
658
|
const ret = getObject(arg0) === undefined;
|
|
651
659
|
return ret;
|
|
@@ -797,38 +805,22 @@ export function __wbg_error_f851667af71bcfc6(arg0, arg1) {
|
|
|
797
805
|
}
|
|
798
806
|
};
|
|
799
807
|
|
|
800
|
-
export function
|
|
801
|
-
let result;
|
|
802
|
-
try {
|
|
803
|
-
result = getObject(arg0) instanceof Window;
|
|
804
|
-
} catch (_) {
|
|
805
|
-
result = false;
|
|
806
|
-
}
|
|
807
|
-
const ret = result;
|
|
808
|
-
return ret;
|
|
809
|
-
};
|
|
810
|
-
|
|
811
|
-
export function __wbg_setTimeout_06458eba2b40711c() { return handleError(function (arg0, arg1, arg2) {
|
|
812
|
-
const ret = getObject(arg0).setTimeout(getObject(arg1), arg2);
|
|
813
|
-
return ret;
|
|
814
|
-
}, arguments) };
|
|
815
|
-
|
|
816
|
-
export function __wbg_crypto_58f13aa23ffcb166(arg0) {
|
|
808
|
+
export function __wbg_crypto_d05b68a3572bb8ca(arg0) {
|
|
817
809
|
const ret = getObject(arg0).crypto;
|
|
818
810
|
return addHeapObject(ret);
|
|
819
811
|
};
|
|
820
812
|
|
|
821
|
-
export function
|
|
813
|
+
export function __wbg_process_b02b3570280d0366(arg0) {
|
|
822
814
|
const ret = getObject(arg0).process;
|
|
823
815
|
return addHeapObject(ret);
|
|
824
816
|
};
|
|
825
817
|
|
|
826
|
-
export function
|
|
818
|
+
export function __wbg_versions_c1cb42213cedf0f5(arg0) {
|
|
827
819
|
const ret = getObject(arg0).versions;
|
|
828
820
|
return addHeapObject(ret);
|
|
829
821
|
};
|
|
830
822
|
|
|
831
|
-
export function
|
|
823
|
+
export function __wbg_node_43b1089f407e4ec2(arg0) {
|
|
832
824
|
const ret = getObject(arg0).node;
|
|
833
825
|
return addHeapObject(ret);
|
|
834
826
|
};
|
|
@@ -838,21 +830,21 @@ export function __wbindgen_is_string(arg0) {
|
|
|
838
830
|
return ret;
|
|
839
831
|
};
|
|
840
832
|
|
|
841
|
-
export function
|
|
833
|
+
export function __wbg_require_9a7e0f667ead4995() { return handleError(function () {
|
|
842
834
|
const ret = module.require;
|
|
843
835
|
return addHeapObject(ret);
|
|
844
836
|
}, arguments) };
|
|
845
837
|
|
|
846
|
-
export function
|
|
838
|
+
export function __wbg_msCrypto_10fc94afee92bd76(arg0) {
|
|
847
839
|
const ret = getObject(arg0).msCrypto;
|
|
848
840
|
return addHeapObject(ret);
|
|
849
841
|
};
|
|
850
842
|
|
|
851
|
-
export function
|
|
843
|
+
export function __wbg_randomFillSync_b70ccbdf4926a99d() { return handleError(function (arg0, arg1) {
|
|
852
844
|
getObject(arg0).randomFillSync(takeObject(arg1));
|
|
853
845
|
}, arguments) };
|
|
854
846
|
|
|
855
|
-
export function
|
|
847
|
+
export function __wbg_getRandomValues_7e42b4fb8779dc6d() { return handleError(function (arg0, arg1) {
|
|
856
848
|
getObject(arg0).getRandomValues(getObject(arg1));
|
|
857
849
|
}, arguments) };
|
|
858
850
|
|
|
@@ -993,7 +985,7 @@ export function __wbg_new_60f57089c7563e81(arg0, arg1) {
|
|
|
993
985
|
const a = state0.a;
|
|
994
986
|
state0.a = 0;
|
|
995
987
|
try {
|
|
996
|
-
return
|
|
988
|
+
return __wbg_adapter_153(a, state0.b, arg0, arg1);
|
|
997
989
|
} finally {
|
|
998
990
|
state0.a = a;
|
|
999
991
|
}
|
|
@@ -1089,8 +1081,8 @@ export function __wbindgen_memory() {
|
|
|
1089
1081
|
return addHeapObject(ret);
|
|
1090
1082
|
};
|
|
1091
1083
|
|
|
1092
|
-
export function
|
|
1093
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
1084
|
+
export function __wbindgen_closure_wrapper3379(arg0, arg1, arg2) {
|
|
1085
|
+
const ret = makeMutClosure(arg0, arg1, 1190, __wbg_adapter_50);
|
|
1094
1086
|
return addHeapObject(ret);
|
|
1095
1087
|
};
|
|
1096
1088
|
|
package/logic_mesh_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED