Skip to content

Commit

Permalink
Fix node version
Browse files Browse the repository at this point in the history
  • Loading branch information
lxsmnsyc committed Dec 21, 2024
1 parent c7e5942 commit ad88e39
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 20
node-version: 22
cache: "pnpm"

- name: Clean
Expand Down
16 changes: 8 additions & 8 deletions packages/seroval/test/__snapshots__/abort-signal.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -10,56 +10,56 @@ exports[`AbortSignal > crossSerialize > supports future AbortSignal 1`] = `"$R[0

exports[`AbortSignal > crossSerializeAsync > scoped > supports aborted AbortSignal 1`] = `"($R=>$R[0]=Promise.resolve($R[1]=AbortSignal.abort("aborted!")))($R["example"])"`;

exports[`AbortSignal > crossSerializeAsync > scoped > supports future AbortSignal 1`] = `"($R=>$R[0]=AbortSignal.abort($R[1]=Object.assign(new Error("The operation was aborted due to timeout"),{name:"TimeoutError",stack:"TimeoutError: The operation was aborted due to timeout\\n at new DOMException (node:internal/per_context/domexception:53:5)\\n at Timeout._onTimeout (node:internal/abort_controller:130:9)\\n at listOnTimeout (node:internal/timers:573:17)\\n at processTimers (node:internal/timers:514:7)"})))($R["example"])"`;
exports[`AbortSignal > crossSerializeAsync > scoped > supports future AbortSignal 1`] = `"($R=>$R[0]=AbortSignal.abort($R[1]=Object.assign(new Error("The operation was aborted due to timeout"),{name:"TimeoutError",stack:"TimeoutError: The operation was aborted due to timeout\\n at new DOMException (node:internal/per_context/domexception:53:5)\\n at Timeout._onTimeout (node:internal/abort_controller:141:9)\\n at listOnTimeout (node:internal/timers:594:17)\\n at processTimers (node:internal/timers:529:7)"})))($R["example"])"`;

exports[`AbortSignal > crossSerializeAsync > supports aborted AbortSignal 1`] = `"$R[0]=Promise.resolve($R[1]=AbortSignal.abort("aborted!"))"`;

exports[`AbortSignal > crossSerializeAsync > supports future AbortSignal 1`] = `"$R[0]=AbortSignal.abort($R[1]=Object.assign(new Error("The operation was aborted due to timeout"),{name:"TimeoutError",stack:"TimeoutError: The operation was aborted due to timeout\\n at new DOMException (node:internal/per_context/domexception:53:5)\\n at Timeout._onTimeout (node:internal/abort_controller:130:9)\\n at listOnTimeout (node:internal/timers:573:17)\\n at processTimers (node:internal/timers:514:7)"}))"`;
exports[`AbortSignal > crossSerializeAsync > supports future AbortSignal 1`] = `"$R[0]=AbortSignal.abort($R[1]=Object.assign(new Error("The operation was aborted due to timeout"),{name:"TimeoutError",stack:"TimeoutError: The operation was aborted due to timeout\\n at new DOMException (node:internal/per_context/domexception:53:5)\\n at Timeout._onTimeout (node:internal/abort_controller:141:9)\\n at listOnTimeout (node:internal/timers:594:17)\\n at processTimers (node:internal/timers:529:7)"}))"`;

exports[`AbortSignal > crossSerializeStream > scoped > supports aborted AbortSignal 1`] = `"($R=>$R[0]=($R[1]=(s,f,p)=>((p=new Promise((a,b)=>{s=a,f=b})).s=s,p.f=f,p))())($R["example"])"`;

exports[`AbortSignal > crossSerializeStream > scoped > supports aborted AbortSignal 2`] = `"($R=>($R[3]=(p,d)=>{p.s(d),p.status="success",p.value=d;delete p.s;delete p.f})($R[0],$R[2]=AbortSignal.abort("aborted!")))($R["example"])"`;

exports[`AbortSignal > crossSerializeStream > scoped > supports future AbortSignal 1`] = `"($R=>$R[0]=($R[1]=(a,s)=>((s=(a=new AbortController).signal).a=a,s))())($R["example"])"`;

exports[`AbortSignal > crossSerializeStream > scoped > supports future AbortSignal 2`] = `"($R=>($R[3]=(s,r)=>{s.a.abort(r);delete s.a})($R[0],$R[2]=Object.assign(new Error("The operation was aborted due to timeout"),{name:"TimeoutError",stack:"TimeoutError: The operation was aborted due to timeout\\n at new DOMException (node:internal/per_context/domexception:53:5)\\n at Timeout._onTimeout (node:internal/abort_controller:130:9)\\n at listOnTimeout (node:internal/timers:573:17)\\n at processTimers (node:internal/timers:514:7)"})))($R["example"])"`;
exports[`AbortSignal > crossSerializeStream > scoped > supports future AbortSignal 2`] = `"($R=>($R[3]=(s,r)=>{s.a.abort(r);delete s.a})($R[0],$R[2]=Object.assign(new Error("The operation was aborted due to timeout"),{name:"TimeoutError",stack:"TimeoutError: The operation was aborted due to timeout\\n at new DOMException (node:internal/per_context/domexception:53:5)\\n at Timeout._onTimeout (node:internal/abort_controller:141:9)\\n at listOnTimeout (node:internal/timers:594:17)\\n at processTimers (node:internal/timers:529:7)"})))($R["example"])"`;

exports[`AbortSignal > crossSerializeStream > supports aborted AbortSignal 1`] = `"$R[0]=($R[1]=(s,f,p)=>((p=new Promise((a,b)=>{s=a,f=b})).s=s,p.f=f,p))()"`;

exports[`AbortSignal > crossSerializeStream > supports aborted AbortSignal 2`] = `"($R[3]=(p,d)=>{p.s(d),p.status="success",p.value=d;delete p.s;delete p.f})($R[0],$R[2]=AbortSignal.abort("aborted!"))"`;

exports[`AbortSignal > crossSerializeStream > supports future AbortSignal 1`] = `"$R[0]=($R[1]=(a,s)=>((s=(a=new AbortController).signal).a=a,s))()"`;

exports[`AbortSignal > crossSerializeStream > supports future AbortSignal 2`] = `"($R[3]=(s,r)=>{s.a.abort(r);delete s.a})($R[0],$R[2]=Object.assign(new Error("The operation was aborted due to timeout"),{name:"TimeoutError",stack:"TimeoutError: The operation was aborted due to timeout\\n at new DOMException (node:internal/per_context/domexception:53:5)\\n at Timeout._onTimeout (node:internal/abort_controller:130:9)\\n at listOnTimeout (node:internal/timers:573:17)\\n at processTimers (node:internal/timers:514:7)"}))"`;
exports[`AbortSignal > crossSerializeStream > supports future AbortSignal 2`] = `"($R[3]=(s,r)=>{s.a.abort(r);delete s.a})($R[0],$R[2]=Object.assign(new Error("The operation was aborted due to timeout"),{name:"TimeoutError",stack:"TimeoutError: The operation was aborted due to timeout\\n at new DOMException (node:internal/per_context/domexception:53:5)\\n at Timeout._onTimeout (node:internal/abort_controller:141:9)\\n at listOnTimeout (node:internal/timers:594:17)\\n at processTimers (node:internal/timers:529:7)"}))"`;

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

exports[`AbortSignal > serialize > supports future AbortSignal 1`] = `"(h=>((a,s)=>((s=(a=new AbortController).signal).a=a,s))())()"`;

exports[`AbortSignal > serializeAsync > supports aborted AbortSignal 1`] = `"Promise.resolve(AbortSignal.abort("aborted!"))"`;

exports[`AbortSignal > serializeAsync > supports future AbortSignal 1`] = `"AbortSignal.abort(Object.assign(new Error("The operation was aborted due to timeout"),{name:"TimeoutError",stack:"TimeoutError: The operation was aborted due to timeout\\n at new DOMException (node:internal/per_context/domexception:53:5)\\n at Timeout._onTimeout (node:internal/abort_controller:130:9)\\n at listOnTimeout (node:internal/timers:573:17)\\n at processTimers (node:internal/timers:514:7)"}))"`;
exports[`AbortSignal > serializeAsync > supports future AbortSignal 1`] = `"AbortSignal.abort(Object.assign(new Error("The operation was aborted due to timeout"),{name:"TimeoutError",stack:"TimeoutError: The operation was aborted due to timeout\\n at new DOMException (node:internal/per_context/domexception:53:5)\\n at Timeout._onTimeout (node:internal/abort_controller:141:9)\\n at listOnTimeout (node:internal/timers:594:17)\\n at processTimers (node:internal/timers:529:7)"}))"`;

exports[`AbortSignal > toCrossJSON > supports aborted AbortSignal 1`] = `"{"t":37,"i":0,"f":{"t":1,"s":"aborted!"}}"`;

exports[`AbortSignal > toCrossJSON > supports future AbortSignal 1`] = `"{"t":35,"i":0,"f":{"t":26,"i":1,"s":5}}"`;

exports[`AbortSignal > toCrossJSONAsync > supports aborted AbortSignal 1`] = `"{"t":12,"i":0,"s":1,"f":{"t":37,"i":1,"f":{"t":1,"s":"aborted!"}}}"`;

exports[`AbortSignal > toCrossJSONAsync > supports future AbortSignal 1`] = `"{"t":37,"i":0,"f":{"t":13,"i":1,"s":0,"m":"The operation was aborted due to timeout","p":{"k":["name","stack"],"v":[{"t":1,"s":"TimeoutError"},{"t":1,"s":"TimeoutError: The operation was aborted due to timeout\\\\n at new DOMException (node:internal/per_context/domexception:53:5)\\\\n at Timeout._onTimeout (node:internal/abort_controller:130:9)\\\\n at listOnTimeout (node:internal/timers:573:17)\\\\n at processTimers (node:internal/timers:514:7)"}],"s":2}}}"`;
exports[`AbortSignal > toCrossJSONAsync > supports future AbortSignal 1`] = `"{"t":37,"i":0,"f":{"t":13,"i":1,"s":0,"m":"The operation was aborted due to timeout","p":{"k":["name","stack"],"v":[{"t":1,"s":"TimeoutError"},{"t":1,"s":"TimeoutError: The operation was aborted due to timeout\\\\n at new DOMException (node:internal/per_context/domexception:53:5)\\\\n at Timeout._onTimeout (node:internal/abort_controller:141:9)\\\\n at listOnTimeout (node:internal/timers:594:17)\\\\n at processTimers (node:internal/timers:529:7)"}],"s":2}}}"`;

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

exports[`AbortSignal > toCrossJSONStream > supports aborted AbortSignal 2`] = `"{"t":23,"i":0,"a":[{"t":26,"i":3,"s":2},{"t":37,"i":2,"f":{"t":1,"s":"aborted!"}}]}"`;

exports[`AbortSignal > toCrossJSONStream > supports future AbortSignal 1`] = `"{"t":35,"i":0,"f":{"t":26,"i":1,"s":5}}"`;

exports[`AbortSignal > toCrossJSONStream > supports future AbortSignal 2`] = `"{"t":36,"i":0,"a":[{"t":26,"i":3,"s":6},{"t":13,"i":2,"s":0,"m":"The operation was aborted due to timeout","p":{"k":["name","stack"],"v":[{"t":1,"s":"TimeoutError"},{"t":1,"s":"TimeoutError: The operation was aborted due to timeout\\\\n at new DOMException (node:internal/per_context/domexception:53:5)\\\\n at Timeout._onTimeout (node:internal/abort_controller:130:9)\\\\n at listOnTimeout (node:internal/timers:573:17)\\\\n at processTimers (node:internal/timers:514:7)"}],"s":2}}]}"`;
exports[`AbortSignal > toCrossJSONStream > supports future AbortSignal 2`] = `"{"t":36,"i":0,"a":[{"t":26,"i":3,"s":6},{"t":13,"i":2,"s":0,"m":"The operation was aborted due to timeout","p":{"k":["name","stack"],"v":[{"t":1,"s":"TimeoutError"},{"t":1,"s":"TimeoutError: The operation was aborted due to timeout\\\\n at new DOMException (node:internal/per_context/domexception:53:5)\\\\n at Timeout._onTimeout (node:internal/abort_controller:141:9)\\\\n at listOnTimeout (node:internal/timers:594:17)\\\\n at processTimers (node:internal/timers:529:7)"}],"s":2}}]}"`;

exports[`AbortSignal > toJSON > supports aborted AbortSignal 1`] = `"{"t":{"t":37,"i":0,"f":{"t":1,"s":"aborted!"}},"f":47,"m":[]}"`;

exports[`AbortSignal > toJSON > supports future AbortSignal 1`] = `"{"t":{"t":35,"i":0,"f":{"t":26,"i":1,"s":5}},"f":47,"m":[]}"`;

exports[`AbortSignal > toJSONAsync > supports aborted AbortSignal 1`] = `"{"t":{"t":12,"i":0,"s":1,"f":{"t":37,"i":1,"f":{"t":1,"s":"aborted!"}}},"f":47,"m":[]}"`;

exports[`AbortSignal > toJSONAsync > supports future AbortSignal 1`] = `"{"t":{"t":37,"i":0,"f":{"t":13,"i":1,"s":0,"m":"The operation was aborted due to timeout","p":{"k":["name","stack"],"v":[{"t":1,"s":"TimeoutError"},{"t":1,"s":"TimeoutError: The operation was aborted due to timeout\\\\n at new DOMException (node:internal/per_context/domexception:53:5)\\\\n at Timeout._onTimeout (node:internal/abort_controller:130:9)\\\\n at listOnTimeout (node:internal/timers:573:17)\\\\n at processTimers (node:internal/timers:514:7)"}],"s":2}}},"f":47,"m":[]}"`;
exports[`AbortSignal > toJSONAsync > supports future AbortSignal 1`] = `"{"t":{"t":37,"i":0,"f":{"t":13,"i":1,"s":0,"m":"The operation was aborted due to timeout","p":{"k":["name","stack"],"v":[{"t":1,"s":"TimeoutError"},{"t":1,"s":"TimeoutError: The operation was aborted due to timeout\\\\n at new DOMException (node:internal/per_context/domexception:53:5)\\\\n at Timeout._onTimeout (node:internal/abort_controller:141:9)\\\\n at listOnTimeout (node:internal/timers:594:17)\\\\n at processTimers (node:internal/timers:529:7)"}],"s":2}}},"f":47,"m":[]}"`;

0 comments on commit ad88e39

Please sign in to comment.