@builder.io/sdk-qwik 0.5.3-2 → 0.5.3-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.
- package/lib/{index.b9537b42.js → index.70b4317c.js} +8 -10
- package/lib/{index.0e292b5d.cjs → index.fd3df238.cjs} +8 -10
- package/lib/index.qwik.cjs +1 -1
- package/lib/index.qwik.mjs +1 -1
- package/lib/{non-node-runtime.18086743.js → non-node-runtime.7d08068c.js} +1 -2
- package/lib/{non-node-runtime.f3d84167.cjs → non-node-runtime.f85e51c6.cjs} +1 -2
- package/package.json +1 -1
- package/types/constants/sdk-version.d.ts +1 -1
|
@@ -68,15 +68,13 @@ function isNonNodeServer() {
|
|
|
68
68
|
}
|
|
69
69
|
let runInNonNode;
|
|
70
70
|
(async () => {
|
|
71
|
-
if (
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
});
|
|
79
|
-
}
|
|
71
|
+
if (isNonNodeServer())
|
|
72
|
+
try {
|
|
73
|
+
runInNonNode = (await import("./non-node-runtime.7d08068c.js")).runInNonNode;
|
|
74
|
+
} catch (err) {
|
|
75
|
+
logger.error(`Error importing JS interpreter for non-node runtimes. Make sure you have js-interpreter installed.
|
|
76
|
+
Read more here: https://github.com/BuilderIO/builder/tree/main/packages/sdks/README.md#non-nodejs-runtimes-edge-serverless`, err);
|
|
77
|
+
}
|
|
80
78
|
})();
|
|
81
79
|
function evaluate({ code, context, localState, rootState, rootSetState, event, isExpression = true }) {
|
|
82
80
|
if (code === "") {
|
|
@@ -3041,7 +3039,7 @@ const getInteractionPropertiesForEvent = (event) => {
|
|
|
3041
3039
|
}
|
|
3042
3040
|
};
|
|
3043
3041
|
};
|
|
3044
|
-
const SDK_VERSION = "0.5.3-
|
|
3042
|
+
const SDK_VERSION = "0.5.3-3";
|
|
3045
3043
|
const registry = {};
|
|
3046
3044
|
function register(type, info) {
|
|
3047
3045
|
let typeList = registry[type];
|
|
@@ -69,15 +69,13 @@ function isNonNodeServer() {
|
|
|
69
69
|
}
|
|
70
70
|
let runInNonNode;
|
|
71
71
|
(async () => {
|
|
72
|
-
if (
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
});
|
|
80
|
-
}
|
|
72
|
+
if (isNonNodeServer())
|
|
73
|
+
try {
|
|
74
|
+
runInNonNode = (await Promise.resolve().then(() => require("./non-node-runtime.f85e51c6.cjs"))).runInNonNode;
|
|
75
|
+
} catch (err) {
|
|
76
|
+
logger.error(`Error importing JS interpreter for non-node runtimes. Make sure you have js-interpreter installed.
|
|
77
|
+
Read more here: https://github.com/BuilderIO/builder/tree/main/packages/sdks/README.md#non-nodejs-runtimes-edge-serverless`, err);
|
|
78
|
+
}
|
|
81
79
|
})();
|
|
82
80
|
function evaluate({ code, context, localState, rootState, rootSetState, event, isExpression = true }) {
|
|
83
81
|
if (code === "") {
|
|
@@ -3042,7 +3040,7 @@ const getInteractionPropertiesForEvent = (event) => {
|
|
|
3042
3040
|
}
|
|
3043
3041
|
};
|
|
3044
3042
|
};
|
|
3045
|
-
const SDK_VERSION = "0.5.3-
|
|
3043
|
+
const SDK_VERSION = "0.5.3-3";
|
|
3046
3044
|
const registry = {};
|
|
3047
3045
|
function register(type, info) {
|
|
3048
3046
|
let typeList = registry[type];
|
package/lib/index.qwik.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const index = require("./index.
|
|
3
|
+
const index = require("./index.fd3df238.cjs");
|
|
4
4
|
require("@builder.io/qwik");
|
|
5
5
|
require("@builder.io/qwik/jsx-runtime");
|
|
6
6
|
exports.Button = index.Button;
|
package/lib/index.qwik.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B, C, F, I, f, j, S, h, T, V, c, g, e, d, i, a, p, r, b, t } from "./index.
|
|
1
|
+
import { B, C, F, I, f, j, S, h, T, V, c, g, e, d, i, a, p, r, b, t } from "./index.70b4317c.js";
|
|
2
2
|
import "@builder.io/qwik";
|
|
3
3
|
import "@builder.io/qwik/jsx-runtime";
|
|
4
4
|
export {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as logger, s as set } from "./index.
|
|
1
|
+
import { l as logger, s as set } from "./index.70b4317c.js";
|
|
2
2
|
import Interpreter from "js-interpreter";
|
|
3
3
|
import "@builder.io/qwik";
|
|
4
4
|
import "@builder.io/qwik/jsx-runtime";
|
|
@@ -59,7 +59,6 @@ theFunction();
|
|
|
59
59
|
interpreter.setProperty(globalObject, "setRootState", interpreter.createNativeFunction(setRootState));
|
|
60
60
|
};
|
|
61
61
|
try {
|
|
62
|
-
console.log("running code");
|
|
63
62
|
const myInterpreter = new Interpreter(transformed, initFunc);
|
|
64
63
|
myInterpreter.run();
|
|
65
64
|
const output = myInterpreter.pseudoToNative(myInterpreter.value);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("./index.
|
|
3
|
+
const index = require("./index.fd3df238.cjs");
|
|
4
4
|
const Interpreter = require("js-interpreter");
|
|
5
5
|
require("@builder.io/qwik");
|
|
6
6
|
require("@builder.io/qwik/jsx-runtime");
|
|
@@ -63,7 +63,6 @@ theFunction();
|
|
|
63
63
|
interpreter.setProperty(globalObject, "setRootState", interpreter.createNativeFunction(setRootState));
|
|
64
64
|
};
|
|
65
65
|
try {
|
|
66
|
-
console.log("running code");
|
|
67
66
|
const myInterpreter = new Interpreter__default.default(transformed, initFunc);
|
|
68
67
|
myInterpreter.run();
|
|
69
68
|
const output = myInterpreter.pseudoToNative(myInterpreter.value);
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.5.3-
|
|
1
|
+
export declare const SDK_VERSION = "0.5.3-3";
|