@nullix/zod-mongoose-studio 3.3.1 → 3.3.3
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/.output/nitro.json +1 -1
- package/.output/public/_nuxt/{BCIlnd0g.js → 5ZXm4f56.js} +1 -1
- package/.output/public/_nuxt/{DcJ7oPvZ.js → B2fcLSyW.js} +1 -1
- package/.output/public/_nuxt/{B0N6xv5E.js → BBN7l5Hn.js} +1 -1
- package/.output/public/_nuxt/BBTTtb8r.js +41 -0
- package/.output/public/_nuxt/{5Tu2WUJz.js → BDbISGvP.js} +1 -1
- package/.output/public/_nuxt/{D87QMS6j.js → BijI4RNx.js} +1 -1
- package/.output/public/_nuxt/{C2BHp-MG.js → Bp9qkJ9m.js} +1 -1
- package/.output/public/_nuxt/{I3Ucam2s.js → Bu3-sqCf.js} +1 -1
- package/.output/public/_nuxt/{BO4hqv6q.js → C-FtTvwz.js} +1 -1
- package/.output/public/_nuxt/C02JV0Aj.js +1 -0
- package/.output/public/_nuxt/{sKEJiAHO.js → C1UkIsDc.js} +1 -1
- package/.output/public/_nuxt/{CKULsFUz.js → CJT28r6J.js} +1 -1
- package/.output/public/_nuxt/{BNDnV2op.js → CL7qtgl2.js} +3 -3
- package/.output/public/_nuxt/{DA0pQuyP.js → CRMd2YH2.js} +3 -3
- package/.output/public/_nuxt/{DpKrXpkK.js → CRkdQgFz.js} +1 -1
- package/.output/public/_nuxt/{B0cUlOSM.js → Cw1XFOz5.js} +1 -1
- package/.output/public/_nuxt/{CzbCpNnc.js → D5yWk6Ly.js} +1 -1
- package/.output/public/_nuxt/{BOsJJ_ZU.js → DA9GjKpR.js} +1 -1
- package/.output/public/_nuxt/{Dce9SnGa.js → DaWAlZhp.js} +1 -1
- package/.output/public/_nuxt/{tqQNlhT9.js → DafLMUHo.js} +1 -1
- package/.output/public/_nuxt/{ypRHVLFO.js → Dyaldc-t.js} +1 -1
- package/.output/public/_nuxt/{o-NCh2rp.js → UU9fpRNQ.js} +1 -1
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/717459d8-0da1-42ed-af0b-9ec5395e8fdc.json +1 -0
- package/.output/public/_nuxt/entry.CDPplHzk.css +1 -0
- package/.output/public/_nuxt/error-404.hPtlUQpd.css +1 -0
- package/.output/public/_nuxt/error-500.E-PXUb6B.css +1 -0
- package/.output/public/_nuxt/{CMH9iX_E.js → kFZJW2-u.js} +2 -2
- package/.output/public/_nuxt/{DsnIpnT9.js → u3DlT5Mh.js} +1 -1
- package/.output/server/chunks/_/error-500.mjs.map +1 -1
- package/.output/server/chunks/_/parse-request.mjs +29 -0
- package/.output/server/chunks/_/parse-request.mjs.map +1 -0
- package/.output/server/chunks/build/client.precomputed.mjs +1 -1
- package/.output/server/chunks/build/{error-404-KRkA0DPI.mjs → error-404-aQ5PiVuX.mjs} +6 -12
- package/.output/server/chunks/build/error-404-aQ5PiVuX.mjs.map +1 -0
- package/.output/server/chunks/build/error-404-styles.DIZfBVBR.mjs +8 -0
- package/.output/server/chunks/build/error-404-styles.DIZfBVBR.mjs.map +1 -0
- package/.output/server/chunks/build/{error-500-DIIFf55p.mjs → error-500-BY6ZAZZ2.mjs} +6 -12
- package/.output/server/chunks/build/error-500-BY6ZAZZ2.mjs.map +1 -0
- package/.output/server/chunks/build/error-500-styles.BZXgEzR5.mjs +8 -0
- package/.output/server/chunks/build/error-500-styles.BZXgEzR5.mjs.map +1 -0
- package/.output/server/chunks/build/index-57_mtIua.mjs +235 -0
- package/.output/server/chunks/build/index-57_mtIua.mjs.map +1 -0
- package/.output/server/chunks/build/{index-CB1N4gax.mjs → index-Qa-4KqCB.mjs} +7 -13
- package/.output/server/chunks/build/index-Qa-4KqCB.mjs.map +1 -0
- package/.output/server/chunks/build/server.mjs +3913 -3378
- package/.output/server/chunks/build/server.mjs.map +1 -1
- package/.output/server/chunks/build/styles.mjs +4 -4
- package/.output/server/chunks/nitro/nitro.mjs +652 -2278
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -1
- package/.output/server/chunks/routes/api/editor-types.get.mjs +91 -28
- package/.output/server/chunks/routes/api/editor-types.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/parse.post.mjs +1599 -7
- package/.output/server/chunks/routes/api/parse.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/resolve.get.mjs +0 -6
- package/.output/server/chunks/routes/api/resolve.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/studio/run.post.mjs +50 -12
- package/.output/server/chunks/routes/api/studio/run.post.mjs.map +1 -1
- package/.output/server/chunks/routes/renderer.mjs +21 -44
- package/.output/server/chunks/routes/renderer.mjs.map +1 -1
- package/.output/server/index.mjs +1 -7
- package/.output/server/index.mjs.map +1 -1
- package/.output/server/node_modules/.nitro/@vue/compiler-core@3.5.43/dist/compiler-core.cjs.prod.js +6801 -0
- package/.output/server/node_modules/.nitro/@vue/compiler-core@3.5.43/package.json +58 -0
- package/.output/server/node_modules/.nitro/@vue/compiler-dom@3.5.43/dist/compiler-dom.cjs.prod.js +692 -0
- package/.output/server/node_modules/.nitro/@vue/compiler-dom@3.5.43/package.json +57 -0
- package/.output/server/node_modules/.nitro/@vue/reactivity@3.5.43/dist/reactivity.cjs.prod.js +1905 -0
- package/.output/server/node_modules/.nitro/@vue/reactivity@3.5.43/package.json +55 -0
- package/.output/server/node_modules/.nitro/@vue/runtime-core@3.5.43/dist/runtime-core.cjs.prod.js +7006 -0
- package/.output/server/node_modules/.nitro/@vue/runtime-core@3.5.43/package.json +52 -0
- package/.output/server/node_modules/.nitro/@vue/runtime-dom@3.5.43/dist/runtime-dom.cjs.prod.js +1867 -0
- package/.output/server/node_modules/.nitro/@vue/runtime-dom@3.5.43/package.json +60 -0
- package/.output/server/node_modules/.nitro/@vue/shared@3.5.43/dist/shared.cjs.prod.js +655 -0
- package/.output/server/node_modules/.nitro/@vue/shared@3.5.43/package.json +47 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/array-set.js +121 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/base64-vlq.js +140 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/base64.js +67 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/binary-search.js +111 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/mapping-list.js +79 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/quick-sort.js +141 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/source-map-consumer.js +1236 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/source-map-generator.js +446 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/source-node.js +420 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/lib/util.js +594 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/package.json +71 -0
- package/.output/server/node_modules/.nitro/source-map-js@1.2.2/source-map.js +8 -0
- package/.output/server/node_modules/.nitro/vue@3.5.43/dist/vue.cjs.js +80 -0
- package/.output/server/node_modules/.nitro/vue@3.5.43/dist/vue.cjs.prod.js +66 -0
- package/.output/server/node_modules/.nitro/vue@3.5.43/index.js +7 -0
- package/.output/server/node_modules/.nitro/vue@3.5.43/index.mjs +1 -0
- package/.output/server/node_modules/.nitro/vue@3.5.43/package.json +112 -0
- package/.output/server/node_modules/@babel/parser/lib/index.js +55 -21
- package/.output/server/node_modules/@babel/parser/package.json +7 -7
- package/.output/server/node_modules/@esbuild/linux-x64/bin/esbuild +0 -0
- package/.output/server/node_modules/@esbuild/linux-x64/package.json +1 -1
- package/.output/server/node_modules/@iconify/utils/lib/colors/index.js +19 -16
- package/.output/server/node_modules/@iconify/utils/lib/colors/keywords.js +3 -4
- package/.output/server/node_modules/@iconify/utils/lib/css/common.js +16 -16
- package/.output/server/node_modules/@iconify/utils/lib/css/format.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/css/icon.js +11 -14
- package/.output/server/node_modules/@iconify/utils/lib/css/icons.js +13 -16
- package/.output/server/node_modules/@iconify/utils/lib/customisations/bool.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/customisations/flip.js +2 -5
- package/.output/server/node_modules/@iconify/utils/lib/customisations/merge.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.js +4 -5
- package/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/emoji/convert.js +9 -11
- package/.output/server/node_modules/@iconify/utils/lib/emoji/data.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/emoji/format.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/emoji/parse.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.js +12 -18
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.js +3 -4
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.js +5 -7
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.js +1 -8
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.js +11 -12
- package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.js +5 -7
- package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.js +7 -7
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.js +2 -4
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.js +5 -9
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.js +3 -5
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.js +2 -4
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.js +7 -8
- package/.output/server/node_modules/@iconify/utils/lib/icon/defaults.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/icon/merge.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/icon/name.js +3 -4
- package/.output/server/node_modules/@iconify/utils/lib/icon/square.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/icon/transformations.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.js +10 -15
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.js +3 -5
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.js +21 -13
- package/.output/server/node_modules/@iconify/utils/lib/index.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/loader/custom.js +3 -3
- package/.output/server/node_modules/@iconify/utils/lib/loader/hmr-utils.js +33 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/loader.js +22 -22
- package/.output/server/node_modules/@iconify/utils/lib/loader/modern.js +7 -22
- package/.output/server/node_modules/@iconify/utils/lib/loader/utils.js +60 -16
- package/.output/server/node_modules/@iconify/utils/lib/misc/objects.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/misc/strings.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/misc/title.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/svg/build.js +9 -11
- package/.output/server/node_modules/@iconify/utils/lib/svg/defs.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +1 -3
- package/.output/server/node_modules/@iconify/utils/lib/svg/html.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/svg/id.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/svg/parse.js +3 -5
- package/.output/server/node_modules/@iconify/utils/lib/svg/pretty.js +5 -4
- package/.output/server/node_modules/@iconify/utils/lib/svg/size.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/svg/trim.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/svg/url.js +1 -2
- package/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.js +2 -3
- package/.output/server/node_modules/@iconify/utils/package.json +15 -13
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +8 -1
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +3 -3
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +34 -13
- package/.output/server/node_modules/@vue/server-renderer/package.json +4 -6
- package/.output/server/node_modules/devalue/index.js +15 -2
- package/.output/server/node_modules/devalue/package.json +5 -3
- package/.output/server/node_modules/devalue/src/base64.js +46 -96
- package/.output/server/node_modules/devalue/src/constants.js +5 -0
- package/.output/server/node_modules/devalue/src/operations.js +221 -0
- package/.output/server/node_modules/devalue/src/parse.js +76 -62
- package/.output/server/node_modules/devalue/src/stringify.js +164 -81
- package/.output/server/node_modules/devalue/src/uneval.js +312 -104
- package/.output/server/node_modules/devalue/src/utils.js +61 -19
- package/.output/server/node_modules/esbuild/lib/main.js +12 -8
- package/.output/server/node_modules/esbuild/package.json +50 -50
- package/.output/server/node_modules/hookable/dist/index.mjs +2 -11
- package/.output/server/node_modules/hookable/package.json +23 -22
- package/.output/server/node_modules/ip-address/dist/ipv4.js +7 -0
- package/.output/server/node_modules/ip-address/package.json +1 -1
- package/.output/server/node_modules/zod/package.json +20 -8
- package/.output/server/node_modules/zod/v4/classic/checks.js +1 -1
- package/.output/server/node_modules/zod/v4/classic/deep-partial.js +13 -0
- package/.output/server/node_modules/zod/v4/classic/errors.js +44 -35
- package/.output/server/node_modules/zod/v4/classic/external.js +5 -8
- package/.output/server/node_modules/zod/v4/classic/from-json-schema.js +375 -78
- package/.output/server/node_modules/zod/v4/classic/in-out.js +36 -0
- package/.output/server/node_modules/zod/v4/classic/index.js +2 -2
- package/.output/server/node_modules/zod/v4/classic/iso.js +2 -17
- package/.output/server/node_modules/zod/v4/classic/package.json +2 -1
- package/.output/server/node_modules/zod/v4/classic/parse.js +1 -0
- package/.output/server/node_modules/zod/v4/classic/schemas.js +601 -223
- package/.output/server/node_modules/zod/v4/core/api.js +51 -26
- package/.output/server/node_modules/zod/v4/core/checks.js +68 -127
- package/.output/server/node_modules/zod/v4/core/compile.js +1858 -0
- package/.output/server/node_modules/zod/v4/core/core.js +87 -22
- package/.output/server/node_modules/zod/v4/core/doc.js +12 -9
- package/.output/server/node_modules/zod/v4/core/errors.js +127 -42
- package/.output/server/node_modules/zod/v4/core/index.js +3 -0
- package/.output/server/node_modules/zod/v4/core/json-schema-generator.js +6 -2
- package/.output/server/node_modules/zod/v4/core/json-schema-processors.js +413 -175
- package/.output/server/node_modules/zod/v4/core/memoizer.js +311 -0
- package/.output/server/node_modules/zod/v4/core/package.json +2 -1
- package/.output/server/node_modules/zod/v4/core/parse.js +130 -48
- package/.output/server/node_modules/zod/v4/core/regexes.js +39 -16
- package/.output/server/node_modules/zod/v4/core/registries.js +2 -2
- package/.output/server/node_modules/zod/v4/core/schemas.js +895 -382
- package/.output/server/node_modules/zod/v4/core/to-json-schema.js +253 -39
- package/.output/server/node_modules/zod/v4/core/util.js +383 -175
- package/.output/server/node_modules/zod/v4/core/versions.js +2 -2
- package/.output/server/node_modules/zod/v4/core/visit.js +169 -0
- package/.output/server/node_modules/zod/v4/index.js +3 -2
- package/.output/server/node_modules/zod/v4/locales/ar.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/az.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/be.js +12 -0
- package/.output/server/node_modules/zod/v4/locales/bg.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/bn.js +113 -0
- package/.output/server/node_modules/zod/v4/locales/ca.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/ckb.js +133 -0
- package/.output/server/node_modules/zod/v4/locales/cs.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/da.js +7 -2
- package/.output/server/node_modules/zod/v4/locales/de.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/el.js +112 -0
- package/.output/server/node_modules/zod/v4/locales/en.js +20 -4
- package/.output/server/node_modules/zod/v4/locales/eo.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/es.js +4 -0
- package/.output/server/node_modules/zod/v4/locales/fa.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/fi.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/fr-CA.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/fr.js +38 -17
- package/.output/server/node_modules/zod/v4/locales/gu.js +113 -0
- package/.output/server/node_modules/zod/v4/locales/he.js +7 -0
- package/.output/server/node_modules/zod/v4/locales/hi.js +111 -0
- package/.output/server/node_modules/zod/v4/locales/hr.js +126 -0
- package/.output/server/node_modules/zod/v4/locales/hu.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/hy.js +11 -0
- package/.output/server/node_modules/zod/v4/locales/id.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/index.js +14 -0
- package/.output/server/node_modules/zod/v4/locales/is.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/it.js +6 -1
- package/.output/server/node_modules/zod/v4/locales/ja.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/ka.js +13 -8
- package/.output/server/node_modules/zod/v4/locales/km.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/kn.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/ko.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/lt.js +4 -0
- package/.output/server/node_modules/zod/v4/locales/mk.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/ms.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/ne.js +111 -0
- package/.output/server/node_modules/zod/v4/locales/nl.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/nn.js +113 -0
- package/.output/server/node_modules/zod/v4/locales/no.js +7 -2
- package/.output/server/node_modules/zod/v4/locales/ota.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/package.json +2 -1
- package/.output/server/node_modules/zod/v4/locales/pl.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/ps.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/pt-BR.js +143 -0
- package/.output/server/node_modules/zod/v4/locales/pt.js +89 -55
- package/.output/server/node_modules/zod/v4/locales/ro.js +122 -0
- package/.output/server/node_modules/zod/v4/locales/ru.js +12 -0
- package/.output/server/node_modules/zod/v4/locales/sk.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/sl.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/sv.js +7 -2
- package/.output/server/node_modules/zod/v4/locales/ta.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/tg.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/th.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/tk.js +107 -0
- package/.output/server/node_modules/zod/v4/locales/tr.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/uk.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/ur.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/uz.js +4 -0
- package/.output/server/node_modules/zod/v4/locales/vi.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/yo.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/zh-CN.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/zh-TW.js +5 -0
- package/.output/server/node_modules/zod/v4/package.json +2 -1
- package/.output/server/package.json +18 -18
- package/README.md +12 -1
- package/package.json +10 -9
- package/server/api/editor-types.get.ts +2 -23
- package/server/api/studio/run.post.ts +18 -6
- package/server/utils/editor-types.json +1 -0
- package/.output/public/_nuxt/B9paGgN0.js +0 -33
- package/.output/public/_nuxt/builds/meta/51f1351c-0667-4235-9ddc-16582a51ce03.json +0 -1
- package/.output/public/_nuxt/entry.B-vs1tRH.css +0 -1
- package/.output/public/_nuxt/error-404.CTSXlFYa.css +0 -1
- package/.output/public/_nuxt/error-500.DqEfQnVZ.css +0 -1
- package/.output/server/chunks/build/error-404-KRkA0DPI.mjs.map +0 -1
- package/.output/server/chunks/build/error-404-styles.I0NYw-Bn.mjs +0 -8
- package/.output/server/chunks/build/error-404-styles.I0NYw-Bn.mjs.map +0 -1
- package/.output/server/chunks/build/error-500-DIIFf55p.mjs.map +0 -1
- package/.output/server/chunks/build/error-500-styles.D1cs9hQy.mjs +0 -8
- package/.output/server/chunks/build/error-500-styles.D1cs9hQy.mjs.map +0 -1
- package/.output/server/chunks/build/index-CB1N4gax.mjs.map +0 -1
- /package/.output/server/node_modules/{@vue/compiler-core → .nitro/@vue/compiler-core@3.5.32}/dist/compiler-core.cjs.prod.js +0 -0
- /package/.output/server/node_modules/{@vue/compiler-core → .nitro/@vue/compiler-core@3.5.32}/package.json +0 -0
- /package/.output/server/node_modules/{@vue/compiler-dom → .nitro/@vue/compiler-dom@3.5.32}/dist/compiler-dom.cjs.prod.js +0 -0
- /package/.output/server/node_modules/{@vue/compiler-dom → .nitro/@vue/compiler-dom@3.5.32}/package.json +0 -0
- /package/.output/server/node_modules/{@vue/reactivity → .nitro/@vue/reactivity@3.5.32}/dist/reactivity.cjs.prod.js +0 -0
- /package/.output/server/node_modules/{@vue/reactivity → .nitro/@vue/reactivity@3.5.32}/package.json +0 -0
- /package/.output/server/node_modules/{@vue/runtime-core → .nitro/@vue/runtime-core@3.5.32}/dist/runtime-core.cjs.prod.js +0 -0
- /package/.output/server/node_modules/{@vue/runtime-core → .nitro/@vue/runtime-core@3.5.32}/package.json +0 -0
- /package/.output/server/node_modules/{@vue/runtime-dom → .nitro/@vue/runtime-dom@3.5.32}/dist/runtime-dom.cjs.prod.js +0 -0
- /package/.output/server/node_modules/{@vue/runtime-dom → .nitro/@vue/runtime-dom@3.5.32}/package.json +0 -0
- /package/.output/server/node_modules/{@vue/shared → .nitro/@vue/shared@3.5.32}/dist/shared.cjs.prod.js +0 -0
- /package/.output/server/node_modules/{@vue/shared → .nitro/@vue/shared@3.5.32}/package.json +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/array-set.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/base64-vlq.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/base64.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/binary-search.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/mapping-list.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/quick-sort.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/source-map-consumer.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/source-map-generator.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/source-node.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/lib/util.js +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/package.json +0 -0
- /package/.output/server/node_modules/{source-map-js → .nitro/source-map-js@1.2.1}/source-map.js +0 -0
- /package/.output/server/node_modules/{vue → .nitro/vue@3.5.32}/dist/vue.cjs.js +0 -0
- /package/.output/server/node_modules/{vue → .nitro/vue@3.5.32}/dist/vue.cjs.prod.js +0 -0
- /package/.output/server/node_modules/{vue → .nitro/vue@3.5.32}/index.js +0 -0
- /package/.output/server/node_modules/{vue → .nitro/vue@3.5.32}/index.mjs +0 -0
- /package/.output/server/node_modules/{vue → .nitro/vue@3.5.32}/package.json +0 -0
- /package/.output/server/node_modules/{vue → .nitro/vue@3.5.43}/server-renderer/index.mjs +0 -0
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
DevalueError,
|
|
3
|
-
enumerable_symbols,
|
|
4
|
-
get_type,
|
|
5
|
-
is_plain_object,
|
|
6
|
-
is_primitive,
|
|
7
|
-
stringify_key,
|
|
8
|
-
stringify_string,
|
|
9
|
-
valid_array_indices
|
|
10
|
-
} from './utils.js';
|
|
1
|
+
import { DevalueError, stringify_key, stringify_string } from './utils.js';
|
|
11
2
|
import {
|
|
12
3
|
HOLE,
|
|
13
4
|
NAN,
|
|
@@ -18,13 +9,67 @@ import {
|
|
|
18
9
|
UNDEFINED
|
|
19
10
|
} from './constants.js';
|
|
20
11
|
import { encode64 } from './base64.js';
|
|
12
|
+
import { default_stringify_operations, merge_operations } from './operations.js';
|
|
21
13
|
|
|
22
14
|
/**
|
|
23
15
|
* Turn a value into a JSON string that can be parsed with `devalue.parse`
|
|
24
16
|
* @param {any} value
|
|
25
17
|
* @param {Record<string, (value: any) => any>} [reducers]
|
|
18
|
+
* @param {import('./types.js').StringifyOptions} [options]
|
|
26
19
|
*/
|
|
27
|
-
export function stringify(value, reducers) {
|
|
20
|
+
export function stringify(value, reducers, options) {
|
|
21
|
+
const stringified = run(false, value, reducers, options);
|
|
22
|
+
return typeof stringified === 'string' ? stringified : `[${stringified.join(',')}]`;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Turn a value into a JSON string that can be parsed with `devalue.parse`
|
|
27
|
+
* @param {any} value
|
|
28
|
+
* @param {Record<string, (value: any) => any>} [reducers]
|
|
29
|
+
* @param {import('./types.js').StringifyOptions} [options]
|
|
30
|
+
*/
|
|
31
|
+
export async function stringifyAsync(value, reducers, options) {
|
|
32
|
+
const stringified = run(true, value, reducers, options);
|
|
33
|
+
|
|
34
|
+
if (typeof stringified === 'string') {
|
|
35
|
+
return stringified;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
let out = '[';
|
|
39
|
+
|
|
40
|
+
for (let i = 0; i < stringified.length; i += 1) {
|
|
41
|
+
let value = stringified[i];
|
|
42
|
+
|
|
43
|
+
if (typeof value !== 'string') {
|
|
44
|
+
await value;
|
|
45
|
+
value = stringified[i];
|
|
46
|
+
|
|
47
|
+
if (i === 0 && value < 0) {
|
|
48
|
+
return `${value}`;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
out += value;
|
|
53
|
+
|
|
54
|
+
if (i < stringified.length - 1) {
|
|
55
|
+
out += ',';
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
out += ']';
|
|
60
|
+
|
|
61
|
+
return out;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @param {boolean} async
|
|
66
|
+
* @param {any} value
|
|
67
|
+
* @param {Record<string, (value: any) => any>} [reducers]
|
|
68
|
+
* @param {import('./types.js').StringifyOptions} [options]
|
|
69
|
+
*/
|
|
70
|
+
function run(async, value, reducers, options) {
|
|
71
|
+
const ops = merge_operations(default_stringify_operations, options?.operations);
|
|
72
|
+
|
|
28
73
|
/** @type {any[]} */
|
|
29
74
|
const stringified = [];
|
|
30
75
|
|
|
@@ -44,18 +89,35 @@ export function stringify(value, reducers) {
|
|
|
44
89
|
|
|
45
90
|
let p = 0;
|
|
46
91
|
|
|
47
|
-
/**
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
92
|
+
/**
|
|
93
|
+
* @param {any} thing
|
|
94
|
+
* @param {number} [index]
|
|
95
|
+
*/
|
|
96
|
+
function flatten(thing, index) {
|
|
97
|
+
const type = ops.typeOf(thing);
|
|
98
|
+
|
|
99
|
+
if (type === 'undefined') return UNDEFINED;
|
|
100
|
+
|
|
101
|
+
/** @type {number | undefined} */
|
|
102
|
+
let number;
|
|
103
|
+
|
|
104
|
+
// `ops.toPrimitive` is the boundary between the value being serialized and
|
|
105
|
+
// plain host JavaScript: everything below operates on the extracted host
|
|
106
|
+
// primitive, so native comparisons and arithmetic are correct there.
|
|
107
|
+
if (type === 'number') {
|
|
108
|
+
number = /** @type {number} */ (ops.toPrimitive(thing));
|
|
109
|
+
if (Number.isNaN(number)) return NAN;
|
|
110
|
+
if (number === Infinity) return POSITIVE_INFINITY;
|
|
111
|
+
if (number === -Infinity) return NEGATIVE_INFINITY;
|
|
112
|
+
if (number === 0 && 1 / number < 0) return NEGATIVE_ZERO;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
const id = ops.identify(thing);
|
|
54
116
|
|
|
55
|
-
if (indexes.has(
|
|
117
|
+
if (indexes.has(id)) return /** @type {number} */ (indexes.get(id));
|
|
56
118
|
|
|
57
|
-
|
|
58
|
-
indexes.set(
|
|
119
|
+
index ??= p++;
|
|
120
|
+
indexes.set(id, index);
|
|
59
121
|
|
|
60
122
|
for (const { key, fn } of custom) {
|
|
61
123
|
const value = fn(thing);
|
|
@@ -65,43 +127,61 @@ export function stringify(value, reducers) {
|
|
|
65
127
|
}
|
|
66
128
|
}
|
|
67
129
|
|
|
68
|
-
if (
|
|
130
|
+
if (type === 'function') {
|
|
69
131
|
throw new DevalueError(`Cannot stringify a function`, keys, thing, value);
|
|
132
|
+
} else if (type === 'symbol') {
|
|
133
|
+
throw new DevalueError(`Cannot stringify a Symbol primitive`, keys, thing, value);
|
|
70
134
|
}
|
|
71
135
|
|
|
136
|
+
/** @type {string | Promise<any>} */
|
|
72
137
|
let str = '';
|
|
73
138
|
|
|
74
|
-
if (
|
|
75
|
-
str = stringify_primitive(thing);
|
|
139
|
+
if (type !== 'object') {
|
|
140
|
+
str = stringify_primitive(type === 'number' ? number : ops.toPrimitive(thing));
|
|
141
|
+
} else if (ops.isThenable(thing)) {
|
|
142
|
+
if (!async) {
|
|
143
|
+
throw new DevalueError(
|
|
144
|
+
`Cannot stringify a Promise or thenable — use stringifyAsync instead`,
|
|
145
|
+
keys,
|
|
146
|
+
thing,
|
|
147
|
+
value
|
|
148
|
+
);
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
str = ops.toPromise(thing).then((value) => {
|
|
152
|
+
const i = flatten(value, index);
|
|
153
|
+
if (i < 0) stringified[index] = i;
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
// Promises are awaited sequentially, and traversal may throw before
|
|
157
|
+
// reaching them. Handle rejections immediately, but keep the original
|
|
158
|
+
// promise so awaiting it still propagates the error to the caller.
|
|
159
|
+
str.catch(() => {});
|
|
76
160
|
} else {
|
|
77
|
-
const
|
|
161
|
+
const tag = ops.tagOf(thing);
|
|
78
162
|
|
|
79
|
-
switch (
|
|
163
|
+
switch (tag) {
|
|
80
164
|
case 'Number':
|
|
81
165
|
case 'String':
|
|
82
166
|
case 'Boolean':
|
|
83
|
-
str = `["Object",${stringify_primitive(thing)}]`;
|
|
84
|
-
break;
|
|
85
|
-
|
|
86
167
|
case 'BigInt':
|
|
87
|
-
str = `["
|
|
168
|
+
str = `["Object",${flatten(ops.unbox(thing))}]`;
|
|
88
169
|
break;
|
|
89
170
|
|
|
90
171
|
case 'Date':
|
|
91
|
-
|
|
92
|
-
str = `["Date","${valid ? thing.toISOString() : ''}"]`;
|
|
172
|
+
str = `["Date","${ops.toISOString(thing)}"]`;
|
|
93
173
|
break;
|
|
94
174
|
|
|
95
175
|
case 'URL':
|
|
96
|
-
str = `["URL",${stringify_string(
|
|
176
|
+
str = `["URL",${stringify_string(ops.toStringValue(thing))}]`;
|
|
97
177
|
break;
|
|
98
178
|
|
|
99
179
|
case 'URLSearchParams':
|
|
100
|
-
str = `["URLSearchParams",${stringify_string(
|
|
180
|
+
str = `["URLSearchParams",${stringify_string(ops.toStringValue(thing))}]`;
|
|
101
181
|
break;
|
|
102
182
|
|
|
103
183
|
case 'RegExp':
|
|
104
|
-
const { source, flags } = thing;
|
|
184
|
+
const { source, flags } = ops.regExpInfo(thing);
|
|
105
185
|
str = flags
|
|
106
186
|
? `["RegExp",${stringify_string(source)},"${flags}"]`
|
|
107
187
|
: `["RegExp",${stringify_string(source)}]`;
|
|
@@ -117,14 +197,16 @@ export function stringify(value, reducers) {
|
|
|
117
197
|
// is what protects against the DoS of e.g. `arr[1000000] = 1`.
|
|
118
198
|
let mostly_dense = false;
|
|
119
199
|
|
|
200
|
+
const length = ops.lengthOf(thing);
|
|
201
|
+
|
|
120
202
|
str = '[';
|
|
121
203
|
|
|
122
|
-
for (let i = 0; i <
|
|
204
|
+
for (let i = 0; i < length; i += 1) {
|
|
123
205
|
if (i > 0) str += ',';
|
|
124
206
|
|
|
125
|
-
if (
|
|
207
|
+
if (ops.hasOwn(thing, i)) {
|
|
126
208
|
keys.push(`[${i}]`);
|
|
127
|
-
str += flatten(thing
|
|
209
|
+
str += flatten(ops.get(thing, i));
|
|
128
210
|
keys.pop();
|
|
129
211
|
} else if (mostly_dense) {
|
|
130
212
|
// Use dense encoding. The heuristic guarantees the
|
|
@@ -163,19 +245,19 @@ export function stringify(value, reducers) {
|
|
|
163
245
|
//
|
|
164
246
|
// Sparse encoding is cheaper when:
|
|
165
247
|
// (4 + d) + P * (d + 1) < (L - P) * 3
|
|
166
|
-
const populated_keys =
|
|
248
|
+
const populated_keys = ops.indicesOf(thing);
|
|
167
249
|
const population = populated_keys.length;
|
|
168
|
-
const d = String(
|
|
250
|
+
const d = String(length).length;
|
|
169
251
|
|
|
170
|
-
const hole_cost = (
|
|
252
|
+
const hole_cost = (length - population) * 3;
|
|
171
253
|
const sparse_cost = 4 + d + population * (d + 1);
|
|
172
254
|
|
|
173
255
|
if (hole_cost > sparse_cost) {
|
|
174
|
-
str = '[' + SPARSE + ',' +
|
|
256
|
+
str = '[' + SPARSE + ',' + length;
|
|
175
257
|
for (let j = 0; j < populated_keys.length; j++) {
|
|
176
258
|
const key = populated_keys[j];
|
|
177
259
|
keys.push(`[${key}]`);
|
|
178
|
-
str += ',' + key + ',' + flatten(thing
|
|
260
|
+
str += ',' + key + ',' + flatten(ops.get(thing, key));
|
|
179
261
|
keys.pop();
|
|
180
262
|
}
|
|
181
263
|
break;
|
|
@@ -194,7 +276,7 @@ export function stringify(value, reducers) {
|
|
|
194
276
|
case 'Set':
|
|
195
277
|
str = '["Set"';
|
|
196
278
|
|
|
197
|
-
for (const value of thing) {
|
|
279
|
+
for (const value of ops.valuesOf(thing)) {
|
|
198
280
|
str += `,${flatten(value)}`;
|
|
199
281
|
}
|
|
200
282
|
|
|
@@ -204,9 +286,12 @@ export function stringify(value, reducers) {
|
|
|
204
286
|
case 'Map':
|
|
205
287
|
str = '["Map"';
|
|
206
288
|
|
|
207
|
-
for (const [key, value] of thing) {
|
|
289
|
+
for (const [key, value] of ops.entriesOf(thing)) {
|
|
290
|
+
const key_type = ops.typeOf(key);
|
|
291
|
+
const key_is_primitive =
|
|
292
|
+
key_type !== 'object' && key_type !== 'function' && key_type !== 'symbol';
|
|
208
293
|
keys.push(
|
|
209
|
-
`.get(${
|
|
294
|
+
`.get(${key_is_primitive ? stringify_primitive(ops.toPrimitive(key)) : '...'})`
|
|
210
295
|
);
|
|
211
296
|
str += `,${flatten(key)},${flatten(value)}`;
|
|
212
297
|
keys.pop();
|
|
@@ -220,23 +305,31 @@ export function stringify(value, reducers) {
|
|
|
220
305
|
case 'Uint8ClampedArray':
|
|
221
306
|
case 'Int16Array':
|
|
222
307
|
case 'Uint16Array':
|
|
308
|
+
case 'Float16Array':
|
|
223
309
|
case 'Int32Array':
|
|
224
310
|
case 'Uint32Array':
|
|
225
311
|
case 'Float32Array':
|
|
226
312
|
case 'Float64Array':
|
|
227
313
|
case 'BigInt64Array':
|
|
228
314
|
case 'BigUint64Array': {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
str = '["' + type + '",' + flatten(typedArray.buffer);
|
|
232
|
-
|
|
233
|
-
const a = thing.byteOffset;
|
|
234
|
-
const b = a + thing.byteLength;
|
|
315
|
+
const info = ops.viewInfo(thing);
|
|
316
|
+
str = '["' + tag + '",' + flatten(info.buffer);
|
|
235
317
|
|
|
236
318
|
// handle subarrays
|
|
237
|
-
if (
|
|
238
|
-
|
|
239
|
-
|
|
319
|
+
if (info.byteLength !== info.bufferByteLength) {
|
|
320
|
+
str += `,${info.byteOffset},${info.length}`;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
str += ']';
|
|
324
|
+
break;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
case 'DataView': {
|
|
328
|
+
const info = ops.viewInfo(thing);
|
|
329
|
+
str = '["' + tag + '",' + flatten(info.buffer);
|
|
330
|
+
|
|
331
|
+
if (info.byteLength !== info.bufferByteLength) {
|
|
332
|
+
str += `,${info.byteOffset},${info.byteLength}`;
|
|
240
333
|
}
|
|
241
334
|
|
|
242
335
|
str += ']';
|
|
@@ -244,9 +337,7 @@ export function stringify(value, reducers) {
|
|
|
244
337
|
}
|
|
245
338
|
|
|
246
339
|
case 'ArrayBuffer': {
|
|
247
|
-
|
|
248
|
-
const arraybuffer = thing;
|
|
249
|
-
const base64 = encode64(arraybuffer);
|
|
340
|
+
const base64 = encode64(ops.toArrayBuffer(thing));
|
|
250
341
|
|
|
251
342
|
str = `["ArrayBuffer","${base64}"]`;
|
|
252
343
|
break;
|
|
@@ -260,31 +351,23 @@ export function stringify(value, reducers) {
|
|
|
260
351
|
case 'Temporal.PlainMonthDay':
|
|
261
352
|
case 'Temporal.PlainYearMonth':
|
|
262
353
|
case 'Temporal.ZonedDateTime':
|
|
263
|
-
str = `["${
|
|
354
|
+
str = `["${tag}",${stringify_string(ops.toStringValue(thing))}]`;
|
|
264
355
|
break;
|
|
265
356
|
|
|
266
|
-
default:
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
thing,
|
|
272
|
-
value
|
|
273
|
-
);
|
|
357
|
+
default: {
|
|
358
|
+
const shape = ops.shapeOf(thing);
|
|
359
|
+
|
|
360
|
+
if (shape.kind === 'not-plain') {
|
|
361
|
+
throw new DevalueError(`Cannot stringify arbitrary non-POJOs`, keys, thing, value);
|
|
274
362
|
}
|
|
275
363
|
|
|
276
|
-
if (
|
|
277
|
-
throw new DevalueError(
|
|
278
|
-
`Cannot stringify POJOs with symbolic keys`,
|
|
279
|
-
keys,
|
|
280
|
-
thing,
|
|
281
|
-
value
|
|
282
|
-
);
|
|
364
|
+
if (shape.kind === 'symbol-keys') {
|
|
365
|
+
throw new DevalueError(`Cannot stringify POJOs with symbolic keys`, keys, thing, value);
|
|
283
366
|
}
|
|
284
367
|
|
|
285
|
-
if (
|
|
368
|
+
if (shape.kind === 'null-proto') {
|
|
286
369
|
str = '["null"';
|
|
287
|
-
for (const key of
|
|
370
|
+
for (const key of shape.keys) {
|
|
288
371
|
if (key === '__proto__') {
|
|
289
372
|
throw new DevalueError(
|
|
290
373
|
`Cannot stringify objects with __proto__ keys`,
|
|
@@ -295,14 +378,14 @@ export function stringify(value, reducers) {
|
|
|
295
378
|
}
|
|
296
379
|
|
|
297
380
|
keys.push(stringify_key(key));
|
|
298
|
-
str += `,${stringify_string(key)},${flatten(thing
|
|
381
|
+
str += `,${stringify_string(key)},${flatten(ops.get(thing, key))}`;
|
|
299
382
|
keys.pop();
|
|
300
383
|
}
|
|
301
384
|
str += ']';
|
|
302
385
|
} else {
|
|
303
386
|
str = '{';
|
|
304
387
|
let started = false;
|
|
305
|
-
for (const key of
|
|
388
|
+
for (const key of shape.keys) {
|
|
306
389
|
if (key === '__proto__') {
|
|
307
390
|
throw new DevalueError(
|
|
308
391
|
`Cannot stringify objects with __proto__ keys`,
|
|
@@ -315,11 +398,12 @@ export function stringify(value, reducers) {
|
|
|
315
398
|
if (started) str += ',';
|
|
316
399
|
started = true;
|
|
317
400
|
keys.push(stringify_key(key));
|
|
318
|
-
str += `${stringify_string(key)}:${flatten(thing
|
|
401
|
+
str += `${stringify_string(key)}:${flatten(ops.get(thing, key))}`;
|
|
319
402
|
keys.pop();
|
|
320
403
|
}
|
|
321
404
|
str += '}';
|
|
322
405
|
}
|
|
406
|
+
}
|
|
323
407
|
}
|
|
324
408
|
}
|
|
325
409
|
|
|
@@ -332,7 +416,7 @@ export function stringify(value, reducers) {
|
|
|
332
416
|
// special case — value is represented as a negative index
|
|
333
417
|
if (index < 0) return `${index}`;
|
|
334
418
|
|
|
335
|
-
return
|
|
419
|
+
return stringified;
|
|
336
420
|
}
|
|
337
421
|
|
|
338
422
|
/**
|
|
@@ -342,7 +426,6 @@ export function stringify(value, reducers) {
|
|
|
342
426
|
function stringify_primitive(thing) {
|
|
343
427
|
const type = typeof thing;
|
|
344
428
|
if (type === 'string') return stringify_string(thing);
|
|
345
|
-
if (thing instanceof String) return stringify_string(thing.toString());
|
|
346
429
|
if (thing === void 0) return UNDEFINED.toString();
|
|
347
430
|
if (thing === 0 && 1 / thing < 0) return NEGATIVE_ZERO.toString();
|
|
348
431
|
if (type === 'bigint') return `["BigInt","${thing}"]`;
|