@builder.io/sdk-svelte 2.0.26 → 2.0.28
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/lib/browser/blocks/columns/columns.svelte +23 -15
- package/lib/browser/constants/sdk-version.d.ts +1 -1
- package/lib/browser/constants/sdk-version.js +1 -1
- package/lib/browser/functions/evaluate/node-runtime/node-runtime.js +5 -4
- package/lib/browser/functions/evaluate/node-runtime/setIvm.d.ts +1 -0
- package/lib/browser/functions/evaluate/node-runtime/setIvm.js +1 -0
- package/lib/edge/blocks/columns/columns.svelte +23 -15
- package/lib/edge/constants/sdk-version.d.ts +1 -1
- package/lib/edge/constants/sdk-version.js +1 -1
- package/lib/edge/functions/evaluate/node-runtime/node-runtime.js +5 -4
- package/lib/edge/functions/evaluate/node-runtime/setIvm.d.ts +1 -0
- package/lib/edge/functions/evaluate/node-runtime/setIvm.js +1 -0
- package/lib/node/blocks/columns/columns.svelte +23 -15
- package/lib/node/constants/sdk-version.d.ts +1 -1
- package/lib/node/constants/sdk-version.js +1 -1
- package/lib/node/functions/evaluate/node-runtime/node-runtime.js +5 -4
- package/lib/node/functions/evaluate/node-runtime/setIvm.d.ts +1 -0
- package/lib/node/functions/evaluate/node-runtime/setIvm.js +1 -0
- package/package.json +1 -1
- package/src/blocks/columns/columns.svelte +19 -13
- package/src/constants/sdk-version.ts +1 -1
- package/src/functions/evaluate/node-runtime/node-runtime.ts +3 -3
- package/src/functions/evaluate/node-runtime/setIvm.ts +1 -0
|
@@ -32,30 +32,30 @@ function getTagName(column) {
|
|
|
32
32
|
return column.link ? builderLinkComponent || "a" : "div";
|
|
33
33
|
}
|
|
34
34
|
function getWidth(index) {
|
|
35
|
-
return cols[index]?.width || 100 / cols.length;
|
|
35
|
+
return cols()[index]?.width || 100 / cols().length;
|
|
36
36
|
}
|
|
37
37
|
function getColumnCssWidth(index) {
|
|
38
38
|
const width = getWidth(index);
|
|
39
|
-
const subtractWidth = gutterSize * (cols.length - 1) * (width / 100);
|
|
39
|
+
const subtractWidth = gutterSize() * (cols().length - 1) * (width / 100);
|
|
40
40
|
return `calc(${width}% - ${subtractWidth}px)`;
|
|
41
41
|
}
|
|
42
42
|
function getTabletStyle({ stackedStyle, desktopStyle, }) {
|
|
43
|
-
return stackAt === "tablet" ? stackedStyle : desktopStyle;
|
|
43
|
+
return stackAt() === "tablet" ? stackedStyle : desktopStyle;
|
|
44
44
|
}
|
|
45
45
|
function getMobileStyle({ stackedStyle, desktopStyle, }) {
|
|
46
|
-
return stackAt === "never" ? desktopStyle : stackedStyle;
|
|
46
|
+
return stackAt() === "never" ? desktopStyle : stackedStyle;
|
|
47
47
|
}
|
|
48
48
|
function columnsCssVars() {
|
|
49
49
|
return {
|
|
50
|
-
"--flex-dir": flexDir,
|
|
50
|
+
"--flex-dir": flexDir(),
|
|
51
51
|
"--flex-dir-tablet": getTabletStyle({
|
|
52
|
-
stackedStyle: flexDir,
|
|
52
|
+
stackedStyle: flexDir(),
|
|
53
53
|
desktopStyle: "row",
|
|
54
54
|
}),
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
function columnCssVars(index) {
|
|
58
|
-
const gutter = index === 0 ? 0 : gutterSize;
|
|
58
|
+
const gutter = index === 0 ? 0 : gutterSize();
|
|
59
59
|
const width = getColumnCssWidth(index);
|
|
60
60
|
const gutterPixels = `${gutter}px`;
|
|
61
61
|
const mobileWidth = "100%";
|
|
@@ -132,14 +132,22 @@ function getAttributes(column, index) {
|
|
|
132
132
|
style: mapStyleObjToStrIfNeeded(columnCssVars(index)),
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
135
|
+
$: gutterSize = () => {
|
|
136
|
+
return typeof space === "number" ? space || 0 : 20;
|
|
137
|
+
};
|
|
138
|
+
$: cols = () => {
|
|
139
|
+
return columns || [];
|
|
140
|
+
};
|
|
141
|
+
$: stackAt = () => {
|
|
142
|
+
return stackColumnsAt || "tablet";
|
|
143
|
+
};
|
|
144
|
+
$: flexDir = () => {
|
|
145
|
+
return stackColumnsAt === "never"
|
|
146
|
+
? "row"
|
|
147
|
+
: reverseColumnsWhenStacked
|
|
148
|
+
? "column-reverse"
|
|
149
|
+
: "column";
|
|
150
|
+
};
|
|
143
151
|
</script>
|
|
144
152
|
|
|
145
153
|
<div
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.
|
|
1
|
+
export declare const SDK_VERSION = "2.0.28";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "2.0.
|
|
1
|
+
export const SDK_VERSION = "2.0.28";
|
|
@@ -63,6 +63,8 @@ let IVM_CONTEXT = null;
|
|
|
63
63
|
* `safeDynamicRequire` trick to import the `isolated-vm` package.
|
|
64
64
|
*/
|
|
65
65
|
export const setIvm = (ivm, options = {}) => {
|
|
66
|
+
if (IVM_INSTANCE)
|
|
67
|
+
return;
|
|
66
68
|
IVM_INSTANCE = ivm;
|
|
67
69
|
setIsolateContext(options);
|
|
68
70
|
};
|
|
@@ -92,6 +94,8 @@ const getIvm = () => {
|
|
|
92
94
|
function setIsolateContext(options = {
|
|
93
95
|
memoryLimit: 128
|
|
94
96
|
}) {
|
|
97
|
+
if (IVM_CONTEXT)
|
|
98
|
+
return IVM_CONTEXT;
|
|
95
99
|
const ivm = getIvm();
|
|
96
100
|
const isolate = new ivm.Isolate(options);
|
|
97
101
|
const context = isolate.createContextSync();
|
|
@@ -108,10 +112,7 @@ function setIsolateContext(options = {
|
|
|
108
112
|
return context;
|
|
109
113
|
}
|
|
110
114
|
const getIsolateContext = () => {
|
|
111
|
-
|
|
112
|
-
return IVM_CONTEXT;
|
|
113
|
-
const context = setIsolateContext();
|
|
114
|
-
return context;
|
|
115
|
+
return setIsolateContext();
|
|
115
116
|
};
|
|
116
117
|
export const runInNode = ({ code, builder, context, event, localState, rootSetState, rootState }) => {
|
|
117
118
|
const ivm = getIvm();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { setIvm } from './node-runtime';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { setIvm } from './node-runtime';
|
|
@@ -32,30 +32,30 @@ function getTagName(column) {
|
|
|
32
32
|
return column.link ? builderLinkComponent || "a" : "div";
|
|
33
33
|
}
|
|
34
34
|
function getWidth(index) {
|
|
35
|
-
return cols[index]?.width || 100 / cols.length;
|
|
35
|
+
return cols()[index]?.width || 100 / cols().length;
|
|
36
36
|
}
|
|
37
37
|
function getColumnCssWidth(index) {
|
|
38
38
|
const width = getWidth(index);
|
|
39
|
-
const subtractWidth = gutterSize * (cols.length - 1) * (width / 100);
|
|
39
|
+
const subtractWidth = gutterSize() * (cols().length - 1) * (width / 100);
|
|
40
40
|
return `calc(${width}% - ${subtractWidth}px)`;
|
|
41
41
|
}
|
|
42
42
|
function getTabletStyle({ stackedStyle, desktopStyle, }) {
|
|
43
|
-
return stackAt === "tablet" ? stackedStyle : desktopStyle;
|
|
43
|
+
return stackAt() === "tablet" ? stackedStyle : desktopStyle;
|
|
44
44
|
}
|
|
45
45
|
function getMobileStyle({ stackedStyle, desktopStyle, }) {
|
|
46
|
-
return stackAt === "never" ? desktopStyle : stackedStyle;
|
|
46
|
+
return stackAt() === "never" ? desktopStyle : stackedStyle;
|
|
47
47
|
}
|
|
48
48
|
function columnsCssVars() {
|
|
49
49
|
return {
|
|
50
|
-
"--flex-dir": flexDir,
|
|
50
|
+
"--flex-dir": flexDir(),
|
|
51
51
|
"--flex-dir-tablet": getTabletStyle({
|
|
52
|
-
stackedStyle: flexDir,
|
|
52
|
+
stackedStyle: flexDir(),
|
|
53
53
|
desktopStyle: "row",
|
|
54
54
|
}),
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
function columnCssVars(index) {
|
|
58
|
-
const gutter = index === 0 ? 0 : gutterSize;
|
|
58
|
+
const gutter = index === 0 ? 0 : gutterSize();
|
|
59
59
|
const width = getColumnCssWidth(index);
|
|
60
60
|
const gutterPixels = `${gutter}px`;
|
|
61
61
|
const mobileWidth = "100%";
|
|
@@ -132,14 +132,22 @@ function getAttributes(column, index) {
|
|
|
132
132
|
style: mapStyleObjToStrIfNeeded(columnCssVars(index)),
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
135
|
+
$: gutterSize = () => {
|
|
136
|
+
return typeof space === "number" ? space || 0 : 20;
|
|
137
|
+
};
|
|
138
|
+
$: cols = () => {
|
|
139
|
+
return columns || [];
|
|
140
|
+
};
|
|
141
|
+
$: stackAt = () => {
|
|
142
|
+
return stackColumnsAt || "tablet";
|
|
143
|
+
};
|
|
144
|
+
$: flexDir = () => {
|
|
145
|
+
return stackColumnsAt === "never"
|
|
146
|
+
? "row"
|
|
147
|
+
: reverseColumnsWhenStacked
|
|
148
|
+
? "column-reverse"
|
|
149
|
+
: "column";
|
|
150
|
+
};
|
|
143
151
|
</script>
|
|
144
152
|
|
|
145
153
|
<div
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.
|
|
1
|
+
export declare const SDK_VERSION = "2.0.28";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "2.0.
|
|
1
|
+
export const SDK_VERSION = "2.0.28";
|
|
@@ -63,6 +63,8 @@ let IVM_CONTEXT = null;
|
|
|
63
63
|
* `safeDynamicRequire` trick to import the `isolated-vm` package.
|
|
64
64
|
*/
|
|
65
65
|
export const setIvm = (ivm, options = {}) => {
|
|
66
|
+
if (IVM_INSTANCE)
|
|
67
|
+
return;
|
|
66
68
|
IVM_INSTANCE = ivm;
|
|
67
69
|
setIsolateContext(options);
|
|
68
70
|
};
|
|
@@ -92,6 +94,8 @@ const getIvm = () => {
|
|
|
92
94
|
function setIsolateContext(options = {
|
|
93
95
|
memoryLimit: 128
|
|
94
96
|
}) {
|
|
97
|
+
if (IVM_CONTEXT)
|
|
98
|
+
return IVM_CONTEXT;
|
|
95
99
|
const ivm = getIvm();
|
|
96
100
|
const isolate = new ivm.Isolate(options);
|
|
97
101
|
const context = isolate.createContextSync();
|
|
@@ -108,10 +112,7 @@ function setIsolateContext(options = {
|
|
|
108
112
|
return context;
|
|
109
113
|
}
|
|
110
114
|
const getIsolateContext = () => {
|
|
111
|
-
|
|
112
|
-
return IVM_CONTEXT;
|
|
113
|
-
const context = setIsolateContext();
|
|
114
|
-
return context;
|
|
115
|
+
return setIsolateContext();
|
|
115
116
|
};
|
|
116
117
|
export const runInNode = ({ code, builder, context, event, localState, rootSetState, rootState }) => {
|
|
117
118
|
const ivm = getIvm();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { setIvm } from './node-runtime';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { setIvm } from './node-runtime';
|
|
@@ -32,30 +32,30 @@ function getTagName(column) {
|
|
|
32
32
|
return column.link ? builderLinkComponent || "a" : "div";
|
|
33
33
|
}
|
|
34
34
|
function getWidth(index) {
|
|
35
|
-
return cols[index]?.width || 100 / cols.length;
|
|
35
|
+
return cols()[index]?.width || 100 / cols().length;
|
|
36
36
|
}
|
|
37
37
|
function getColumnCssWidth(index) {
|
|
38
38
|
const width = getWidth(index);
|
|
39
|
-
const subtractWidth = gutterSize * (cols.length - 1) * (width / 100);
|
|
39
|
+
const subtractWidth = gutterSize() * (cols().length - 1) * (width / 100);
|
|
40
40
|
return `calc(${width}% - ${subtractWidth}px)`;
|
|
41
41
|
}
|
|
42
42
|
function getTabletStyle({ stackedStyle, desktopStyle, }) {
|
|
43
|
-
return stackAt === "tablet" ? stackedStyle : desktopStyle;
|
|
43
|
+
return stackAt() === "tablet" ? stackedStyle : desktopStyle;
|
|
44
44
|
}
|
|
45
45
|
function getMobileStyle({ stackedStyle, desktopStyle, }) {
|
|
46
|
-
return stackAt === "never" ? desktopStyle : stackedStyle;
|
|
46
|
+
return stackAt() === "never" ? desktopStyle : stackedStyle;
|
|
47
47
|
}
|
|
48
48
|
function columnsCssVars() {
|
|
49
49
|
return {
|
|
50
|
-
"--flex-dir": flexDir,
|
|
50
|
+
"--flex-dir": flexDir(),
|
|
51
51
|
"--flex-dir-tablet": getTabletStyle({
|
|
52
|
-
stackedStyle: flexDir,
|
|
52
|
+
stackedStyle: flexDir(),
|
|
53
53
|
desktopStyle: "row",
|
|
54
54
|
}),
|
|
55
55
|
};
|
|
56
56
|
}
|
|
57
57
|
function columnCssVars(index) {
|
|
58
|
-
const gutter = index === 0 ? 0 : gutterSize;
|
|
58
|
+
const gutter = index === 0 ? 0 : gutterSize();
|
|
59
59
|
const width = getColumnCssWidth(index);
|
|
60
60
|
const gutterPixels = `${gutter}px`;
|
|
61
61
|
const mobileWidth = "100%";
|
|
@@ -132,14 +132,22 @@ function getAttributes(column, index) {
|
|
|
132
132
|
style: mapStyleObjToStrIfNeeded(columnCssVars(index)),
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
135
|
+
$: gutterSize = () => {
|
|
136
|
+
return typeof space === "number" ? space || 0 : 20;
|
|
137
|
+
};
|
|
138
|
+
$: cols = () => {
|
|
139
|
+
return columns || [];
|
|
140
|
+
};
|
|
141
|
+
$: stackAt = () => {
|
|
142
|
+
return stackColumnsAt || "tablet";
|
|
143
|
+
};
|
|
144
|
+
$: flexDir = () => {
|
|
145
|
+
return stackColumnsAt === "never"
|
|
146
|
+
? "row"
|
|
147
|
+
: reverseColumnsWhenStacked
|
|
148
|
+
? "column-reverse"
|
|
149
|
+
: "column";
|
|
150
|
+
};
|
|
143
151
|
</script>
|
|
144
152
|
|
|
145
153
|
<div
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.
|
|
1
|
+
export declare const SDK_VERSION = "2.0.28";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "2.0.
|
|
1
|
+
export const SDK_VERSION = "2.0.28";
|
|
@@ -63,6 +63,8 @@ let IVM_CONTEXT = null;
|
|
|
63
63
|
* `safeDynamicRequire` trick to import the `isolated-vm` package.
|
|
64
64
|
*/
|
|
65
65
|
export const setIvm = (ivm, options = {}) => {
|
|
66
|
+
if (IVM_INSTANCE)
|
|
67
|
+
return;
|
|
66
68
|
IVM_INSTANCE = ivm;
|
|
67
69
|
setIsolateContext(options);
|
|
68
70
|
};
|
|
@@ -92,6 +94,8 @@ const getIvm = () => {
|
|
|
92
94
|
function setIsolateContext(options = {
|
|
93
95
|
memoryLimit: 128
|
|
94
96
|
}) {
|
|
97
|
+
if (IVM_CONTEXT)
|
|
98
|
+
return IVM_CONTEXT;
|
|
95
99
|
const ivm = getIvm();
|
|
96
100
|
const isolate = new ivm.Isolate(options);
|
|
97
101
|
const context = isolate.createContextSync();
|
|
@@ -108,10 +112,7 @@ function setIsolateContext(options = {
|
|
|
108
112
|
return context;
|
|
109
113
|
}
|
|
110
114
|
const getIsolateContext = () => {
|
|
111
|
-
|
|
112
|
-
return IVM_CONTEXT;
|
|
113
|
-
const context = setIsolateContext();
|
|
114
|
-
return context;
|
|
115
|
+
return setIsolateContext();
|
|
115
116
|
};
|
|
116
117
|
export const runInNode = ({ code, builder, context, event, localState, rootSetState, rootState }) => {
|
|
117
118
|
const ivm = getIvm();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { setIvm } from './node-runtime';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { setIvm } from './node-runtime';
|
package/package.json
CHANGED
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
return column.link ? builderLinkComponent || "a" : "div";
|
|
43
43
|
}
|
|
44
44
|
function getWidth(index: number) {
|
|
45
|
-
return cols[index]?.width || 100 / cols.length;
|
|
45
|
+
return cols()[index]?.width || 100 / cols().length;
|
|
46
46
|
}
|
|
47
47
|
function getColumnCssWidth(index: number) {
|
|
48
48
|
const width = getWidth(index);
|
|
49
|
-
const subtractWidth = gutterSize * (cols.length - 1) * (width / 100);
|
|
49
|
+
const subtractWidth = gutterSize() * (cols().length - 1) * (width / 100);
|
|
50
50
|
return `calc(${width}% - ${subtractWidth}px)`;
|
|
51
51
|
}
|
|
52
52
|
function getTabletStyle({
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
stackedStyle: CSSVal;
|
|
57
57
|
desktopStyle: CSSVal;
|
|
58
58
|
}) {
|
|
59
|
-
return stackAt === "tablet" ? stackedStyle : desktopStyle;
|
|
59
|
+
return stackAt() === "tablet" ? stackedStyle : desktopStyle;
|
|
60
60
|
}
|
|
61
61
|
function getMobileStyle({
|
|
62
62
|
stackedStyle,
|
|
@@ -65,19 +65,19 @@
|
|
|
65
65
|
stackedStyle: CSSVal;
|
|
66
66
|
desktopStyle: CSSVal;
|
|
67
67
|
}) {
|
|
68
|
-
return stackAt === "never" ? desktopStyle : stackedStyle;
|
|
68
|
+
return stackAt() === "never" ? desktopStyle : stackedStyle;
|
|
69
69
|
}
|
|
70
70
|
function columnsCssVars() {
|
|
71
71
|
return {
|
|
72
|
-
"--flex-dir": flexDir,
|
|
72
|
+
"--flex-dir": flexDir(),
|
|
73
73
|
"--flex-dir-tablet": getTabletStyle({
|
|
74
|
-
stackedStyle: flexDir,
|
|
74
|
+
stackedStyle: flexDir(),
|
|
75
75
|
desktopStyle: "row",
|
|
76
76
|
}),
|
|
77
77
|
} as Dictionary<string>;
|
|
78
78
|
}
|
|
79
79
|
function columnCssVars(index: number) {
|
|
80
|
-
const gutter = index === 0 ? 0 : gutterSize;
|
|
80
|
+
const gutter = index === 0 ? 0 : gutterSize();
|
|
81
81
|
const width = getColumnCssWidth(index);
|
|
82
82
|
const gutterPixels = `${gutter}px`;
|
|
83
83
|
const mobileWidth = "100%";
|
|
@@ -156,16 +156,22 @@
|
|
|
156
156
|
style: mapStyleObjToStrIfNeeded(columnCssVars(index)),
|
|
157
157
|
};
|
|
158
158
|
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
159
|
+
$: gutterSize = () => {
|
|
160
|
+
return typeof space === "number" ? space || 0 : 20;
|
|
161
|
+
};
|
|
162
|
+
$: cols = () => {
|
|
163
|
+
return columns || [];
|
|
164
|
+
};
|
|
165
|
+
$: stackAt = () => {
|
|
166
|
+
return stackColumnsAt || "tablet";
|
|
167
|
+
};
|
|
168
|
+
$: flexDir = () => {
|
|
169
|
+
return stackColumnsAt === "never"
|
|
165
170
|
? "row"
|
|
166
171
|
: reverseColumnsWhenStacked
|
|
167
172
|
? "column-reverse"
|
|
168
173
|
: "column";
|
|
174
|
+
};
|
|
169
175
|
</script>
|
|
170
176
|
|
|
171
177
|
<div
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "2.0.
|
|
1
|
+
export const SDK_VERSION = "2.0.28"
|
|
@@ -75,6 +75,7 @@ let IVM_CONTEXT: Context | null = null;
|
|
|
75
75
|
* `safeDynamicRequire` trick to import the `isolated-vm` package.
|
|
76
76
|
*/
|
|
77
77
|
export const setIvm = (ivm: IsolatedVMImport, options: IsolateOptions = {}) => {
|
|
78
|
+
if (IVM_INSTANCE) return;
|
|
78
79
|
IVM_INSTANCE = ivm;
|
|
79
80
|
setIsolateContext(options);
|
|
80
81
|
};
|
|
@@ -102,6 +103,7 @@ const getIvm = (): IsolatedVMImport => {
|
|
|
102
103
|
function setIsolateContext(options: IsolateOptions = {
|
|
103
104
|
memoryLimit: 128
|
|
104
105
|
}) {
|
|
106
|
+
if (IVM_CONTEXT) return IVM_CONTEXT;
|
|
105
107
|
const ivm = getIvm();
|
|
106
108
|
const isolate = new ivm.Isolate(options);
|
|
107
109
|
const context = isolate.createContextSync();
|
|
@@ -120,9 +122,7 @@ function setIsolateContext(options: IsolateOptions = {
|
|
|
120
122
|
return context;
|
|
121
123
|
}
|
|
122
124
|
const getIsolateContext = () => {
|
|
123
|
-
|
|
124
|
-
const context = setIsolateContext();
|
|
125
|
-
return context;
|
|
125
|
+
return setIsolateContext();
|
|
126
126
|
};
|
|
127
127
|
export const runInNode = ({
|
|
128
128
|
code,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { setIvm } from './node-runtime'
|