@blaxel/core 0.2.35 → 0.2.36-dev.185
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.
|
@@ -2102,7 +2102,7 @@ export type SandboxDefinition = {
|
|
|
2102
2102
|
*/
|
|
2103
2103
|
export type SandboxSpec = CoreSpec & {
|
|
2104
2104
|
/**
|
|
2105
|
-
*
|
|
2105
|
+
* Region where the sandbox should be created (e.g. us-pdx-1, eu-lon-1)
|
|
2106
2106
|
*/
|
|
2107
2107
|
region?: string;
|
|
2108
2108
|
volumes?: VolumeAttachments;
|
|
@@ -2527,7 +2527,7 @@ export type VolumeAttachments = Array<VolumeAttachment>;
|
|
|
2527
2527
|
*/
|
|
2528
2528
|
export type VolumeSpec = {
|
|
2529
2529
|
/**
|
|
2530
|
-
*
|
|
2530
|
+
* Region where the volume should be created (e.g. us-pdx-1, eu-lon-1)
|
|
2531
2531
|
*/
|
|
2532
2532
|
region?: string;
|
|
2533
2533
|
/**
|
package/dist/common/internal.js
CHANGED
|
@@ -5,7 +5,7 @@ exports.getAlphanumericLimitedHash = getAlphanumericLimitedHash;
|
|
|
5
5
|
exports.getGlobalUniqueHash = getGlobalUniqueHash;
|
|
6
6
|
exports.pluralize = pluralize;
|
|
7
7
|
exports.getForcedUrl = getForcedUrl;
|
|
8
|
-
const
|
|
8
|
+
const env_js_1 = require("./env.js");
|
|
9
9
|
// Pure JS MD5 implementation that matches standard crypto MD5
|
|
10
10
|
function md5(input) {
|
|
11
11
|
function cmn(q, a, b, x, s, t) {
|
|
@@ -177,12 +177,12 @@ function getForcedUrl(type, name) {
|
|
|
177
177
|
const pluralType = pluralize(type);
|
|
178
178
|
const envVar = name.replace(/-/g, "_").toUpperCase();
|
|
179
179
|
// BL_FUNCTIONS_NAME_URL
|
|
180
|
-
if (
|
|
181
|
-
return new URL(
|
|
180
|
+
if (env_js_1.env[`BL_${pluralType.toUpperCase()}_${envVar}_URL`]) {
|
|
181
|
+
return new URL(env_js_1.env[`BL_${pluralType.toUpperCase()}_${envVar}_URL`]);
|
|
182
182
|
}
|
|
183
183
|
// BL_FUNCTION_NAME_URL
|
|
184
|
-
if (
|
|
185
|
-
return new URL(
|
|
184
|
+
if (env_js_1.env[`BL_${type.toUpperCase()}_${envVar}_URL`]) {
|
|
185
|
+
return new URL(env_js_1.env[`BL_${type.toUpperCase()}_${envVar}_URL`]);
|
|
186
186
|
}
|
|
187
187
|
return null;
|
|
188
188
|
}
|
package/dist/common/settings.js
CHANGED
|
@@ -8,7 +8,7 @@ function getPackageVersion() {
|
|
|
8
8
|
try {
|
|
9
9
|
// Try to require package.json (Node.js only, gracefully fails in browser)
|
|
10
10
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
11
|
-
const packageJson = {"version":"0.2.
|
|
11
|
+
const packageJson = {"version":"0.2.36-dev.185","commit":"5fe52a30fa512d6defc5e18fa2d991ed887f7c18"};
|
|
12
12
|
return packageJson.version || "unknown";
|
|
13
13
|
}
|
|
14
14
|
catch {
|
|
@@ -55,7 +55,7 @@ function getCommitHash() {
|
|
|
55
55
|
try {
|
|
56
56
|
// Try to require package.json and look for commit field (set during build)
|
|
57
57
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
58
|
-
const packageJson = {"version":"0.2.
|
|
58
|
+
const packageJson = {"version":"0.2.36-dev.185","commit":"5fe52a30fa512d6defc5e18fa2d991ed887f7c18"};
|
|
59
59
|
// Check for commit in various possible locations
|
|
60
60
|
const commit = packageJson.commit || packageJson.buildInfo?.commit;
|
|
61
61
|
if (commit) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blaxel/core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.36-dev.185",
|
|
4
4
|
"description": "Blaxel Core SDK for TypeScript",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Blaxel, INC (https://blaxel.ai)",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"mcp"
|
|
19
19
|
],
|
|
20
20
|
"main": "dist/index.js",
|
|
21
|
-
"module": "
|
|
21
|
+
"module": "dist/index.js",
|
|
22
22
|
"types": "dist/index.d.ts",
|
|
23
23
|
"exports": {
|
|
24
24
|
".": {
|
|
@@ -44,6 +44,9 @@
|
|
|
44
44
|
},
|
|
45
45
|
"typesVersions": {
|
|
46
46
|
"*": {
|
|
47
|
+
".": [
|
|
48
|
+
"./dist/index.d.ts"
|
|
49
|
+
],
|
|
47
50
|
"*": [
|
|
48
51
|
"./dist/*"
|
|
49
52
|
]
|
|
@@ -76,7 +79,7 @@
|
|
|
76
79
|
"vite": "^5.2.0",
|
|
77
80
|
"vitest": "^1.5.0"
|
|
78
81
|
},
|
|
79
|
-
"commit": "
|
|
82
|
+
"commit": "5fe52a30fa512d6defc5e18fa2d991ed887f7c18",
|
|
80
83
|
"scripts": {
|
|
81
84
|
"lint": "eslint src/",
|
|
82
85
|
"dev": "tsc --watch",
|