@distilled.cloud/cloudflare 0.19.2 → 0.20.1

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.
@@ -7,7 +7,7 @@
7
7
  import * as Schema from "effect/Schema";
8
8
  import * as API from "../client/api.js";
9
9
  import * as T from "../traits.js";
10
- import {} from "../errors.js";
10
+ import { InternalServerError } from "../errors.js";
11
11
  import { UploadableSchema } from "../schemas.js";
12
12
  // =============================================================================
13
13
  // Errors
@@ -37,6 +37,9 @@ T.applyErrorMatchers(DurableObjectMustBeSqlite, [
37
37
  export class HostnameAlreadyInUse extends Schema.TaggedErrorClass()("HostnameAlreadyInUse", { code: Schema.Number, message: Schema.String }) {
38
38
  }
39
39
  T.applyErrorMatchers(HostnameAlreadyInUse, [{ code: 100116 }]);
40
+ T.applyErrorMatchers(InternalServerError, [
41
+ { code: 10002, message: { includes: "An unknown error has occurred" } },
42
+ ]);
40
43
  export class InvalidRoute extends Schema.TaggedErrorClass()("InvalidRoute", { code: Schema.Number, message: Schema.String }) {
41
44
  }
42
45
  T.applyErrorMatchers(InvalidRoute, [
@@ -3872,6 +3875,7 @@ export const putScript = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
3872
3875
  errors: [
3873
3876
  InvalidRoute,
3874
3877
  InvalidWorkerScript,
3878
+ InternalServerError,
3875
3879
  DurableObjectMustBeSqlite,
3876
3880
  DuplicateMigrationTarget,
3877
3881
  ScriptStartupError,