freestyle-sandboxes 0.0.78 → 0.0.79
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/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
package/dist/index.cjs
CHANGED
|
@@ -234,7 +234,7 @@ class FreestyleSandboxes {
|
|
|
234
234
|
if (!options?.apiKey) {
|
|
235
235
|
this.options.apiKey = process.env.FREESTYLE_API_KEY;
|
|
236
236
|
}
|
|
237
|
-
if (
|
|
237
|
+
if (this.options.apiKey === void 0) {
|
|
238
238
|
throw new Error(
|
|
239
239
|
"No API key provided. Please set the FREESTYLE_API_KEY environment variable or configure apiKey when constructing FreestyleSandboxes."
|
|
240
240
|
);
|
package/dist/index.mjs
CHANGED
|
@@ -232,7 +232,7 @@ class FreestyleSandboxes {
|
|
|
232
232
|
if (!options?.apiKey) {
|
|
233
233
|
this.options.apiKey = process.env.FREESTYLE_API_KEY;
|
|
234
234
|
}
|
|
235
|
-
if (
|
|
235
|
+
if (this.options.apiKey === void 0) {
|
|
236
236
|
throw new Error(
|
|
237
237
|
"No API key provided. Please set the FREESTYLE_API_KEY environment variable or configure apiKey when constructing FreestyleSandboxes."
|
|
238
238
|
);
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -123,7 +123,7 @@ export class FreestyleSandboxes {
|
|
|
123
123
|
if (!options?.apiKey) {
|
|
124
124
|
this.options.apiKey = process.env.FREESTYLE_API_KEY;
|
|
125
125
|
}
|
|
126
|
-
if (
|
|
126
|
+
if (this.options.apiKey === undefined) {
|
|
127
127
|
throw new Error(
|
|
128
128
|
"No API key provided. Please set the FREESTYLE_API_KEY environment variable or configure apiKey when constructing FreestyleSandboxes."
|
|
129
129
|
);
|