Skip to content

Commit 33bb085

Browse files
authored
Merge pull request #70 from lxsmnsyc/feat-plugin-format
feat: restricted plugin format
2 parents 9ab1da3 + 01bdd75 commit 33bb085

26 files changed

+261
-246
lines changed

.changeset/little-parents-stand.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"seroval-plugins": minor
3+
"seroval": minor
4+
---
5+
6+
feat: restricted plugin format

packages/plugins/tests/web/__snapshots__/abort-signal.test.ts.snap

Lines changed: 63 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,33 @@ exports[`AbortSignal > crossSerializeStream > scoped > supports aborted AbortSig
3939
})($R[1],$R[3]=AbortSignal.abort("aborted!")))($R["example"])"
4040
`;
4141

42-
exports[`AbortSignal > crossSerializeStream > scoped > supports future AbortSignal 1`] = `"($R=>$R[0]=($R[1]=new AbortController).signal)($R["example"])"`;
42+
exports[`AbortSignal > crossSerializeStream > scoped > supports future AbortSignal 1`] = `
43+
"($R=>$R[0]=($R[1]=(promise) => {
44+
const controller = new AbortController();
45+
const abort = controller.abort.bind(controller);
46+
promise.then(abort, abort);
47+
return controller;
48+
})($R[2]=($R[3]=($R[4]=() => {
49+
const resolver = {
50+
p: 0,
51+
s: 0,
52+
f: 0
53+
};
54+
resolver.p = new Promise((resolve, reject) => {
55+
resolver.s = resolve;
56+
resolver.f = reject;
57+
});
58+
return resolver;
59+
})()).p).signal)($R["example"])"
60+
`;
4361

44-
exports[`AbortSignal > crossSerializeStream > scoped > supports future AbortSignal 2`] = `"($R=>$R[2]=$R[1].abort("aborted!"))($R["example"])"`;
62+
exports[`AbortSignal > crossSerializeStream > scoped > supports future AbortSignal 2`] = `
63+
"($R=>($R[5]=(resolver, data) => {
64+
resolver.s(data);
65+
resolver.p.s = 1;
66+
resolver.p.v = data;
67+
})($R[3],"aborted!"))($R["example"])"
68+
`;
4569

4670
exports[`AbortSignal > crossSerializeStream > supports aborted AbortSignal 1`] = `
4771
"$R[0]=($R[1]=($R[2]=() => {
@@ -66,9 +90,33 @@ exports[`AbortSignal > crossSerializeStream > supports aborted AbortSignal 2`] =
6690
})($R[1],$R[3]=AbortSignal.abort("aborted!"))"
6791
`;
6892

69-
exports[`AbortSignal > crossSerializeStream > supports future AbortSignal 1`] = `"$R[0]=($R[1]=new AbortController).signal"`;
93+
exports[`AbortSignal > crossSerializeStream > supports future AbortSignal 1`] = `
94+
"$R[0]=($R[1]=(promise) => {
95+
const controller = new AbortController();
96+
const abort = controller.abort.bind(controller);
97+
promise.then(abort, abort);
98+
return controller;
99+
})($R[2]=($R[3]=($R[4]=() => {
100+
const resolver = {
101+
p: 0,
102+
s: 0,
103+
f: 0
104+
};
105+
resolver.p = new Promise((resolve, reject) => {
106+
resolver.s = resolve;
107+
resolver.f = reject;
108+
});
109+
return resolver;
110+
})()).p).signal"
111+
`;
70112

71-
exports[`AbortSignal > crossSerializeStream > supports future AbortSignal 2`] = `"$R[2]=$R[1].abort("aborted!")"`;
113+
exports[`AbortSignal > crossSerializeStream > supports future AbortSignal 2`] = `
114+
"($R[5]=(resolver, data) => {
115+
resolver.s(data);
116+
resolver.p.s = 1;
117+
resolver.p.v = data;
118+
})($R[3],"aborted!")"
119+
`;
72120

73121
exports[`AbortSignal > serialize > supports aborted AbortSignal 1`] = `"AbortSignal.abort("aborted!")"`;
74122

@@ -78,26 +126,26 @@ exports[`AbortSignal > serializeAsync > supports aborted AbortSignal 1`] = `"Pro
78126

79127
exports[`AbortSignal > serializeAsync > supports future AbortSignal 1`] = `"AbortSignal.abort("aborted!")"`;
80128

81-
exports[`AbortSignal > toCrossJSON > supports aborted AbortSignal 1`] = `"{"t":25,"i":0,"s":{"type":1,"reason":{"t":1,"s":"aborted!"}},"c":"seroval-plugins/web/AbortSignal"}"`;
129+
exports[`AbortSignal > toCrossJSON > supports aborted AbortSignal 1`] = `"{"t":25,"i":0,"s":{"reason":{"t":1,"s":"aborted!"}},"c":"seroval-plugins/web/AbortSignal"}"`;
82130

83-
exports[`AbortSignal > toCrossJSON > supports future AbortSignal 1`] = `"{"t":25,"i":0,"s":{"type":0},"c":"seroval-plugins/web/AbortSignal"}"`;
131+
exports[`AbortSignal > toCrossJSON > supports future AbortSignal 1`] = `"{"t":25,"i":0,"s":{},"c":"seroval-plugins/web/AbortSignal"}"`;
84132

85-
exports[`AbortSignal > toCrossJSONAsync > supports aborted AbortSignal 1`] = `"{"t":12,"i":0,"s":1,"f":{"t":25,"i":1,"s":{"type":1,"reason":{"t":1,"s":"aborted!"}},"c":"seroval-plugins/web/AbortSignal"}}"`;
133+
exports[`AbortSignal > toCrossJSONAsync > supports aborted AbortSignal 1`] = `"{"t":12,"i":0,"s":1,"f":{"t":25,"i":1,"s":{"reason":{"t":1,"s":"aborted!"}},"c":"seroval-plugins/web/AbortSignal"}}"`;
86134

87-
exports[`AbortSignal > toCrossJSONAsync > supports future AbortSignal 1`] = `"{"t":25,"i":0,"s":{"type":1,"reason":{"t":1,"s":"aborted!"}},"c":"seroval-plugins/web/AbortSignal"}"`;
135+
exports[`AbortSignal > toCrossJSONAsync > supports future AbortSignal 1`] = `"{"t":25,"i":0,"s":{"reason":{"t":1,"s":"aborted!"}},"c":"seroval-plugins/web/AbortSignal"}"`;
88136

89137
exports[`AbortSignal > toCrossJSONStream > supports aborted AbortSignal 1`] = `"{"t":22,"i":0,"s":1,"f":{"t":26,"i":2,"s":1}}"`;
90138

91-
exports[`AbortSignal > toCrossJSONStream > supports aborted AbortSignal 2`] = `"{"t":23,"i":1,"a":[{"t":26,"i":4,"s":2},{"t":25,"i":3,"s":{"type":1,"reason":{"t":1,"s":"aborted!"}},"c":"seroval-plugins/web/AbortSignal"}]}"`;
139+
exports[`AbortSignal > toCrossJSONStream > supports aborted AbortSignal 2`] = `"{"t":23,"i":1,"a":[{"t":26,"i":4,"s":2},{"t":25,"i":3,"s":{"reason":{"t":1,"s":"aborted!"}},"c":"seroval-plugins/web/AbortSignal"}]}"`;
92140

93-
exports[`AbortSignal > toCrossJSONStream > supports future AbortSignal 1`] = `"{"t":25,"i":0,"s":{"type":2,"controller":{"t":25,"i":1,"c":"seroval-plugins/web/AbortSignalController"}},"c":"seroval-plugins/web/AbortSignal"}"`;
141+
exports[`AbortSignal > toCrossJSONStream > supports future AbortSignal 1`] = `"{"t":25,"i":0,"s":{"factory":{"t":25,"i":1,"s":{},"c":"seroval-plugins/web/AbortControllerFactoryPlugin"},"controller":{"t":22,"i":2,"s":3,"f":{"t":26,"i":4,"s":1}}},"c":"seroval-plugins/web/AbortSignal"}"`;
94142

95-
exports[`AbortSignal > toCrossJSONStream > supports future AbortSignal 2`] = `"{"t":25,"i":2,"s":{"controller":{"t":4,"i":1},"reason":{"t":1,"s":"aborted!"}},"c":"seroval-plugins/web/AbortSignalAbort"}"`;
143+
exports[`AbortSignal > toCrossJSONStream > supports future AbortSignal 2`] = `"{"t":23,"i":3,"a":[{"t":26,"i":5,"s":2},{"t":1,"s":"aborted!"}]}"`;
96144

97-
exports[`AbortSignal > toJSON > supports aborted AbortSignal 1`] = `"{"t":{"t":25,"i":0,"s":{"type":1,"reason":{"t":1,"s":"aborted!"}},"c":"seroval-plugins/web/AbortSignal"},"f":63,"m":[]}"`;
145+
exports[`AbortSignal > toJSON > supports aborted AbortSignal 1`] = `"{"t":{"t":25,"i":0,"s":{"reason":{"t":1,"s":"aborted!"}},"c":"seroval-plugins/web/AbortSignal"},"f":63,"m":[]}"`;
98146

99-
exports[`AbortSignal > toJSON > supports future AbortSignal 1`] = `"{"t":{"t":25,"i":0,"s":{"type":0},"c":"seroval-plugins/web/AbortSignal"},"f":63,"m":[]}"`;
147+
exports[`AbortSignal > toJSON > supports future AbortSignal 1`] = `"{"t":{"t":25,"i":0,"s":{},"c":"seroval-plugins/web/AbortSignal"},"f":63,"m":[]}"`;
100148

101-
exports[`AbortSignal > toJSONAsync > supports aborted AbortSignal 1`] = `"{"t":{"t":12,"i":0,"s":1,"f":{"t":25,"i":1,"s":{"type":1,"reason":{"t":1,"s":"aborted!"}},"c":"seroval-plugins/web/AbortSignal"}},"f":63,"m":[]}"`;
149+
exports[`AbortSignal > toJSONAsync > supports aborted AbortSignal 1`] = `"{"t":{"t":12,"i":0,"s":1,"f":{"t":25,"i":1,"s":{"reason":{"t":1,"s":"aborted!"}},"c":"seroval-plugins/web/AbortSignal"}},"f":63,"m":[]}"`;
102150

103-
exports[`AbortSignal > toJSONAsync > supports future AbortSignal 1`] = `"{"t":{"t":25,"i":0,"s":{"type":1,"reason":{"t":1,"s":"aborted!"}},"c":"seroval-plugins/web/AbortSignal"},"f":63,"m":[]}"`;
151+
exports[`AbortSignal > toJSONAsync > supports future AbortSignal 1`] = `"{"t":{"t":25,"i":0,"s":{"reason":{"t":1,"s":"aborted!"}},"c":"seroval-plugins/web/AbortSignal"},"f":63,"m":[]}"`;

packages/plugins/tests/web/__snapshots__/form-data.test.ts.snap

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,14 +142,14 @@ exports[`FormData > serializeAsync > supports FormData 1`] = `
142142
})("SGVsbG8gV29ybGQ=")],"hello.txt",{type:"text/plain",lastModified:1681027542680})],["foo-bar",new File([h("Rm9vIEJhcg==")],"foo-bar.txt",{type:"text/plain",lastModified:1681027542680})]]))()"
143143
`;
144144

145-
exports[`FormData > toCrossJSON > supports FormData 1`] = `"{"t":25,"i":0,"s":{"factory":{"t":25,"i":1,"c":"seroval-plugins/web/FormDataFactory"},"entries":{"t":9,"i":2,"a":[{"t":9,"i":3,"a":[{"t":1,"s":"hello"},{"t":1,"s":"world"}],"o":0},{"t":9,"i":4,"a":[{"t":1,"s":"foo"},{"t":1,"s":"bar"}],"o":0}],"o":0}},"c":"seroval-plugins/web/FormData"}"`;
145+
exports[`FormData > toCrossJSON > supports FormData 1`] = `"{"t":25,"i":0,"s":{"factory":{"t":25,"i":1,"s":{},"c":"seroval-plugins/web/FormDataFactory"},"entries":{"t":9,"i":2,"a":[{"t":9,"i":3,"a":[{"t":1,"s":"hello"},{"t":1,"s":"world"}],"o":0},{"t":9,"i":4,"a":[{"t":1,"s":"foo"},{"t":1,"s":"bar"}],"o":0}],"o":0}},"c":"seroval-plugins/web/FormData"}"`;
146146

147-
exports[`FormData > toCrossJSONAsync > supports FormData 1`] = `"{"t":25,"i":0,"s":{"factory":{"t":25,"i":1,"c":"seroval-plugins/web/FormDataFactory"},"entries":{"t":9,"i":2,"a":[{"t":9,"i":3,"a":[{"t":1,"s":"hello-world"},{"t":25,"i":4,"s":{"name":{"t":1,"s":"hello.txt"},"options":{"t":10,"i":5,"p":{"k":["type","lastModified"],"v":[{"t":1,"s":"text/plain"},{"t":0,"s":1681027542680}]},"o":0},"buffer":{"t":19,"i":6,"s":"SGVsbG8gV29ybGQ=","f":{"t":26,"i":7,"s":5}}},"c":"seroval-plugins/web/File"}],"o":0},{"t":9,"i":8,"a":[{"t":1,"s":"foo-bar"},{"t":25,"i":9,"s":{"name":{"t":1,"s":"foo-bar.txt"},"options":{"t":10,"i":10,"p":{"k":["type","lastModified"],"v":[{"t":1,"s":"text/plain"},{"t":0,"s":1681027542680}]},"o":0},"buffer":{"t":19,"i":11,"s":"Rm9vIEJhcg==","f":{"t":4,"i":7}}},"c":"seroval-plugins/web/File"}],"o":0}],"o":0}},"c":"seroval-plugins/web/FormData"}"`;
147+
exports[`FormData > toCrossJSONAsync > supports FormData 1`] = `"{"t":25,"i":0,"s":{"factory":{"t":25,"i":1,"s":{},"c":"seroval-plugins/web/FormDataFactory"},"entries":{"t":9,"i":2,"a":[{"t":9,"i":3,"a":[{"t":1,"s":"hello-world"},{"t":25,"i":4,"s":{"name":{"t":1,"s":"hello.txt"},"options":{"t":10,"i":5,"p":{"k":["type","lastModified"],"v":[{"t":1,"s":"text/plain"},{"t":0,"s":1681027542680}]},"o":0},"buffer":{"t":19,"i":6,"s":"SGVsbG8gV29ybGQ=","f":{"t":26,"i":7,"s":5}}},"c":"seroval-plugins/web/File"}],"o":0},{"t":9,"i":8,"a":[{"t":1,"s":"foo-bar"},{"t":25,"i":9,"s":{"name":{"t":1,"s":"foo-bar.txt"},"options":{"t":10,"i":10,"p":{"k":["type","lastModified"],"v":[{"t":1,"s":"text/plain"},{"t":0,"s":1681027542680}]},"o":0},"buffer":{"t":19,"i":11,"s":"Rm9vIEJhcg==","f":{"t":4,"i":7}}},"c":"seroval-plugins/web/File"}],"o":0}],"o":0}},"c":"seroval-plugins/web/FormData"}"`;
148148

149149
exports[`FormData > toCrossJSONStream > supports FormData 1`] = `"{"t":22,"i":0,"s":1,"f":{"t":26,"i":2,"s":1}}"`;
150150

151-
exports[`FormData > toCrossJSONStream > supports FormData 2`] = `"{"t":23,"i":1,"a":[{"t":26,"i":8,"s":2},{"t":25,"i":3,"s":{"factory":{"t":25,"i":4,"c":"seroval-plugins/web/FormDataFactory"},"entries":{"t":9,"i":5,"a":[{"t":9,"i":6,"a":[{"t":1,"s":"hello"},{"t":1,"s":"world"}],"o":0},{"t":9,"i":7,"a":[{"t":1,"s":"foo"},{"t":1,"s":"bar"}],"o":0}],"o":0}},"c":"seroval-plugins/web/FormData"}]}"`;
151+
exports[`FormData > toCrossJSONStream > supports FormData 2`] = `"{"t":23,"i":1,"a":[{"t":26,"i":8,"s":2},{"t":25,"i":3,"s":{"factory":{"t":25,"i":4,"s":{},"c":"seroval-plugins/web/FormDataFactory"},"entries":{"t":9,"i":5,"a":[{"t":9,"i":6,"a":[{"t":1,"s":"hello"},{"t":1,"s":"world"}],"o":0},{"t":9,"i":7,"a":[{"t":1,"s":"foo"},{"t":1,"s":"bar"}],"o":0}],"o":0}},"c":"seroval-plugins/web/FormData"}]}"`;
152152

153-
exports[`FormData > toJSON > supports FormData 1`] = `"{"t":{"t":25,"i":0,"s":{"factory":{"t":25,"i":1,"c":"seroval-plugins/web/FormDataFactory"},"entries":{"t":9,"i":2,"a":[{"t":9,"i":3,"a":[{"t":1,"s":"hello"},{"t":1,"s":"world"}],"o":0},{"t":9,"i":4,"a":[{"t":1,"s":"foo"},{"t":1,"s":"bar"}],"o":0}],"o":0}},"c":"seroval-plugins/web/FormData"},"f":63,"m":[]}"`;
153+
exports[`FormData > toJSON > supports FormData 1`] = `"{"t":{"t":25,"i":0,"s":{"factory":{"t":25,"i":1,"s":{},"c":"seroval-plugins/web/FormDataFactory"},"entries":{"t":9,"i":2,"a":[{"t":9,"i":3,"a":[{"t":1,"s":"hello"},{"t":1,"s":"world"}],"o":0},{"t":9,"i":4,"a":[{"t":1,"s":"foo"},{"t":1,"s":"bar"}],"o":0}],"o":0}},"c":"seroval-plugins/web/FormData"},"f":63,"m":[]}"`;
154154

155-
exports[`FormData > toJSONAsync > supports FormData 1`] = `"{"t":{"t":25,"i":0,"s":{"factory":{"t":25,"i":1,"c":"seroval-plugins/web/FormDataFactory"},"entries":{"t":9,"i":2,"a":[{"t":9,"i":3,"a":[{"t":1,"s":"hello-world"},{"t":25,"i":4,"s":{"name":{"t":1,"s":"hello.txt"},"options":{"t":10,"i":5,"p":{"k":["type","lastModified"],"v":[{"t":1,"s":"text/plain"},{"t":0,"s":1681027542680}]},"o":0},"buffer":{"t":19,"i":6,"s":"SGVsbG8gV29ybGQ=","f":{"t":26,"i":7,"s":5}}},"c":"seroval-plugins/web/File"}],"o":0},{"t":9,"i":8,"a":[{"t":1,"s":"foo-bar"},{"t":25,"i":9,"s":{"name":{"t":1,"s":"foo-bar.txt"},"options":{"t":10,"i":10,"p":{"k":["type","lastModified"],"v":[{"t":1,"s":"text/plain"},{"t":0,"s":1681027542680}]},"o":0},"buffer":{"t":19,"i":11,"s":"Rm9vIEJhcg==","f":{"t":4,"i":7}}},"c":"seroval-plugins/web/File"}],"o":0}],"o":0}},"c":"seroval-plugins/web/FormData"},"f":63,"m":[7]}"`;
155+
exports[`FormData > toJSONAsync > supports FormData 1`] = `"{"t":{"t":25,"i":0,"s":{"factory":{"t":25,"i":1,"s":{},"c":"seroval-plugins/web/FormDataFactory"},"entries":{"t":9,"i":2,"a":[{"t":9,"i":3,"a":[{"t":1,"s":"hello-world"},{"t":25,"i":4,"s":{"name":{"t":1,"s":"hello.txt"},"options":{"t":10,"i":5,"p":{"k":["type","lastModified"],"v":[{"t":1,"s":"text/plain"},{"t":0,"s":1681027542680}]},"o":0},"buffer":{"t":19,"i":6,"s":"SGVsbG8gV29ybGQ=","f":{"t":26,"i":7,"s":5}}},"c":"seroval-plugins/web/File"}],"o":0},{"t":9,"i":8,"a":[{"t":1,"s":"foo-bar"},{"t":25,"i":9,"s":{"name":{"t":1,"s":"foo-bar.txt"},"options":{"t":10,"i":10,"p":{"k":["type","lastModified"],"v":[{"t":1,"s":"text/plain"},{"t":0,"s":1681027542680}]},"o":0},"buffer":{"t":19,"i":11,"s":"Rm9vIEJhcg==","f":{"t":4,"i":7}}},"c":"seroval-plugins/web/File"}],"o":0}],"o":0}},"c":"seroval-plugins/web/FormData"},"f":63,"m":[7]}"`;

packages/plugins/tests/web/__snapshots__/headers.test.ts.snap

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,14 @@ exports[`Headers > serialize > supports Headers 1`] = `"new Headers([["content-e
5858

5959
exports[`Headers > serializeAsync > supports Headers 1`] = `"Promise.resolve(new Headers([["content-encoding","gzip"],["content-type","text/plain"]]))"`;
6060

61-
exports[`Headers > toCrossJSON > supports Headers 1`] = `"{"t":25,"i":0,"s":{"t":9,"i":1,"a":[{"t":9,"i":2,"a":[{"t":1,"s":"content-encoding"},{"t":1,"s":"gzip"}],"o":0},{"t":9,"i":3,"a":[{"t":1,"s":"content-type"},{"t":1,"s":"text/plain"}],"o":0}],"o":0},"c":"seroval-plugins/web/Headers"}"`;
61+
exports[`Headers > toCrossJSON > supports Headers 1`] = `"{"t":25,"i":0,"s":{"value":{"t":9,"i":1,"a":[{"t":9,"i":2,"a":[{"t":1,"s":"content-encoding"},{"t":1,"s":"gzip"}],"o":0},{"t":9,"i":3,"a":[{"t":1,"s":"content-type"},{"t":1,"s":"text/plain"}],"o":0}],"o":0}},"c":"seroval-plugins/web/Headers"}"`;
6262

63-
exports[`Headers > toCrossJSONAsync > supports Headers 1`] = `"{"t":12,"i":0,"s":1,"f":{"t":25,"i":1,"s":{"t":9,"i":2,"a":[{"t":9,"i":3,"a":[{"t":1,"s":"content-encoding"},{"t":1,"s":"gzip"}],"o":0},{"t":9,"i":4,"a":[{"t":1,"s":"content-type"},{"t":1,"s":"text/plain"}],"o":0}],"o":0},"c":"seroval-plugins/web/Headers"}}"`;
63+
exports[`Headers > toCrossJSONAsync > supports Headers 1`] = `"{"t":12,"i":0,"s":1,"f":{"t":25,"i":1,"s":{"value":{"t":9,"i":2,"a":[{"t":9,"i":3,"a":[{"t":1,"s":"content-encoding"},{"t":1,"s":"gzip"}],"o":0},{"t":9,"i":4,"a":[{"t":1,"s":"content-type"},{"t":1,"s":"text/plain"}],"o":0}],"o":0}},"c":"seroval-plugins/web/Headers"}}"`;
6464

6565
exports[`Headers > toCrossJSONStream > supports Headers 1`] = `"{"t":22,"i":0,"s":1,"f":{"t":26,"i":2,"s":1}}"`;
6666

67-
exports[`Headers > toCrossJSONStream > supports Headers 2`] = `"{"t":23,"i":1,"a":[{"t":26,"i":7,"s":2},{"t":25,"i":3,"s":{"t":9,"i":4,"a":[{"t":9,"i":5,"a":[{"t":1,"s":"content-encoding"},{"t":1,"s":"gzip"}],"o":0},{"t":9,"i":6,"a":[{"t":1,"s":"content-type"},{"t":1,"s":"text/plain"}],"o":0}],"o":0},"c":"seroval-plugins/web/Headers"}]}"`;
67+
exports[`Headers > toCrossJSONStream > supports Headers 2`] = `"{"t":23,"i":1,"a":[{"t":26,"i":7,"s":2},{"t":25,"i":3,"s":{"value":{"t":9,"i":4,"a":[{"t":9,"i":5,"a":[{"t":1,"s":"content-encoding"},{"t":1,"s":"gzip"}],"o":0},{"t":9,"i":6,"a":[{"t":1,"s":"content-type"},{"t":1,"s":"text/plain"}],"o":0}],"o":0}},"c":"seroval-plugins/web/Headers"}]}"`;
6868

69-
exports[`Headers > toJSON > supports Headers 1`] = `"{"t":{"t":25,"i":0,"s":{"t":9,"i":1,"a":[{"t":9,"i":2,"a":[{"t":1,"s":"content-encoding"},{"t":1,"s":"gzip"}],"o":0},{"t":9,"i":3,"a":[{"t":1,"s":"content-type"},{"t":1,"s":"text/plain"}],"o":0}],"o":0},"c":"seroval-plugins/web/Headers"},"f":63,"m":[]}"`;
69+
exports[`Headers > toJSON > supports Headers 1`] = `"{"t":{"t":25,"i":0,"s":{"value":{"t":9,"i":1,"a":[{"t":9,"i":2,"a":[{"t":1,"s":"content-encoding"},{"t":1,"s":"gzip"}],"o":0},{"t":9,"i":3,"a":[{"t":1,"s":"content-type"},{"t":1,"s":"text/plain"}],"o":0}],"o":0}},"c":"seroval-plugins/web/Headers"},"f":63,"m":[]}"`;
7070

71-
exports[`Headers > toJSONAsync > supports Headers 1`] = `"{"t":{"t":12,"i":0,"s":1,"f":{"t":25,"i":1,"s":{"t":9,"i":2,"a":[{"t":9,"i":3,"a":[{"t":1,"s":"content-encoding"},{"t":1,"s":"gzip"}],"o":0},{"t":9,"i":4,"a":[{"t":1,"s":"content-type"},{"t":1,"s":"text/plain"}],"o":0}],"o":0},"c":"seroval-plugins/web/Headers"}},"f":63,"m":[]}"`;
71+
exports[`Headers > toJSONAsync > supports Headers 1`] = `"{"t":{"t":12,"i":0,"s":1,"f":{"t":25,"i":1,"s":{"value":{"t":9,"i":2,"a":[{"t":9,"i":3,"a":[{"t":1,"s":"content-encoding"},{"t":1,"s":"gzip"}],"o":0},{"t":9,"i":4,"a":[{"t":1,"s":"content-type"},{"t":1,"s":"text/plain"}],"o":0}],"o":0}},"c":"seroval-plugins/web/Headers"}},"f":63,"m":[]}"`;

0 commit comments

Comments
 (0)