@distilled.cloud/cloudflare 0.19.1 → 0.20.0
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/lib/credentials.d.ts +1 -1
- package/lib/credentials.d.ts.map +1 -1
- package/lib/credentials.js +2 -4
- package/lib/credentials.js.map +1 -1
- package/lib/services/alerting.d.ts +1 -7
- package/lib/services/alerting.d.ts.map +1 -1
- package/lib/services/alerting.js +1 -3
- package/lib/services/alerting.js.map +1 -1
- package/lib/services/rulesets.d.ts +4 -4
- package/lib/services/rulesets.d.ts.map +1 -1
- package/lib/services/rulesets.js +4764 -4688
- package/lib/services/rulesets.js.map +1 -1
- package/lib/services/workers.d.ts +2 -2
- package/lib/services/workers.d.ts.map +1 -1
- package/lib/services/workers.js +5 -1
- package/lib/services/workers.js.map +1 -1
- package/package.json +5 -5
- package/src/credentials.ts +6 -8
- package/src/services/alerting.ts +1 -5
- package/src/services/rulesets.ts +9139 -8855
- package/src/services/workers.ts +7 -1
package/src/services/workers.ts
CHANGED
|
@@ -10,7 +10,7 @@ import type * as HttpClient from "effect/unstable/http/HttpClient";
|
|
|
10
10
|
import * as API from "../client/api.ts";
|
|
11
11
|
import * as T from "../traits.ts";
|
|
12
12
|
import type { Credentials } from "../credentials.ts";
|
|
13
|
-
import { type DefaultErrors } from "../errors.ts";
|
|
13
|
+
import { type DefaultErrors, InternalServerError } from "../errors.ts";
|
|
14
14
|
import { UploadableSchema } from "../schemas.ts";
|
|
15
15
|
|
|
16
16
|
// =============================================================================
|
|
@@ -60,6 +60,10 @@ export class HostnameAlreadyInUse extends Schema.TaggedErrorClass<HostnameAlread
|
|
|
60
60
|
) {}
|
|
61
61
|
T.applyErrorMatchers(HostnameAlreadyInUse, [{ code: 100116 }]);
|
|
62
62
|
|
|
63
|
+
T.applyErrorMatchers(InternalServerError, [
|
|
64
|
+
{ code: 10002, message: { includes: "An unknown error has occurred" } },
|
|
65
|
+
]);
|
|
66
|
+
|
|
63
67
|
export class InvalidRoute extends Schema.TaggedErrorClass<InvalidRoute>()(
|
|
64
68
|
"InvalidRoute",
|
|
65
69
|
{ code: Schema.Number, message: Schema.String },
|
|
@@ -7640,6 +7644,7 @@ export type PutScriptError =
|
|
|
7640
7644
|
| DefaultErrors
|
|
7641
7645
|
| InvalidRoute
|
|
7642
7646
|
| InvalidWorkerScript
|
|
7647
|
+
| InternalServerError
|
|
7643
7648
|
| DurableObjectMustBeSqlite
|
|
7644
7649
|
| DuplicateMigrationTarget
|
|
7645
7650
|
| ScriptStartupError
|
|
@@ -7656,6 +7661,7 @@ export const putScript: API.OperationMethod<
|
|
|
7656
7661
|
errors: [
|
|
7657
7662
|
InvalidRoute,
|
|
7658
7663
|
InvalidWorkerScript,
|
|
7664
|
+
InternalServerError,
|
|
7659
7665
|
DurableObjectMustBeSqlite,
|
|
7660
7666
|
DuplicateMigrationTarget,
|
|
7661
7667
|
ScriptStartupError,
|