@sylphx/sdk 0.3.5 → 0.3.6

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.mjs CHANGED
@@ -490,9 +490,9 @@ function parseKey(key) {
490
490
  );
491
491
  }
492
492
  const [, env, ref, token] = parts;
493
- if (env !== "prod" && env !== "dev" && env !== "stg") {
493
+ if (env !== "prod" && env !== "dev" && env !== "stg" && env !== "prev") {
494
494
  throw new SylphxError(
495
- `[Sylphx] Invalid key environment "${env}". Must be 'prod', 'dev', or 'stg'.`,
495
+ `[Sylphx] Invalid key environment "${env}". Must be 'prod', 'dev', 'stg', or 'prev'.`,
496
496
  { code: "BAD_REQUEST" }
497
497
  );
498
498
  }