chore: restructure repository into packages/ folder (#3197)

We're having a growing number of packages in this repository. This PR
moves them into a `packages/` directory like it's commonly done in other
projects.
This commit is contained in:
Marvin Hagemeister
2025-08-06 15:52:45 +02:00
committed by GitHub
parent 27e407a1e3
commit 815b1940e3
184 changed files with 94 additions and 82 deletions
@@ -0,0 +1,57 @@
export const snapshot = {};
snapshot[`round trip - undefined 1`] = `"-1"`;
snapshot[`round trip - null 1`] = `"-2"`;
snapshot[`round trip - 1 1`] = `"[1]"`;
snapshot[`round trip - 2 1`] = `"[2]"`;
snapshot[`round trip - -2 1`] = `"[-2]"`;
snapshot[`round trip - Infinity 1`] = `"-4"`;
snapshot[`round trip - -Infinity 1`] = `"-5"`;
snapshot[`round trip - 0 1`] = `"[0]"`;
snapshot[`round trip - -0 1`] = `"-6"`;
snapshot[`round trip - NaN 1`] = `"-3"`;
snapshot[`round trip - 0 2`] = `"[0]"`;
snapshot[`round trip - true 1`] = `"[true]"`;
snapshot[`round trip - false 1`] = `"[false]"`;
snapshot[`round trip - 'abc' 1`] = `'["abc"]'`;
snapshot[`round trip - 1n 1`] = `'[["BigInt","1"]]'`;
snapshot[`round trip - -1n 1`] = `'[["BigInt","-1"]]'`;
snapshot[`round trip - [ 1, 2, 3 ] 1`] = `"[[1,2,3],1,2,3]"`;
snapshot[`round trip - [ null, undefined, -2 ] 1`] = `"[[-2,-1,1],-2]"`;
snapshot[`round trip - { a: 1, b: null, c: -2 } 1`] = `'[{"a":1,"b":-2,"c":2},1,-2]'`;
snapshot[`round trip - Uint8Array(3) [ 1, 2, 3 ] 1`] = `'[["Uint8Array","AQID"]]'`;
snapshot[`round trip - URL {\\n href: 'https://fresh.deno.dev/',\\n origin: 'https://fresh.deno.dev',\\n protocol: 'https:',\\n username: '',\\n password: '',\\n host: 'fresh.deno.dev',\\n hostname: 'fresh.deno.dev',\\n port: '',\\n pathname: '/',\\n hash: '',\\n search: ''\\n} 1`] = `'[["URL","https://fresh.deno.dev/"]]'`;
snapshot[`round trip - 1990-05-31T00:00:00.000Z 1`] = `'[["Date","1990-05-31T00:00:00.000Z"]]'`;
snapshot[`round trip - Map(2) { 1 => null, undefined => -2 } 1`] = `'[["Map",[1,-2,-1,2]],1,-2]'`;
snapshot[`round trip - Set(5) { 1, 2, null, -2, NaN } 1`] = `'[["Set",[1,2,-2,3,-3]],1,2,-2]'`;
snapshot[`round trip - [ 1, <1 empty item>, 3 ] 1`] = `"[[1,-7,2],1,3]"`;
snapshot[`round trip - /foo["]/ 1`] = `'[["RegExp","foo[\\\\"]", ""]]'`;
snapshot[`round trip - { a: { foo: 123 }, b: [ { foo: 123 }, { foo: 123 } ] } 1`] = `'[{"a":1,"b":3},{"foo":2},123,[1,1]]'`;
snapshot[`round trip - <ref *1> { a: 1, b: [Circular *1] } 1`] = `'[{"a":1,"b":0},1]'`;