seroval-plugins 1.6.7 → 1.6.9
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/dev/index-BD3WIX1W.d.cts +47 -0
- package/dist/dev/index-Col4D1Sf.d.ts +46 -0
- package/dist/dev/index.cjs +1 -1
- package/dist/dev/index.d.cts +1 -1
- package/dist/dev/index.d.ts +1 -1
- package/dist/dev/index.js +1 -1
- package/dist/{web-CWqRG00W.js → dev/web-CDQeyEaf.js} +23 -9
- package/dist/{web-BSPcNbIH.cjs → dev/web-CnMWzq6_.cjs} +23 -9
- package/dist/dev/web.cjs +1 -1
- package/dist/dev/web.d.cts +1 -1
- package/dist/dev/web.d.ts +1 -1
- package/dist/dev/web.js +1 -1
- package/dist/index-BD3WIX1W.d.cts +47 -0
- package/dist/index-Col4D1Sf.d.ts +46 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/{dev/web-CWqRG00W.js → web-CDQeyEaf.js} +23 -9
- package/dist/{dev/web-BSPcNbIH.cjs → web-CnMWzq6_.cjs} +23 -9
- package/dist/web.cjs +1 -1
- package/dist/web.d.cts +1 -1
- package/dist/web.d.ts +1 -1
- package/dist/web.js +1 -1
- package/package.json +2 -2
- package/dist/dev/index-BG4YWylA.d.cts +0 -101
- package/dist/dev/index-BiDfEOvR.d.ts +0 -100
- package/dist/index-BG4YWylA.d.cts +0 -101
- package/dist/index-BiDfEOvR.d.ts +0 -100
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
//#endregion
|
|
2
|
+
//#region web/abort-signal.d.ts
|
|
3
|
+
declare const AbortSignalPlugin: any;
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region web/blob.d.ts
|
|
6
|
+
declare const BlobPlugin: any;
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region web/custom-event.d.ts
|
|
9
|
+
declare const CustomEventPlugin: any;
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region web/dom-exception.d.ts
|
|
12
|
+
declare const DOMExceptionPlugin: any;
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region web/event.d.ts
|
|
15
|
+
declare const EventPlugin: any;
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region web/file.d.ts
|
|
18
|
+
declare const FilePlugin: any;
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region web/form-data.d.ts
|
|
21
|
+
declare const FormDataPlugin: any;
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region web/headers.d.ts
|
|
24
|
+
declare const HeadersPlugin: any;
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region web/image-data.d.ts
|
|
27
|
+
declare const ImageDataPlugin: any;
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region web/readable-stream.d.ts
|
|
30
|
+
declare const ReadableStreamPlugin: any;
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region web/request.d.ts
|
|
33
|
+
declare const RequestPlugin: any;
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region web/response.d.ts
|
|
36
|
+
declare const ResponsePlugin: any;
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region web/url.d.ts
|
|
39
|
+
declare const URLPlugin: any;
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region web/url-search-params.d.ts
|
|
42
|
+
declare const URLSearchParamsPlugin: any;
|
|
43
|
+
declare namespace index_d_exports {
|
|
44
|
+
export { AbortSignalPlugin, BlobPlugin, CustomEventPlugin, DOMExceptionPlugin, EventPlugin, FilePlugin, FormDataPlugin, HeadersPlugin, ImageDataPlugin, ReadableStreamPlugin, RequestPlugin, ResponsePlugin, URLPlugin, URLSearchParamsPlugin };
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
47
|
+
export { RequestPlugin as a, HeadersPlugin as c, EventPlugin as d, DOMExceptionPlugin as f, AbortSignalPlugin as h, ResponsePlugin as i, FormDataPlugin as l, BlobPlugin as m, URLSearchParamsPlugin as n, ReadableStreamPlugin as o, CustomEventPlugin as p, URLPlugin as r, ImageDataPlugin as s, index_d_exports as t, FilePlugin as u };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
//#region web/abort-signal.d.ts
|
|
2
|
+
declare const AbortSignalPlugin: any;
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region web/blob.d.ts
|
|
5
|
+
declare const BlobPlugin: any;
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region web/custom-event.d.ts
|
|
8
|
+
declare const CustomEventPlugin: any;
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region web/dom-exception.d.ts
|
|
11
|
+
declare const DOMExceptionPlugin: any;
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region web/event.d.ts
|
|
14
|
+
declare const EventPlugin: any;
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region web/file.d.ts
|
|
17
|
+
declare const FilePlugin: any;
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region web/form-data.d.ts
|
|
20
|
+
declare const FormDataPlugin: any;
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region web/headers.d.ts
|
|
23
|
+
declare const HeadersPlugin: any;
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region web/image-data.d.ts
|
|
26
|
+
declare const ImageDataPlugin: any;
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region web/readable-stream.d.ts
|
|
29
|
+
declare const ReadableStreamPlugin: any;
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region web/request.d.ts
|
|
32
|
+
declare const RequestPlugin: any;
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region web/response.d.ts
|
|
35
|
+
declare const ResponsePlugin: any;
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region web/url.d.ts
|
|
38
|
+
declare const URLPlugin: any;
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region web/url-search-params.d.ts
|
|
41
|
+
declare const URLSearchParamsPlugin: any;
|
|
42
|
+
declare namespace index_d_exports {
|
|
43
|
+
export { AbortSignalPlugin, BlobPlugin, CustomEventPlugin, DOMExceptionPlugin, EventPlugin, FilePlugin, FormDataPlugin, HeadersPlugin, ImageDataPlugin, ReadableStreamPlugin, RequestPlugin, ResponsePlugin, URLPlugin, URLSearchParamsPlugin };
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
export { RequestPlugin as a, HeadersPlugin as c, EventPlugin as d, DOMExceptionPlugin as f, AbortSignalPlugin as h, ResponsePlugin as i, FormDataPlugin as l, BlobPlugin as m, URLSearchParamsPlugin as n, ReadableStreamPlugin as o, CustomEventPlugin as p, URLPlugin as r, ImageDataPlugin as s, index_d_exports as t, FilePlugin as u };
|
package/dist/dev/index.cjs
CHANGED
package/dist/dev/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as index_d_exports } from "./index-
|
|
1
|
+
import { t as index_d_exports } from "./index-BD3WIX1W.cjs";
|
|
2
2
|
export { index_d_exports as web };
|
package/dist/dev/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as index_d_exports } from "./index-
|
|
1
|
+
import { t as index_d_exports } from "./index-Col4D1Sf.js";
|
|
2
2
|
export { index_d_exports as web };
|
package/dist/dev/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as web_exports } from "./web-
|
|
1
|
+
import { t as web_exports } from "./web-CDQeyEaf.js";
|
|
2
2
|
export { web_exports as web };
|
|
@@ -81,6 +81,20 @@ const AbortSignalPlugin = /* @__PURE__ */ createPlugin({
|
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
83
|
//#endregion
|
|
84
|
+
//#region web/validate.ts
|
|
85
|
+
function expectString(value) {
|
|
86
|
+
if (typeof value !== "string") throw new Error("Expected a string.");
|
|
87
|
+
return value;
|
|
88
|
+
}
|
|
89
|
+
function expectNumber(value) {
|
|
90
|
+
if (typeof value !== "number") throw new Error("Expected a number.");
|
|
91
|
+
return value;
|
|
92
|
+
}
|
|
93
|
+
function expectArrayBuffer(value) {
|
|
94
|
+
if (!(value instanceof ArrayBuffer)) throw new Error("Expected an ArrayBuffer.");
|
|
95
|
+
return value;
|
|
96
|
+
}
|
|
97
|
+
//#endregion
|
|
84
98
|
//#region web/blob.ts
|
|
85
99
|
const BlobPlugin = /* @__PURE__ */ createPlugin({
|
|
86
100
|
tag: "seroval-plugins/web/Blob",
|
|
@@ -98,7 +112,7 @@ const BlobPlugin = /* @__PURE__ */ createPlugin({
|
|
|
98
112
|
return "new Blob([" + ctx.serialize(node.buffer) + "],{type:" + ctx.serialize(node.type) + "})";
|
|
99
113
|
},
|
|
100
114
|
deserialize(node, ctx) {
|
|
101
|
-
return new Blob([ctx.deserialize(node.buffer)], { type: ctx.deserialize(node.type) });
|
|
115
|
+
return new Blob([expectArrayBuffer(ctx.deserialize(node.buffer))], { type: expectString(ctx.deserialize(node.type)) });
|
|
102
116
|
}
|
|
103
117
|
});
|
|
104
118
|
//#endregion
|
|
@@ -141,7 +155,7 @@ const CustomEventPlugin = /* @__PURE__ */ createPlugin({
|
|
|
141
155
|
return "new CustomEvent(" + ctx.serialize(node.type) + "," + ctx.serialize(node.options) + ")";
|
|
142
156
|
},
|
|
143
157
|
deserialize(node, ctx) {
|
|
144
|
-
return new CustomEvent(ctx.deserialize(node.type), ctx.deserialize(node.options));
|
|
158
|
+
return new CustomEvent(expectString(ctx.deserialize(node.type)), ctx.deserialize(node.options));
|
|
145
159
|
}
|
|
146
160
|
});
|
|
147
161
|
//#endregion
|
|
@@ -176,7 +190,7 @@ const DOMExceptionPlugin = /* @__PURE__ */ createPlugin({
|
|
|
176
190
|
return "new DOMException(" + ctx.serialize(node.message) + "," + ctx.serialize(node.name) + ")";
|
|
177
191
|
},
|
|
178
192
|
deserialize(node, ctx) {
|
|
179
|
-
return new DOMException(ctx.deserialize(node.message), ctx.deserialize(node.name));
|
|
193
|
+
return new DOMException(expectString(ctx.deserialize(node.message)), expectString(ctx.deserialize(node.name)));
|
|
180
194
|
}
|
|
181
195
|
});
|
|
182
196
|
//#endregion
|
|
@@ -218,7 +232,7 @@ const EventPlugin = /* @__PURE__ */ createPlugin({
|
|
|
218
232
|
return "new Event(" + ctx.serialize(node.type) + "," + ctx.serialize(node.options) + ")";
|
|
219
233
|
},
|
|
220
234
|
deserialize(node, ctx) {
|
|
221
|
-
return new Event(ctx.deserialize(node.type), ctx.deserialize(node.options));
|
|
235
|
+
return new Event(expectString(ctx.deserialize(node.type)), ctx.deserialize(node.options));
|
|
222
236
|
}
|
|
223
237
|
});
|
|
224
238
|
//#endregion
|
|
@@ -243,7 +257,7 @@ const FilePlugin = /* @__PURE__ */ createPlugin({
|
|
|
243
257
|
return "new File([" + ctx.serialize(node.buffer) + "]," + ctx.serialize(node.name) + "," + ctx.serialize(node.options) + ")";
|
|
244
258
|
},
|
|
245
259
|
deserialize(node, ctx) {
|
|
246
|
-
return new File([ctx.deserialize(node.buffer)], ctx.deserialize(node.name), ctx.deserialize(node.options));
|
|
260
|
+
return new File([expectArrayBuffer(ctx.deserialize(node.buffer))], expectString(ctx.deserialize(node.name)), ctx.deserialize(node.options));
|
|
247
261
|
}
|
|
248
262
|
});
|
|
249
263
|
//#endregion
|
|
@@ -390,7 +404,7 @@ const ImageDataPlugin = /* @__PURE__ */ createPlugin({
|
|
|
390
404
|
return "new ImageData(" + ctx.serialize(node.data) + "," + ctx.serialize(node.width) + "," + ctx.serialize(node.height) + "," + ctx.serialize(node.options) + ")";
|
|
391
405
|
},
|
|
392
406
|
deserialize(node, ctx) {
|
|
393
|
-
return new ImageData(ctx.deserialize(node.data), ctx.deserialize(node.width), ctx.deserialize(node.height), ctx.deserialize(node.options));
|
|
407
|
+
return new ImageData(ctx.deserialize(node.data), expectNumber(ctx.deserialize(node.width)), expectNumber(ctx.deserialize(node.height)), ctx.deserialize(node.options));
|
|
394
408
|
}
|
|
395
409
|
});
|
|
396
410
|
//#endregion
|
|
@@ -543,7 +557,7 @@ const RequestPlugin = /* @__PURE__ */ createPlugin({
|
|
|
543
557
|
return "new Request(" + ctx.serialize(node.url) + "," + ctx.serialize(node.options) + ")";
|
|
544
558
|
},
|
|
545
559
|
deserialize(node, ctx) {
|
|
546
|
-
return new Request(ctx.deserialize(node.url), ctx.deserialize(node.options));
|
|
560
|
+
return new Request(expectString(ctx.deserialize(node.url)), ctx.deserialize(node.options));
|
|
547
561
|
}
|
|
548
562
|
});
|
|
549
563
|
//#endregion
|
|
@@ -606,7 +620,7 @@ const URLPlugin = /* @__PURE__ */ createPlugin({
|
|
|
606
620
|
return "new URL(" + ctx.serialize(node.value) + ")";
|
|
607
621
|
},
|
|
608
622
|
deserialize(node, ctx) {
|
|
609
|
-
return new URL(ctx.deserialize(node.value));
|
|
623
|
+
return new URL(expectString(ctx.deserialize(node.value)));
|
|
610
624
|
}
|
|
611
625
|
});
|
|
612
626
|
//#endregion
|
|
@@ -632,7 +646,7 @@ const URLSearchParamsPlugin = /* @__PURE__ */ createPlugin({
|
|
|
632
646
|
return "new URLSearchParams(" + ctx.serialize(node.value) + ")";
|
|
633
647
|
},
|
|
634
648
|
deserialize(node, ctx) {
|
|
635
|
-
return new URLSearchParams(ctx.deserialize(node.value));
|
|
649
|
+
return new URLSearchParams(expectString(ctx.deserialize(node.value)));
|
|
636
650
|
}
|
|
637
651
|
});
|
|
638
652
|
//#endregion
|
|
@@ -92,6 +92,20 @@ const AbortSignalPlugin = /* @__PURE__ */ (0, seroval.createPlugin)({
|
|
|
92
92
|
}
|
|
93
93
|
});
|
|
94
94
|
//#endregion
|
|
95
|
+
//#region web/validate.ts
|
|
96
|
+
function expectString(value) {
|
|
97
|
+
if (typeof value !== "string") throw new Error("Expected a string.");
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
function expectNumber(value) {
|
|
101
|
+
if (typeof value !== "number") throw new Error("Expected a number.");
|
|
102
|
+
return value;
|
|
103
|
+
}
|
|
104
|
+
function expectArrayBuffer(value) {
|
|
105
|
+
if (!(value instanceof ArrayBuffer)) throw new Error("Expected an ArrayBuffer.");
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
//#endregion
|
|
95
109
|
//#region web/blob.ts
|
|
96
110
|
const BlobPlugin = /* @__PURE__ */ (0, seroval.createPlugin)({
|
|
97
111
|
tag: "seroval-plugins/web/Blob",
|
|
@@ -109,7 +123,7 @@ const BlobPlugin = /* @__PURE__ */ (0, seroval.createPlugin)({
|
|
|
109
123
|
return "new Blob([" + ctx.serialize(node.buffer) + "],{type:" + ctx.serialize(node.type) + "})";
|
|
110
124
|
},
|
|
111
125
|
deserialize(node, ctx) {
|
|
112
|
-
return new Blob([ctx.deserialize(node.buffer)], { type: ctx.deserialize(node.type) });
|
|
126
|
+
return new Blob([expectArrayBuffer(ctx.deserialize(node.buffer))], { type: expectString(ctx.deserialize(node.type)) });
|
|
113
127
|
}
|
|
114
128
|
});
|
|
115
129
|
//#endregion
|
|
@@ -152,7 +166,7 @@ const CustomEventPlugin = /* @__PURE__ */ (0, seroval.createPlugin)({
|
|
|
152
166
|
return "new CustomEvent(" + ctx.serialize(node.type) + "," + ctx.serialize(node.options) + ")";
|
|
153
167
|
},
|
|
154
168
|
deserialize(node, ctx) {
|
|
155
|
-
return new CustomEvent(ctx.deserialize(node.type), ctx.deserialize(node.options));
|
|
169
|
+
return new CustomEvent(expectString(ctx.deserialize(node.type)), ctx.deserialize(node.options));
|
|
156
170
|
}
|
|
157
171
|
});
|
|
158
172
|
//#endregion
|
|
@@ -187,7 +201,7 @@ const DOMExceptionPlugin = /* @__PURE__ */ (0, seroval.createPlugin)({
|
|
|
187
201
|
return "new DOMException(" + ctx.serialize(node.message) + "," + ctx.serialize(node.name) + ")";
|
|
188
202
|
},
|
|
189
203
|
deserialize(node, ctx) {
|
|
190
|
-
return new DOMException(ctx.deserialize(node.message), ctx.deserialize(node.name));
|
|
204
|
+
return new DOMException(expectString(ctx.deserialize(node.message)), expectString(ctx.deserialize(node.name)));
|
|
191
205
|
}
|
|
192
206
|
});
|
|
193
207
|
//#endregion
|
|
@@ -229,7 +243,7 @@ const EventPlugin = /* @__PURE__ */ (0, seroval.createPlugin)({
|
|
|
229
243
|
return "new Event(" + ctx.serialize(node.type) + "," + ctx.serialize(node.options) + ")";
|
|
230
244
|
},
|
|
231
245
|
deserialize(node, ctx) {
|
|
232
|
-
return new Event(ctx.deserialize(node.type), ctx.deserialize(node.options));
|
|
246
|
+
return new Event(expectString(ctx.deserialize(node.type)), ctx.deserialize(node.options));
|
|
233
247
|
}
|
|
234
248
|
});
|
|
235
249
|
//#endregion
|
|
@@ -254,7 +268,7 @@ const FilePlugin = /* @__PURE__ */ (0, seroval.createPlugin)({
|
|
|
254
268
|
return "new File([" + ctx.serialize(node.buffer) + "]," + ctx.serialize(node.name) + "," + ctx.serialize(node.options) + ")";
|
|
255
269
|
},
|
|
256
270
|
deserialize(node, ctx) {
|
|
257
|
-
return new File([ctx.deserialize(node.buffer)], ctx.deserialize(node.name), ctx.deserialize(node.options));
|
|
271
|
+
return new File([expectArrayBuffer(ctx.deserialize(node.buffer))], expectString(ctx.deserialize(node.name)), ctx.deserialize(node.options));
|
|
258
272
|
}
|
|
259
273
|
});
|
|
260
274
|
//#endregion
|
|
@@ -401,7 +415,7 @@ const ImageDataPlugin = /* @__PURE__ */ (0, seroval.createPlugin)({
|
|
|
401
415
|
return "new ImageData(" + ctx.serialize(node.data) + "," + ctx.serialize(node.width) + "," + ctx.serialize(node.height) + "," + ctx.serialize(node.options) + ")";
|
|
402
416
|
},
|
|
403
417
|
deserialize(node, ctx) {
|
|
404
|
-
return new ImageData(ctx.deserialize(node.data), ctx.deserialize(node.width), ctx.deserialize(node.height), ctx.deserialize(node.options));
|
|
418
|
+
return new ImageData(ctx.deserialize(node.data), expectNumber(ctx.deserialize(node.width)), expectNumber(ctx.deserialize(node.height)), ctx.deserialize(node.options));
|
|
405
419
|
}
|
|
406
420
|
});
|
|
407
421
|
//#endregion
|
|
@@ -554,7 +568,7 @@ const RequestPlugin = /* @__PURE__ */ (0, seroval.createPlugin)({
|
|
|
554
568
|
return "new Request(" + ctx.serialize(node.url) + "," + ctx.serialize(node.options) + ")";
|
|
555
569
|
},
|
|
556
570
|
deserialize(node, ctx) {
|
|
557
|
-
return new Request(ctx.deserialize(node.url), ctx.deserialize(node.options));
|
|
571
|
+
return new Request(expectString(ctx.deserialize(node.url)), ctx.deserialize(node.options));
|
|
558
572
|
}
|
|
559
573
|
});
|
|
560
574
|
//#endregion
|
|
@@ -617,7 +631,7 @@ const URLPlugin = /* @__PURE__ */ (0, seroval.createPlugin)({
|
|
|
617
631
|
return "new URL(" + ctx.serialize(node.value) + ")";
|
|
618
632
|
},
|
|
619
633
|
deserialize(node, ctx) {
|
|
620
|
-
return new URL(ctx.deserialize(node.value));
|
|
634
|
+
return new URL(expectString(ctx.deserialize(node.value)));
|
|
621
635
|
}
|
|
622
636
|
});
|
|
623
637
|
//#endregion
|
|
@@ -643,7 +657,7 @@ const URLSearchParamsPlugin = /* @__PURE__ */ (0, seroval.createPlugin)({
|
|
|
643
657
|
return "new URLSearchParams(" + ctx.serialize(node.value) + ")";
|
|
644
658
|
},
|
|
645
659
|
deserialize(node, ctx) {
|
|
646
|
-
return new URLSearchParams(ctx.deserialize(node.value));
|
|
660
|
+
return new URLSearchParams(expectString(ctx.deserialize(node.value)));
|
|
647
661
|
}
|
|
648
662
|
});
|
|
649
663
|
//#endregion
|
package/dist/dev/web.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_web = require("./web-
|
|
2
|
+
const require_web = require("./web-CnMWzq6_.cjs");
|
|
3
3
|
exports.AbortSignalPlugin = require_web.AbortSignalPlugin;
|
|
4
4
|
exports.BlobPlugin = require_web.BlobPlugin;
|
|
5
5
|
exports.CustomEventPlugin = require_web.CustomEventPlugin;
|
package/dist/dev/web.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as RequestPlugin, c as HeadersPlugin, d as EventPlugin, f as DOMExceptionPlugin, h as AbortSignalPlugin, i as ResponsePlugin, l as FormDataPlugin, m as BlobPlugin, n as URLSearchParamsPlugin, o as ReadableStreamPlugin, p as CustomEventPlugin, r as URLPlugin, s as ImageDataPlugin, u as FilePlugin } from "./index-
|
|
1
|
+
import { a as RequestPlugin, c as HeadersPlugin, d as EventPlugin, f as DOMExceptionPlugin, h as AbortSignalPlugin, i as ResponsePlugin, l as FormDataPlugin, m as BlobPlugin, n as URLSearchParamsPlugin, o as ReadableStreamPlugin, p as CustomEventPlugin, r as URLPlugin, s as ImageDataPlugin, u as FilePlugin } from "./index-BD3WIX1W.cjs";
|
|
2
2
|
export { AbortSignalPlugin, BlobPlugin, CustomEventPlugin, DOMExceptionPlugin, EventPlugin, FilePlugin, FormDataPlugin, HeadersPlugin, ImageDataPlugin, ReadableStreamPlugin, RequestPlugin, ResponsePlugin, URLPlugin, URLSearchParamsPlugin };
|
package/dist/dev/web.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as RequestPlugin, c as HeadersPlugin, d as EventPlugin, f as DOMExceptionPlugin, h as AbortSignalPlugin, i as ResponsePlugin, l as FormDataPlugin, m as BlobPlugin, n as URLSearchParamsPlugin, o as ReadableStreamPlugin, p as CustomEventPlugin, r as URLPlugin, s as ImageDataPlugin, u as FilePlugin } from "./index-
|
|
1
|
+
import { a as RequestPlugin, c as HeadersPlugin, d as EventPlugin, f as DOMExceptionPlugin, h as AbortSignalPlugin, i as ResponsePlugin, l as FormDataPlugin, m as BlobPlugin, n as URLSearchParamsPlugin, o as ReadableStreamPlugin, p as CustomEventPlugin, r as URLPlugin, s as ImageDataPlugin, u as FilePlugin } from "./index-Col4D1Sf.js";
|
|
2
2
|
export { AbortSignalPlugin, BlobPlugin, CustomEventPlugin, DOMExceptionPlugin, EventPlugin, FilePlugin, FormDataPlugin, HeadersPlugin, ImageDataPlugin, ReadableStreamPlugin, RequestPlugin, ResponsePlugin, URLPlugin, URLSearchParamsPlugin };
|
package/dist/dev/web.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as RequestPlugin, c as HeadersPlugin, d as EventPlugin, f as DOMExceptionPlugin, h as AbortSignalPlugin, i as ResponsePlugin, l as FormDataPlugin, m as BlobPlugin, n as URLSearchParamsPlugin, o as ReadableStreamPlugin, p as CustomEventPlugin, r as URLPlugin, s as ImageDataPlugin, u as FilePlugin } from "./web-
|
|
1
|
+
import { a as RequestPlugin, c as HeadersPlugin, d as EventPlugin, f as DOMExceptionPlugin, h as AbortSignalPlugin, i as ResponsePlugin, l as FormDataPlugin, m as BlobPlugin, n as URLSearchParamsPlugin, o as ReadableStreamPlugin, p as CustomEventPlugin, r as URLPlugin, s as ImageDataPlugin, u as FilePlugin } from "./web-CDQeyEaf.js";
|
|
2
2
|
export { AbortSignalPlugin, BlobPlugin, CustomEventPlugin, DOMExceptionPlugin, EventPlugin, FilePlugin, FormDataPlugin, HeadersPlugin, ImageDataPlugin, ReadableStreamPlugin, RequestPlugin, ResponsePlugin, URLPlugin, URLSearchParamsPlugin };
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
//#endregion
|
|
2
|
+
//#region web/abort-signal.d.ts
|
|
3
|
+
declare const AbortSignalPlugin: any;
|
|
4
|
+
//#endregion
|
|
5
|
+
//#region web/blob.d.ts
|
|
6
|
+
declare const BlobPlugin: any;
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region web/custom-event.d.ts
|
|
9
|
+
declare const CustomEventPlugin: any;
|
|
10
|
+
//#endregion
|
|
11
|
+
//#region web/dom-exception.d.ts
|
|
12
|
+
declare const DOMExceptionPlugin: any;
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region web/event.d.ts
|
|
15
|
+
declare const EventPlugin: any;
|
|
16
|
+
//#endregion
|
|
17
|
+
//#region web/file.d.ts
|
|
18
|
+
declare const FilePlugin: any;
|
|
19
|
+
//#endregion
|
|
20
|
+
//#region web/form-data.d.ts
|
|
21
|
+
declare const FormDataPlugin: any;
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region web/headers.d.ts
|
|
24
|
+
declare const HeadersPlugin: any;
|
|
25
|
+
//#endregion
|
|
26
|
+
//#region web/image-data.d.ts
|
|
27
|
+
declare const ImageDataPlugin: any;
|
|
28
|
+
//#endregion
|
|
29
|
+
//#region web/readable-stream.d.ts
|
|
30
|
+
declare const ReadableStreamPlugin: any;
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region web/request.d.ts
|
|
33
|
+
declare const RequestPlugin: any;
|
|
34
|
+
//#endregion
|
|
35
|
+
//#region web/response.d.ts
|
|
36
|
+
declare const ResponsePlugin: any;
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region web/url.d.ts
|
|
39
|
+
declare const URLPlugin: any;
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region web/url-search-params.d.ts
|
|
42
|
+
declare const URLSearchParamsPlugin: any;
|
|
43
|
+
declare namespace index_d_exports {
|
|
44
|
+
export { AbortSignalPlugin, BlobPlugin, CustomEventPlugin, DOMExceptionPlugin, EventPlugin, FilePlugin, FormDataPlugin, HeadersPlugin, ImageDataPlugin, ReadableStreamPlugin, RequestPlugin, ResponsePlugin, URLPlugin, URLSearchParamsPlugin };
|
|
45
|
+
}
|
|
46
|
+
//#endregion
|
|
47
|
+
export { RequestPlugin as a, HeadersPlugin as c, EventPlugin as d, DOMExceptionPlugin as f, AbortSignalPlugin as h, ResponsePlugin as i, FormDataPlugin as l, BlobPlugin as m, URLSearchParamsPlugin as n, ReadableStreamPlugin as o, CustomEventPlugin as p, URLPlugin as r, ImageDataPlugin as s, index_d_exports as t, FilePlugin as u };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
//#region web/abort-signal.d.ts
|
|
2
|
+
declare const AbortSignalPlugin: any;
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region web/blob.d.ts
|
|
5
|
+
declare const BlobPlugin: any;
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region web/custom-event.d.ts
|
|
8
|
+
declare const CustomEventPlugin: any;
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region web/dom-exception.d.ts
|
|
11
|
+
declare const DOMExceptionPlugin: any;
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region web/event.d.ts
|
|
14
|
+
declare const EventPlugin: any;
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region web/file.d.ts
|
|
17
|
+
declare const FilePlugin: any;
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region web/form-data.d.ts
|
|
20
|
+
declare const FormDataPlugin: any;
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region web/headers.d.ts
|
|
23
|
+
declare const HeadersPlugin: any;
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region web/image-data.d.ts
|
|
26
|
+
declare const ImageDataPlugin: any;
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region web/readable-stream.d.ts
|
|
29
|
+
declare const ReadableStreamPlugin: any;
|
|
30
|
+
//#endregion
|
|
31
|
+
//#region web/request.d.ts
|
|
32
|
+
declare const RequestPlugin: any;
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region web/response.d.ts
|
|
35
|
+
declare const ResponsePlugin: any;
|
|
36
|
+
//#endregion
|
|
37
|
+
//#region web/url.d.ts
|
|
38
|
+
declare const URLPlugin: any;
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region web/url-search-params.d.ts
|
|
41
|
+
declare const URLSearchParamsPlugin: any;
|
|
42
|
+
declare namespace index_d_exports {
|
|
43
|
+
export { AbortSignalPlugin, BlobPlugin, CustomEventPlugin, DOMExceptionPlugin, EventPlugin, FilePlugin, FormDataPlugin, HeadersPlugin, ImageDataPlugin, ReadableStreamPlugin, RequestPlugin, ResponsePlugin, URLPlugin, URLSearchParamsPlugin };
|
|
44
|
+
}
|
|
45
|
+
//#endregion
|
|
46
|
+
export { RequestPlugin as a, HeadersPlugin as c, EventPlugin as d, DOMExceptionPlugin as f, AbortSignalPlugin as h, ResponsePlugin as i, FormDataPlugin as l, BlobPlugin as m, URLSearchParamsPlugin as n, ReadableStreamPlugin as o, CustomEventPlugin as p, URLPlugin as r, ImageDataPlugin as s, index_d_exports as t, FilePlugin as u };
|
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as index_d_exports } from "./index-
|
|
1
|
+
import { t as index_d_exports } from "./index-BD3WIX1W.cjs";
|
|
2
2
|
export { index_d_exports as web };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as index_d_exports } from "./index-
|
|
1
|
+
import { t as index_d_exports } from "./index-Col4D1Sf.js";
|
|
2
2
|
export { index_d_exports as web };
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as web_exports } from "./web-
|
|
1
|
+
import { t as web_exports } from "./web-CDQeyEaf.js";
|
|
2
2
|
export { web_exports as web };
|
|
@@ -81,6 +81,20 @@ const AbortSignalPlugin = /* @__PURE__ */ createPlugin({
|
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
83
|
//#endregion
|
|
84
|
+
//#region web/validate.ts
|
|
85
|
+
function expectString(value) {
|
|
86
|
+
if (typeof value !== "string") throw new Error("Expected a string.");
|
|
87
|
+
return value;
|
|
88
|
+
}
|
|
89
|
+
function expectNumber(value) {
|
|
90
|
+
if (typeof value !== "number") throw new Error("Expected a number.");
|
|
91
|
+
return value;
|
|
92
|
+
}
|
|
93
|
+
function expectArrayBuffer(value) {
|
|
94
|
+
if (!(value instanceof ArrayBuffer)) throw new Error("Expected an ArrayBuffer.");
|
|
95
|
+
return value;
|
|
96
|
+
}
|
|
97
|
+
//#endregion
|
|
84
98
|
//#region web/blob.ts
|
|
85
99
|
const BlobPlugin = /* @__PURE__ */ createPlugin({
|
|
86
100
|
tag: "seroval-plugins/web/Blob",
|
|
@@ -98,7 +112,7 @@ const BlobPlugin = /* @__PURE__ */ createPlugin({
|
|
|
98
112
|
return "new Blob([" + ctx.serialize(node.buffer) + "],{type:" + ctx.serialize(node.type) + "})";
|
|
99
113
|
},
|
|
100
114
|
deserialize(node, ctx) {
|
|
101
|
-
return new Blob([ctx.deserialize(node.buffer)], { type: ctx.deserialize(node.type) });
|
|
115
|
+
return new Blob([expectArrayBuffer(ctx.deserialize(node.buffer))], { type: expectString(ctx.deserialize(node.type)) });
|
|
102
116
|
}
|
|
103
117
|
});
|
|
104
118
|
//#endregion
|
|
@@ -141,7 +155,7 @@ const CustomEventPlugin = /* @__PURE__ */ createPlugin({
|
|
|
141
155
|
return "new CustomEvent(" + ctx.serialize(node.type) + "," + ctx.serialize(node.options) + ")";
|
|
142
156
|
},
|
|
143
157
|
deserialize(node, ctx) {
|
|
144
|
-
return new CustomEvent(ctx.deserialize(node.type), ctx.deserialize(node.options));
|
|
158
|
+
return new CustomEvent(expectString(ctx.deserialize(node.type)), ctx.deserialize(node.options));
|
|
145
159
|
}
|
|
146
160
|
});
|
|
147
161
|
//#endregion
|
|
@@ -176,7 +190,7 @@ const DOMExceptionPlugin = /* @__PURE__ */ createPlugin({
|
|
|
176
190
|
return "new DOMException(" + ctx.serialize(node.message) + "," + ctx.serialize(node.name) + ")";
|
|
177
191
|
},
|
|
178
192
|
deserialize(node, ctx) {
|
|
179
|
-
return new DOMException(ctx.deserialize(node.message), ctx.deserialize(node.name));
|
|
193
|
+
return new DOMException(expectString(ctx.deserialize(node.message)), expectString(ctx.deserialize(node.name)));
|
|
180
194
|
}
|
|
181
195
|
});
|
|
182
196
|
//#endregion
|
|
@@ -218,7 +232,7 @@ const EventPlugin = /* @__PURE__ */ createPlugin({
|
|
|
218
232
|
return "new Event(" + ctx.serialize(node.type) + "," + ctx.serialize(node.options) + ")";
|
|
219
233
|
},
|
|
220
234
|
deserialize(node, ctx) {
|
|
221
|
-
return new Event(ctx.deserialize(node.type), ctx.deserialize(node.options));
|
|
235
|
+
return new Event(expectString(ctx.deserialize(node.type)), ctx.deserialize(node.options));
|
|
222
236
|
}
|
|
223
237
|
});
|
|
224
238
|
//#endregion
|
|
@@ -243,7 +257,7 @@ const FilePlugin = /* @__PURE__ */ createPlugin({
|
|
|
243
257
|
return "new File([" + ctx.serialize(node.buffer) + "]," + ctx.serialize(node.name) + "," + ctx.serialize(node.options) + ")";
|
|
244
258
|
},
|
|
245
259
|
deserialize(node, ctx) {
|
|
246
|
-
return new File([ctx.deserialize(node.buffer)], ctx.deserialize(node.name), ctx.deserialize(node.options));
|
|
260
|
+
return new File([expectArrayBuffer(ctx.deserialize(node.buffer))], expectString(ctx.deserialize(node.name)), ctx.deserialize(node.options));
|
|
247
261
|
}
|
|
248
262
|
});
|
|
249
263
|
//#endregion
|
|
@@ -390,7 +404,7 @@ const ImageDataPlugin = /* @__PURE__ */ createPlugin({
|
|
|
390
404
|
return "new ImageData(" + ctx.serialize(node.data) + "," + ctx.serialize(node.width) + "," + ctx.serialize(node.height) + "," + ctx.serialize(node.options) + ")";
|
|
391
405
|
},
|
|
392
406
|
deserialize(node, ctx) {
|
|
393
|
-
return new ImageData(ctx.deserialize(node.data), ctx.deserialize(node.width), ctx.deserialize(node.height), ctx.deserialize(node.options));
|
|
407
|
+
return new ImageData(ctx.deserialize(node.data), expectNumber(ctx.deserialize(node.width)), expectNumber(ctx.deserialize(node.height)), ctx.deserialize(node.options));
|
|
394
408
|
}
|
|
395
409
|
});
|
|
396
410
|
//#endregion
|
|
@@ -543,7 +557,7 @@ const RequestPlugin = /* @__PURE__ */ createPlugin({
|
|
|
543
557
|
return "new Request(" + ctx.serialize(node.url) + "," + ctx.serialize(node.options) + ")";
|
|
544
558
|
},
|
|
545
559
|
deserialize(node, ctx) {
|
|
546
|
-
return new Request(ctx.deserialize(node.url), ctx.deserialize(node.options));
|
|
560
|
+
return new Request(expectString(ctx.deserialize(node.url)), ctx.deserialize(node.options));
|
|
547
561
|
}
|
|
548
562
|
});
|
|
549
563
|
//#endregion
|
|
@@ -606,7 +620,7 @@ const URLPlugin = /* @__PURE__ */ createPlugin({
|
|
|
606
620
|
return "new URL(" + ctx.serialize(node.value) + ")";
|
|
607
621
|
},
|
|
608
622
|
deserialize(node, ctx) {
|
|
609
|
-
return new URL(ctx.deserialize(node.value));
|
|
623
|
+
return new URL(expectString(ctx.deserialize(node.value)));
|
|
610
624
|
}
|
|
611
625
|
});
|
|
612
626
|
//#endregion
|
|
@@ -632,7 +646,7 @@ const URLSearchParamsPlugin = /* @__PURE__ */ createPlugin({
|
|
|
632
646
|
return "new URLSearchParams(" + ctx.serialize(node.value) + ")";
|
|
633
647
|
},
|
|
634
648
|
deserialize(node, ctx) {
|
|
635
|
-
return new URLSearchParams(ctx.deserialize(node.value));
|
|
649
|
+
return new URLSearchParams(expectString(ctx.deserialize(node.value)));
|
|
636
650
|
}
|
|
637
651
|
});
|
|
638
652
|
//#endregion
|
|
@@ -92,6 +92,20 @@ const AbortSignalPlugin = /* @__PURE__ */ (0, seroval.createPlugin)({
|
|
|
92
92
|
}
|
|
93
93
|
});
|
|
94
94
|
//#endregion
|
|
95
|
+
//#region web/validate.ts
|
|
96
|
+
function expectString(value) {
|
|
97
|
+
if (typeof value !== "string") throw new Error("Expected a string.");
|
|
98
|
+
return value;
|
|
99
|
+
}
|
|
100
|
+
function expectNumber(value) {
|
|
101
|
+
if (typeof value !== "number") throw new Error("Expected a number.");
|
|
102
|
+
return value;
|
|
103
|
+
}
|
|
104
|
+
function expectArrayBuffer(value) {
|
|
105
|
+
if (!(value instanceof ArrayBuffer)) throw new Error("Expected an ArrayBuffer.");
|
|
106
|
+
return value;
|
|
107
|
+
}
|
|
108
|
+
//#endregion
|
|
95
109
|
//#region web/blob.ts
|
|
96
110
|
const BlobPlugin = /* @__PURE__ */ (0, seroval.createPlugin)({
|
|
97
111
|
tag: "seroval-plugins/web/Blob",
|
|
@@ -109,7 +123,7 @@ const BlobPlugin = /* @__PURE__ */ (0, seroval.createPlugin)({
|
|
|
109
123
|
return "new Blob([" + ctx.serialize(node.buffer) + "],{type:" + ctx.serialize(node.type) + "})";
|
|
110
124
|
},
|
|
111
125
|
deserialize(node, ctx) {
|
|
112
|
-
return new Blob([ctx.deserialize(node.buffer)], { type: ctx.deserialize(node.type) });
|
|
126
|
+
return new Blob([expectArrayBuffer(ctx.deserialize(node.buffer))], { type: expectString(ctx.deserialize(node.type)) });
|
|
113
127
|
}
|
|
114
128
|
});
|
|
115
129
|
//#endregion
|
|
@@ -152,7 +166,7 @@ const CustomEventPlugin = /* @__PURE__ */ (0, seroval.createPlugin)({
|
|
|
152
166
|
return "new CustomEvent(" + ctx.serialize(node.type) + "," + ctx.serialize(node.options) + ")";
|
|
153
167
|
},
|
|
154
168
|
deserialize(node, ctx) {
|
|
155
|
-
return new CustomEvent(ctx.deserialize(node.type), ctx.deserialize(node.options));
|
|
169
|
+
return new CustomEvent(expectString(ctx.deserialize(node.type)), ctx.deserialize(node.options));
|
|
156
170
|
}
|
|
157
171
|
});
|
|
158
172
|
//#endregion
|
|
@@ -187,7 +201,7 @@ const DOMExceptionPlugin = /* @__PURE__ */ (0, seroval.createPlugin)({
|
|
|
187
201
|
return "new DOMException(" + ctx.serialize(node.message) + "," + ctx.serialize(node.name) + ")";
|
|
188
202
|
},
|
|
189
203
|
deserialize(node, ctx) {
|
|
190
|
-
return new DOMException(ctx.deserialize(node.message), ctx.deserialize(node.name));
|
|
204
|
+
return new DOMException(expectString(ctx.deserialize(node.message)), expectString(ctx.deserialize(node.name)));
|
|
191
205
|
}
|
|
192
206
|
});
|
|
193
207
|
//#endregion
|
|
@@ -229,7 +243,7 @@ const EventPlugin = /* @__PURE__ */ (0, seroval.createPlugin)({
|
|
|
229
243
|
return "new Event(" + ctx.serialize(node.type) + "," + ctx.serialize(node.options) + ")";
|
|
230
244
|
},
|
|
231
245
|
deserialize(node, ctx) {
|
|
232
|
-
return new Event(ctx.deserialize(node.type), ctx.deserialize(node.options));
|
|
246
|
+
return new Event(expectString(ctx.deserialize(node.type)), ctx.deserialize(node.options));
|
|
233
247
|
}
|
|
234
248
|
});
|
|
235
249
|
//#endregion
|
|
@@ -254,7 +268,7 @@ const FilePlugin = /* @__PURE__ */ (0, seroval.createPlugin)({
|
|
|
254
268
|
return "new File([" + ctx.serialize(node.buffer) + "]," + ctx.serialize(node.name) + "," + ctx.serialize(node.options) + ")";
|
|
255
269
|
},
|
|
256
270
|
deserialize(node, ctx) {
|
|
257
|
-
return new File([ctx.deserialize(node.buffer)], ctx.deserialize(node.name), ctx.deserialize(node.options));
|
|
271
|
+
return new File([expectArrayBuffer(ctx.deserialize(node.buffer))], expectString(ctx.deserialize(node.name)), ctx.deserialize(node.options));
|
|
258
272
|
}
|
|
259
273
|
});
|
|
260
274
|
//#endregion
|
|
@@ -401,7 +415,7 @@ const ImageDataPlugin = /* @__PURE__ */ (0, seroval.createPlugin)({
|
|
|
401
415
|
return "new ImageData(" + ctx.serialize(node.data) + "," + ctx.serialize(node.width) + "," + ctx.serialize(node.height) + "," + ctx.serialize(node.options) + ")";
|
|
402
416
|
},
|
|
403
417
|
deserialize(node, ctx) {
|
|
404
|
-
return new ImageData(ctx.deserialize(node.data), ctx.deserialize(node.width), ctx.deserialize(node.height), ctx.deserialize(node.options));
|
|
418
|
+
return new ImageData(ctx.deserialize(node.data), expectNumber(ctx.deserialize(node.width)), expectNumber(ctx.deserialize(node.height)), ctx.deserialize(node.options));
|
|
405
419
|
}
|
|
406
420
|
});
|
|
407
421
|
//#endregion
|
|
@@ -554,7 +568,7 @@ const RequestPlugin = /* @__PURE__ */ (0, seroval.createPlugin)({
|
|
|
554
568
|
return "new Request(" + ctx.serialize(node.url) + "," + ctx.serialize(node.options) + ")";
|
|
555
569
|
},
|
|
556
570
|
deserialize(node, ctx) {
|
|
557
|
-
return new Request(ctx.deserialize(node.url), ctx.deserialize(node.options));
|
|
571
|
+
return new Request(expectString(ctx.deserialize(node.url)), ctx.deserialize(node.options));
|
|
558
572
|
}
|
|
559
573
|
});
|
|
560
574
|
//#endregion
|
|
@@ -617,7 +631,7 @@ const URLPlugin = /* @__PURE__ */ (0, seroval.createPlugin)({
|
|
|
617
631
|
return "new URL(" + ctx.serialize(node.value) + ")";
|
|
618
632
|
},
|
|
619
633
|
deserialize(node, ctx) {
|
|
620
|
-
return new URL(ctx.deserialize(node.value));
|
|
634
|
+
return new URL(expectString(ctx.deserialize(node.value)));
|
|
621
635
|
}
|
|
622
636
|
});
|
|
623
637
|
//#endregion
|
|
@@ -643,7 +657,7 @@ const URLSearchParamsPlugin = /* @__PURE__ */ (0, seroval.createPlugin)({
|
|
|
643
657
|
return "new URLSearchParams(" + ctx.serialize(node.value) + ")";
|
|
644
658
|
},
|
|
645
659
|
deserialize(node, ctx) {
|
|
646
|
-
return new URLSearchParams(ctx.deserialize(node.value));
|
|
660
|
+
return new URLSearchParams(expectString(ctx.deserialize(node.value)));
|
|
647
661
|
}
|
|
648
662
|
});
|
|
649
663
|
//#endregion
|
package/dist/web.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
-
const require_web = require("./web-
|
|
2
|
+
const require_web = require("./web-CnMWzq6_.cjs");
|
|
3
3
|
exports.AbortSignalPlugin = require_web.AbortSignalPlugin;
|
|
4
4
|
exports.BlobPlugin = require_web.BlobPlugin;
|
|
5
5
|
exports.CustomEventPlugin = require_web.CustomEventPlugin;
|
package/dist/web.d.cts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as RequestPlugin, c as HeadersPlugin, d as EventPlugin, f as DOMExceptionPlugin, h as AbortSignalPlugin, i as ResponsePlugin, l as FormDataPlugin, m as BlobPlugin, n as URLSearchParamsPlugin, o as ReadableStreamPlugin, p as CustomEventPlugin, r as URLPlugin, s as ImageDataPlugin, u as FilePlugin } from "./index-
|
|
1
|
+
import { a as RequestPlugin, c as HeadersPlugin, d as EventPlugin, f as DOMExceptionPlugin, h as AbortSignalPlugin, i as ResponsePlugin, l as FormDataPlugin, m as BlobPlugin, n as URLSearchParamsPlugin, o as ReadableStreamPlugin, p as CustomEventPlugin, r as URLPlugin, s as ImageDataPlugin, u as FilePlugin } from "./index-BD3WIX1W.cjs";
|
|
2
2
|
export { AbortSignalPlugin, BlobPlugin, CustomEventPlugin, DOMExceptionPlugin, EventPlugin, FilePlugin, FormDataPlugin, HeadersPlugin, ImageDataPlugin, ReadableStreamPlugin, RequestPlugin, ResponsePlugin, URLPlugin, URLSearchParamsPlugin };
|
package/dist/web.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as RequestPlugin, c as HeadersPlugin, d as EventPlugin, f as DOMExceptionPlugin, h as AbortSignalPlugin, i as ResponsePlugin, l as FormDataPlugin, m as BlobPlugin, n as URLSearchParamsPlugin, o as ReadableStreamPlugin, p as CustomEventPlugin, r as URLPlugin, s as ImageDataPlugin, u as FilePlugin } from "./index-
|
|
1
|
+
import { a as RequestPlugin, c as HeadersPlugin, d as EventPlugin, f as DOMExceptionPlugin, h as AbortSignalPlugin, i as ResponsePlugin, l as FormDataPlugin, m as BlobPlugin, n as URLSearchParamsPlugin, o as ReadableStreamPlugin, p as CustomEventPlugin, r as URLPlugin, s as ImageDataPlugin, u as FilePlugin } from "./index-Col4D1Sf.js";
|
|
2
2
|
export { AbortSignalPlugin, BlobPlugin, CustomEventPlugin, DOMExceptionPlugin, EventPlugin, FilePlugin, FormDataPlugin, HeadersPlugin, ImageDataPlugin, ReadableStreamPlugin, RequestPlugin, ResponsePlugin, URLPlugin, URLSearchParamsPlugin };
|
package/dist/web.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as RequestPlugin, c as HeadersPlugin, d as EventPlugin, f as DOMExceptionPlugin, h as AbortSignalPlugin, i as ResponsePlugin, l as FormDataPlugin, m as BlobPlugin, n as URLSearchParamsPlugin, o as ReadableStreamPlugin, p as CustomEventPlugin, r as URLPlugin, s as ImageDataPlugin, u as FilePlugin } from "./web-
|
|
1
|
+
import { a as RequestPlugin, c as HeadersPlugin, d as EventPlugin, f as DOMExceptionPlugin, h as AbortSignalPlugin, i as ResponsePlugin, l as FormDataPlugin, m as BlobPlugin, n as URLSearchParamsPlugin, o as ReadableStreamPlugin, p as CustomEventPlugin, r as URLPlugin, s as ImageDataPlugin, u as FilePlugin } from "./web-CDQeyEaf.js";
|
|
2
2
|
export { AbortSignalPlugin, BlobPlugin, CustomEventPlugin, DOMExceptionPlugin, EventPlugin, FilePlugin, FormDataPlugin, HeadersPlugin, ImageDataPlugin, ReadableStreamPlugin, RequestPlugin, ResponsePlugin, URLPlugin, URLSearchParamsPlugin };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "seroval-plugins",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.6.
|
|
4
|
+
"version": "1.6.9",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
7
7
|
],
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"@types/node": "^26.2.0",
|
|
17
17
|
"@vitest/ui": "^4.1.10",
|
|
18
18
|
"esbuild": "^0.28.2",
|
|
19
|
-
"seroval": "1.6.
|
|
19
|
+
"seroval": "1.6.9",
|
|
20
20
|
"tsdown": "^0.22.14",
|
|
21
21
|
"tslib": "^2.8.1",
|
|
22
22
|
"typescript": "^7.0.2",
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { SerovalNode } from "seroval";
|
|
2
|
-
//#endregion
|
|
3
|
-
//#region web/abort-signal.d.ts
|
|
4
|
-
declare const AbortSignalPlugin: import("seroval").Plugin<AbortSignal, {
|
|
5
|
-
reason?: SerovalNode;
|
|
6
|
-
controller?: SerovalNode;
|
|
7
|
-
factory?: SerovalNode;
|
|
8
|
-
}>;
|
|
9
|
-
//#endregion
|
|
10
|
-
//#region web/blob.d.ts
|
|
11
|
-
type BlobNode = {
|
|
12
|
-
type: SerovalNode;
|
|
13
|
-
buffer: SerovalNode;
|
|
14
|
-
};
|
|
15
|
-
declare const BlobPlugin: import("seroval").Plugin<Blob, BlobNode>;
|
|
16
|
-
//#endregion
|
|
17
|
-
//#region web/custom-event.d.ts
|
|
18
|
-
type CustomEventNode = {
|
|
19
|
-
type: SerovalNode;
|
|
20
|
-
options: SerovalNode;
|
|
21
|
-
};
|
|
22
|
-
declare const CustomEventPlugin: import("seroval").Plugin<CustomEvent<any>, CustomEventNode>;
|
|
23
|
-
//#endregion
|
|
24
|
-
//#region web/dom-exception.d.ts
|
|
25
|
-
type DOMExceptionNode = {
|
|
26
|
-
name: SerovalNode;
|
|
27
|
-
message: SerovalNode;
|
|
28
|
-
};
|
|
29
|
-
declare const DOMExceptionPlugin: import("seroval").Plugin<DOMException, DOMExceptionNode>;
|
|
30
|
-
//#endregion
|
|
31
|
-
//#region web/event.d.ts
|
|
32
|
-
type EventNode = {
|
|
33
|
-
type: SerovalNode;
|
|
34
|
-
options: SerovalNode;
|
|
35
|
-
};
|
|
36
|
-
declare const EventPlugin: import("seroval").Plugin<Event, EventNode>;
|
|
37
|
-
//#endregion
|
|
38
|
-
//#region web/file.d.ts
|
|
39
|
-
type FileNode = {
|
|
40
|
-
name: SerovalNode;
|
|
41
|
-
options: SerovalNode;
|
|
42
|
-
buffer: SerovalNode;
|
|
43
|
-
};
|
|
44
|
-
declare const FilePlugin: import("seroval").Plugin<File, FileNode>;
|
|
45
|
-
//#endregion
|
|
46
|
-
//#region web/form-data.d.ts
|
|
47
|
-
type FormDataNode = {
|
|
48
|
-
factory: SerovalNode;
|
|
49
|
-
entries: SerovalNode;
|
|
50
|
-
};
|
|
51
|
-
declare const FormDataPlugin: import("seroval").Plugin<FormData, FormDataNode>;
|
|
52
|
-
//#endregion
|
|
53
|
-
//#region web/headers.d.ts
|
|
54
|
-
declare const HeadersPlugin: import("seroval").Plugin<Headers, {
|
|
55
|
-
value: SerovalNode;
|
|
56
|
-
}>;
|
|
57
|
-
//#endregion
|
|
58
|
-
//#region web/image-data.d.ts
|
|
59
|
-
type ImageDataNode = {
|
|
60
|
-
data: SerovalNode;
|
|
61
|
-
width: SerovalNode;
|
|
62
|
-
height: SerovalNode;
|
|
63
|
-
options: SerovalNode;
|
|
64
|
-
};
|
|
65
|
-
declare const ImageDataPlugin: import("seroval").Plugin<ImageData, ImageDataNode>;
|
|
66
|
-
//#endregion
|
|
67
|
-
//#region web/readable-stream.d.ts
|
|
68
|
-
type ReadableStreamNode = {
|
|
69
|
-
factory: SerovalNode;
|
|
70
|
-
stream: SerovalNode;
|
|
71
|
-
};
|
|
72
|
-
declare const ReadableStreamPlugin: import("seroval").Plugin<ReadableStream<any>, ReadableStreamNode>;
|
|
73
|
-
//#endregion
|
|
74
|
-
//#region web/request.d.ts
|
|
75
|
-
type RequestNode = {
|
|
76
|
-
url: SerovalNode;
|
|
77
|
-
options: SerovalNode;
|
|
78
|
-
};
|
|
79
|
-
declare const RequestPlugin: import("seroval").Plugin<Request, RequestNode>;
|
|
80
|
-
//#endregion
|
|
81
|
-
//#region web/response.d.ts
|
|
82
|
-
type ResponseNode = {
|
|
83
|
-
body: SerovalNode;
|
|
84
|
-
options: SerovalNode;
|
|
85
|
-
};
|
|
86
|
-
declare const ResponsePlugin: import("seroval").Plugin<Response, ResponseNode>;
|
|
87
|
-
//#endregion
|
|
88
|
-
//#region web/url.d.ts
|
|
89
|
-
declare const URLPlugin: import("seroval").Plugin<URL, {
|
|
90
|
-
value: SerovalNode;
|
|
91
|
-
}>;
|
|
92
|
-
//#endregion
|
|
93
|
-
//#region web/url-search-params.d.ts
|
|
94
|
-
declare const URLSearchParamsPlugin: import("seroval").Plugin<URLSearchParams, {
|
|
95
|
-
value: SerovalNode;
|
|
96
|
-
}>;
|
|
97
|
-
declare namespace index_d_exports {
|
|
98
|
-
export { AbortSignalPlugin, BlobPlugin, CustomEventPlugin, DOMExceptionPlugin, EventPlugin, FilePlugin, FormDataPlugin, HeadersPlugin, ImageDataPlugin, ReadableStreamPlugin, RequestPlugin, ResponsePlugin, URLPlugin, URLSearchParamsPlugin };
|
|
99
|
-
}
|
|
100
|
-
//#endregion
|
|
101
|
-
export { RequestPlugin as a, HeadersPlugin as c, EventPlugin as d, DOMExceptionPlugin as f, AbortSignalPlugin as h, ResponsePlugin as i, FormDataPlugin as l, BlobPlugin as m, URLSearchParamsPlugin as n, ReadableStreamPlugin as o, CustomEventPlugin as p, URLPlugin as r, ImageDataPlugin as s, index_d_exports as t, FilePlugin as u };
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { SerovalNode } from "seroval";
|
|
2
|
-
//#region web/abort-signal.d.ts
|
|
3
|
-
declare const AbortSignalPlugin: import("seroval").Plugin<AbortSignal, {
|
|
4
|
-
reason?: SerovalNode;
|
|
5
|
-
controller?: SerovalNode;
|
|
6
|
-
factory?: SerovalNode;
|
|
7
|
-
}>;
|
|
8
|
-
//#endregion
|
|
9
|
-
//#region web/blob.d.ts
|
|
10
|
-
type BlobNode = {
|
|
11
|
-
type: SerovalNode;
|
|
12
|
-
buffer: SerovalNode;
|
|
13
|
-
};
|
|
14
|
-
declare const BlobPlugin: import("seroval").Plugin<Blob, BlobNode>;
|
|
15
|
-
//#endregion
|
|
16
|
-
//#region web/custom-event.d.ts
|
|
17
|
-
type CustomEventNode = {
|
|
18
|
-
type: SerovalNode;
|
|
19
|
-
options: SerovalNode;
|
|
20
|
-
};
|
|
21
|
-
declare const CustomEventPlugin: import("seroval").Plugin<CustomEvent<any>, CustomEventNode>;
|
|
22
|
-
//#endregion
|
|
23
|
-
//#region web/dom-exception.d.ts
|
|
24
|
-
type DOMExceptionNode = {
|
|
25
|
-
name: SerovalNode;
|
|
26
|
-
message: SerovalNode;
|
|
27
|
-
};
|
|
28
|
-
declare const DOMExceptionPlugin: import("seroval").Plugin<DOMException, DOMExceptionNode>;
|
|
29
|
-
//#endregion
|
|
30
|
-
//#region web/event.d.ts
|
|
31
|
-
type EventNode = {
|
|
32
|
-
type: SerovalNode;
|
|
33
|
-
options: SerovalNode;
|
|
34
|
-
};
|
|
35
|
-
declare const EventPlugin: import("seroval").Plugin<Event, EventNode>;
|
|
36
|
-
//#endregion
|
|
37
|
-
//#region web/file.d.ts
|
|
38
|
-
type FileNode = {
|
|
39
|
-
name: SerovalNode;
|
|
40
|
-
options: SerovalNode;
|
|
41
|
-
buffer: SerovalNode;
|
|
42
|
-
};
|
|
43
|
-
declare const FilePlugin: import("seroval").Plugin<File, FileNode>;
|
|
44
|
-
//#endregion
|
|
45
|
-
//#region web/form-data.d.ts
|
|
46
|
-
type FormDataNode = {
|
|
47
|
-
factory: SerovalNode;
|
|
48
|
-
entries: SerovalNode;
|
|
49
|
-
};
|
|
50
|
-
declare const FormDataPlugin: import("seroval").Plugin<FormData, FormDataNode>;
|
|
51
|
-
//#endregion
|
|
52
|
-
//#region web/headers.d.ts
|
|
53
|
-
declare const HeadersPlugin: import("seroval").Plugin<Headers, {
|
|
54
|
-
value: SerovalNode;
|
|
55
|
-
}>;
|
|
56
|
-
//#endregion
|
|
57
|
-
//#region web/image-data.d.ts
|
|
58
|
-
type ImageDataNode = {
|
|
59
|
-
data: SerovalNode;
|
|
60
|
-
width: SerovalNode;
|
|
61
|
-
height: SerovalNode;
|
|
62
|
-
options: SerovalNode;
|
|
63
|
-
};
|
|
64
|
-
declare const ImageDataPlugin: import("seroval").Plugin<ImageData, ImageDataNode>;
|
|
65
|
-
//#endregion
|
|
66
|
-
//#region web/readable-stream.d.ts
|
|
67
|
-
type ReadableStreamNode = {
|
|
68
|
-
factory: SerovalNode;
|
|
69
|
-
stream: SerovalNode;
|
|
70
|
-
};
|
|
71
|
-
declare const ReadableStreamPlugin: import("seroval").Plugin<ReadableStream<any>, ReadableStreamNode>;
|
|
72
|
-
//#endregion
|
|
73
|
-
//#region web/request.d.ts
|
|
74
|
-
type RequestNode = {
|
|
75
|
-
url: SerovalNode;
|
|
76
|
-
options: SerovalNode;
|
|
77
|
-
};
|
|
78
|
-
declare const RequestPlugin: import("seroval").Plugin<Request, RequestNode>;
|
|
79
|
-
//#endregion
|
|
80
|
-
//#region web/response.d.ts
|
|
81
|
-
type ResponseNode = {
|
|
82
|
-
body: SerovalNode;
|
|
83
|
-
options: SerovalNode;
|
|
84
|
-
};
|
|
85
|
-
declare const ResponsePlugin: import("seroval").Plugin<Response, ResponseNode>;
|
|
86
|
-
//#endregion
|
|
87
|
-
//#region web/url.d.ts
|
|
88
|
-
declare const URLPlugin: import("seroval").Plugin<URL, {
|
|
89
|
-
value: SerovalNode;
|
|
90
|
-
}>;
|
|
91
|
-
//#endregion
|
|
92
|
-
//#region web/url-search-params.d.ts
|
|
93
|
-
declare const URLSearchParamsPlugin: import("seroval").Plugin<URLSearchParams, {
|
|
94
|
-
value: SerovalNode;
|
|
95
|
-
}>;
|
|
96
|
-
declare namespace index_d_exports {
|
|
97
|
-
export { AbortSignalPlugin, BlobPlugin, CustomEventPlugin, DOMExceptionPlugin, EventPlugin, FilePlugin, FormDataPlugin, HeadersPlugin, ImageDataPlugin, ReadableStreamPlugin, RequestPlugin, ResponsePlugin, URLPlugin, URLSearchParamsPlugin };
|
|
98
|
-
}
|
|
99
|
-
//#endregion
|
|
100
|
-
export { RequestPlugin as a, HeadersPlugin as c, EventPlugin as d, DOMExceptionPlugin as f, AbortSignalPlugin as h, ResponsePlugin as i, FormDataPlugin as l, BlobPlugin as m, URLSearchParamsPlugin as n, ReadableStreamPlugin as o, CustomEventPlugin as p, URLPlugin as r, ImageDataPlugin as s, index_d_exports as t, FilePlugin as u };
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { SerovalNode } from "seroval";
|
|
2
|
-
//#endregion
|
|
3
|
-
//#region web/abort-signal.d.ts
|
|
4
|
-
declare const AbortSignalPlugin: import("seroval").Plugin<AbortSignal, {
|
|
5
|
-
reason?: SerovalNode;
|
|
6
|
-
controller?: SerovalNode;
|
|
7
|
-
factory?: SerovalNode;
|
|
8
|
-
}>;
|
|
9
|
-
//#endregion
|
|
10
|
-
//#region web/blob.d.ts
|
|
11
|
-
type BlobNode = {
|
|
12
|
-
type: SerovalNode;
|
|
13
|
-
buffer: SerovalNode;
|
|
14
|
-
};
|
|
15
|
-
declare const BlobPlugin: import("seroval").Plugin<Blob, BlobNode>;
|
|
16
|
-
//#endregion
|
|
17
|
-
//#region web/custom-event.d.ts
|
|
18
|
-
type CustomEventNode = {
|
|
19
|
-
type: SerovalNode;
|
|
20
|
-
options: SerovalNode;
|
|
21
|
-
};
|
|
22
|
-
declare const CustomEventPlugin: import("seroval").Plugin<CustomEvent<any>, CustomEventNode>;
|
|
23
|
-
//#endregion
|
|
24
|
-
//#region web/dom-exception.d.ts
|
|
25
|
-
type DOMExceptionNode = {
|
|
26
|
-
name: SerovalNode;
|
|
27
|
-
message: SerovalNode;
|
|
28
|
-
};
|
|
29
|
-
declare const DOMExceptionPlugin: import("seroval").Plugin<DOMException, DOMExceptionNode>;
|
|
30
|
-
//#endregion
|
|
31
|
-
//#region web/event.d.ts
|
|
32
|
-
type EventNode = {
|
|
33
|
-
type: SerovalNode;
|
|
34
|
-
options: SerovalNode;
|
|
35
|
-
};
|
|
36
|
-
declare const EventPlugin: import("seroval").Plugin<Event, EventNode>;
|
|
37
|
-
//#endregion
|
|
38
|
-
//#region web/file.d.ts
|
|
39
|
-
type FileNode = {
|
|
40
|
-
name: SerovalNode;
|
|
41
|
-
options: SerovalNode;
|
|
42
|
-
buffer: SerovalNode;
|
|
43
|
-
};
|
|
44
|
-
declare const FilePlugin: import("seroval").Plugin<File, FileNode>;
|
|
45
|
-
//#endregion
|
|
46
|
-
//#region web/form-data.d.ts
|
|
47
|
-
type FormDataNode = {
|
|
48
|
-
factory: SerovalNode;
|
|
49
|
-
entries: SerovalNode;
|
|
50
|
-
};
|
|
51
|
-
declare const FormDataPlugin: import("seroval").Plugin<FormData, FormDataNode>;
|
|
52
|
-
//#endregion
|
|
53
|
-
//#region web/headers.d.ts
|
|
54
|
-
declare const HeadersPlugin: import("seroval").Plugin<Headers, {
|
|
55
|
-
value: SerovalNode;
|
|
56
|
-
}>;
|
|
57
|
-
//#endregion
|
|
58
|
-
//#region web/image-data.d.ts
|
|
59
|
-
type ImageDataNode = {
|
|
60
|
-
data: SerovalNode;
|
|
61
|
-
width: SerovalNode;
|
|
62
|
-
height: SerovalNode;
|
|
63
|
-
options: SerovalNode;
|
|
64
|
-
};
|
|
65
|
-
declare const ImageDataPlugin: import("seroval").Plugin<ImageData, ImageDataNode>;
|
|
66
|
-
//#endregion
|
|
67
|
-
//#region web/readable-stream.d.ts
|
|
68
|
-
type ReadableStreamNode = {
|
|
69
|
-
factory: SerovalNode;
|
|
70
|
-
stream: SerovalNode;
|
|
71
|
-
};
|
|
72
|
-
declare const ReadableStreamPlugin: import("seroval").Plugin<ReadableStream<any>, ReadableStreamNode>;
|
|
73
|
-
//#endregion
|
|
74
|
-
//#region web/request.d.ts
|
|
75
|
-
type RequestNode = {
|
|
76
|
-
url: SerovalNode;
|
|
77
|
-
options: SerovalNode;
|
|
78
|
-
};
|
|
79
|
-
declare const RequestPlugin: import("seroval").Plugin<Request, RequestNode>;
|
|
80
|
-
//#endregion
|
|
81
|
-
//#region web/response.d.ts
|
|
82
|
-
type ResponseNode = {
|
|
83
|
-
body: SerovalNode;
|
|
84
|
-
options: SerovalNode;
|
|
85
|
-
};
|
|
86
|
-
declare const ResponsePlugin: import("seroval").Plugin<Response, ResponseNode>;
|
|
87
|
-
//#endregion
|
|
88
|
-
//#region web/url.d.ts
|
|
89
|
-
declare const URLPlugin: import("seroval").Plugin<URL, {
|
|
90
|
-
value: SerovalNode;
|
|
91
|
-
}>;
|
|
92
|
-
//#endregion
|
|
93
|
-
//#region web/url-search-params.d.ts
|
|
94
|
-
declare const URLSearchParamsPlugin: import("seroval").Plugin<URLSearchParams, {
|
|
95
|
-
value: SerovalNode;
|
|
96
|
-
}>;
|
|
97
|
-
declare namespace index_d_exports {
|
|
98
|
-
export { AbortSignalPlugin, BlobPlugin, CustomEventPlugin, DOMExceptionPlugin, EventPlugin, FilePlugin, FormDataPlugin, HeadersPlugin, ImageDataPlugin, ReadableStreamPlugin, RequestPlugin, ResponsePlugin, URLPlugin, URLSearchParamsPlugin };
|
|
99
|
-
}
|
|
100
|
-
//#endregion
|
|
101
|
-
export { RequestPlugin as a, HeadersPlugin as c, EventPlugin as d, DOMExceptionPlugin as f, AbortSignalPlugin as h, ResponsePlugin as i, FormDataPlugin as l, BlobPlugin as m, URLSearchParamsPlugin as n, ReadableStreamPlugin as o, CustomEventPlugin as p, URLPlugin as r, ImageDataPlugin as s, index_d_exports as t, FilePlugin as u };
|
package/dist/index-BiDfEOvR.d.ts
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import { SerovalNode } from "seroval";
|
|
2
|
-
//#region web/abort-signal.d.ts
|
|
3
|
-
declare const AbortSignalPlugin: import("seroval").Plugin<AbortSignal, {
|
|
4
|
-
reason?: SerovalNode;
|
|
5
|
-
controller?: SerovalNode;
|
|
6
|
-
factory?: SerovalNode;
|
|
7
|
-
}>;
|
|
8
|
-
//#endregion
|
|
9
|
-
//#region web/blob.d.ts
|
|
10
|
-
type BlobNode = {
|
|
11
|
-
type: SerovalNode;
|
|
12
|
-
buffer: SerovalNode;
|
|
13
|
-
};
|
|
14
|
-
declare const BlobPlugin: import("seroval").Plugin<Blob, BlobNode>;
|
|
15
|
-
//#endregion
|
|
16
|
-
//#region web/custom-event.d.ts
|
|
17
|
-
type CustomEventNode = {
|
|
18
|
-
type: SerovalNode;
|
|
19
|
-
options: SerovalNode;
|
|
20
|
-
};
|
|
21
|
-
declare const CustomEventPlugin: import("seroval").Plugin<CustomEvent<any>, CustomEventNode>;
|
|
22
|
-
//#endregion
|
|
23
|
-
//#region web/dom-exception.d.ts
|
|
24
|
-
type DOMExceptionNode = {
|
|
25
|
-
name: SerovalNode;
|
|
26
|
-
message: SerovalNode;
|
|
27
|
-
};
|
|
28
|
-
declare const DOMExceptionPlugin: import("seroval").Plugin<DOMException, DOMExceptionNode>;
|
|
29
|
-
//#endregion
|
|
30
|
-
//#region web/event.d.ts
|
|
31
|
-
type EventNode = {
|
|
32
|
-
type: SerovalNode;
|
|
33
|
-
options: SerovalNode;
|
|
34
|
-
};
|
|
35
|
-
declare const EventPlugin: import("seroval").Plugin<Event, EventNode>;
|
|
36
|
-
//#endregion
|
|
37
|
-
//#region web/file.d.ts
|
|
38
|
-
type FileNode = {
|
|
39
|
-
name: SerovalNode;
|
|
40
|
-
options: SerovalNode;
|
|
41
|
-
buffer: SerovalNode;
|
|
42
|
-
};
|
|
43
|
-
declare const FilePlugin: import("seroval").Plugin<File, FileNode>;
|
|
44
|
-
//#endregion
|
|
45
|
-
//#region web/form-data.d.ts
|
|
46
|
-
type FormDataNode = {
|
|
47
|
-
factory: SerovalNode;
|
|
48
|
-
entries: SerovalNode;
|
|
49
|
-
};
|
|
50
|
-
declare const FormDataPlugin: import("seroval").Plugin<FormData, FormDataNode>;
|
|
51
|
-
//#endregion
|
|
52
|
-
//#region web/headers.d.ts
|
|
53
|
-
declare const HeadersPlugin: import("seroval").Plugin<Headers, {
|
|
54
|
-
value: SerovalNode;
|
|
55
|
-
}>;
|
|
56
|
-
//#endregion
|
|
57
|
-
//#region web/image-data.d.ts
|
|
58
|
-
type ImageDataNode = {
|
|
59
|
-
data: SerovalNode;
|
|
60
|
-
width: SerovalNode;
|
|
61
|
-
height: SerovalNode;
|
|
62
|
-
options: SerovalNode;
|
|
63
|
-
};
|
|
64
|
-
declare const ImageDataPlugin: import("seroval").Plugin<ImageData, ImageDataNode>;
|
|
65
|
-
//#endregion
|
|
66
|
-
//#region web/readable-stream.d.ts
|
|
67
|
-
type ReadableStreamNode = {
|
|
68
|
-
factory: SerovalNode;
|
|
69
|
-
stream: SerovalNode;
|
|
70
|
-
};
|
|
71
|
-
declare const ReadableStreamPlugin: import("seroval").Plugin<ReadableStream<any>, ReadableStreamNode>;
|
|
72
|
-
//#endregion
|
|
73
|
-
//#region web/request.d.ts
|
|
74
|
-
type RequestNode = {
|
|
75
|
-
url: SerovalNode;
|
|
76
|
-
options: SerovalNode;
|
|
77
|
-
};
|
|
78
|
-
declare const RequestPlugin: import("seroval").Plugin<Request, RequestNode>;
|
|
79
|
-
//#endregion
|
|
80
|
-
//#region web/response.d.ts
|
|
81
|
-
type ResponseNode = {
|
|
82
|
-
body: SerovalNode;
|
|
83
|
-
options: SerovalNode;
|
|
84
|
-
};
|
|
85
|
-
declare const ResponsePlugin: import("seroval").Plugin<Response, ResponseNode>;
|
|
86
|
-
//#endregion
|
|
87
|
-
//#region web/url.d.ts
|
|
88
|
-
declare const URLPlugin: import("seroval").Plugin<URL, {
|
|
89
|
-
value: SerovalNode;
|
|
90
|
-
}>;
|
|
91
|
-
//#endregion
|
|
92
|
-
//#region web/url-search-params.d.ts
|
|
93
|
-
declare const URLSearchParamsPlugin: import("seroval").Plugin<URLSearchParams, {
|
|
94
|
-
value: SerovalNode;
|
|
95
|
-
}>;
|
|
96
|
-
declare namespace index_d_exports {
|
|
97
|
-
export { AbortSignalPlugin, BlobPlugin, CustomEventPlugin, DOMExceptionPlugin, EventPlugin, FilePlugin, FormDataPlugin, HeadersPlugin, ImageDataPlugin, ReadableStreamPlugin, RequestPlugin, ResponsePlugin, URLPlugin, URLSearchParamsPlugin };
|
|
98
|
-
}
|
|
99
|
-
//#endregion
|
|
100
|
-
export { RequestPlugin as a, HeadersPlugin as c, EventPlugin as d, DOMExceptionPlugin as f, AbortSignalPlugin as h, ResponsePlugin as i, FormDataPlugin as l, BlobPlugin as m, URLSearchParamsPlugin as n, ReadableStreamPlugin as o, CustomEventPlugin as p, URLPlugin as r, ImageDataPlugin as s, index_d_exports as t, FilePlugin as u };
|