@distilled.cloud/cloudflare 0.7.6 → 0.7.7
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/services/workers.js
CHANGED
|
@@ -3420,6 +3420,10 @@ export const PutScriptRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
3420
3420
|
part: Schema.String,
|
|
3421
3421
|
type: Schema.Literal("wasm_module"),
|
|
3422
3422
|
}),
|
|
3423
|
+
Schema.Struct({
|
|
3424
|
+
name: Schema.String,
|
|
3425
|
+
type: Schema.Literal("worker_loader"),
|
|
3426
|
+
}),
|
|
3423
3427
|
]))),
|
|
3424
3428
|
bodyPart: Schema.optional(Schema.String),
|
|
3425
3429
|
compatibilityDate: Schema.optional(Schema.String),
|
|
@@ -3740,7 +3744,7 @@ export const PutScriptResponse = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
|
3740
3744
|
export const putScript = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
|
|
3741
3745
|
input: PutScriptRequest,
|
|
3742
3746
|
output: PutScriptResponse,
|
|
3743
|
-
errors: [InvalidRoute, DurableObjectMustBeSqlite],
|
|
3747
|
+
errors: [InvalidRoute, InvalidWorkerScript, DurableObjectMustBeSqlite],
|
|
3744
3748
|
}));
|
|
3745
3749
|
export const DeleteScriptRequest = /*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
|
|
3746
3750
|
scriptName: Schema.String.pipe(T.HttpPath("scriptName")),
|