x-runtime-lib 0.4.2 → 0.4.4
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/dist/index.js
CHANGED
|
@@ -957,7 +957,7 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
957
957
|
function(m, N, T) {
|
|
958
958
|
/**
|
|
959
959
|
* @license
|
|
960
|
-
* Copyright 2013
|
|
960
|
+
* Copyright 2013 Neil Fraser
|
|
961
961
|
* SPDX-License-Identifier: Apache-2.0
|
|
962
962
|
*/
|
|
963
963
|
var r = function(t, e) {
|
|
@@ -3257,6 +3257,8 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3257
3257
|
return t;
|
|
3258
3258
|
}, r.prototype.getGlobalScope = function() {
|
|
3259
3259
|
return this.globalScope;
|
|
3260
|
+
}, r.prototype.setGlobalScope = function(t) {
|
|
3261
|
+
this.globalScope = t, this.stateStack[0].scope = t;
|
|
3260
3262
|
}, r.prototype.getStateStack = function() {
|
|
3261
3263
|
return this.stateStack;
|
|
3262
3264
|
}, r.prototype.setStateStack = function(t) {
|
|
@@ -3964,7 +3966,7 @@ const js = {}, Bs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineP
|
|
|
3964
3966
|
t.pop();
|
|
3965
3967
|
var o = this.createSpecialScope(e.scope, e.value);
|
|
3966
3968
|
return new r.State(i.body, o);
|
|
3967
|
-
}, r.prototype.stepWhileStatement = r.prototype.stepDoWhileStatement, r.nativeGlobal.Interpreter = r, r.prototype.step = r.prototype.step, r.prototype.run = r.prototype.run, r.prototype.appendCode = r.prototype.appendCode, r.prototype.createObject = r.prototype.createObject, r.prototype.createObjectProto = r.prototype.createObjectProto, r.prototype.createAsyncFunction = r.prototype.createAsyncFunction, r.prototype.createNativeFunction = r.prototype.createNativeFunction, r.prototype.getProperty = r.prototype.getProperty, r.prototype.setProperty = r.prototype.setProperty, r.prototype.getStatus = r.prototype.getStatus, r.prototype.nativeToPseudo = r.prototype.nativeToPseudo, r.prototype.pseudoToNative = r.prototype.pseudoToNative, r.prototype.getGlobalScope = r.prototype.getGlobalScope, r.prototype.getStateStack = r.prototype.getStateStack, r.prototype.setStateStack = r.prototype.setStateStack, r.VALUE_IN_DESCRIPTOR = r.VALUE_IN_DESCRIPTOR, r.Status = r.Status, m.exports = {
|
|
3969
|
+
}, r.prototype.stepWhileStatement = r.prototype.stepDoWhileStatement, r.nativeGlobal.Interpreter = r, r.prototype.step = r.prototype.step, r.prototype.run = r.prototype.run, r.prototype.appendCode = r.prototype.appendCode, r.prototype.createObject = r.prototype.createObject, r.prototype.createObjectProto = r.prototype.createObjectProto, r.prototype.createAsyncFunction = r.prototype.createAsyncFunction, r.prototype.createNativeFunction = r.prototype.createNativeFunction, r.prototype.getProperty = r.prototype.getProperty, r.prototype.setProperty = r.prototype.setProperty, r.prototype.getStatus = r.prototype.getStatus, r.prototype.nativeToPseudo = r.prototype.nativeToPseudo, r.prototype.pseudoToNative = r.prototype.pseudoToNative, r.prototype.getGlobalScope = r.prototype.getGlobalScope, r.prototype.setGlobalScope = r.prototype.setGlobalScope, r.prototype.getStateStack = r.prototype.getStateStack, r.prototype.setStateStack = r.prototype.setStateStack, r.VALUE_IN_DESCRIPTOR = r.VALUE_IN_DESCRIPTOR, r.Status = r.Status, m.exports = {
|
|
3968
3970
|
Interpreter: r
|
|
3969
3971
|
};
|
|
3970
3972
|
}
|
|
@@ -5061,7 +5063,7 @@ const Zs = /* @__PURE__ */ on({
|
|
|
5061
5063
|
type: g,
|
|
5062
5064
|
data: a.data
|
|
5063
5065
|
},
|
|
5064
|
-
a.data.code.
|
|
5066
|
+
a.data.code.script
|
|
5065
5067
|
));
|
|
5066
5068
|
}), Di(() => {
|
|
5067
5069
|
T.value && (nn(T.value), T.value = void 0);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import Interpreter from 'js-interpreter';
|
|
2
2
|
import { SandboxContext } from '../../types';
|
|
3
|
-
declare function bind(context: SandboxContext, interpreter: Interpreter, globalObject:
|
|
3
|
+
declare function bind(context: SandboxContext, interpreter: Interpreter, globalObject: object): void;
|
|
4
4
|
export default bind;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import Interpreter from 'js-interpreter';
|
|
2
2
|
import { SandboxContext } from '../../types';
|
|
3
|
-
declare function bindView(context: SandboxContext, interpreter: Interpreter, globalObject:
|
|
3
|
+
declare function bindView(context: SandboxContext, interpreter: Interpreter, globalObject: object): void;
|
|
4
4
|
export default bindView;
|
package/dist/types/data.d.ts
CHANGED
|
@@ -16,13 +16,10 @@ export interface Node {
|
|
|
16
16
|
export interface View {
|
|
17
17
|
nodes: Node[];
|
|
18
18
|
}
|
|
19
|
-
export interface
|
|
19
|
+
export interface Code {
|
|
20
20
|
blockly: object;
|
|
21
21
|
script: string;
|
|
22
22
|
}
|
|
23
|
-
export interface Code {
|
|
24
|
-
main: CodeEntry;
|
|
25
|
-
}
|
|
26
23
|
export interface Data {
|
|
27
24
|
type: 'common';
|
|
28
25
|
version: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "x-runtime-lib",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.4",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
@@ -12,43 +12,44 @@
|
|
|
12
12
|
"dev": "vite",
|
|
13
13
|
"build": "vue-tsc && vite build",
|
|
14
14
|
"preview": "vite preview",
|
|
15
|
-
"lint": "eslint
|
|
15
|
+
"lint": "eslint --fix --ignore-pattern dist/ --ignore-pattern public/ .",
|
|
16
16
|
"format": "prettier --write .",
|
|
17
17
|
"lint-staged": "lint-staged",
|
|
18
18
|
"prepare": "husky"
|
|
19
19
|
},
|
|
20
20
|
"lint-staged": {
|
|
21
|
-
"*.{vue,js,jsx,cjs,mjs,ts,tsx,cts,mts}": "eslint --fix",
|
|
21
|
+
"*.{vue,js,jsx,cjs,mjs,ts,tsx,cts,mts}": "eslint --fix --ignore-pattern dist/ --ignore-pattern public/ .",
|
|
22
22
|
"*": "prettier --write ."
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"js-interpreter": "^5.1.2",
|
|
26
26
|
"lodash-es": "^4.17.21",
|
|
27
|
-
"x-essential-lib": "^0.7.
|
|
27
|
+
"x-essential-lib": "^0.7.3"
|
|
28
28
|
},
|
|
29
29
|
"peerDependencies": {
|
|
30
|
-
"vue": "^3.5.
|
|
31
|
-
"vue-i18n": "^
|
|
32
|
-
"vuetify": "^3.7.
|
|
30
|
+
"vue": "^3.5.12",
|
|
31
|
+
"vue-i18n": "^10.0.4",
|
|
32
|
+
"vuetify": "^3.7.3"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@
|
|
35
|
+
"@eslint/js": "^10.0.0",
|
|
36
36
|
"@types/lodash-es": "^4.17.12",
|
|
37
|
-
"@types/node": "^
|
|
38
|
-
"@vitejs/plugin-vue": "^5.
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"eslint": "^
|
|
42
|
-
"eslint-plugin-vue": "^9.
|
|
43
|
-
"husky": "^9.
|
|
44
|
-
"lint-staged": "^15.2.
|
|
37
|
+
"@types/node": "^22.7.7",
|
|
38
|
+
"@vitejs/plugin-vue": "^5.1.4",
|
|
39
|
+
"eslint": "^9.13.0",
|
|
40
|
+
"eslint-config-prettier": "^9.1.0",
|
|
41
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
42
|
+
"eslint-plugin-vue": "^9.29.1",
|
|
43
|
+
"husky": "^9.1.6",
|
|
44
|
+
"lint-staged": "^15.2.10",
|
|
45
45
|
"prettier": "3.3.3",
|
|
46
|
-
"sass": "^1.
|
|
47
|
-
"typescript": "^5.
|
|
48
|
-
"
|
|
49
|
-
"vite
|
|
50
|
-
"vite-plugin-
|
|
46
|
+
"sass": "^1.80.3",
|
|
47
|
+
"typescript": "^5.6.3",
|
|
48
|
+
"typescript-eslint": "^8.11.0",
|
|
49
|
+
"vite": "^5.4.9",
|
|
50
|
+
"vite-plugin-css-injected-by-js": "^3.5.2",
|
|
51
|
+
"vite-plugin-vuetify": "^2.0.4",
|
|
51
52
|
"vue-router": "^4.4.3",
|
|
52
|
-
"vue-tsc": "^2.
|
|
53
|
+
"vue-tsc": "^2.1.6"
|
|
53
54
|
}
|
|
54
55
|
}
|