uomtiles 0.1.0
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 +15 -0
- package/.output/public/_nuxt/1d1PDhA4.js +1 -0
- package/.output/public/_nuxt/3B2XYGg4.js +1 -0
- package/.output/public/_nuxt/981KwFWf.js +1 -0
- package/.output/public/_nuxt/B30dSvM4.js +1 -0
- package/.output/public/_nuxt/BN1Gp4Dm.js +1 -0
- package/.output/public/_nuxt/BQlj8Xoe.js +6 -0
- package/.output/public/_nuxt/BRkljK8J.js +1 -0
- package/.output/public/_nuxt/BSdHYVlE2.js +1 -0
- package/.output/public/_nuxt/B_MqTg2k2.js +1 -0
- package/.output/public/_nuxt/BiWblTbb2.js +64 -0
- package/.output/public/_nuxt/BrPwntMr.js +1 -0
- package/.output/public/_nuxt/BskybydR.js +1 -0
- package/.output/public/_nuxt/ByRlKR9F.js +1 -0
- package/.output/public/_nuxt/C0Zdl2EE2.js +1 -0
- package/.output/public/_nuxt/C4qlzA4o.js +1 -0
- package/.output/public/_nuxt/C7HxHbxA.js +1 -0
- package/.output/public/_nuxt/C97TfNgP.js +3 -0
- package/.output/public/_nuxt/CNs_Ozdc.js +1 -0
- package/.output/public/_nuxt/CPuhwLY1.js +1 -0
- package/.output/public/_nuxt/CVE291Pi.js +1 -0
- package/.output/public/_nuxt/C_0VY3Cv2.js +4 -0
- package/.output/public/_nuxt/Ce26t8_Y.js +1 -0
- package/.output/public/_nuxt/CfW544W5.js +1 -0
- package/.output/public/_nuxt/CgMd2Y5s.js +2 -0
- package/.output/public/_nuxt/CgdzV712.js +1 -0
- package/.output/public/_nuxt/D1wVNWS0.js +1 -0
- package/.output/public/_nuxt/DC3bhq63.js +1 -0
- package/.output/public/_nuxt/DK3Fl9T5.js +1 -0
- package/.output/public/_nuxt/DL1MZZLI.js +1 -0
- package/.output/public/_nuxt/DXm-42Fi.js +1 -0
- package/.output/public/_nuxt/Djg3Kzfv.js +1 -0
- package/.output/public/_nuxt/DkcySee1.js +1 -0
- package/.output/public/_nuxt/DmN-PKW1.js +1 -0
- package/.output/public/_nuxt/DtFVCXI9.js +1 -0
- package/.output/public/_nuxt/Dz7VMlHR.js +1 -0
- package/.output/public/_nuxt/NL65vbjG2.js +1 -0
- package/.output/public/_nuxt/Oxy7pKSk.js +3 -0
- package/.output/public/_nuxt/Pik8or8N2.js +1 -0
- package/.output/public/_nuxt/XZ59tThl.js +1 -0
- package/.output/public/_nuxt/ZpWjFsgV.js +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -0
- package/.output/public/_nuxt/builds/meta/9f85104e-738d-4a74-8daa-40b136ce17d5.json +1 -0
- package/.output/public/_nuxt/dXz6dFgW2.js +1 -0
- package/.output/public/_nuxt/entry.P6tFNE31.css +1 -0
- package/.output/public/_nuxt/error-404.Biv0P6cJ.css +1 -0
- package/.output/public/_nuxt/error-500.8ok468rV.css +1 -0
- package/.output/public/_nuxt/j0MRD-c3.js +1 -0
- package/.output/public/_nuxt/local-pixel-diff.worker-C6RdZoCq.js +2 -0
- package/.output/public/_nuxt/maplibre-gl-worker.nfnkSQvL.mjs +6 -0
- package/.output/public/_nuxt/nearest-area.worker-iSLH0Y_s.js +2 -0
- package/.output/public/_nuxt/q7DkoVkj.js +828 -0
- package/.output/public/_nuxt/raster-tile.worker-BFlOgJig.js +2 -0
- package/.output/public/_nuxt/services._3nQizF8.css +1 -0
- package/.output/public/_nuxt/sql-wasm.DfANybxk.wasm +0 -0
- package/.output/public/_nuxt/tile-diff.worker-CvWWI_eu.js +1 -0
- package/.output/public/_nuxt/zZ1EGR7Y.js +1 -0
- package/.output/public/apple-touch-icon.png +0 -0
- package/.output/public/favicon.ico +0 -0
- package/.output/public/favicon.svg +8 -0
- package/.output/public/icon-192.png +0 -0
- package/.output/public/icon-512.png +0 -0
- package/.output/public/site.webmanifest +11 -0
- package/.output/server/chunks/_/config.mjs +208 -0
- package/.output/server/chunks/_/config.mjs.map +1 -0
- package/.output/server/chunks/_/data-directory.mjs +24 -0
- package/.output/server/chunks/_/data-directory.mjs.map +1 -0
- package/.output/server/chunks/_/error-500.mjs +20 -0
- package/.output/server/chunks/_/error-500.mjs.map +1 -0
- package/.output/server/chunks/_/file-workspace.mjs +910 -0
- package/.output/server/chunks/_/file-workspace.mjs.map +1 -0
- package/.output/server/chunks/_/icons.mjs +6269 -0
- package/.output/server/chunks/_/icons.mjs.map +1 -0
- package/.output/server/chunks/_/map-service.mjs +233 -0
- package/.output/server/chunks/_/map-service.mjs.map +1 -0
- package/.output/server/chunks/_/missing-tile.mjs +104 -0
- package/.output/server/chunks/_/missing-tile.mjs.map +1 -0
- package/.output/server/chunks/_/pixel-diff.mjs +78 -0
- package/.output/server/chunks/_/pixel-diff.mjs.map +1 -0
- package/.output/server/chunks/_/uom-auth.mjs +334 -0
- package/.output/server/chunks/_/uom-auth.mjs.map +1 -0
- package/.output/server/chunks/_/uom-map.mjs +265 -0
- package/.output/server/chunks/_/uom-map.mjs.map +1 -0
- package/.output/server/chunks/build/Alert-0ngTJXxP.mjs +5076 -0
- package/.output/server/chunks/build/Alert-0ngTJXxP.mjs.map +1 -0
- package/.output/server/chunks/build/DashboardSidebarToggle-pncTaIJq.mjs +569 -0
- package/.output/server/chunks/build/DashboardSidebarToggle-pncTaIJq.mjs.map +1 -0
- package/.output/server/chunks/build/Empty-CkW3mADt.mjs +359 -0
- package/.output/server/chunks/build/Empty-CkW3mADt.mjs.map +1 -0
- package/.output/server/chunks/build/FocusScope-Cf0lg0zt.mjs +207 -0
- package/.output/server/chunks/build/FocusScope-Cf0lg0zt.mjs.map +1 -0
- package/.output/server/chunks/build/FormField-CEUZHcv7.mjs +278 -0
- package/.output/server/chunks/build/FormField-CEUZHcv7.mjs.map +1 -0
- package/.output/server/chunks/build/Input-BeNavYXb.mjs +592 -0
- package/.output/server/chunks/build/Input-BeNavYXb.mjs.map +1 -0
- package/.output/server/chunks/build/MapBaseLayerTabs-4445J6yh.mjs +2003 -0
- package/.output/server/chunks/build/MapBaseLayerTabs-4445J6yh.mjs.map +1 -0
- package/.output/server/chunks/build/Modal-DNZtVxca.mjs +1326 -0
- package/.output/server/chunks/build/Modal-DNZtVxca.mjs.map +1 -0
- package/.output/server/chunks/build/OnlineMap-CKwiuqUY.mjs +146 -0
- package/.output/server/chunks/build/OnlineMap-CKwiuqUY.mjs.map +1 -0
- package/.output/server/chunks/build/Pagination-CDHx4HTZ.mjs +1025 -0
- package/.output/server/chunks/build/Pagination-CDHx4HTZ.mjs.map +1 -0
- package/.output/server/chunks/build/PopperArrow-Bqfdf2Et.mjs +2066 -0
- package/.output/server/chunks/build/PopperArrow-Bqfdf2Et.mjs.map +1 -0
- package/.output/server/chunks/build/ScrollArea-BQK3em8b.mjs +379 -0
- package/.output/server/chunks/build/ScrollArea-BQK3em8b.mjs.map +1 -0
- package/.output/server/chunks/build/Slider-D-n8Y0CX.mjs +1087 -0
- package/.output/server/chunks/build/Slider-D-n8Y0CX.mjs.map +1 -0
- package/.output/server/chunks/build/Tooltip-CkpSktvJ.mjs +1345 -0
- package/.output/server/chunks/build/Tooltip-CkpSktvJ.mjs.map +1 -0
- package/.output/server/chunks/build/_virtual_public-CeOptKUP.mjs +7 -0
- package/.output/server/chunks/build/_virtual_public-CeOptKUP.mjs.map +1 -0
- package/.output/server/chunks/build/advanced-D1onodoF.mjs +1430 -0
- package/.output/server/chunks/build/advanced-D1onodoF.mjs.map +1 -0
- package/.output/server/chunks/build/compare-DmSAW8oA.mjs +1093 -0
- package/.output/server/chunks/build/compare-DmSAW8oA.mjs.map +1 -0
- package/.output/server/chunks/build/dashboard-BJxrZ19n.mjs +3217 -0
- package/.output/server/chunks/build/dashboard-BJxrZ19n.mjs.map +1 -0
- package/.output/server/chunks/build/details-CBMqXYyo.mjs +3714 -0
- package/.output/server/chunks/build/details-CBMqXYyo.mjs.map +1 -0
- package/.output/server/chunks/build/error-404-D9aQjJRn.mjs +86 -0
- package/.output/server/chunks/build/error-404-D9aQjJRn.mjs.map +1 -0
- package/.output/server/chunks/build/error-404-styles.DciiguV6.mjs +9 -0
- package/.output/server/chunks/build/error-404-styles.DciiguV6.mjs.map +1 -0
- package/.output/server/chunks/build/error-500-BNyA3wrb.mjs +74 -0
- package/.output/server/chunks/build/error-500-BNyA3wrb.mjs.map +1 -0
- package/.output/server/chunks/build/error-500-styles.C562DYMR.mjs +9 -0
- package/.output/server/chunks/build/error-500-styles.C562DYMR.mjs.map +1 -0
- package/.output/server/chunks/build/esm-Dp2lJXbp.mjs +1121 -0
- package/.output/server/chunks/build/esm-Dp2lJXbp.mjs.map +1 -0
- package/.output/server/chunks/build/interval-BxUMpo78.mjs +411 -0
- package/.output/server/chunks/build/interval-BxUMpo78.mjs.map +1 -0
- package/.output/server/chunks/build/login-lbtjN0MV.mjs +642 -0
- package/.output/server/chunks/build/login-lbtjN0MV.mjs.map +1 -0
- package/.output/server/chunks/build/pages-Ba0Eixbd.mjs +220 -0
- package/.output/server/chunks/build/pages-Ba0Eixbd.mjs.map +1 -0
- package/.output/server/chunks/build/services-DuJwjAB8.mjs +3005 -0
- package/.output/server/chunks/build/services-DuJwjAB8.mjs.map +1 -0
- package/.output/server/chunks/build/services-styles.eoO16BY9.mjs +9 -0
- package/.output/server/chunks/build/services-styles.eoO16BY9.mjs.map +1 -0
- package/.output/server/chunks/build/tasks-CyN9x492.mjs +915 -0
- package/.output/server/chunks/build/tasks-CyN9x492.mjs.map +1 -0
- package/.output/server/chunks/build/tasks-D_Q5EDnn.mjs +87 -0
- package/.output/server/chunks/build/tasks-D_Q5EDnn.mjs.map +1 -0
- package/.output/server/chunks/nitro/nitro.mjs +6215 -0
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -0
- package/.output/server/chunks/routes/api/auth/captcha.post.mjs +21 -0
- package/.output/server/chunks/routes/api/auth/captcha.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/auth/login.post.mjs +27 -0
- package/.output/server/chunks/routes/api/auth/login.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/auth/logout.post.mjs +22 -0
- package/.output/server/chunks/routes/api/auth/logout.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/auth/map-token.post.mjs +22 -0
- package/.output/server/chunks/routes/api/auth/map-token.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/auth/send-sms.post.mjs +31 -0
- package/.output/server/chunks/routes/api/auth/send-sms.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/auth/status.get.mjs +21 -0
- package/.output/server/chunks/routes/api/auth/status.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/map/base/_baseLayer/_zoom/_tileX/_tileY_.get.mjs +44 -0
- package/.output/server/chunks/routes/api/map/base/_baseLayer/_zoom/_tileX/_tileY_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/map/live/status.get.mjs +32 -0
- package/.output/server/chunks/routes/api/map/live/status.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/map/online/_layerGroup/_zoom/_tileX/_tileY_.get.mjs +48 -0
- package/.output/server/chunks/routes/api/map/online/_layerGroup/_zoom/_tileX/_tileY_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/map/online-root/_layerGroup/_rootX/_rootY_.get.mjs +46 -0
- package/.output/server/chunks/routes/api/map/online-root/_layerGroup/_rootX/_rootY_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/map-service/config.post.mjs +38 -0
- package/.output/server/chunks/routes/api/map-service/config.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/map-service/file.post.mjs +41 -0
- package/.output/server/chunks/routes/api/map-service/file.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/map-service/source.post.mjs +35 -0
- package/.output/server/chunks/routes/api/map-service/source.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/map-service/status.get.mjs +32 -0
- package/.output/server/chunks/routes/api/map-service/status.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/_filename/analysis.get.mjs +47 -0
- package/.output/server/chunks/routes/api/workspace/_filename/analysis.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/_filename/download.get.mjs +38 -0
- package/.output/server/chunks/routes/api/workspace/_filename/download.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/_filename/export/_format_.get.mjs +42 -0
- package/.output/server/chunks/routes/api/workspace/_filename/export/_format_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/_filename/tile.get.mjs +48 -0
- package/.output/server/chunks/routes/api/workspace/_filename/tile.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/_filename/tiles.get.mjs +45 -0
- package/.output/server/chunks/routes/api/workspace/_filename/tiles.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/_filename_.delete.mjs +32 -0
- package/.output/server/chunks/routes/api/workspace/_filename_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/compare/batch.get.mjs +38 -0
- package/.output/server/chunks/routes/api/workspace/compare/batch.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/compare.post.mjs +33 -0
- package/.output/server/chunks/routes/api/workspace/compare.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/fetch.post.mjs +33 -0
- package/.output/server/chunks/routes/api/workspace/fetch.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/files.get.mjs +27 -0
- package/.output/server/chunks/routes/api/workspace/files.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/files.post.mjs +38 -0
- package/.output/server/chunks/routes/api/workspace/files.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/stop.post.mjs +32 -0
- package/.output/server/chunks/routes/api/workspace/stop.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/tasks.post.mjs +36 -0
- package/.output/server/chunks/routes/api/workspace/tasks.post.mjs.map +1 -0
- package/.output/server/chunks/routes/renderer.mjs +422 -0
- package/.output/server/chunks/routes/renderer.mjs.map +1 -0
- package/.output/server/chunks/routes/services/wms.get.mjs +54 -0
- package/.output/server/chunks/routes/services/wms.get.mjs.map +1 -0
- package/.output/server/chunks/routes/services/wmts.get.mjs +54 -0
- package/.output/server/chunks/routes/services/wmts.get.mjs.map +1 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
- package/.output/server/chunks/virtual/entry.mjs +18545 -0
- package/.output/server/chunks/virtual/entry.mjs.map +1 -0
- package/.output/server/chunks/virtual/precomputed.mjs +4 -0
- package/.output/server/chunks/virtual/precomputed.mjs.map +1 -0
- package/.output/server/chunks/virtual/styles.mjs +10 -0
- package/.output/server/chunks/virtual/styles.mjs.map +1 -0
- package/.output/server/index.mjs +12 -0
- package/.output/server/index.mjs.map +1 -0
- package/.output/server/node_modules/@babel/parser/lib/index.js +14611 -0
- package/.output/server/node_modules/@babel/parser/package.json +50 -0
- package/.output/server/node_modules/@iconify/utils/lib/colors/index.js +295 -0
- package/.output/server/node_modules/@iconify/utils/lib/colors/keywords.js +701 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/common.js +75 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/format.js +39 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/icon.js +47 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/icons.js +128 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/bool.js +19 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.js +13 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/flip.js +17 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/merge.js +16 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.js +30 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.js +78 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/convert.js +100 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/data.js +28 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/format.js +58 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/parse.js +48 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.js +203 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.js +33 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.js +132 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.js +165 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.js +79 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.js +92 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.js +26 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.js +76 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.js +66 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.js +45 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.js +103 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.js +36 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.js +92 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.js +62 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/defaults.js +25 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/merge.js +16 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/name.js +57 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/square.js +33 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/transformations.js +12 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.js +125 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.js +19 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.js +25 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.js +36 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.js +91 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.js +46 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.js +23 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.js +42 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.js +123 -0
- package/.output/server/node_modules/@iconify/utils/lib/index.js +52 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/custom.js +30 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/loader.js +26 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/modern.js +27 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/utils.js +105 -0
- package/.output/server/node_modules/@iconify/utils/lib/misc/objects.js +26 -0
- package/.output/server/node_modules/@iconify/utils/lib/misc/strings.js +26 -0
- package/.output/server/node_modules/@iconify/utils/lib/misc/title.js +9 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/build.js +113 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/defs.js +31 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +13 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/html.js +9 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/id.js +41 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.js +22 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/parse.js +67 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/pretty.js +54 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/size.js +27 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/trim.js +7 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/url.js +22 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.js +8 -0
- package/.output/server/node_modules/@iconify/utils/package.json +119 -0
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6801 -0
- package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
- package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +692 -0
- package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1420 -0
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1903 -0
- package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
- package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6976 -0
- package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
- package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1841 -0
- package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +904 -0
- package/.output/server/node_modules/@vue/server-renderer/package.json +53 -0
- package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +609 -0
- package/.output/server/node_modules/@vue/shared/package.json +47 -0
- package/.output/server/node_modules/consola/dist/chunks/prompt.mjs +280 -0
- package/.output/server/node_modules/consola/dist/core.mjs +512 -0
- package/.output/server/node_modules/consola/dist/index.mjs +651 -0
- package/.output/server/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +72 -0
- package/.output/server/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +288 -0
- package/.output/server/node_modules/consola/package.json +136 -0
- package/.output/server/node_modules/devalue/index.js +17 -0
- package/.output/server/node_modules/devalue/package.json +39 -0
- package/.output/server/node_modules/devalue/src/base64.js +60 -0
- package/.output/server/node_modules/devalue/src/constants.js +12 -0
- package/.output/server/node_modules/devalue/src/operations.js +193 -0
- package/.output/server/node_modules/devalue/src/parse.js +270 -0
- package/.output/server/node_modules/devalue/src/stringify.js +428 -0
- package/.output/server/node_modules/devalue/src/uneval.js +582 -0
- package/.output/server/node_modules/devalue/src/utils.js +185 -0
- package/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
- package/.output/server/node_modules/entities/dist/commonjs/decode.js +568 -0
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
- package/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
- package/.output/server/node_modules/entities/package.json +120 -0
- package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
- package/.output/server/node_modules/estree-walker/package.json +37 -0
- package/.output/server/node_modules/fflate/esm/index.mjs +2710 -0
- package/.output/server/node_modules/fflate/package.json +128 -0
- package/.output/server/node_modules/fnv1a-64/dist/index.mjs +95 -0
- package/.output/server/node_modules/fnv1a-64/package.json +75 -0
- package/.output/server/node_modules/hookable/dist/index.mjs +257 -0
- package/.output/server/node_modules/hookable/package.json +53 -0
- package/.output/server/node_modules/nostics/dist/formatters/ansi.mjs +19 -0
- package/.output/server/node_modules/nostics/dist/index.mjs +187 -0
- package/.output/server/node_modules/nostics/package.json +125 -0
- package/.output/server/node_modules/object-identity/index.js +60 -0
- package/.output/server/node_modules/object-identity/package.json +40 -0
- package/.output/server/node_modules/p-limit/index.js +104 -0
- package/.output/server/node_modules/p-limit/package.json +58 -0
- package/.output/server/node_modules/pmtiles/dist/esm/index.js +2 -0
- package/.output/server/node_modules/pmtiles/package.json +50 -0
- package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
- package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
- package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
- package/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
- package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
- package/.output/server/node_modules/source-map-js/package.json +71 -0
- package/.output/server/node_modules/source-map-js/source-map.js +8 -0
- package/.output/server/node_modules/tailwindcss/dist/chunk-DCG7AFIE.mjs +1 -0
- package/.output/server/node_modules/tailwindcss/dist/colors.mjs +1 -0
- package/.output/server/node_modules/tailwindcss/package.json +89 -0
- package/.output/server/node_modules/ufo/dist/index.mjs +645 -0
- package/.output/server/node_modules/ufo/package.json +48 -0
- package/.output/server/node_modules/unhead/dist/client.mjs +22 -0
- package/.output/server/node_modules/unhead/dist/index.mjs +52 -0
- package/.output/server/node_modules/unhead/dist/legacy.mjs +33 -0
- package/.output/server/node_modules/unhead/dist/minify.mjs +183 -0
- package/.output/server/node_modules/unhead/dist/parser.mjs +518 -0
- package/.output/server/node_modules/unhead/dist/plugins.mjs +631 -0
- package/.output/server/node_modules/unhead/dist/scripts.node.mjs +6 -0
- package/.output/server/node_modules/unhead/dist/server.mjs +99 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BEmVMkeA.mjs +673 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BGFxPGPQ.mjs +47 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BQWSw36o.mjs +192 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.Bb4d5b9h.mjs +67 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BdK3SLPN.mjs +585 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.Bf_fPVYA.mjs +6 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.Bm4Y6XQI.mjs +17 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.C3b2Ipoj.mjs +223 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CGPOfp5O.mjs +32 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CHEy9ana.mjs +7 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CTjuIdzk.mjs +27 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CfKy3Kuq.mjs +196 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.D7HkBzZn.mjs +59 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.DNKiVLV7.mjs +400 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.MC5RsXLj.mjs +19 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.jEy9BmRq.mjs +264 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.tQnRaXfX.mjs +240 -0
- package/.output/server/node_modules/unhead/dist/stream/client.mjs +28 -0
- package/.output/server/node_modules/unhead/dist/stream/iife.mjs +2 -0
- package/.output/server/node_modules/unhead/dist/stream/server.mjs +264 -0
- package/.output/server/node_modules/unhead/dist/utils.mjs +7 -0
- package/.output/server/node_modules/unhead/package.json +179 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
- package/.output/server/node_modules/vue/index.js +7 -0
- package/.output/server/node_modules/vue/index.mjs +1 -0
- package/.output/server/node_modules/vue/package.json +112 -0
- package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
- package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +278 -0
- package/.output/server/node_modules/vue-bundle-renderer/package.json +54 -0
- package/.output/server/node_modules/yocto-queue/index.js +90 -0
- package/.output/server/node_modules/yocto-queue/package.json +48 -0
- package/.output/server/node_modules/zod/index.js +4 -0
- package/.output/server/node_modules/zod/package.json +135 -0
- package/.output/server/node_modules/zod/v4/classic/checks.js +1 -0
- package/.output/server/node_modules/zod/v4/classic/coerce.js +17 -0
- package/.output/server/node_modules/zod/v4/classic/compat.js +31 -0
- package/.output/server/node_modules/zod/v4/classic/errors.js +48 -0
- package/.output/server/node_modules/zod/v4/classic/external.js +20 -0
- package/.output/server/node_modules/zod/v4/classic/from-json-schema.js +599 -0
- package/.output/server/node_modules/zod/v4/classic/iso.js +30 -0
- package/.output/server/node_modules/zod/v4/classic/package.json +7 -0
- package/.output/server/node_modules/zod/v4/classic/parse.js +15 -0
- package/.output/server/node_modules/zod/v4/classic/schemas.js +1395 -0
- package/.output/server/node_modules/zod/v4/core/api.js +1087 -0
- package/.output/server/node_modules/zod/v4/core/checks.js +575 -0
- package/.output/server/node_modules/zod/v4/core/core.js +78 -0
- package/.output/server/node_modules/zod/v4/core/doc.js +35 -0
- package/.output/server/node_modules/zod/v4/core/errors.js +185 -0
- package/.output/server/node_modules/zod/v4/core/index.js +16 -0
- package/.output/server/node_modules/zod/v4/core/json-schema-generator.js +95 -0
- package/.output/server/node_modules/zod/v4/core/json-schema-processors.js +601 -0
- package/.output/server/node_modules/zod/v4/core/json-schema.js +1 -0
- package/.output/server/node_modules/zod/v4/core/package.json +7 -0
- package/.output/server/node_modules/zod/v4/core/parse.js +93 -0
- package/.output/server/node_modules/zod/v4/core/regexes.js +139 -0
- package/.output/server/node_modules/zod/v4/core/registries.js +51 -0
- package/.output/server/node_modules/zod/v4/core/schemas.js +2239 -0
- package/.output/server/node_modules/zod/v4/core/to-json-schema.js +448 -0
- package/.output/server/node_modules/zod/v4/core/util.js +674 -0
- package/.output/server/node_modules/zod/v4/core/versions.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/ar.js +106 -0
- package/.output/server/node_modules/zod/v4/locales/az.js +105 -0
- package/.output/server/node_modules/zod/v4/locales/be.js +156 -0
- package/.output/server/node_modules/zod/v4/locales/bg.js +120 -0
- package/.output/server/node_modules/zod/v4/locales/ca.js +107 -0
- package/.output/server/node_modules/zod/v4/locales/cs.js +111 -0
- package/.output/server/node_modules/zod/v4/locales/da.js +115 -0
- package/.output/server/node_modules/zod/v4/locales/de.js +108 -0
- package/.output/server/node_modules/zod/v4/locales/el.js +109 -0
- package/.output/server/node_modules/zod/v4/locales/en.js +113 -0
- package/.output/server/node_modules/zod/v4/locales/eo.js +109 -0
- package/.output/server/node_modules/zod/v4/locales/es.js +132 -0
- package/.output/server/node_modules/zod/v4/locales/fa.js +114 -0
- package/.output/server/node_modules/zod/v4/locales/fi.js +112 -0
- package/.output/server/node_modules/zod/v4/locales/fr-CA.js +107 -0
- package/.output/server/node_modules/zod/v4/locales/fr.js +125 -0
- package/.output/server/node_modules/zod/v4/locales/he.js +214 -0
- package/.output/server/node_modules/zod/v4/locales/hr.js +122 -0
- package/.output/server/node_modules/zod/v4/locales/hu.js +108 -0
- package/.output/server/node_modules/zod/v4/locales/hy.js +147 -0
- package/.output/server/node_modules/zod/v4/locales/id.js +106 -0
- package/.output/server/node_modules/zod/v4/locales/index.js +52 -0
- package/.output/server/node_modules/zod/v4/locales/is.js +109 -0
- package/.output/server/node_modules/zod/v4/locales/it.js +108 -0
- package/.output/server/node_modules/zod/v4/locales/ja.js +107 -0
- package/.output/server/node_modules/zod/v4/locales/ka.js +112 -0
- package/.output/server/node_modules/zod/v4/locales/kh.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/km.js +110 -0
- package/.output/server/node_modules/zod/v4/locales/ko.js +111 -0
- package/.output/server/node_modules/zod/v4/locales/lt.js +203 -0
- package/.output/server/node_modules/zod/v4/locales/mk.js +109 -0
- package/.output/server/node_modules/zod/v4/locales/ms.js +107 -0
- package/.output/server/node_modules/zod/v4/locales/nl.js +110 -0
- package/.output/server/node_modules/zod/v4/locales/no.js +108 -0
- package/.output/server/node_modules/zod/v4/locales/ota.js +109 -0
- package/.output/server/node_modules/zod/v4/locales/package.json +7 -0
- package/.output/server/node_modules/zod/v4/locales/pl.js +109 -0
- package/.output/server/node_modules/zod/v4/locales/ps.js +114 -0
- package/.output/server/node_modules/zod/v4/locales/pt.js +108 -0
- package/.output/server/node_modules/zod/v4/locales/ro.js +119 -0
- package/.output/server/node_modules/zod/v4/locales/ru.js +156 -0
- package/.output/server/node_modules/zod/v4/locales/sl.js +109 -0
- package/.output/server/node_modules/zod/v4/locales/sv.js +110 -0
- package/.output/server/node_modules/zod/v4/locales/ta.js +110 -0
- package/.output/server/node_modules/zod/v4/locales/th.js +110 -0
- package/.output/server/node_modules/zod/v4/locales/tr.js +105 -0
- package/.output/server/node_modules/zod/v4/locales/ua.js +5 -0
- package/.output/server/node_modules/zod/v4/locales/uk.js +108 -0
- package/.output/server/node_modules/zod/v4/locales/ur.js +110 -0
- package/.output/server/node_modules/zod/v4/locales/uz.js +110 -0
- package/.output/server/node_modules/zod/v4/locales/vi.js +108 -0
- package/.output/server/node_modules/zod/v4/locales/yo.js +107 -0
- package/.output/server/node_modules/zod/v4/locales/zh-CN.js +109 -0
- package/.output/server/node_modules/zod/v4/locales/zh-TW.js +107 -0
- package/.output/server/package.json +37 -0
- package/LICENSE +3 -0
- package/README.md +125 -0
- package/dist/src/bbox.js +55 -0
- package/dist/src/cli.js +255 -0
- package/dist/src/config.js +56 -0
- package/dist/src/core/fetch-process.js +19 -0
- package/dist/src/core/grid-renderer.js +149 -0
- package/dist/src/core/lease.js +103 -0
- package/dist/src/core/paths.js +13 -0
- package/dist/src/core/png.js +192 -0
- package/dist/src/core/raster-style.js +33 -0
- package/dist/src/core/uomtiles.js +307 -0
- package/dist/src/fetcher.js +208 -0
- package/dist/src/geographic-grid.js +162 -0
- package/dist/src/grid-crawl.js +478 -0
- package/dist/src/mask-image.js +16 -0
- package/dist/src/official-grid.js +51 -0
- package/dist/src/quality.js +30 -0
- package/dist/src/token.js +206 -0
- package/package.json +68 -0
- package/public/apple-touch-icon.png +0 -0
- package/public/favicon.ico +0 -0
- package/public/favicon.svg +8 -0
- package/public/icon-192.png +0 -0
- package/public/icon-512.png +0 -0
- package/public/site.webmanifest +11 -0
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
import { withLeadingSlash } from "ufo";
|
|
2
|
+
//#region src/runtime.ts
|
|
3
|
+
function createRendererContext({ manifest, precomputed, buildAssetsURL, dependencySetsCacheSize }) {
|
|
4
|
+
if (!manifest && !precomputed) throw new Error("Either manifest or precomputed data must be provided");
|
|
5
|
+
const ctx = {
|
|
6
|
+
buildAssetsURL: buildAssetsURL || withLeadingSlash,
|
|
7
|
+
manifest,
|
|
8
|
+
precomputed,
|
|
9
|
+
updateManifest,
|
|
10
|
+
_dependencies: {},
|
|
11
|
+
_dependencySets: /* @__PURE__ */ new Map(),
|
|
12
|
+
_dependencySetsCacheSize: typeof dependencySetsCacheSize === "number" && Number.isFinite(dependencySetsCacheSize) && dependencySetsCacheSize > 0 ? Math.floor(dependencySetsCacheSize) : dependencySetsCacheSize === void 0 ? 1e3 : 0,
|
|
13
|
+
_entrypoints: [],
|
|
14
|
+
_renderedCache: /* @__PURE__ */ new WeakMap()
|
|
15
|
+
};
|
|
16
|
+
function updateManifest(manifest) {
|
|
17
|
+
ctx.manifest = manifest;
|
|
18
|
+
ctx._dependencies = {};
|
|
19
|
+
ctx._dependencySets.clear();
|
|
20
|
+
ctx._renderedCache = /* @__PURE__ */ new WeakMap();
|
|
21
|
+
const entrypoints = [];
|
|
22
|
+
for (const id in manifest) if (manifest[id].isEntry) entrypoints.push(id);
|
|
23
|
+
ctx._entrypoints = entrypoints;
|
|
24
|
+
}
|
|
25
|
+
if (precomputed) {
|
|
26
|
+
ctx._dependencies = precomputed.dependencies;
|
|
27
|
+
ctx._entrypoints = precomputed.entrypoints;
|
|
28
|
+
} else if (manifest) updateManifest(manifest);
|
|
29
|
+
return ctx;
|
|
30
|
+
}
|
|
31
|
+
function getModuleDependencies(id, rendererContext) {
|
|
32
|
+
if (rendererContext._dependencies[id]) return rendererContext._dependencies[id];
|
|
33
|
+
const dependencies = rendererContext._dependencies[id] = {
|
|
34
|
+
scripts: {},
|
|
35
|
+
styles: {},
|
|
36
|
+
preload: {},
|
|
37
|
+
prefetch: {}
|
|
38
|
+
};
|
|
39
|
+
if (!rendererContext.manifest) return dependencies;
|
|
40
|
+
const meta = rendererContext.manifest[id];
|
|
41
|
+
if (!meta) return dependencies;
|
|
42
|
+
if (meta.file) {
|
|
43
|
+
dependencies.preload[id] = meta;
|
|
44
|
+
if (meta.isEntry || meta.sideEffects) dependencies.scripts[id] = meta;
|
|
45
|
+
}
|
|
46
|
+
for (const css of meta.css || []) dependencies.styles[css] = dependencies.preload[css] = dependencies.prefetch[css] = rendererContext.manifest[css];
|
|
47
|
+
for (const asset of meta.assets || []) dependencies.preload[asset] = dependencies.prefetch[asset] = rendererContext.manifest[asset];
|
|
48
|
+
if (meta.imports) for (const depId of meta.imports) {
|
|
49
|
+
const depDeps = getModuleDependencies(depId, rendererContext);
|
|
50
|
+
Object.assign(dependencies.styles, depDeps.styles);
|
|
51
|
+
Object.assign(dependencies.preload, depDeps.preload);
|
|
52
|
+
Object.assign(dependencies.prefetch, depDeps.prefetch);
|
|
53
|
+
}
|
|
54
|
+
const filteredPreload = {};
|
|
55
|
+
for (const id in dependencies.preload) {
|
|
56
|
+
const dep = dependencies.preload[id];
|
|
57
|
+
if (dep.preload) filteredPreload[id] = dep;
|
|
58
|
+
}
|
|
59
|
+
dependencies.preload = filteredPreload;
|
|
60
|
+
return dependencies;
|
|
61
|
+
}
|
|
62
|
+
function getAllDependencies(ids, rendererContext) {
|
|
63
|
+
const cacheSize = rendererContext._dependencySetsCacheSize;
|
|
64
|
+
const useCache = cacheSize > 0;
|
|
65
|
+
let cacheKey = "";
|
|
66
|
+
if (useCache) {
|
|
67
|
+
if (ids.size <= 1) for (const id of ids) cacheKey = id;
|
|
68
|
+
else cacheKey = [...ids].sort().join(",");
|
|
69
|
+
const cached = rendererContext._dependencySets.get(cacheKey);
|
|
70
|
+
if (cached !== void 0) {
|
|
71
|
+
if (rendererContext._dependencySets.size >= cacheSize) {
|
|
72
|
+
rendererContext._dependencySets.delete(cacheKey);
|
|
73
|
+
rendererContext._dependencySets.set(cacheKey, cached);
|
|
74
|
+
}
|
|
75
|
+
return cached;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
const allDeps = {
|
|
79
|
+
scripts: {},
|
|
80
|
+
styles: {},
|
|
81
|
+
preload: {},
|
|
82
|
+
prefetch: {}
|
|
83
|
+
};
|
|
84
|
+
for (const id of ids) {
|
|
85
|
+
const deps = getModuleDependencies(id, rendererContext);
|
|
86
|
+
Object.assign(allDeps.scripts, deps.scripts);
|
|
87
|
+
Object.assign(allDeps.styles, deps.styles);
|
|
88
|
+
Object.assign(allDeps.preload, deps.preload);
|
|
89
|
+
Object.assign(allDeps.prefetch, deps.prefetch);
|
|
90
|
+
const dynamicImports = rendererContext.manifest?.[id]?.dynamicImports || rendererContext.precomputed?.modules[id]?.dynamicImports;
|
|
91
|
+
if (dynamicImports) for (const dynamicDepId of dynamicImports) {
|
|
92
|
+
const dynamicDeps = getModuleDependencies(dynamicDepId, rendererContext);
|
|
93
|
+
Object.assign(allDeps.prefetch, dynamicDeps.scripts);
|
|
94
|
+
Object.assign(allDeps.prefetch, dynamicDeps.styles);
|
|
95
|
+
Object.assign(allDeps.prefetch, dynamicDeps.preload);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
const mergedPreload = allDeps.preload;
|
|
99
|
+
const styles = allDeps.styles;
|
|
100
|
+
const filteredPrefetch = {};
|
|
101
|
+
for (const id in allDeps.prefetch) {
|
|
102
|
+
const dep = allDeps.prefetch[id];
|
|
103
|
+
if (dep.prefetch && !(id in mergedPreload) && !(id in styles)) filteredPrefetch[id] = dep;
|
|
104
|
+
}
|
|
105
|
+
allDeps.prefetch = filteredPrefetch;
|
|
106
|
+
const filteredPreload = {};
|
|
107
|
+
for (const id in mergedPreload) if (!(id in styles)) filteredPreload[id] = mergedPreload[id];
|
|
108
|
+
allDeps.preload = filteredPreload;
|
|
109
|
+
if (useCache) {
|
|
110
|
+
rendererContext._dependencySets.set(cacheKey, allDeps);
|
|
111
|
+
if (rendererContext._dependencySets.size > cacheSize) {
|
|
112
|
+
const oldest = rendererContext._dependencySets.keys().next().value;
|
|
113
|
+
if (oldest !== void 0) rendererContext._dependencySets.delete(oldest);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
return allDeps;
|
|
117
|
+
}
|
|
118
|
+
function getRequestDependencies(ssrContext, rendererContext, options) {
|
|
119
|
+
const excluded = options?.exclude ? new Set(options.exclude) : void 0;
|
|
120
|
+
const hasExcluded = excluded && excluded.size > 0;
|
|
121
|
+
if (!hasExcluded && ssrContext._requestDependencies) return ssrContext._requestDependencies;
|
|
122
|
+
let ids;
|
|
123
|
+
const requestIds = ssrContext.modules || ssrContext._registeredComponents;
|
|
124
|
+
if (hasExcluded) {
|
|
125
|
+
ids = /* @__PURE__ */ new Set();
|
|
126
|
+
for (const id of rendererContext._entrypoints) if (!excluded.has(id)) ids.add(id);
|
|
127
|
+
if (requestIds) {
|
|
128
|
+
for (const id of requestIds) if (!excluded.has(id)) ids.add(id);
|
|
129
|
+
}
|
|
130
|
+
} else {
|
|
131
|
+
ids = new Set(rendererContext._entrypoints);
|
|
132
|
+
if (requestIds) for (const id of requestIds) ids.add(id);
|
|
133
|
+
}
|
|
134
|
+
const deps = getAllDependencies(ids, rendererContext);
|
|
135
|
+
if (!hasExcluded) ssrContext._requestDependencies = deps;
|
|
136
|
+
return deps;
|
|
137
|
+
}
|
|
138
|
+
function getRenderedOutputs(rendererContext, deps) {
|
|
139
|
+
let entry = rendererContext._renderedCache.get(deps);
|
|
140
|
+
if (!entry) {
|
|
141
|
+
entry = {};
|
|
142
|
+
rendererContext._renderedCache.set(deps, entry);
|
|
143
|
+
}
|
|
144
|
+
return entry;
|
|
145
|
+
}
|
|
146
|
+
function renderStyles(ssrContext, rendererContext) {
|
|
147
|
+
const deps = getRequestDependencies(ssrContext, rendererContext);
|
|
148
|
+
const rendered = getRenderedOutputs(rendererContext, deps);
|
|
149
|
+
if (rendered.styles !== void 0) return rendered.styles;
|
|
150
|
+
const { styles } = deps;
|
|
151
|
+
let result = "";
|
|
152
|
+
for (const key in styles) {
|
|
153
|
+
const resource = styles[key];
|
|
154
|
+
result += `<link rel="stylesheet" href="${rendererContext.buildAssetsURL(resource.file)}" crossorigin>`;
|
|
155
|
+
}
|
|
156
|
+
rendered.styles = result;
|
|
157
|
+
return result;
|
|
158
|
+
}
|
|
159
|
+
function getResources(ssrContext, rendererContext) {
|
|
160
|
+
return [...getPreloadLinks(ssrContext, rendererContext), ...getPrefetchLinks(ssrContext, rendererContext)];
|
|
161
|
+
}
|
|
162
|
+
function renderResourceHints(ssrContext, rendererContext, options) {
|
|
163
|
+
const deps = getRequestDependencies(ssrContext, rendererContext, options);
|
|
164
|
+
const rendered = getRenderedOutputs(rendererContext, deps);
|
|
165
|
+
if (rendered.hints !== void 0) return rendered.hints;
|
|
166
|
+
const { preload, prefetch } = deps;
|
|
167
|
+
let result = "";
|
|
168
|
+
for (const key in preload) {
|
|
169
|
+
const resource = preload[key];
|
|
170
|
+
const href = rendererContext.buildAssetsURL(resource.file);
|
|
171
|
+
const rel = resource.module ? "modulepreload" : "preload";
|
|
172
|
+
const crossorigin = resource.resourceType === "style" || resource.resourceType === "font" || resource.resourceType === "script" || resource.module ? " crossorigin" : "";
|
|
173
|
+
if (resource.resourceType && resource.mimeType) result += `<link rel="${rel}" as="${resource.resourceType}" type="${resource.mimeType}"${crossorigin} href="${href}">`;
|
|
174
|
+
else if (resource.resourceType) result += `<link rel="${rel}" as="${resource.resourceType}"${crossorigin} href="${href}">`;
|
|
175
|
+
else result += `<link rel="${rel}"${crossorigin} href="${href}">`;
|
|
176
|
+
}
|
|
177
|
+
for (const key in prefetch) {
|
|
178
|
+
const resource = prefetch[key];
|
|
179
|
+
const href = rendererContext.buildAssetsURL(resource.file);
|
|
180
|
+
const crossorigin = resource.resourceType === "style" || resource.resourceType === "font" || resource.resourceType === "script" || resource.module ? " crossorigin" : "";
|
|
181
|
+
if (resource.resourceType && resource.mimeType) result += `<link rel="prefetch" as="${resource.resourceType}" type="${resource.mimeType}"${crossorigin} href="${href}">`;
|
|
182
|
+
else if (resource.resourceType) result += `<link rel="prefetch" as="${resource.resourceType}"${crossorigin} href="${href}">`;
|
|
183
|
+
else result += `<link rel="prefetch"${crossorigin} href="${href}">`;
|
|
184
|
+
}
|
|
185
|
+
rendered.hints = result;
|
|
186
|
+
return result;
|
|
187
|
+
}
|
|
188
|
+
const NON_ASCII_RE = /[^\0-\u007F]+/g;
|
|
189
|
+
function renderResourceHeaders(ssrContext, rendererContext, options) {
|
|
190
|
+
const deps = getRequestDependencies(ssrContext, rendererContext, options);
|
|
191
|
+
const rendered = getRenderedOutputs(rendererContext, deps);
|
|
192
|
+
if (rendered.headerLink !== void 0) return { link: rendered.headerLink };
|
|
193
|
+
const { preload, prefetch } = deps;
|
|
194
|
+
const links = [];
|
|
195
|
+
for (const key in preload) {
|
|
196
|
+
const resource = preload[key];
|
|
197
|
+
let header = `<${rendererContext.buildAssetsURL(resource.file).replace(NON_ASCII_RE, encodeURIComponent)}>; rel="${resource.module ? "modulepreload" : "preload"}"`;
|
|
198
|
+
if (resource.resourceType) header += `; as="${resource.resourceType}"`;
|
|
199
|
+
if (resource.mimeType) header += `; type="${resource.mimeType}"`;
|
|
200
|
+
if (resource.resourceType === "style" || resource.resourceType === "font" || resource.resourceType === "script" || resource.module) header += "; crossorigin";
|
|
201
|
+
links.push(header);
|
|
202
|
+
}
|
|
203
|
+
for (const key in prefetch) {
|
|
204
|
+
const resource = prefetch[key];
|
|
205
|
+
let header = `<${rendererContext.buildAssetsURL(resource.file).replace(NON_ASCII_RE, encodeURIComponent)}>; rel="prefetch"`;
|
|
206
|
+
if (resource.resourceType) header += `; as="${resource.resourceType}"`;
|
|
207
|
+
if (resource.mimeType) header += `; type="${resource.mimeType}"`;
|
|
208
|
+
if (resource.resourceType === "style" || resource.resourceType === "font" || resource.resourceType === "script" || resource.module) header += "; crossorigin";
|
|
209
|
+
links.push(header);
|
|
210
|
+
}
|
|
211
|
+
rendered.headerLink = links.join(", ");
|
|
212
|
+
return { link: rendered.headerLink };
|
|
213
|
+
}
|
|
214
|
+
function getPreloadLinks(ssrContext, rendererContext, options) {
|
|
215
|
+
const { preload } = getRequestDependencies(ssrContext, rendererContext, options);
|
|
216
|
+
const result = [];
|
|
217
|
+
for (const key in preload) {
|
|
218
|
+
const resource = preload[key];
|
|
219
|
+
result.push({
|
|
220
|
+
rel: resource.module ? "modulepreload" : "preload",
|
|
221
|
+
as: resource.resourceType,
|
|
222
|
+
type: resource.mimeType ?? null,
|
|
223
|
+
crossorigin: resource.resourceType === "style" || resource.resourceType === "font" || resource.resourceType === "script" || resource.module ? "" : null,
|
|
224
|
+
href: rendererContext.buildAssetsURL(resource.file)
|
|
225
|
+
});
|
|
226
|
+
}
|
|
227
|
+
return result;
|
|
228
|
+
}
|
|
229
|
+
function getPrefetchLinks(ssrContext, rendererContext, options) {
|
|
230
|
+
const { prefetch } = getRequestDependencies(ssrContext, rendererContext, options);
|
|
231
|
+
const result = [];
|
|
232
|
+
for (const key in prefetch) {
|
|
233
|
+
const resource = prefetch[key];
|
|
234
|
+
result.push({
|
|
235
|
+
rel: "prefetch",
|
|
236
|
+
as: resource.resourceType,
|
|
237
|
+
type: resource.mimeType ?? null,
|
|
238
|
+
crossorigin: resource.resourceType === "style" || resource.resourceType === "font" || resource.resourceType === "script" || resource.module ? "" : null,
|
|
239
|
+
href: rendererContext.buildAssetsURL(resource.file)
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
return result;
|
|
243
|
+
}
|
|
244
|
+
function renderScripts(ssrContext, rendererContext) {
|
|
245
|
+
const deps = getRequestDependencies(ssrContext, rendererContext);
|
|
246
|
+
const rendered = getRenderedOutputs(rendererContext, deps);
|
|
247
|
+
if (rendered.scripts !== void 0) return rendered.scripts;
|
|
248
|
+
const { scripts } = deps;
|
|
249
|
+
let result = "";
|
|
250
|
+
for (const key in scripts) {
|
|
251
|
+
const resource = scripts[key];
|
|
252
|
+
if (resource.module) result += `<script type="module" src="${rendererContext.buildAssetsURL(resource.file)}" crossorigin><\/script>`;
|
|
253
|
+
else result += `<script src="${rendererContext.buildAssetsURL(resource.file)}" defer crossorigin><\/script>`;
|
|
254
|
+
}
|
|
255
|
+
rendered.scripts = result;
|
|
256
|
+
return result;
|
|
257
|
+
}
|
|
258
|
+
function createRenderer(createApp, renderOptions) {
|
|
259
|
+
const rendererContext = createRendererContext(renderOptions);
|
|
260
|
+
return {
|
|
261
|
+
rendererContext,
|
|
262
|
+
async renderToString(ssrContext) {
|
|
263
|
+
ssrContext._registeredComponents = ssrContext._registeredComponents || /* @__PURE__ */ new Set();
|
|
264
|
+
const app = await (await Promise.resolve(createApp).then((r) => "default" in r ? r.default : r))(ssrContext);
|
|
265
|
+
const html = await renderOptions.renderToString(app, ssrContext);
|
|
266
|
+
const wrap = (fn) => () => fn(ssrContext, rendererContext);
|
|
267
|
+
return {
|
|
268
|
+
html,
|
|
269
|
+
renderResourceHeaders: wrap(renderResourceHeaders),
|
|
270
|
+
renderResourceHints: wrap(renderResourceHints),
|
|
271
|
+
renderStyles: wrap(renderStyles),
|
|
272
|
+
renderScripts: wrap(renderScripts)
|
|
273
|
+
};
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
}
|
|
277
|
+
//#endregion
|
|
278
|
+
export { createRenderer, createRendererContext, getAllDependencies, getModuleDependencies, getPrefetchLinks, getPreloadLinks, getRequestDependencies, getResources, renderResourceHeaders, renderResourceHints, renderScripts, renderStyles };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "vue-bundle-renderer",
|
|
3
|
+
"version": "2.3.2",
|
|
4
|
+
"description": "Bundle Renderer for Vue 3.0",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "nuxt-contrib/vue-bundle-renderer"
|
|
8
|
+
},
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dist/index.d.mts",
|
|
13
|
+
"import": "./dist/index.mjs",
|
|
14
|
+
"require": "./dist/index.cjs"
|
|
15
|
+
},
|
|
16
|
+
"./runtime": {
|
|
17
|
+
"types": "./dist/runtime.d.mts",
|
|
18
|
+
"import": "./dist/runtime.mjs",
|
|
19
|
+
"require": "./dist/runtime.cjs"
|
|
20
|
+
},
|
|
21
|
+
"./package.json": "./package.json"
|
|
22
|
+
},
|
|
23
|
+
"main": "./dist/index.cjs",
|
|
24
|
+
"module": "./dist/index.mjs",
|
|
25
|
+
"types": "./dist/index.d.mts",
|
|
26
|
+
"files": [
|
|
27
|
+
"dist",
|
|
28
|
+
"runtime.d.ts"
|
|
29
|
+
],
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"ufo": "^1.6.4"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@codspeed/vitest-plugin": "^5.7.1",
|
|
35
|
+
"@nuxt/eslint-config": "^1.16.0",
|
|
36
|
+
"@types/node": "^24.13.3",
|
|
37
|
+
"@vitest/coverage-v8": "^4.1.10",
|
|
38
|
+
"eslint": "^10.8.0",
|
|
39
|
+
"pkg-pr-new": "^0.0.86",
|
|
40
|
+
"std-env": "^4.2.0",
|
|
41
|
+
"tsdown": "0.22.14",
|
|
42
|
+
"typescript": "^6.0.3",
|
|
43
|
+
"vite": "^8.2.0",
|
|
44
|
+
"vitest": "4.1.10",
|
|
45
|
+
"vue": "3.5.40"
|
|
46
|
+
},
|
|
47
|
+
"scripts": {
|
|
48
|
+
"build": "tsdown",
|
|
49
|
+
"dev": "vitest",
|
|
50
|
+
"lint": "eslint src",
|
|
51
|
+
"test": "pnpm lint && pnpm vitest run --coverage && tsc --noEmit",
|
|
52
|
+
"bench": "vitest bench"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/*
|
|
2
|
+
How it works:
|
|
3
|
+
`this.#head` is an instance of `Node` which keeps track of its current value and nests another instance of `Node` that keeps the value that comes after it. When a value is provided to `.enqueue()`, the code needs to iterate through `this.#head`, going deeper and deeper to find the last value. However, iterating through every single item is slow. This problem is solved by saving a reference to the last value as `this.#tail` so that it can reference it to add a new value.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
class Node {
|
|
7
|
+
value;
|
|
8
|
+
next;
|
|
9
|
+
|
|
10
|
+
constructor(value) {
|
|
11
|
+
this.value = value;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export default class Queue {
|
|
16
|
+
#head;
|
|
17
|
+
#tail;
|
|
18
|
+
#size;
|
|
19
|
+
|
|
20
|
+
constructor() {
|
|
21
|
+
this.clear();
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
enqueue(value) {
|
|
25
|
+
const node = new Node(value);
|
|
26
|
+
|
|
27
|
+
if (this.#head) {
|
|
28
|
+
this.#tail.next = node;
|
|
29
|
+
this.#tail = node;
|
|
30
|
+
} else {
|
|
31
|
+
this.#head = node;
|
|
32
|
+
this.#tail = node;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
this.#size++;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
dequeue() {
|
|
39
|
+
const current = this.#head;
|
|
40
|
+
if (!current) {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
this.#head = this.#head.next;
|
|
45
|
+
this.#size--;
|
|
46
|
+
|
|
47
|
+
// Clean up tail reference when queue becomes empty
|
|
48
|
+
if (!this.#head) {
|
|
49
|
+
this.#tail = undefined;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
return current.value;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
peek() {
|
|
56
|
+
if (!this.#head) {
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
return this.#head.value;
|
|
61
|
+
|
|
62
|
+
// TODO: Node.js 18.
|
|
63
|
+
// return this.#head?.value;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
clear() {
|
|
67
|
+
this.#head = undefined;
|
|
68
|
+
this.#tail = undefined;
|
|
69
|
+
this.#size = 0;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
get size() {
|
|
73
|
+
return this.#size;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
* [Symbol.iterator]() {
|
|
77
|
+
let current = this.#head;
|
|
78
|
+
|
|
79
|
+
while (current) {
|
|
80
|
+
yield current.value;
|
|
81
|
+
current = current.next;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
* drain() {
|
|
86
|
+
while (this.#head) {
|
|
87
|
+
yield this.dequeue();
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "yocto-queue",
|
|
3
|
+
"version": "1.2.2",
|
|
4
|
+
"description": "Tiny queue data structure",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"repository": "sindresorhus/yocto-queue",
|
|
7
|
+
"funding": "https://github.com/sponsors/sindresorhus",
|
|
8
|
+
"author": {
|
|
9
|
+
"name": "Sindre Sorhus",
|
|
10
|
+
"email": "sindresorhus@gmail.com",
|
|
11
|
+
"url": "https://sindresorhus.com"
|
|
12
|
+
},
|
|
13
|
+
"type": "module",
|
|
14
|
+
"exports": "./index.js",
|
|
15
|
+
"types": "./index.d.ts",
|
|
16
|
+
"sideEffects": false,
|
|
17
|
+
"engines": {
|
|
18
|
+
"node": ">=12.20"
|
|
19
|
+
},
|
|
20
|
+
"scripts": {
|
|
21
|
+
"//test": "xo && ava && tsd",
|
|
22
|
+
"test": "ava && tsd"
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"index.js",
|
|
26
|
+
"index.d.ts"
|
|
27
|
+
],
|
|
28
|
+
"keywords": [
|
|
29
|
+
"queue",
|
|
30
|
+
"data",
|
|
31
|
+
"structure",
|
|
32
|
+
"algorithm",
|
|
33
|
+
"queues",
|
|
34
|
+
"queuing",
|
|
35
|
+
"list",
|
|
36
|
+
"array",
|
|
37
|
+
"linkedlist",
|
|
38
|
+
"fifo",
|
|
39
|
+
"enqueue",
|
|
40
|
+
"dequeue",
|
|
41
|
+
"data-structure"
|
|
42
|
+
],
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"ava": "^3.15.0",
|
|
45
|
+
"tsd": "^0.17.0",
|
|
46
|
+
"xo": "^0.44.0"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "zod",
|
|
3
|
+
"version": "4.4.3",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Colin McDonnell <zod@colinhacks.com>",
|
|
7
|
+
"description": "TypeScript-first schema declaration and validation library with static type inference",
|
|
8
|
+
"homepage": "https://zod.dev",
|
|
9
|
+
"llms": "https://zod.dev/llms.txt",
|
|
10
|
+
"llmsFull": "https://zod.dev/llms-full.txt",
|
|
11
|
+
"mcpServer": "https://mcp.inkeep.com/zod/mcp",
|
|
12
|
+
"funding": "https://github.com/sponsors/colinhacks",
|
|
13
|
+
"sideEffects": false,
|
|
14
|
+
"files": [
|
|
15
|
+
"src",
|
|
16
|
+
"**/*.js",
|
|
17
|
+
"**/*.mjs",
|
|
18
|
+
"**/*.cjs",
|
|
19
|
+
"**/*.d.ts",
|
|
20
|
+
"**/*.d.mts",
|
|
21
|
+
"**/*.d.cts",
|
|
22
|
+
"**/package.json"
|
|
23
|
+
],
|
|
24
|
+
"keywords": [
|
|
25
|
+
"typescript",
|
|
26
|
+
"schema",
|
|
27
|
+
"validation",
|
|
28
|
+
"type",
|
|
29
|
+
"inference"
|
|
30
|
+
],
|
|
31
|
+
"main": "./index.cjs",
|
|
32
|
+
"types": "./index.d.cts",
|
|
33
|
+
"module": "./index.js",
|
|
34
|
+
"zshy": {
|
|
35
|
+
"exports": {
|
|
36
|
+
"./package.json": "./package.json",
|
|
37
|
+
".": "./src/index.ts",
|
|
38
|
+
"./mini": "./src/mini/index.ts",
|
|
39
|
+
"./locales": "./src/locales/index.ts",
|
|
40
|
+
"./v3": "./src/v3/index.ts",
|
|
41
|
+
"./v4": "./src/v4/index.ts",
|
|
42
|
+
"./v4-mini": "./src/v4-mini/index.ts",
|
|
43
|
+
"./v4/mini": "./src/v4/mini/index.ts",
|
|
44
|
+
"./v4/core": "./src/v4/core/index.ts",
|
|
45
|
+
"./v4/locales": "./src/v4/locales/index.ts",
|
|
46
|
+
"./v4/locales/*": "./src/v4/locales/*"
|
|
47
|
+
},
|
|
48
|
+
"conditions": {
|
|
49
|
+
"@zod/source": "src"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"exports": {
|
|
53
|
+
"./package.json": "./package.json",
|
|
54
|
+
".": {
|
|
55
|
+
"@zod/source": "./src/index.ts",
|
|
56
|
+
"types": "./index.d.cts",
|
|
57
|
+
"import": "./index.js",
|
|
58
|
+
"require": "./index.cjs"
|
|
59
|
+
},
|
|
60
|
+
"./mini": {
|
|
61
|
+
"@zod/source": "./src/mini/index.ts",
|
|
62
|
+
"types": "./mini/index.d.cts",
|
|
63
|
+
"import": "./mini/index.js",
|
|
64
|
+
"require": "./mini/index.cjs"
|
|
65
|
+
},
|
|
66
|
+
"./locales": {
|
|
67
|
+
"@zod/source": "./src/locales/index.ts",
|
|
68
|
+
"types": "./locales/index.d.cts",
|
|
69
|
+
"import": "./locales/index.js",
|
|
70
|
+
"require": "./locales/index.cjs"
|
|
71
|
+
},
|
|
72
|
+
"./v3": {
|
|
73
|
+
"@zod/source": "./src/v3/index.ts",
|
|
74
|
+
"types": "./v3/index.d.cts",
|
|
75
|
+
"import": "./v3/index.js",
|
|
76
|
+
"require": "./v3/index.cjs"
|
|
77
|
+
},
|
|
78
|
+
"./v4": {
|
|
79
|
+
"@zod/source": "./src/v4/index.ts",
|
|
80
|
+
"types": "./v4/index.d.cts",
|
|
81
|
+
"import": "./v4/index.js",
|
|
82
|
+
"require": "./v4/index.cjs"
|
|
83
|
+
},
|
|
84
|
+
"./v4-mini": {
|
|
85
|
+
"@zod/source": "./src/v4-mini/index.ts",
|
|
86
|
+
"types": "./v4-mini/index.d.cts",
|
|
87
|
+
"import": "./v4-mini/index.js",
|
|
88
|
+
"require": "./v4-mini/index.cjs"
|
|
89
|
+
},
|
|
90
|
+
"./v4/mini": {
|
|
91
|
+
"@zod/source": "./src/v4/mini/index.ts",
|
|
92
|
+
"types": "./v4/mini/index.d.cts",
|
|
93
|
+
"import": "./v4/mini/index.js",
|
|
94
|
+
"require": "./v4/mini/index.cjs"
|
|
95
|
+
},
|
|
96
|
+
"./v4/core": {
|
|
97
|
+
"@zod/source": "./src/v4/core/index.ts",
|
|
98
|
+
"types": "./v4/core/index.d.cts",
|
|
99
|
+
"import": "./v4/core/index.js",
|
|
100
|
+
"require": "./v4/core/index.cjs"
|
|
101
|
+
},
|
|
102
|
+
"./v4/locales": {
|
|
103
|
+
"@zod/source": "./src/v4/locales/index.ts",
|
|
104
|
+
"types": "./v4/locales/index.d.cts",
|
|
105
|
+
"import": "./v4/locales/index.js",
|
|
106
|
+
"require": "./v4/locales/index.cjs"
|
|
107
|
+
},
|
|
108
|
+
"./v4/locales/*": {
|
|
109
|
+
"@zod/source": "./src/v4/locales/*",
|
|
110
|
+
"types": "./v4/locales/*",
|
|
111
|
+
"import": "./v4/locales/*",
|
|
112
|
+
"require": "./v4/locales/*"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
"repository": {
|
|
116
|
+
"type": "git",
|
|
117
|
+
"url": "git+https://github.com/colinhacks/zod.git"
|
|
118
|
+
},
|
|
119
|
+
"bugs": {
|
|
120
|
+
"url": "https://github.com/colinhacks/zod/issues"
|
|
121
|
+
},
|
|
122
|
+
"support": {
|
|
123
|
+
"backing": {
|
|
124
|
+
"npm-funding": true
|
|
125
|
+
}
|
|
126
|
+
},
|
|
127
|
+
"scripts": {
|
|
128
|
+
"clean": "git clean -xdf . -e node_modules",
|
|
129
|
+
"build": "zshy --project tsconfig.build.json",
|
|
130
|
+
"postbuild": "tsx ../../scripts/write-stub-package-jsons.ts && pnpm biome check --write .",
|
|
131
|
+
"test:watch": "pnpm vitest",
|
|
132
|
+
"test": "pnpm vitest run",
|
|
133
|
+
"prepublishOnly": "tsx ../../scripts/check-versions.ts"
|
|
134
|
+
}
|
|
135
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { _lt as lt, _lte as lte, _gt as gt, _gte as gte, _positive as positive, _negative as negative, _nonpositive as nonpositive, _nonnegative as nonnegative, _multipleOf as multipleOf, _maxSize as maxSize, _minSize as minSize, _size as size, _maxLength as maxLength, _minLength as minLength, _length as length, _regex as regex, _lowercase as lowercase, _uppercase as uppercase, _includes as includes, _startsWith as startsWith, _endsWith as endsWith, _property as property, _mime as mime, _overwrite as overwrite, _normalize as normalize, _trim as trim, _toLowerCase as toLowerCase, _toUpperCase as toUpperCase, _slugify as slugify, } from "../core/index.js";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as core from "../core/index.js";
|
|
2
|
+
import * as schemas from "./schemas.js";
|
|
3
|
+
export function string(params) {
|
|
4
|
+
return core._coercedString(schemas.ZodString, params);
|
|
5
|
+
}
|
|
6
|
+
export function number(params) {
|
|
7
|
+
return core._coercedNumber(schemas.ZodNumber, params);
|
|
8
|
+
}
|
|
9
|
+
export function boolean(params) {
|
|
10
|
+
return core._coercedBoolean(schemas.ZodBoolean, params);
|
|
11
|
+
}
|
|
12
|
+
export function bigint(params) {
|
|
13
|
+
return core._coercedBigint(schemas.ZodBigInt, params);
|
|
14
|
+
}
|
|
15
|
+
export function date(params) {
|
|
16
|
+
return core._coercedDate(schemas.ZodDate, params);
|
|
17
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// Zod 3 compat layer
|
|
2
|
+
import * as core from "../core/index.js";
|
|
3
|
+
/** @deprecated Use the raw string literal codes instead, e.g. "invalid_type". */
|
|
4
|
+
export const ZodIssueCode = {
|
|
5
|
+
invalid_type: "invalid_type",
|
|
6
|
+
too_big: "too_big",
|
|
7
|
+
too_small: "too_small",
|
|
8
|
+
invalid_format: "invalid_format",
|
|
9
|
+
not_multiple_of: "not_multiple_of",
|
|
10
|
+
unrecognized_keys: "unrecognized_keys",
|
|
11
|
+
invalid_union: "invalid_union",
|
|
12
|
+
invalid_key: "invalid_key",
|
|
13
|
+
invalid_element: "invalid_element",
|
|
14
|
+
invalid_value: "invalid_value",
|
|
15
|
+
custom: "custom",
|
|
16
|
+
};
|
|
17
|
+
export { $brand, config } from "../core/index.js";
|
|
18
|
+
/** @deprecated Use `z.config(params)` instead. */
|
|
19
|
+
export function setErrorMap(map) {
|
|
20
|
+
core.config({
|
|
21
|
+
customError: map,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
/** @deprecated Use `z.config()` instead. */
|
|
25
|
+
export function getErrorMap() {
|
|
26
|
+
return core.config().customError;
|
|
27
|
+
}
|
|
28
|
+
/** @deprecated Do not use. Stub definition, only included for zod-to-json-schema compatibility. */
|
|
29
|
+
export var ZodFirstPartyTypeKind;
|
|
30
|
+
(function (ZodFirstPartyTypeKind) {
|
|
31
|
+
})(ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {}));
|