@blaxel/core 0.2.65-preview.79 → 0.2.65
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/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/common/settings.js +2 -2
- package/dist/cjs/sandbox/sandbox.js +4 -0
- package/dist/cjs/volume/index.js +4 -0
- package/dist/cjs-browser/.tsbuildinfo +1 -1
- package/dist/cjs-browser/common/settings.js +2 -2
- package/dist/cjs-browser/sandbox/sandbox.js +4 -0
- package/dist/cjs-browser/volume/index.js +4 -0
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/common/settings.js +2 -2
- package/dist/esm/sandbox/sandbox.js +4 -0
- package/dist/esm/volume/index.js +4 -0
- package/dist/esm-browser/.tsbuildinfo +1 -1
- package/dist/esm-browser/common/settings.js +2 -2
- package/dist/esm-browser/sandbox/sandbox.js +4 -0
- package/dist/esm-browser/volume/index.js +4 -0
- package/package.json +1 -1
|
@@ -3,8 +3,8 @@ import { authentication } from "../authentication/index.js";
|
|
|
3
3
|
import { env } from "../common/env.js";
|
|
4
4
|
import { fs, os, path } from "../common/node.js";
|
|
5
5
|
// Build info - these placeholders are replaced at build time by build:replace-imports
|
|
6
|
-
const BUILD_VERSION = "0.2.65
|
|
7
|
-
const BUILD_COMMIT = "
|
|
6
|
+
const BUILD_VERSION = "0.2.65";
|
|
7
|
+
const BUILD_COMMIT = "73516f1cab04903455fcb759122e6b92d550032c";
|
|
8
8
|
const BUILD_SENTRY_DSN = "https://fd5e60e1c9820e1eef5ccebb84a07127@o4508714045276160.ingest.us.sentry.io/4510465864564736";
|
|
9
9
|
// Cache for config.yaml tracking value
|
|
10
10
|
let configTrackingValue = null;
|
|
@@ -81,6 +81,10 @@ export class SandboxInstance {
|
|
|
81
81
|
const ttl = sandbox.ttl;
|
|
82
82
|
const expires = sandbox.expires;
|
|
83
83
|
const region = sandbox.region || settings.region;
|
|
84
|
+
if (!region) {
|
|
85
|
+
console.warn("SandboxInstance.create: 'region' is not set. In a future version, 'region' will be a required parameter. " +
|
|
86
|
+
"Please specify a region (e.g. 'us-pdx-1', 'eu-lon-1', 'us-was-1') in the sandbox configuration or set the BL_REGION environment variable.");
|
|
87
|
+
}
|
|
84
88
|
const lifecycle = sandbox.lifecycle;
|
|
85
89
|
const snapshotEnabled = sandbox.snapshotEnabled;
|
|
86
90
|
sandbox = {
|
|
@@ -66,6 +66,10 @@ export class VolumeInstance {
|
|
|
66
66
|
if (!volume.spec.region && settings.region) {
|
|
67
67
|
volume.spec.region = settings.region;
|
|
68
68
|
}
|
|
69
|
+
if (!volume.spec.region) {
|
|
70
|
+
console.warn("VolumeInstance.create: 'region' is not set. In a future version, 'region' will be a required parameter. " +
|
|
71
|
+
"Please specify a region (e.g. 'us-pdx-1', 'eu-lon-1', 'us-was-1') in the volume configuration or set the BL_REGION environment variable.");
|
|
72
|
+
}
|
|
69
73
|
const { data } = await createVolume({
|
|
70
74
|
body: volume,
|
|
71
75
|
throwOnError: true,
|