@blaxel/core 0.2.14 → 0.2.15-dev.94
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/sandbox/action.js
CHANGED
|
@@ -65,7 +65,7 @@ class SandboxAction {
|
|
|
65
65
|
if (this.sandbox.forceUrl)
|
|
66
66
|
return this.sandbox.forceUrl;
|
|
67
67
|
const envVar = this.name.replace(/-/g, "_").toUpperCase();
|
|
68
|
-
const envName = `
|
|
68
|
+
const envName = `BL_SANDBOXES_${envVar}_URL`;
|
|
69
69
|
if (env_js_1.env[envName]) {
|
|
70
70
|
return env_js_1.env[envName];
|
|
71
71
|
}
|
package/dist/sandbox/preview.js
CHANGED
|
@@ -13,6 +13,9 @@ class SandboxPreviewToken {
|
|
|
13
13
|
get expiresAt() {
|
|
14
14
|
return this.previewToken.spec?.expiresAt ?? new Date();
|
|
15
15
|
}
|
|
16
|
+
get expired() {
|
|
17
|
+
return this.previewToken.spec?.expired ?? false;
|
|
18
|
+
}
|
|
16
19
|
}
|
|
17
20
|
exports.SandboxPreviewToken = SandboxPreviewToken;
|
|
18
21
|
class SandboxPreviewTokens {
|
package/dist/tools/zodSchema.js
CHANGED
|
@@ -21,8 +21,12 @@ const schemaToZodSchema = (schema) => {
|
|
|
21
21
|
zodType = zod_1.default.boolean();
|
|
22
22
|
break;
|
|
23
23
|
case "number":
|
|
24
|
+
case "integer":
|
|
24
25
|
zodType = zod_1.default.number();
|
|
25
26
|
break;
|
|
27
|
+
case "null":
|
|
28
|
+
zodType = zod_1.default.null();
|
|
29
|
+
break;
|
|
26
30
|
case "array":
|
|
27
31
|
zodType = zod_1.default.array((0, exports.schemaToZodSchema)(param.items || {}));
|
|
28
32
|
break;
|