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,128 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "fflate",
|
|
3
|
+
"version": "0.8.3",
|
|
4
|
+
"description": "High performance (de)compression in an 8kB package",
|
|
5
|
+
"main": "./lib/index.cjs",
|
|
6
|
+
"module": "./esm/browser.js",
|
|
7
|
+
"types": "./lib/index.d.ts",
|
|
8
|
+
"unpkg": "./umd/index.js",
|
|
9
|
+
"jsdelivr": "./umd/index.js",
|
|
10
|
+
"browser": {
|
|
11
|
+
"./lib/node-worker.cjs": "./lib/worker.cjs"
|
|
12
|
+
},
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"node": {
|
|
16
|
+
"import": {
|
|
17
|
+
"types": "./esm/index.d.mts",
|
|
18
|
+
"default": "./esm/index.mjs"
|
|
19
|
+
},
|
|
20
|
+
"require": {
|
|
21
|
+
"types": "./lib/node.d.cts",
|
|
22
|
+
"default": "./lib/node.cjs"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"import": {
|
|
26
|
+
"types": "./esm/browser.d.ts",
|
|
27
|
+
"default": "./esm/browser.js"
|
|
28
|
+
},
|
|
29
|
+
"require": {
|
|
30
|
+
"types": "./lib/browser.d.cts",
|
|
31
|
+
"default": "./lib/browser.cjs"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"./node": {
|
|
35
|
+
"import": {
|
|
36
|
+
"types": "./esm/index.d.mts",
|
|
37
|
+
"default": "./esm/index.mjs"
|
|
38
|
+
},
|
|
39
|
+
"require": {
|
|
40
|
+
"types": "./lib/node.d.cts",
|
|
41
|
+
"default": "./lib/node.cjs"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"./browser": {
|
|
45
|
+
"import": {
|
|
46
|
+
"types": "./esm/browser.d.ts",
|
|
47
|
+
"default": "./esm/browser.js"
|
|
48
|
+
},
|
|
49
|
+
"require": {
|
|
50
|
+
"types": "./lib/browser.d.cts",
|
|
51
|
+
"default": "./lib/browser.cjs"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"./package.json": "./package.json"
|
|
55
|
+
},
|
|
56
|
+
"targets": {
|
|
57
|
+
"main": false,
|
|
58
|
+
"module": false,
|
|
59
|
+
"browser": false,
|
|
60
|
+
"types": false
|
|
61
|
+
},
|
|
62
|
+
"sideEffects": false,
|
|
63
|
+
"homepage": "https://101arrowz.github.io/fflate",
|
|
64
|
+
"repository": "https://github.com/101arrowz/fflate",
|
|
65
|
+
"bugs": {
|
|
66
|
+
"email": "arjunbarrett@gmail.com",
|
|
67
|
+
"url": "https://github.com/101arrowz/fflate/issues"
|
|
68
|
+
},
|
|
69
|
+
"author": "Arjun Barrett <arjunbarrett@gmail.com>",
|
|
70
|
+
"license": "MIT",
|
|
71
|
+
"keywords": [
|
|
72
|
+
"gzip",
|
|
73
|
+
"gunzip",
|
|
74
|
+
"deflate",
|
|
75
|
+
"inflate",
|
|
76
|
+
"compression",
|
|
77
|
+
"decompression",
|
|
78
|
+
"zlib",
|
|
79
|
+
"pako",
|
|
80
|
+
"jszip",
|
|
81
|
+
"browser",
|
|
82
|
+
"node.js",
|
|
83
|
+
"tiny",
|
|
84
|
+
"fast",
|
|
85
|
+
"zip",
|
|
86
|
+
"unzip",
|
|
87
|
+
"non-blocking"
|
|
88
|
+
],
|
|
89
|
+
"scripts": {
|
|
90
|
+
"build": "npm run build:lib && npm run build:docs && npm run build:demo",
|
|
91
|
+
"script": "node -r ts-node/register scripts/$SC.ts",
|
|
92
|
+
"build:lib": "tsc && tsc --project tsconfig.esm.json && npm run build:rewrite && npm run build:umd",
|
|
93
|
+
"build:umd": "SC=buildUMD npm run script",
|
|
94
|
+
"build:rewrite": "SC=rewriteBuilds npm run script",
|
|
95
|
+
"build:demo": "tsc --project tsconfig.demo.json && parcel build demo/index.html --no-cache --public-url \"./\" && SC=cpGHPages npm run script",
|
|
96
|
+
"build:docs": "typedoc --plugin typedoc-plugin-markdown --hideBreadcrumbs --readme none --disableSources --excludePrivate --excludeProtected --expandParameters --githubPages false --out docs/ src/index.ts",
|
|
97
|
+
"test": "TS_NODE_PROJECT=test/tsconfig.json uvu -b -r ts-node/register test",
|
|
98
|
+
"prepack": "npm run build && npm run test"
|
|
99
|
+
},
|
|
100
|
+
"devDependencies": {
|
|
101
|
+
"@parcel/service-worker": "^2.9.3",
|
|
102
|
+
"@types/node": "^25.8.0",
|
|
103
|
+
"@types/pako": "*",
|
|
104
|
+
"@types/react": "^18.2.21",
|
|
105
|
+
"@types/react-dom": "^18.2.7",
|
|
106
|
+
"jszip": "^3.10.1",
|
|
107
|
+
"pako": "*",
|
|
108
|
+
"parcel": "^2.9.3",
|
|
109
|
+
"preact": "^10.17.1",
|
|
110
|
+
"react": "^18.2.0",
|
|
111
|
+
"react-dom": "^18.2.0",
|
|
112
|
+
"simple-git": "^3.19.1",
|
|
113
|
+
"terser": "^5.47.1",
|
|
114
|
+
"tiny-inflate": "*",
|
|
115
|
+
"ts-node": "^10.9.2",
|
|
116
|
+
"typedoc": "^0.28.19",
|
|
117
|
+
"typedoc-plugin-markdown": "^4.11.0",
|
|
118
|
+
"typescript": "^6.0.3",
|
|
119
|
+
"uvu": "^0.5.6",
|
|
120
|
+
"uzip": "*"
|
|
121
|
+
},
|
|
122
|
+
"alias": {
|
|
123
|
+
"react": "preact/compat",
|
|
124
|
+
"react-dom": "preact/compat",
|
|
125
|
+
"buffer": false,
|
|
126
|
+
"process": false
|
|
127
|
+
}
|
|
128
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
//#region src/index.ts
|
|
2
|
+
/**
|
|
3
|
+
* Compute the 64-bit FNV-1a hash of a string as two 32-bit lanes.
|
|
4
|
+
*
|
|
5
|
+
* This is the fast core: no BigInt, no allocations, plain `Math.imul`-free
|
|
6
|
+
* 32-bit arithmetic. Prefer {@link fnv1a64Hex} or {@link fnv1a64Base36} for a
|
|
7
|
+
* usable key; use this directly only when you want to avoid string formatting.
|
|
8
|
+
*
|
|
9
|
+
* The hash is computed over UTF-16 code units (`str.charCodeAt(i)`), not UTF-8
|
|
10
|
+
* bytes. For ASCII input this matches a canonical FNV-1a-64; for non-ASCII it
|
|
11
|
+
* does not. See the README for details.
|
|
12
|
+
*
|
|
13
|
+
* @param str - The string to hash.
|
|
14
|
+
* @returns The `{ high, low }` 32-bit lanes of the 64-bit hash.
|
|
15
|
+
*/
|
|
16
|
+
function fnv1a64(str) {
|
|
17
|
+
const len = str.length;
|
|
18
|
+
let i = 0;
|
|
19
|
+
let t0 = 0;
|
|
20
|
+
let v0 = 8997;
|
|
21
|
+
let t1 = 0;
|
|
22
|
+
let v1 = 33826;
|
|
23
|
+
let t2 = 0;
|
|
24
|
+
let v2 = 40164;
|
|
25
|
+
let t3 = 0;
|
|
26
|
+
let v3 = 52210;
|
|
27
|
+
while (i < len) {
|
|
28
|
+
v0 ^= str.charCodeAt(i++);
|
|
29
|
+
t0 = v0 * 435;
|
|
30
|
+
t1 = v1 * 435;
|
|
31
|
+
t2 = v2 * 435;
|
|
32
|
+
t3 = v3 * 435;
|
|
33
|
+
t2 += v0 << 8;
|
|
34
|
+
t3 += v1 << 8;
|
|
35
|
+
t1 += t0 >>> 16;
|
|
36
|
+
v0 = t0 & 65535;
|
|
37
|
+
t2 += t1 >>> 16;
|
|
38
|
+
v1 = t1 & 65535;
|
|
39
|
+
v3 = t3 + (t2 >>> 16) & 65535;
|
|
40
|
+
v2 = t2 & 65535;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
high: (v3 << 16 | v2) >>> 0,
|
|
44
|
+
low: (v1 << 16 | v0) >>> 0
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Compute the 64-bit FNV-1a hash of a string as a `bigint`.
|
|
49
|
+
*
|
|
50
|
+
* Ergonomic and comparable, at the cost of composing the two lanes into a
|
|
51
|
+
* `bigint`. For a compact string key, prefer {@link fnv1a64Base36}.
|
|
52
|
+
*
|
|
53
|
+
* @param str - The string to hash.
|
|
54
|
+
* @returns The 64-bit hash as an unsigned `bigint`.
|
|
55
|
+
*/
|
|
56
|
+
function fnv1a64BigInt(str) {
|
|
57
|
+
const { high, low } = fnv1a64(str);
|
|
58
|
+
return BigInt(high) << 32n | BigInt(low);
|
|
59
|
+
}
|
|
60
|
+
const hexDigits = "0123456789abcdef";
|
|
61
|
+
/**
|
|
62
|
+
* Every byte value rendered as its two hex digits, so a 32-bit lane formats in
|
|
63
|
+
* 4 lookups instead of `toString(16)` plus a `padStart`. Leading zeros are
|
|
64
|
+
* intrinsic to the table, which is what makes the padding free.
|
|
65
|
+
*/
|
|
66
|
+
const hexPairs = Array.from({ length: 256 }, (_, i) => hexDigits.charAt(i >> 4) + hexDigits.charAt(i & 15));
|
|
67
|
+
/**
|
|
68
|
+
* Compute the 64-bit FNV-1a hash of a string as a 16-character zero-padded
|
|
69
|
+
* lowercase hex string.
|
|
70
|
+
*
|
|
71
|
+
* The output is always exactly 16 characters, so equal-length comparison and
|
|
72
|
+
* fixed-width storage are safe.
|
|
73
|
+
*
|
|
74
|
+
* @param str - The string to hash.
|
|
75
|
+
* @returns A 16-character hex string.
|
|
76
|
+
*/
|
|
77
|
+
function fnv1a64Hex(str) {
|
|
78
|
+
const { high, low } = fnv1a64(str);
|
|
79
|
+
return hexPairs[high >>> 24] + hexPairs[high >>> 16 & 255] + hexPairs[high >>> 8 & 255] + hexPairs[high & 255] + hexPairs[low >>> 24] + hexPairs[low >>> 16 & 255] + hexPairs[low >>> 8 & 255] + hexPairs[low & 255];
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Compute the 64-bit FNV-1a hash of a string as a base36 string.
|
|
83
|
+
*
|
|
84
|
+
* This is the shortest textual form (up to 13 characters) and is ideal for
|
|
85
|
+
* cache keys. The length varies with the value; it is not zero-padded. Equal
|
|
86
|
+
* inputs always produce identical strings.
|
|
87
|
+
*
|
|
88
|
+
* @param str - The string to hash.
|
|
89
|
+
* @returns A base36 string of the 64-bit hash.
|
|
90
|
+
*/
|
|
91
|
+
function fnv1a64Base36(str) {
|
|
92
|
+
return fnv1a64BigInt(str).toString(36);
|
|
93
|
+
}
|
|
94
|
+
//#endregion
|
|
95
|
+
export { fnv1a64, fnv1a64Base36, fnv1a64BigInt, fnv1a64Hex };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "fnv1a-64",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.1.2",
|
|
5
|
+
"description": "Tiny, fast, dependency-free 64-bit FNV-1a string hash for Node and the browser",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "danielroe/fnv1a-64"
|
|
10
|
+
},
|
|
11
|
+
"keywords": [
|
|
12
|
+
"fnv",
|
|
13
|
+
"fnv1a",
|
|
14
|
+
"fnv-1a",
|
|
15
|
+
"hash",
|
|
16
|
+
"64-bit",
|
|
17
|
+
"non-cryptographic"
|
|
18
|
+
],
|
|
19
|
+
"sideEffects": false,
|
|
20
|
+
"exports": {
|
|
21
|
+
".": "./dist/index.mjs",
|
|
22
|
+
"./package.json": "./package.json"
|
|
23
|
+
},
|
|
24
|
+
"types": "./dist/index.d.mts",
|
|
25
|
+
"typesVersions": {
|
|
26
|
+
"*": {
|
|
27
|
+
"*": [
|
|
28
|
+
"./dist/index.d.mts"
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"files": [
|
|
33
|
+
"dist"
|
|
34
|
+
],
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@sindresorhus/fnv1a": "^3.1.0",
|
|
37
|
+
"@types/node": "26.1.1",
|
|
38
|
+
"@vitest/coverage-v8": "4.1.10",
|
|
39
|
+
"fnv-lite": "^1.2.0",
|
|
40
|
+
"fnv-plus": "^1.3.1",
|
|
41
|
+
"fnv1a52": "^1.0.0",
|
|
42
|
+
"installed-check": "10.0.1",
|
|
43
|
+
"knip": "6.26.0",
|
|
44
|
+
"mitata": "^1.0.34",
|
|
45
|
+
"murmurhash": "^2.0.1",
|
|
46
|
+
"nano-staged": "1.0.2",
|
|
47
|
+
"oxlint": "1.74.0",
|
|
48
|
+
"oxlint-tsgolint": "0.24.0",
|
|
49
|
+
"simple-git-hooks": "2.13.1",
|
|
50
|
+
"tsdown": "0.22.7",
|
|
51
|
+
"typescript": "7.0.2",
|
|
52
|
+
"vitest": "4.1.10",
|
|
53
|
+
"xxhashjs": "^0.2.2"
|
|
54
|
+
},
|
|
55
|
+
"simple-git-hooks": {
|
|
56
|
+
"pre-commit": "npx nano-staged"
|
|
57
|
+
},
|
|
58
|
+
"nano-staged": {
|
|
59
|
+
"*.{js,ts,mjs,cjs,json,.*rc}": [
|
|
60
|
+
"npx oxlint --type-aware --fix"
|
|
61
|
+
]
|
|
62
|
+
},
|
|
63
|
+
"scripts": {
|
|
64
|
+
"build": "tsdown",
|
|
65
|
+
"dev": "vitest dev",
|
|
66
|
+
"lint": "oxlint --type-aware",
|
|
67
|
+
"test": "pnpm test:unit && pnpm test:types",
|
|
68
|
+
"test:unit": "vitest",
|
|
69
|
+
"test:knip": "knip",
|
|
70
|
+
"test:versions": "installed-check -d --no-workspaces",
|
|
71
|
+
"bench": "node bench.mjs",
|
|
72
|
+
"collisions": "node collisions.mjs",
|
|
73
|
+
"test:types": "tsc --noEmit"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
function flatHooks(configHooks, hooks = {}, parentName) {
|
|
2
|
+
for (const key in configHooks) {
|
|
3
|
+
const subHook = configHooks[key];
|
|
4
|
+
const name = parentName ? `${parentName}:${key}` : key;
|
|
5
|
+
if (typeof subHook === "object" && subHook !== null) flatHooks(subHook, hooks, name);
|
|
6
|
+
else if (typeof subHook === "function") hooks[name] = subHook;
|
|
7
|
+
}
|
|
8
|
+
return hooks;
|
|
9
|
+
}
|
|
10
|
+
function mergeHooks(...hooks) {
|
|
11
|
+
const finalHooks = {};
|
|
12
|
+
for (const hook of hooks) {
|
|
13
|
+
const flatenHook = flatHooks(hook);
|
|
14
|
+
for (const key in flatenHook) if (finalHooks[key]) finalHooks[key].push(flatenHook[key]);
|
|
15
|
+
else finalHooks[key] = [flatenHook[key]];
|
|
16
|
+
}
|
|
17
|
+
for (const key in finalHooks) if (finalHooks[key].length > 1) {
|
|
18
|
+
const array = finalHooks[key];
|
|
19
|
+
finalHooks[key] = (...arguments_) => serial(array, (function_) => function_(...arguments_));
|
|
20
|
+
} else finalHooks[key] = finalHooks[key][0];
|
|
21
|
+
return finalHooks;
|
|
22
|
+
}
|
|
23
|
+
function serial(tasks, function_) {
|
|
24
|
+
return tasks.reduce((promise, task) => promise.then(() => function_(task)), Promise.resolve());
|
|
25
|
+
}
|
|
26
|
+
const createTask = /* @__PURE__ */ (() => {
|
|
27
|
+
if (console.createTask) return console.createTask;
|
|
28
|
+
const defaultTask = { run: (fn) => fn() };
|
|
29
|
+
return () => defaultTask;
|
|
30
|
+
})();
|
|
31
|
+
function callHooks(hooks, args, startIndex, task) {
|
|
32
|
+
for (let i = startIndex; i < hooks.length; i += 1) try {
|
|
33
|
+
const result = task ? task.run(() => hooks[i](...args)) : hooks[i](...args);
|
|
34
|
+
if (result && typeof result.then === "function") return Promise.resolve(result).then(() => callHooks(hooks, args, i + 1, task));
|
|
35
|
+
} catch (error) {
|
|
36
|
+
return Promise.reject(error);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
function serialTaskCaller(hooks, args, name) {
|
|
40
|
+
if (hooks.length > 0) return callHooks(hooks, args, 0, createTask(name));
|
|
41
|
+
}
|
|
42
|
+
function parallelTaskCaller(hooks, args, name) {
|
|
43
|
+
if (hooks.length > 0) {
|
|
44
|
+
const task = createTask(name);
|
|
45
|
+
return Promise.all(hooks.map((hook) => task.run(() => hook(...args))));
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function serialCaller(hooks, arguments_) {
|
|
49
|
+
return hooks.reduce((promise, hookFunction) => promise.then(() => hookFunction(...arguments_ || [])), Promise.resolve());
|
|
50
|
+
}
|
|
51
|
+
function parallelCaller(hooks, args) {
|
|
52
|
+
return Promise.all(hooks.map((hook) => hook(...args || [])));
|
|
53
|
+
}
|
|
54
|
+
function callEachWith(callbacks, arg0) {
|
|
55
|
+
for (const callback of [...callbacks]) callback(arg0);
|
|
56
|
+
}
|
|
57
|
+
var Hookable = class {
|
|
58
|
+
_hooks;
|
|
59
|
+
_before;
|
|
60
|
+
_after;
|
|
61
|
+
_deprecatedHooks;
|
|
62
|
+
_deprecatedMessages;
|
|
63
|
+
constructor() {
|
|
64
|
+
this._hooks = {};
|
|
65
|
+
this._before = void 0;
|
|
66
|
+
this._after = void 0;
|
|
67
|
+
this._deprecatedMessages = void 0;
|
|
68
|
+
this._deprecatedHooks = {};
|
|
69
|
+
this.hook = this.hook.bind(this);
|
|
70
|
+
this.callHook = this.callHook.bind(this);
|
|
71
|
+
this.callHookWith = this.callHookWith.bind(this);
|
|
72
|
+
}
|
|
73
|
+
hook(name, function_, options = {}) {
|
|
74
|
+
if (!name || typeof function_ !== "function") return () => {};
|
|
75
|
+
const originalName = name;
|
|
76
|
+
let dep;
|
|
77
|
+
while (this._deprecatedHooks[name]) {
|
|
78
|
+
dep = this._deprecatedHooks[name];
|
|
79
|
+
name = dep.to;
|
|
80
|
+
}
|
|
81
|
+
if (dep && !options.allowDeprecated) {
|
|
82
|
+
let message = dep.message;
|
|
83
|
+
if (!message) message = `${originalName} hook has been deprecated` + (dep.to ? `, please use ${dep.to}` : "");
|
|
84
|
+
if (!this._deprecatedMessages) this._deprecatedMessages = /* @__PURE__ */ new Set();
|
|
85
|
+
if (!this._deprecatedMessages.has(message)) {
|
|
86
|
+
console.warn(message);
|
|
87
|
+
this._deprecatedMessages.add(message);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
if (!function_.name) try {
|
|
91
|
+
Object.defineProperty(function_, "name", {
|
|
92
|
+
get: () => "_" + name.replace(/\W+/g, "_") + "_hook_cb",
|
|
93
|
+
configurable: true
|
|
94
|
+
});
|
|
95
|
+
} catch {}
|
|
96
|
+
this._hooks[name] = this._hooks[name] || [];
|
|
97
|
+
this._hooks[name].push(function_);
|
|
98
|
+
return () => {
|
|
99
|
+
if (function_) {
|
|
100
|
+
this.removeHook(name, function_);
|
|
101
|
+
function_ = void 0;
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
hookOnce(name, function_) {
|
|
106
|
+
let _unreg;
|
|
107
|
+
let _function = (...arguments_) => {
|
|
108
|
+
if (typeof _unreg === "function") _unreg();
|
|
109
|
+
_unreg = void 0;
|
|
110
|
+
_function = void 0;
|
|
111
|
+
return function_(...arguments_);
|
|
112
|
+
};
|
|
113
|
+
_unreg = this.hook(name, _function);
|
|
114
|
+
return _unreg;
|
|
115
|
+
}
|
|
116
|
+
removeHook(name, function_) {
|
|
117
|
+
const hooks = this._hooks[name];
|
|
118
|
+
if (hooks) {
|
|
119
|
+
const index = hooks.indexOf(function_);
|
|
120
|
+
if (index !== -1) hooks.splice(index, 1);
|
|
121
|
+
if (hooks.length === 0) this._hooks[name] = void 0;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
clearHook(name) {
|
|
125
|
+
this._hooks[name] = void 0;
|
|
126
|
+
}
|
|
127
|
+
deprecateHook(name, deprecated) {
|
|
128
|
+
this._deprecatedHooks[name] = typeof deprecated === "string" ? { to: deprecated } : deprecated;
|
|
129
|
+
const _hooks = this._hooks[name] || [];
|
|
130
|
+
this._hooks[name] = void 0;
|
|
131
|
+
for (const hook of _hooks) this.hook(name, hook);
|
|
132
|
+
}
|
|
133
|
+
deprecateHooks(deprecatedHooks) {
|
|
134
|
+
for (const name in deprecatedHooks) this.deprecateHook(name, deprecatedHooks[name]);
|
|
135
|
+
}
|
|
136
|
+
addHooks(configHooks) {
|
|
137
|
+
const hooks = flatHooks(configHooks);
|
|
138
|
+
const removeFns = Object.keys(hooks).map((key) => this.hook(key, hooks[key]));
|
|
139
|
+
return () => {
|
|
140
|
+
for (const unreg of removeFns) unreg();
|
|
141
|
+
removeFns.length = 0;
|
|
142
|
+
};
|
|
143
|
+
}
|
|
144
|
+
removeHooks(configHooks) {
|
|
145
|
+
const hooks = flatHooks(configHooks);
|
|
146
|
+
for (const key in hooks) this.removeHook(key, hooks[key]);
|
|
147
|
+
}
|
|
148
|
+
removeAllHooks() {
|
|
149
|
+
this._hooks = {};
|
|
150
|
+
}
|
|
151
|
+
callHook(name, ...args) {
|
|
152
|
+
return this.callHookWith(serialTaskCaller, name, args);
|
|
153
|
+
}
|
|
154
|
+
callHookParallel(name, ...args) {
|
|
155
|
+
return this.callHookWith(parallelTaskCaller, name, args);
|
|
156
|
+
}
|
|
157
|
+
callHookWith(caller, name, args) {
|
|
158
|
+
const event = this._before || this._after ? {
|
|
159
|
+
name,
|
|
160
|
+
args,
|
|
161
|
+
context: {}
|
|
162
|
+
} : void 0;
|
|
163
|
+
if (this._before) callEachWith(this._before, event);
|
|
164
|
+
const result = caller(this._hooks[name] ? [...this._hooks[name]] : [], args, name);
|
|
165
|
+
if (result instanceof Promise) return result.finally(() => {
|
|
166
|
+
if (this._after && event) callEachWith(this._after, event);
|
|
167
|
+
});
|
|
168
|
+
if (this._after && event) callEachWith(this._after, event);
|
|
169
|
+
return result;
|
|
170
|
+
}
|
|
171
|
+
beforeEach(function_) {
|
|
172
|
+
this._before = this._before || [];
|
|
173
|
+
this._before.push(function_);
|
|
174
|
+
return () => {
|
|
175
|
+
if (this._before !== void 0) {
|
|
176
|
+
const index = this._before.indexOf(function_);
|
|
177
|
+
if (index !== -1) this._before.splice(index, 1);
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
afterEach(function_) {
|
|
182
|
+
this._after = this._after || [];
|
|
183
|
+
this._after.push(function_);
|
|
184
|
+
return () => {
|
|
185
|
+
if (this._after !== void 0) {
|
|
186
|
+
const index = this._after.indexOf(function_);
|
|
187
|
+
if (index !== -1) this._after.splice(index, 1);
|
|
188
|
+
}
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
function createHooks() {
|
|
193
|
+
return new Hookable();
|
|
194
|
+
}
|
|
195
|
+
var HookableCore = class {
|
|
196
|
+
_hooks;
|
|
197
|
+
constructor() {
|
|
198
|
+
this._hooks = {};
|
|
199
|
+
}
|
|
200
|
+
hook(name, fn) {
|
|
201
|
+
if (!name || typeof fn !== "function") return () => {};
|
|
202
|
+
this._hooks[name] = this._hooks[name] || [];
|
|
203
|
+
this._hooks[name].push(fn);
|
|
204
|
+
return () => {
|
|
205
|
+
if (fn) {
|
|
206
|
+
this.removeHook(name, fn);
|
|
207
|
+
fn = void 0;
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
}
|
|
211
|
+
removeHook(name, function_) {
|
|
212
|
+
const hooks = this._hooks[name];
|
|
213
|
+
if (hooks) {
|
|
214
|
+
const index = hooks.indexOf(function_);
|
|
215
|
+
if (index !== -1) hooks.splice(index, 1);
|
|
216
|
+
if (hooks.length === 0) this._hooks[name] = void 0;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
callHook(name, ...args) {
|
|
220
|
+
const hooks = this._hooks[name];
|
|
221
|
+
if (!hooks || hooks.length === 0) return;
|
|
222
|
+
return callHooks(hooks, args, 0);
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
const isBrowser = typeof window !== "undefined";
|
|
226
|
+
function createDebugger(hooks, _options = {}) {
|
|
227
|
+
const options = {
|
|
228
|
+
inspect: isBrowser,
|
|
229
|
+
group: isBrowser,
|
|
230
|
+
filter: () => true,
|
|
231
|
+
..._options
|
|
232
|
+
};
|
|
233
|
+
const _filter = options.filter;
|
|
234
|
+
const filter = typeof _filter === "string" ? (name) => name.startsWith(_filter) : _filter;
|
|
235
|
+
const _tag = options.tag ? `[${options.tag}] ` : "";
|
|
236
|
+
const logPrefix = (event) => _tag + event.name + "".padEnd(event._id, "\0");
|
|
237
|
+
const _idCtr = {};
|
|
238
|
+
const unsubscribeBefore = hooks.beforeEach((event) => {
|
|
239
|
+
if (filter !== void 0 && !filter(event.name)) return;
|
|
240
|
+
_idCtr[event.name] = _idCtr[event.name] || 0;
|
|
241
|
+
event._id = _idCtr[event.name]++;
|
|
242
|
+
console.time(logPrefix(event));
|
|
243
|
+
});
|
|
244
|
+
const unsubscribeAfter = hooks.afterEach((event) => {
|
|
245
|
+
if (filter !== void 0 && !filter(event.name)) return;
|
|
246
|
+
if (options.group) console.groupCollapsed(event.name);
|
|
247
|
+
if (options.inspect) console.timeLog(logPrefix(event), event.args);
|
|
248
|
+
else console.timeEnd(logPrefix(event));
|
|
249
|
+
if (options.group) console.groupEnd();
|
|
250
|
+
_idCtr[event.name]--;
|
|
251
|
+
});
|
|
252
|
+
return { close: () => {
|
|
253
|
+
unsubscribeBefore();
|
|
254
|
+
unsubscribeAfter();
|
|
255
|
+
} };
|
|
256
|
+
}
|
|
257
|
+
export { Hookable, HookableCore, createDebugger, createHooks, flatHooks, mergeHooks, parallelCaller, serial, serialCaller };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "hookable",
|
|
3
|
+
"version": "6.1.1",
|
|
4
|
+
"description": "Awaitable hook system",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"hook",
|
|
7
|
+
"hookable",
|
|
8
|
+
"plugin",
|
|
9
|
+
"tapable",
|
|
10
|
+
"tappable"
|
|
11
|
+
],
|
|
12
|
+
"license": "MIT",
|
|
13
|
+
"repository": "unjs/hookable",
|
|
14
|
+
"files": [
|
|
15
|
+
"dist"
|
|
16
|
+
],
|
|
17
|
+
"type": "module",
|
|
18
|
+
"sideEffects": false,
|
|
19
|
+
"main": "./dist/index.mjs",
|
|
20
|
+
"types": "./dist/index.d.mts",
|
|
21
|
+
"exports": {
|
|
22
|
+
".": "./dist/index.mjs"
|
|
23
|
+
},
|
|
24
|
+
"scripts": {
|
|
25
|
+
"bench": "node --expose-gc --allow-natives-syntax test/bench.ts",
|
|
26
|
+
"build": "obuild src/index.ts",
|
|
27
|
+
"dev": "vitest",
|
|
28
|
+
"lint": "oxlint . && oxfmt --check src test",
|
|
29
|
+
"lint:fix": "oxlint . --fix && oxfmt src test",
|
|
30
|
+
"prepublish": "pnpm build",
|
|
31
|
+
"release": "pnpm test && pnpm build && changelogen --release --publish --push",
|
|
32
|
+
"test": "pnpm lint && vitest run --coverage",
|
|
33
|
+
"test:types": "tsgo --noEmit"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@types/node": "^25.6.0",
|
|
37
|
+
"@typescript/native-preview": "^7.0.0-dev.20260414.1",
|
|
38
|
+
"@vitest/coverage-v8": "^4.1.4",
|
|
39
|
+
"changelogen": "^0.6.2",
|
|
40
|
+
"esbuild": "^0.28.0",
|
|
41
|
+
"eslint-config-unjs": "^0.6.2",
|
|
42
|
+
"expect-type": "^1.3.0",
|
|
43
|
+
"hookable-prev": "npm:hookable@^6.1.0",
|
|
44
|
+
"mitata": "^1.0.34",
|
|
45
|
+
"obuild": "^0.4.33",
|
|
46
|
+
"oxfmt": "^0.45.0",
|
|
47
|
+
"oxlint": "^1.60.0",
|
|
48
|
+
"typescript": "^6.0.2",
|
|
49
|
+
"vite": "^8.0.8",
|
|
50
|
+
"vitest": "^4.1.4"
|
|
51
|
+
},
|
|
52
|
+
"packageManager": "pnpm@10.33.0"
|
|
53
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region src/formatters/ansi.ts
|
|
2
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
3
|
+
function ansiFormatter(colors) {
|
|
4
|
+
return (d) => {
|
|
5
|
+
const header = `${colors.bold(colors.red(`[${d.name}]`))} ${d.message}`;
|
|
6
|
+
const details = [];
|
|
7
|
+
if (d.fix) details.push(`${colors.dim("fix:")} ${d.fix}`);
|
|
8
|
+
if (d.sources?.length) details.push(`${colors.dim("sources:")} ${d.sources.join(", ")}`);
|
|
9
|
+
if (d.docs) details.push(`${colors.dim("see:")} ${colors.cyan(d.docs)}`);
|
|
10
|
+
if (details.length === 0) return header;
|
|
11
|
+
return [header, ...details.map((detail, i) => {
|
|
12
|
+
return `${colors.dim(i < details.length - 1 ? "├▶" : "╰▶")} ${detail}`;
|
|
13
|
+
})].join("\n");
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
//#endregion
|
|
17
|
+
export { ansiFormatter };
|
|
18
|
+
|
|
19
|
+
//# sourceMappingURL=ansi.mjs.map
|