@distilled.cloud/cloudflare 0.15.2 → 0.16.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@distilled.cloud/cloudflare",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/alchemy-run/distilled",
|
|
@@ -56,14 +56,14 @@
|
|
|
56
56
|
"fmt": "oxfmt --write src",
|
|
57
57
|
"lint": "oxlint --fix src",
|
|
58
58
|
"check": "tsgo && oxlint src && oxfmt --check src",
|
|
59
|
-
"test": "vitest run --exclude specs",
|
|
59
|
+
"test": "vitest run --exclude specs --passWithNoTests",
|
|
60
60
|
"publish:npm": "bun run build && bun publish --access public",
|
|
61
61
|
"generate": "bun run scripts/generate.ts && oxlint --fix src && oxfmt --write src && oxfmt --write src",
|
|
62
62
|
"specs:fetch": "git submodule update --force --init --recursive --depth=1 specs/cloudflare-typescript && git -C specs/cloudflare-typescript checkout -- .",
|
|
63
63
|
"specs:update": "git -C specs/cloudflare-typescript fetch && git -C specs/cloudflare-typescript checkout main && git -C specs/cloudflare-typescript pull"
|
|
64
64
|
},
|
|
65
65
|
"dependencies": {
|
|
66
|
-
"@distilled.cloud/core": "0.
|
|
66
|
+
"@distilled.cloud/core": "0.16.0",
|
|
67
67
|
"effect": "4.0.0-beta.58"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
package/src/services/workers.ts
CHANGED
|
@@ -93,12 +93,6 @@ export class RouteNotFound extends Schema.TaggedErrorClass<RouteNotFound>()(
|
|
|
93
93
|
) {}
|
|
94
94
|
T.applyErrorMatchers(RouteNotFound, [{ code: 10009 }]);
|
|
95
95
|
|
|
96
|
-
export class ScriptStartupError extends Schema.TaggedErrorClass<ScriptStartupError>()(
|
|
97
|
-
"ScriptStartupError",
|
|
98
|
-
{ code: Schema.Number, message: Schema.String },
|
|
99
|
-
) {}
|
|
100
|
-
T.applyErrorMatchers(ScriptStartupError, [{ code: 10021 }]);
|
|
101
|
-
|
|
102
96
|
export class ScriptModuleNotFound extends Schema.TaggedErrorClass<ScriptModuleNotFound>()(
|
|
103
97
|
"ScriptModuleNotFound",
|
|
104
98
|
{ code: Schema.Number, message: Schema.String },
|
|
@@ -107,6 +101,12 @@ T.applyErrorMatchers(ScriptModuleNotFound, [
|
|
|
107
101
|
{ code: 10021, message: { includes: "No such module" } },
|
|
108
102
|
]);
|
|
109
103
|
|
|
104
|
+
export class ScriptStartupError extends Schema.TaggedErrorClass<ScriptStartupError>()(
|
|
105
|
+
"ScriptStartupError",
|
|
106
|
+
{ code: Schema.Number, message: Schema.String },
|
|
107
|
+
) {}
|
|
108
|
+
T.applyErrorMatchers(ScriptStartupError, [{ code: 10021 }]);
|
|
109
|
+
|
|
110
110
|
export class SecretNotFound extends Schema.TaggedErrorClass<SecretNotFound>()(
|
|
111
111
|
"SecretNotFound",
|
|
112
112
|
{ code: Schema.Number, message: Schema.String },
|