@kemu-io/edge-runtime 1.7.2 → 1.8.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/package.json +1 -2
- package/runner.d.ts +4 -2
- package/runner.js +4 -4
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kemu-io/edge-runtime",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.8.0",
|
|
5
5
|
"description": "Kemu Edge runtime for running Kemu recipes",
|
|
6
6
|
"author": "Kemu Pty Ltd",
|
|
7
7
|
"main": "runner.js",
|
|
@@ -32,7 +32,6 @@
|
|
|
32
32
|
"compare-versions": "^6.1.0",
|
|
33
33
|
"crypto-js": "^4.2.0",
|
|
34
34
|
"expr-eval": "^2.0.2",
|
|
35
|
-
"jsonp": "^0.2.1",
|
|
36
35
|
"jszip": "^3.10.1",
|
|
37
36
|
"microseconds": "^0.2.0",
|
|
38
37
|
"mustache": "^4.2.0",
|
package/runner.d.ts
CHANGED
|
@@ -110,7 +110,9 @@ declare const _default: {
|
|
|
110
110
|
};
|
|
111
111
|
export type SendToInputWidgetFn = (inputName: string, data: PartialData | number | string | boolean | Array<any>) => Promise<void>;
|
|
112
112
|
export type SendToInputWidgetAndWaitForOutputFn = <T = any>(inputName: string, data: PartialData | number | string | boolean | Array<any>) => Promise<T>;
|
|
113
|
-
declare const
|
|
113
|
+
export declare const isBinaryFile: (d: any) => boolean;
|
|
114
|
+
export type UnsubscribeFunction = () => void;
|
|
115
|
+
declare const onGlobalVariableChange: (varName: string | "*", cb: (config: GlobalVariable) => void) => UnsubscribeFunction;
|
|
114
116
|
declare const setGlobalVariable: (varName: string, value: SupportedTypes, config?: {
|
|
115
117
|
/** whether to disable change notifications for this variable */
|
|
116
118
|
disableChangeNotifications?: boolean;
|
|
@@ -131,7 +133,7 @@ declare const onStatusValueChange: (cb: (config: {
|
|
|
131
133
|
sourceWidget: string;
|
|
132
134
|
/** the id of the status widget being set */
|
|
133
135
|
statusWidgetId: string;
|
|
134
|
-
}) => void) =>
|
|
136
|
+
}) => void) => UnsubscribeFunction;
|
|
135
137
|
export declare const utils: {
|
|
136
138
|
/**
|
|
137
139
|
* Builds an object that represents an ImageData type. This is useful when services
|