miniflare 0.0.0-5936282bf → 0.0.0-59a007274
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/src/index.d.ts +71 -24
- package/dist/src/index.js +286 -228
- package/dist/src/index.js.map +3 -3
- package/dist/src/workers/assets/assets.worker.js +520 -90
- package/dist/src/workers/assets/assets.worker.js.map +2 -2
- package/dist/src/workers/assets/router.worker.js +8 -6
- package/dist/src/workers/assets/router.worker.js.map +2 -2
- package/package.json +5 -5
package/dist/src/index.d.ts
CHANGED
|
@@ -66,23 +66,41 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
66
66
|
path: z.ZodEffects<z.ZodString, string, string>;
|
|
67
67
|
bindingName: z.ZodOptional<z.ZodString>;
|
|
68
68
|
routingConfig: z.ZodObject<{
|
|
69
|
-
|
|
69
|
+
has_user_worker: z.ZodOptional<z.ZodBoolean>;
|
|
70
70
|
}, "strip", z.ZodTypeAny, {
|
|
71
|
-
|
|
71
|
+
has_user_worker?: boolean;
|
|
72
72
|
}, {
|
|
73
|
-
|
|
73
|
+
has_user_worker?: boolean;
|
|
74
|
+
}>;
|
|
75
|
+
assetConfig: z.ZodObject<{
|
|
76
|
+
html_handling: z.ZodOptional<z.ZodEnum<["auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none"]>>;
|
|
77
|
+
not_found_handling: z.ZodOptional<z.ZodEnum<["single-page-application", "404-page", "none"]>>;
|
|
78
|
+
}, "strip", z.ZodTypeAny, {
|
|
79
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
80
|
+
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
81
|
+
}, {
|
|
82
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
83
|
+
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
74
84
|
}>;
|
|
75
85
|
}, "strip", z.ZodTypeAny, {
|
|
76
86
|
path: string;
|
|
77
87
|
routingConfig: {
|
|
78
|
-
|
|
88
|
+
has_user_worker?: boolean;
|
|
89
|
+
};
|
|
90
|
+
assetConfig: {
|
|
91
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
92
|
+
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
79
93
|
};
|
|
80
94
|
workerName?: string | undefined;
|
|
81
95
|
bindingName?: string | undefined;
|
|
82
96
|
}, {
|
|
83
97
|
path: string;
|
|
84
98
|
routingConfig: {
|
|
85
|
-
|
|
99
|
+
has_user_worker?: boolean;
|
|
100
|
+
};
|
|
101
|
+
assetConfig: {
|
|
102
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
103
|
+
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
86
104
|
};
|
|
87
105
|
workerName?: string | undefined;
|
|
88
106
|
bindingName?: string | undefined;
|
|
@@ -91,7 +109,11 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
91
109
|
assets?: {
|
|
92
110
|
path: string;
|
|
93
111
|
routingConfig: {
|
|
94
|
-
|
|
112
|
+
has_user_worker?: boolean;
|
|
113
|
+
};
|
|
114
|
+
assetConfig: {
|
|
115
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
116
|
+
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
95
117
|
};
|
|
96
118
|
workerName?: string | undefined;
|
|
97
119
|
bindingName?: string | undefined;
|
|
@@ -100,7 +122,11 @@ export declare const AssetsOptionsSchema: z.ZodObject<{
|
|
|
100
122
|
assets?: {
|
|
101
123
|
path: string;
|
|
102
124
|
routingConfig: {
|
|
103
|
-
|
|
125
|
+
has_user_worker?: boolean;
|
|
126
|
+
};
|
|
127
|
+
assetConfig: {
|
|
128
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
129
|
+
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
104
130
|
};
|
|
105
131
|
workerName?: string | undefined;
|
|
106
132
|
bindingName?: string | undefined;
|
|
@@ -1547,8 +1573,6 @@ export declare const kInspectorSocket: unique symbol;
|
|
|
1547
1573
|
|
|
1548
1574
|
declare const kPair: unique symbol;
|
|
1549
1575
|
|
|
1550
|
-
export declare const kProxyNodeBinding: unique symbol;
|
|
1551
|
-
|
|
1552
1576
|
declare const kSend: unique symbol;
|
|
1553
1577
|
|
|
1554
1578
|
export declare const kUnsafeEphemeralUniqueKey: unique symbol;
|
|
@@ -3125,23 +3149,41 @@ export declare const PLUGINS: {
|
|
|
3125
3149
|
path: z.ZodEffects<z.ZodString, string, string>;
|
|
3126
3150
|
bindingName: z.ZodOptional<z.ZodString>;
|
|
3127
3151
|
routingConfig: z.ZodObject<{
|
|
3128
|
-
|
|
3152
|
+
has_user_worker: z.ZodOptional<z.ZodBoolean>;
|
|
3153
|
+
}, "strip", z.ZodTypeAny, {
|
|
3154
|
+
has_user_worker?: boolean;
|
|
3155
|
+
}, {
|
|
3156
|
+
has_user_worker?: boolean;
|
|
3157
|
+
}>;
|
|
3158
|
+
assetConfig: z.ZodObject<{
|
|
3159
|
+
html_handling: z.ZodOptional<z.ZodEnum<["auto-trailing-slash", "force-trailing-slash", "drop-trailing-slash", "none"]>>;
|
|
3160
|
+
not_found_handling: z.ZodOptional<z.ZodEnum<["single-page-application", "404-page", "none"]>>;
|
|
3129
3161
|
}, "strip", z.ZodTypeAny, {
|
|
3130
|
-
|
|
3162
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3163
|
+
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
3131
3164
|
}, {
|
|
3132
|
-
|
|
3165
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3166
|
+
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
3133
3167
|
}>;
|
|
3134
3168
|
}, "strip", z.ZodTypeAny, {
|
|
3135
3169
|
path: string;
|
|
3136
3170
|
routingConfig: {
|
|
3137
|
-
|
|
3171
|
+
has_user_worker?: boolean;
|
|
3172
|
+
};
|
|
3173
|
+
assetConfig: {
|
|
3174
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3175
|
+
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
3138
3176
|
};
|
|
3139
3177
|
workerName?: string | undefined;
|
|
3140
3178
|
bindingName?: string | undefined;
|
|
3141
3179
|
}, {
|
|
3142
3180
|
path: string;
|
|
3143
3181
|
routingConfig: {
|
|
3144
|
-
|
|
3182
|
+
has_user_worker?: boolean;
|
|
3183
|
+
};
|
|
3184
|
+
assetConfig: {
|
|
3185
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3186
|
+
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
3145
3187
|
};
|
|
3146
3188
|
workerName?: string | undefined;
|
|
3147
3189
|
bindingName?: string | undefined;
|
|
@@ -3150,7 +3192,11 @@ export declare const PLUGINS: {
|
|
|
3150
3192
|
assets?: {
|
|
3151
3193
|
path: string;
|
|
3152
3194
|
routingConfig: {
|
|
3153
|
-
|
|
3195
|
+
has_user_worker?: boolean;
|
|
3196
|
+
};
|
|
3197
|
+
assetConfig: {
|
|
3198
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3199
|
+
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
3154
3200
|
};
|
|
3155
3201
|
workerName?: string | undefined;
|
|
3156
3202
|
bindingName?: string | undefined;
|
|
@@ -3159,7 +3205,11 @@ export declare const PLUGINS: {
|
|
|
3159
3205
|
assets?: {
|
|
3160
3206
|
path: string;
|
|
3161
3207
|
routingConfig: {
|
|
3162
|
-
|
|
3208
|
+
has_user_worker?: boolean;
|
|
3209
|
+
};
|
|
3210
|
+
assetConfig: {
|
|
3211
|
+
html_handling?: "none" | "auto-trailing-slash" | "force-trailing-slash" | "drop-trailing-slash";
|
|
3212
|
+
not_found_handling?: "none" | "single-page-application" | "404-page";
|
|
3163
3213
|
};
|
|
3164
3214
|
workerName?: string | undefined;
|
|
3165
3215
|
bindingName?: string | undefined;
|
|
@@ -3207,6 +3257,11 @@ export declare class ProxyClient {
|
|
|
3207
3257
|
dispose(): Promise<void>;
|
|
3208
3258
|
}
|
|
3209
3259
|
|
|
3260
|
+
export declare class ProxyNodeBinding {
|
|
3261
|
+
proxyOverrideHandler?: ProxyHandler<any> | undefined;
|
|
3262
|
+
constructor(proxyOverrideHandler?: ProxyHandler<any> | undefined);
|
|
3263
|
+
}
|
|
3264
|
+
|
|
3210
3265
|
export declare const ProxyOps: {
|
|
3211
3266
|
readonly GET: "GET";
|
|
3212
3267
|
readonly GET_OWN_DESCRIPTOR: "GET_OWN_DESCRIPTOR";
|
|
@@ -3637,14 +3692,6 @@ export declare class RouterError extends MiniflareError<RouterErrorCode> {
|
|
|
3637
3692
|
|
|
3638
3693
|
export declare type RouterErrorCode = "ERR_QUERY_STRING" | "ERR_INFIX_WILDCARD";
|
|
3639
3694
|
|
|
3640
|
-
export declare const RoutingConfigSchema: z.ZodObject<{
|
|
3641
|
-
hasUserWorker: z.ZodBoolean;
|
|
3642
|
-
}, "strip", z.ZodTypeAny, {
|
|
3643
|
-
hasUserWorker: boolean;
|
|
3644
|
-
}, {
|
|
3645
|
-
hasUserWorker: boolean;
|
|
3646
|
-
}>;
|
|
3647
|
-
|
|
3648
3695
|
export declare class Runtime {
|
|
3649
3696
|
#private;
|
|
3650
3697
|
updateConfig(configBuffer: Buffer, options: Abortable & RuntimeOptions): Promise<SocketPorts | undefined>;
|