@blaxel/core 0.2.36-dev.184 → 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.
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.36-dev.
|
|
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.36-dev.
|
|
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.36-dev.
|
|
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)",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"vite": "^5.2.0",
|
|
80
80
|
"vitest": "^1.5.0"
|
|
81
81
|
},
|
|
82
|
-
"commit": "
|
|
82
|
+
"commit": "5fe52a30fa512d6defc5e18fa2d991ed887f7c18",
|
|
83
83
|
"scripts": {
|
|
84
84
|
"lint": "eslint src/",
|
|
85
85
|
"dev": "tsc --watch",
|