freestyle-sandboxes 0.0.78 → 0.0.80

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 CHANGED
@@ -234,11 +234,6 @@ class FreestyleSandboxes {
234
234
  if (!options?.apiKey) {
235
235
  this.options.apiKey = process.env.FREESTYLE_API_KEY;
236
236
  }
237
- if (!this.options.apiKey) {
238
- throw new Error(
239
- "No API key provided. Please set the FREESTYLE_API_KEY environment variable or configure apiKey when constructing FreestyleSandboxes."
240
- );
241
- }
242
237
  if (typeof Deno !== "undefined") {
243
238
  class FreestyleRequest extends Request {
244
239
  constructor(input, init) {
package/dist/index.mjs CHANGED
@@ -232,11 +232,6 @@ class FreestyleSandboxes {
232
232
  if (!options?.apiKey) {
233
233
  this.options.apiKey = process.env.FREESTYLE_API_KEY;
234
234
  }
235
- if (!this.options.apiKey) {
236
- throw new Error(
237
- "No API key provided. Please set the FREESTYLE_API_KEY environment variable or configure apiKey when constructing FreestyleSandboxes."
238
- );
239
- }
240
235
  if (typeof Deno !== "undefined") {
241
236
  class FreestyleRequest extends Request {
242
237
  constructor(input, init) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "freestyle-sandboxes",
3
- "version": "0.0.78",
3
+ "version": "0.0.80",
4
4
  "type": "module",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
package/src/index.ts CHANGED
@@ -123,11 +123,6 @@ export class FreestyleSandboxes {
123
123
  if (!options?.apiKey) {
124
124
  this.options.apiKey = process.env.FREESTYLE_API_KEY;
125
125
  }
126
- if (!this.options.apiKey) {
127
- throw new Error(
128
- "No API key provided. Please set the FREESTYLE_API_KEY environment variable or configure apiKey when constructing FreestyleSandboxes."
129
- );
130
- }
131
126
 
132
127
  //@ts-expect-error Deno has a weird behavior thats patched here
133
128
  if (typeof Deno !== "undefined") {