nuxt-ignis 0.5.2 → 0.5.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.data/content/contents.sqlite +0 -0
- package/.env +1 -1
- package/.nuxt/components.d.ts +480 -858
- package/.nuxt/content/components.ts +177 -320
- package/.nuxt/dev/index.mjs +542 -530
- package/.nuxt/dev/index.mjs.map +1 -1
- package/.nuxt/dist/server/client.manifest.mjs +1 -1
- package/.nuxt/dist/server/client.precomputed.mjs +1 -1
- package/.nuxt/eslint-typegen.d.ts +60 -111
- package/.nuxt/eslint.config.d.mts +2 -2
- package/.nuxt/eslint.config.mjs +9 -9
- package/.nuxt/imports.d.ts +71 -70
- package/.nuxt/manifest/latest.json +1 -1
- package/.nuxt/manifest/meta/dev.json +1 -1
- package/.nuxt/module/nuxt-robots.d.ts +13 -12
- package/.nuxt/module/nuxt-seo-utils.d.ts +10 -10
- package/.nuxt/module/nuxt-site-config.d.ts +8 -8
- package/.nuxt/module/nuxt-sitemap.d.ts +18 -18
- package/.nuxt/nitro.json +4 -4
- package/.nuxt/nuxt.d.ts +6 -6
- package/.nuxt/nuxt.json +2 -2
- package/.nuxt/nuxt.node.d.ts +7 -6
- package/.nuxt/tsconfig.app.json +192 -188
- package/.nuxt/tsconfig.json +195 -191
- package/.nuxt/tsconfig.node.json +108 -104
- package/.nuxt/tsconfig.server.json +128 -127
- package/.nuxt/tsconfig.shared.json +62 -62
- package/.nuxt/types/build.d.ts +1 -1
- package/.nuxt/types/components.d.ts +480 -858
- package/.nuxt/types/i18n-plugin.d.ts +2 -2
- package/.nuxt/types/imports.d.ts +368 -366
- package/.nuxt/types/modules.d.ts +22 -24
- package/.nuxt/types/nitro-imports.d.ts +66 -66
- package/.nuxt/types/nitro-nuxt.d.ts +1 -1
- package/.nuxt/types/nitro-routes.d.ts +16 -16
- package/.nuxt/types/plugins.d.ts +37 -37
- package/.nuxt/types/runtime-config.d.ts +3 -1
- package/.output/nitro.json +2 -2
- package/.output/public/_ignis-config.json +6 -0
- package/.output/public/_nuxt/-OUwOzoZ.js +1 -0
- package/.output/public/_nuxt/-z2jk33i.js +1 -0
- package/.output/public/_nuxt/3L5yAyVe.js +1 -0
- package/.output/public/_nuxt/8nlalpbc.js +1 -0
- package/.output/public/_nuxt/As5Zy5cG.js +1 -0
- package/.output/public/_nuxt/B-TDuiGE.js +1 -0
- package/.output/public/_nuxt/B04mZI32.js +1 -0
- package/.output/public/_nuxt/B3zmx-p1.js +1 -0
- package/.output/public/_nuxt/B4eQjLRH.js +1 -0
- package/.output/public/_nuxt/B6WOJ0Em.js +1 -0
- package/.output/public/_nuxt/BB2ULiwb.js +1 -0
- package/.output/public/_nuxt/BEvX3xjB.js +1 -0
- package/.output/public/_nuxt/BFcGh2xo.js +1 -0
- package/.output/public/_nuxt/BFdGKCUO.js +1 -0
- package/.output/public/_nuxt/BG-5V6Ik.js +1 -0
- package/.output/public/_nuxt/BeRTSVEP.js +1 -0
- package/.output/public/_nuxt/Bh-DZrTV.js +1 -0
- package/.output/public/_nuxt/BvFz8iHh.js +1 -0
- package/.output/public/_nuxt/BwUgVogm.js +1 -0
- package/.output/public/_nuxt/C1fHW8CN.js +1 -0
- package/.output/public/_nuxt/C1getMtX.js +49 -0
- package/.output/public/_nuxt/C4nGy0Yj.js +1 -0
- package/.output/public/_nuxt/CExm4AMI.js +1 -0
- package/.output/public/_nuxt/CHcd0nHy.js +1 -0
- package/.output/public/_nuxt/CTbEZMxa.js +1 -0
- package/.output/public/_nuxt/CZ5QNOH8.js +1 -0
- package/.output/public/_nuxt/Cna7T5zY.js +1 -0
- package/.output/public/_nuxt/CnghUxEk.js +1 -0
- package/.output/public/_nuxt/CvJSUdvI.js +1 -0
- package/.output/public/_nuxt/CwgBHvd_.js +1 -0
- package/.output/public/_nuxt/D1nIr4-J.js +1 -0
- package/.output/public/_nuxt/D2atCez-.js +1 -0
- package/.output/public/_nuxt/D3WX5Hmk.js +1 -0
- package/.output/public/_nuxt/D5duQQkG.js +1 -0
- package/.output/public/_nuxt/D9RSHNPZ.js +1 -0
- package/.output/public/_nuxt/DB3c8m3K.js +1 -0
- package/.output/public/_nuxt/DFP1sKjc.js +1 -0
- package/.output/public/_nuxt/DI5_qtj_.js +1 -0
- package/.output/public/_nuxt/DKCDh1Eq.js +1 -0
- package/.output/public/_nuxt/DN3AlbuD.js +1 -0
- package/.output/public/_nuxt/DPDbQA17.js +1 -0
- package/.output/public/_nuxt/DSErOj49.js +1 -0
- package/.output/public/_nuxt/DXrSmKSt.js +1 -0
- package/.output/public/_nuxt/DbZ1CQfQ.js +1 -0
- package/.output/public/_nuxt/DgCebJqk.js +1 -0
- package/.output/public/_nuxt/DhhwMwQM.js +1 -0
- package/.output/public/_nuxt/Djhwz52y.js +1 -0
- package/.output/public/_nuxt/DnE1KSqg.js +1 -0
- package/.output/public/_nuxt/DncFEy6i.js +1 -0
- package/.output/public/_nuxt/DpZCZGQO.js +1 -0
- package/.output/public/_nuxt/Dx95U2T3.js +1 -0
- package/.output/public/_nuxt/FUdAqSn9.js +9 -0
- package/.output/public/_nuxt/GvxWNFgu.js +1 -0
- package/.output/public/_nuxt/HgKyGH3C.js +1 -0
- package/.output/public/_nuxt/Hxhp1Hz0.js +1 -0
- package/.output/public/_nuxt/LpFrvoF7.js +1 -0
- package/.output/public/_nuxt/{Pre.DHQaXnEy.css → Pre.HegCCrfd.css} +1 -1
- package/.output/public/_nuxt/Sz6HDPqh.js +1 -0
- package/.output/public/_nuxt/U1_7ggcx.js +1 -0
- package/.output/public/_nuxt/X8ZdEYzW.js +1 -0
- package/.output/public/_nuxt/ahq42_9S.js +1 -0
- package/.output/public/_nuxt/b0AtYQ73.js +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/78080714-55fa-441d-9998-a6fb0c7ee057.json +1 -0
- package/.output/public/_nuxt/efC_w6sP.js +1 -0
- package/.output/public/_nuxt/entry.9ygoOcLs.css +1 -0
- package/.output/public/_nuxt/error-404.0Tbhbu-E.css +1 -0
- package/.output/public/_nuxt/error-500.ClQbyW3Z.css +1 -0
- package/.output/public/_nuxt/ulE7jr93.js +1 -0
- package/.output/public/_nuxt/xHyrElgL.js +1 -0
- package/.output/server/chunks/_/error-500.mjs.map +1 -1
- package/.output/server/chunks/_/i18n.config.mjs.map +1 -1
- package/.output/server/chunks/_/nitro.mjs +1176 -1775
- package/.output/server/chunks/_/nitro.mjs.map +1 -1
- package/.output/server/chunks/build/client.precomputed.mjs +1 -1
- package/.output/server/chunks/build/client.precomputed.mjs.map +1 -1
- package/.output/server/chunks/build/database.compressed.mjs.map +1 -1
- package/.output/server/chunks/raw/headers.mjs.map +1 -1
- package/.output/server/chunks/routes/api/neonTest.mjs +2 -2
- package/.output/server/chunks/routes/api/neonTest.mjs.map +1 -1
- package/.output/server/chunks/routes/renderer.mjs +27 -2
- package/.output/server/chunks/routes/renderer.mjs.map +1 -1
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -1
- package/.output/server/chunks/virtual/child-sources.mjs.map +1 -1
- package/.output/server/chunks/virtual/global-sources.mjs +0 -8
- package/.output/server/chunks/virtual/global-sources.mjs.map +1 -1
- package/.output/server/index.mjs +1 -1
- package/.output/server/index.mjs.map +1 -1
- package/.output/server/node_modules/.nitro/{entities@4.5.0/lib/decode_codepoint.js → entities@7.0.0/dist/commonjs/decode-codepoint.js} +16 -15
- package/.output/server/node_modules/.nitro/{entities@4.5.0/lib → entities@7.0.0/dist/commonjs}/decode.js +200 -168
- package/.output/server/node_modules/.nitro/entities@7.0.0/dist/commonjs/generated/decode-data-html.js +7 -0
- package/.output/server/node_modules/.nitro/entities@7.0.0/dist/commonjs/generated/decode-data-xml.js +7 -0
- package/.output/server/node_modules/.nitro/entities@7.0.0/dist/commonjs/internal/bin-trie-flags.js +21 -0
- package/.output/server/node_modules/.nitro/entities@7.0.0/dist/commonjs/internal/decode-shared.js +31 -0
- package/.output/server/node_modules/.nitro/entities@7.0.0/dist/commonjs/package.json +3 -0
- package/.output/server/node_modules/.nitro/entities@7.0.0/package.json +113 -0
- package/.output/server/node_modules/@intlify/core/dist/core.mjs +1 -1
- package/.output/server/node_modules/@intlify/core/package.json +3 -3
- package/.output/server/node_modules/@intlify/core-base/dist/core-base.mjs +2 -2
- package/.output/server/node_modules/@intlify/core-base/package.json +4 -4
- package/.output/server/node_modules/@intlify/message-compiler/dist/message-compiler.mjs +1 -1
- package/.output/server/node_modules/@intlify/message-compiler/package.json +2 -2
- package/.output/server/node_modules/@intlify/shared/dist/shared.mjs +1 -1
- package/.output/server/node_modules/@intlify/shared/package.json +1 -1
- package/.output/server/node_modules/@neondatabase/serverless/package.json +4 -4
- package/.output/server/node_modules/@poppinss/exception/build/index.js +36 -55
- package/.output/server/node_modules/@poppinss/exception/package.json +19 -16
- package/.output/server/node_modules/@poppinss/string/build/index.js +2 -6
- package/.output/server/node_modules/@poppinss/string/build/string-ArFSN0fl.js +464 -0
- package/.output/server/node_modules/@poppinss/string/package.json +28 -25
- package/.output/server/node_modules/@shikijs/core/dist/index.mjs +111 -31
- package/.output/server/node_modules/@shikijs/core/package.json +2 -2
- package/.output/server/node_modules/@shikijs/engine-javascript/package.json +2 -2
- package/.output/server/node_modules/@shikijs/engine-oniguruma/package.json +2 -2
- package/.output/server/node_modules/@shikijs/langs/package.json +2 -2
- package/.output/server/node_modules/@shikijs/themes/package.json +2 -2
- package/.output/server/node_modules/@shikijs/transformers/dist/index.mjs +56 -16
- package/.output/server/node_modules/@shikijs/transformers/package.json +3 -3
- package/.output/server/node_modules/@shikijs/types/package.json +1 -1
- package/.output/server/node_modules/{.nitro/@vue/compiler-core@3.5.25 → @vue/compiler-core}/dist/compiler-core.cjs.prod.js +106 -85
- package/.output/server/node_modules/{.nitro/@vue/compiler-core@3.5.25 → @vue/compiler-core}/package.json +3 -3
- package/.output/server/node_modules/{.nitro/@vue/compiler-dom@3.5.22 → @vue/compiler-dom}/dist/compiler-dom.cjs.prod.js +54 -54
- package/.output/server/node_modules/{.nitro/@vue/compiler-dom@3.5.22 → @vue/compiler-dom}/package.json +3 -3
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +26 -26
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +3 -3
- package/.output/server/node_modules/{.nitro/@vue/reactivity@3.5.25 → @vue/reactivity}/dist/reactivity.cjs.prod.js +4 -4
- package/.output/server/node_modules/{.nitro/@vue/reactivity@3.5.22 → @vue/reactivity}/package.json +2 -2
- package/.output/server/node_modules/{.nitro/@vue/runtime-core@3.5.25 → @vue/runtime-core}/dist/runtime-core.cjs.prod.js +175 -155
- package/.output/server/node_modules/{.nitro/@vue/runtime-core@3.5.22 → @vue/runtime-core}/package.json +3 -3
- package/.output/server/node_modules/{.nitro/@vue/runtime-dom@3.5.25 → @vue/runtime-dom}/dist/runtime-dom.cjs.prod.js +9 -9
- package/.output/server/node_modules/{.nitro/@vue/runtime-dom@3.5.22 → @vue/runtime-dom}/package.json +5 -5
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +1 -1
- package/.output/server/node_modules/@vue/server-renderer/package.json +4 -4
- package/.output/server/node_modules/{.nitro/@vue/shared@3.5.25 → @vue/shared}/dist/shared.cjs.prod.js +1 -1
- package/.output/server/node_modules/{.nitro/@vue/shared@3.5.22 → @vue/shared}/package.json +1 -1
- package/.output/server/node_modules/devalue/index.js +1 -0
- package/.output/server/node_modules/devalue/package.json +1 -1
- package/.output/server/node_modules/devalue/src/parse.js +5 -1
- package/.output/server/node_modules/devalue/src/stringify.js +7 -3
- package/.output/server/node_modules/devalue/src/uneval.js +7 -3
- package/.output/server/node_modules/devalue/src/utils.js +5 -1
- package/.output/server/node_modules/fast-xml-parser/package.json +4 -2
- package/.output/server/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +19 -8
- package/.output/server/node_modules/hast-util-to-parse5/lib/index.js +13 -19
- package/.output/server/node_modules/hast-util-to-parse5/package.json +8 -7
- package/.output/server/node_modules/jose/dist/webapi/index.js +4 -2
- package/.output/server/node_modules/jose/dist/webapi/jwks/remote.js +1 -1
- package/.output/server/node_modules/jose/dist/webapi/lib/check_key_type.js +2 -2
- package/.output/server/node_modules/jose/package.json +1 -1
- package/.output/server/node_modules/node-mock-http/package.json +10 -10
- package/.output/server/node_modules/regex/package.json +6 -6
- package/.output/server/node_modules/regex/src/atomic.js +6 -3
- package/.output/server/node_modules/shiki/package.json +7 -7
- package/.output/server/node_modules/strnum/package.json +1 -1
- package/.output/server/node_modules/strnum/strnum.js +1 -1
- package/.output/server/node_modules/unhead/dist/plugins.mjs +2 -2
- package/.output/server/node_modules/unhead/dist/server.mjs +3 -3
- package/.output/server/node_modules/unhead/dist/shared/{unhead.DH45uomy.mjs → unhead.CGCfDSEL.mjs} +3 -3
- package/.output/server/node_modules/unhead/dist/shared/{unhead.BpRRHAhY.mjs → unhead.CYpwL2hc.mjs} +12 -12
- package/.output/server/node_modules/unhead/dist/shared/{unhead.DZbvapt-.mjs → unhead.CbpEuj3y.mjs} +3 -2
- package/.output/server/node_modules/unhead/dist/shared/{unhead.Djo8ep_Y.mjs → unhead.ckV6dpEQ.mjs} +1 -1
- package/.output/server/node_modules/unhead/dist/utils.mjs +2 -2
- package/.output/server/node_modules/unhead/package.json +1 -1
- package/.output/server/node_modules/{.nitro/vue@3.5.22 → vue}/dist/vue.cjs.js +1 -1
- package/.output/server/node_modules/{.nitro/vue@3.5.25 → vue}/dist/vue.cjs.prod.js +1 -1
- package/.output/server/node_modules/{.nitro/vue@3.5.25 → vue}/package.json +6 -6
- package/.output/server/node_modules/vue-router/dist/{devtools-BLCumUwL.mjs → devtools-EWN81iOl.mjs} +6 -4
- package/.output/server/node_modules/vue-router/dist/vue-router.mjs +3 -3
- package/.output/server/node_modules/vue-router/package.json +2 -3
- package/.output/server/node_modules/yaml/dist/compose/compose-collection.js +1 -1
- package/.output/server/node_modules/yaml/dist/compose/resolve-block-seq.js +1 -1
- package/.output/server/node_modules/yaml/dist/compose/resolve-flow-collection.js +2 -2
- package/.output/server/node_modules/yaml/dist/errors.js +1 -1
- package/.output/server/node_modules/yaml/dist/nodes/Alias.js +1 -1
- package/.output/server/node_modules/yaml/dist/parse/parser.js +2 -2
- package/.output/server/node_modules/yaml/dist/stringify/stringifyNumber.js +1 -1
- package/.output/server/node_modules/yaml/dist/stringify/stringifyPair.js +1 -1
- package/.output/server/node_modules/yaml/package.json +4 -4
- package/.output/server/package.json +35 -38
- package/bin/set-app-vue.js +1 -1
- package/bin/set-css.js +1 -1
- package/bin/set-eslint.js +1 -1
- package/bin/setup.js +3 -3
- package/eslint.config.mjs +7 -4
- package/package.json +7 -7
- package/public/_ignis-config.json +6 -0
- package/vitest.config.ts +1 -3
- package/.output/public/_nuxt/-PRJHlJd.js +0 -1
- package/.output/public/_nuxt/38NkCNo_.js +0 -0
- package/.output/public/_nuxt/4p0_eEbF.js +0 -0
- package/.output/public/_nuxt/5P9Ak6Zm.js +0 -0
- package/.output/public/_nuxt/5msm7UDY.js +0 -0
- package/.output/public/_nuxt/7I_cTX05.js +0 -1
- package/.output/public/_nuxt/7N8aGG8C.js +0 -1
- package/.output/public/_nuxt/9j0d6I4O.js +0 -0
- package/.output/public/_nuxt/B7b1sBVf.js +0 -0
- package/.output/public/_nuxt/B7pFyPXj.js +0 -1
- package/.output/public/_nuxt/B8s7UrMM.js +0 -1
- package/.output/public/_nuxt/BHBmrOu8.js +0 -1
- package/.output/public/_nuxt/BHIv_dM4.js +0 -0
- package/.output/public/_nuxt/BI2n4fU-.js +0 -0
- package/.output/public/_nuxt/BJos6QuZ.js +0 -0
- package/.output/public/_nuxt/BKsXoEBs.js +0 -0
- package/.output/public/_nuxt/BNKvjWkT.js +0 -1
- package/.output/public/_nuxt/BQmtXkqc.js +0 -1
- package/.output/public/_nuxt/BQuCJQB8.js +0 -0
- package/.output/public/_nuxt/BSEIdlOb.js +0 -0
- package/.output/public/_nuxt/BST7mczs.js +0 -1
- package/.output/public/_nuxt/BTAjWPAo.js +0 -1
- package/.output/public/_nuxt/BYIIksjz.js +0 -0
- package/.output/public/_nuxt/BfZ1Ro0X.js +0 -1
- package/.output/public/_nuxt/Bg-6qayI.js +0 -1
- package/.output/public/_nuxt/BgP-osMP.js +0 -1
- package/.output/public/_nuxt/BiCkyLWS.js +0 -1
- package/.output/public/_nuxt/BjN_umGo.js +0 -1
- package/.output/public/_nuxt/BqK0HYmw.js +0 -1
- package/.output/public/_nuxt/BrSteMIA.js +0 -1
- package/.output/public/_nuxt/C-MeLOeF.js +0 -1
- package/.output/public/_nuxt/C-OKZMJp.js +0 -1
- package/.output/public/_nuxt/C6tJinWY.js +0 -0
- package/.output/public/_nuxt/C7lLQr2h.js +0 -0
- package/.output/public/_nuxt/CDLGLk8m.js +0 -1
- package/.output/public/_nuxt/CDT62st6.js +0 -1
- package/.output/public/_nuxt/CFimyBH-.js +0 -0
- package/.output/public/_nuxt/CG7cd7Sy.js +0 -1
- package/.output/public/_nuxt/CKPnIC-C.js +0 -0
- package/.output/public/_nuxt/COPw3T3p.js +0 -1
- package/.output/public/_nuxt/CQGFUxxa.js +0 -1
- package/.output/public/_nuxt/CSX_cLY6.js +0 -1
- package/.output/public/_nuxt/CaVNnfk7.js +0 -0
- package/.output/public/_nuxt/Cd1ifhTP.js +0 -0
- package/.output/public/_nuxt/CdygaddQ.js +0 -9
- package/.output/public/_nuxt/Cf-VPxfE.js +0 -1
- package/.output/public/_nuxt/CfmMK6-y.js +0 -1
- package/.output/public/_nuxt/Civ5r6YF.js +0 -1
- package/.output/public/_nuxt/CkdnMzBA.js +0 -0
- package/.output/public/_nuxt/CnlJVizr.js +0 -1
- package/.output/public/_nuxt/Coqgx10n.js +0 -0
- package/.output/public/_nuxt/CxMUMwzI.js +0 -1
- package/.output/public/_nuxt/Cyw3rpDt.js +0 -1
- package/.output/public/_nuxt/CzKgiVVn.js +0 -1
- package/.output/public/_nuxt/D-qXrpoJ.js +0 -0
- package/.output/public/_nuxt/D2vgCRoc.js +0 -1
- package/.output/public/_nuxt/D4fuXfD_.js +0 -1
- package/.output/public/_nuxt/D5IuxRu4.js +0 -1
- package/.output/public/_nuxt/D5j9Embb.js +0 -1
- package/.output/public/_nuxt/D6YL6Hhi.js +0 -0
- package/.output/public/_nuxt/DAIwjxRT.js +0 -0
- package/.output/public/_nuxt/DBEY94Mo.js +0 -0
- package/.output/public/_nuxt/DCQOMtdo.js +0 -1
- package/.output/public/_nuxt/DEQ3hSSO.js +0 -1
- package/.output/public/_nuxt/DFfCkFZ3.js +0 -1
- package/.output/public/_nuxt/DL4qe-W_.js +0 -0
- package/.output/public/_nuxt/DLKI6lgi.js +0 -0
- package/.output/public/_nuxt/DOAeoYpG.js +0 -0
- package/.output/public/_nuxt/DPQeTxQ3.js +0 -1
- package/.output/public/_nuxt/DP_txrAq.js +0 -1
- package/.output/public/_nuxt/DQKS5ddY.js +0 -1
- package/.output/public/_nuxt/DXXu9Lvl.js +0 -1
- package/.output/public/_nuxt/DcUS3ReQ.js +0 -0
- package/.output/public/_nuxt/DdWDmJe7.js +0 -0
- package/.output/public/_nuxt/Df59gZou.js +0 -0
- package/.output/public/_nuxt/DiIccoHR.js +0 -0
- package/.output/public/_nuxt/DiL3rzK6.js +0 -1
- package/.output/public/_nuxt/DkEHW4Vs.js +0 -0
- package/.output/public/_nuxt/DmRrrdJv.js +0 -1
- package/.output/public/_nuxt/Do5nYv4E.js +0 -0
- package/.output/public/_nuxt/DqyxgTAQ.js +0 -0
- package/.output/public/_nuxt/DrE64K_R.js +0 -1
- package/.output/public/_nuxt/DrskXsQH.js +0 -1
- package/.output/public/_nuxt/Ds7AWph0.js +0 -0
- package/.output/public/_nuxt/Dvcv58Mc.js +0 -1
- package/.output/public/_nuxt/FMWwyTQ_.js +0 -0
- package/.output/public/_nuxt/Q6bGSN8C.js +0 -0
- package/.output/public/_nuxt/QyE4cqYn.js +0 -1
- package/.output/public/_nuxt/Tcmkoyas.js +0 -1
- package/.output/public/_nuxt/Tj4XPHLn.js +0 -1
- package/.output/public/_nuxt/VOEA7UHD.js +0 -0
- package/.output/public/_nuxt/WOOfaOjG.js +0 -1
- package/.output/public/_nuxt/Y6FRsTFQ.js +0 -0
- package/.output/public/_nuxt/ZDbum-dK.js +0 -1
- package/.output/public/_nuxt/ZTY82FYd.js +0 -0
- package/.output/public/_nuxt/asVu8S_S.js +0 -51
- package/.output/public/_nuxt/builds/meta/68901e1f-eb2d-48db-9c33-8ac67fff1d62.json +0 -1
- package/.output/public/_nuxt/cjlVjclE.js +0 -1
- package/.output/public/_nuxt/entry.UZgisdi2.css +0 -1
- package/.output/public/_nuxt/error-404.DQ5oEvRi.css +0 -1
- package/.output/public/_nuxt/error-500.c8JA_zlB.css +0 -1
- package/.output/public/_nuxt/gmjYz5n6.js +0 -0
- package/.output/public/_nuxt/iatO0zkI.js +0 -1
- package/.output/public/_nuxt/jieRiiOw.js +0 -0
- package/.output/public/_nuxt/lAhMwKxb.js +0 -1
- package/.output/public/_nuxt/mHcxE7OD.js +0 -0
- package/.output/public/_nuxt/n17zLPF6.js +0 -0
- package/.output/public/_nuxt/ncv2QjU2.js +0 -1
- package/.output/public/_nuxt/osXHzmfu.js +0 -1
- package/.output/public/_nuxt/plapqmiu.js +0 -1
- package/.output/public/_nuxt/pnNmDVjA.js +0 -0
- package/.output/public/_nuxt/rxAL1Pmw.js +0 -1
- package/.output/public/_nuxt/ryzXmKdZ.js +0 -1
- package/.output/public/_nuxt/t9C3L8ir.js +0 -1
- package/.output/public/_nuxt/wQgAJ5T0.js +0 -1
- package/.output/public/_nuxt/z6h75OXJ.js +0 -1
- package/.output/server/node_modules/.nitro/@vue/compiler-core@3.5.22/dist/compiler-core.cjs.prod.js +0 -6741
- package/.output/server/node_modules/.nitro/@vue/compiler-core@3.5.22/package.json +0 -58
- package/.output/server/node_modules/.nitro/@vue/compiler-dom@3.5.25/dist/compiler-dom.cjs.prod.js +0 -689
- package/.output/server/node_modules/.nitro/@vue/compiler-dom@3.5.25/package.json +0 -57
- package/.output/server/node_modules/.nitro/@vue/reactivity@3.5.22/dist/reactivity.cjs.prod.js +0 -1807
- package/.output/server/node_modules/.nitro/@vue/reactivity@3.5.25/package.json +0 -55
- package/.output/server/node_modules/.nitro/@vue/runtime-core@3.5.22/dist/runtime-core.cjs.prod.js +0 -6732
- package/.output/server/node_modules/.nitro/@vue/runtime-core@3.5.25/package.json +0 -52
- package/.output/server/node_modules/.nitro/@vue/runtime-dom@3.5.22/dist/runtime-dom.cjs.prod.js +0 -1703
- package/.output/server/node_modules/.nitro/@vue/runtime-dom@3.5.25/package.json +0 -60
- package/.output/server/node_modules/.nitro/@vue/shared@3.5.22/dist/shared.cjs.prod.js +0 -604
- package/.output/server/node_modules/.nitro/@vue/shared@3.5.25/package.json +0 -47
- package/.output/server/node_modules/.nitro/entities@4.5.0/lib/generated/decode-data-html.js +0 -9
- package/.output/server/node_modules/.nitro/entities@4.5.0/lib/generated/decode-data-xml.js +0 -9
- package/.output/server/node_modules/.nitro/property-information@6.5.0/index.js +0 -18
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/aria.js +0 -59
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/find.js +0 -68
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/hast-to-react.js +0 -28
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/html.js +0 -322
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/normalize.js +0 -7
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/svg.js +0 -567
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/case-insensitive-transform.js +0 -10
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/case-sensitive-transform.js +0 -8
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/create.js +0 -58
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/defined-info.js +0 -44
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/info.js +0 -25
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/merge.js +0 -26
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/util/schema.js +0 -28
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/xlink.js +0 -17
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/xml.js +0 -9
- package/.output/server/node_modules/.nitro/property-information@6.5.0/lib/xmlns.js +0 -9
- package/.output/server/node_modules/.nitro/property-information@6.5.0/package.json +0 -93
- package/.output/server/node_modules/.nitro/property-information@7.1.0/lib/util/types.js +0 -13
- package/.output/server/node_modules/.nitro/vue@3.5.22/dist/vue.cjs.prod.js +0 -66
- package/.output/server/node_modules/.nitro/vue@3.5.22/package.json +0 -112
- package/.output/server/node_modules/.nitro/vue@3.5.25/dist/vue.cjs.js +0 -80
- package/.output/server/node_modules/.nitro/vue@3.5.25/index.js +0 -7
- package/.output/server/node_modules/.nitro/vue@3.5.25/index.mjs +0 -1
- package/.output/server/node_modules/@lukeed/ms/dist/index.mjs +0 -34
- package/.output/server/node_modules/@lukeed/ms/package.json +0 -48
- package/.output/server/node_modules/@poppinss/string/build/chunk-LJJE2S3U.js +0 -407
- package/.output/server/node_modules/bytes/index.js +0 -170
- package/.output/server/node_modules/bytes/package.json +0 -42
- package/.output/server/node_modules/truncatise/index.js +0 -188
- package/.output/server/node_modules/truncatise/package.json +0 -36
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/index.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/aria.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/find.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/hast-to-react.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/html.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/normalize.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/svg.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/case-insensitive-transform.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/case-sensitive-transform.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/create.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/defined-info.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/info.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/merge.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/util/schema.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@6.5.0 → property-information}/lib/util/types.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/xlink.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/xml.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/lib/xmlns.js +0 -0
- /package/.output/server/node_modules/{.nitro/property-information@7.1.0 → property-information}/package.json +0 -0
- /package/.output/server/node_modules/{.nitro/vue@3.5.22 → vue}/index.js +0 -0
- /package/.output/server/node_modules/{.nitro/vue@3.5.22 → vue}/index.mjs +0 -0
- /package/.output/server/node_modules/{.nitro/vue@3.5.25 → vue}/server-renderer/index.mjs +0 -0
|
@@ -1,407 +0,0 @@
|
|
|
1
|
-
// src/bytes.ts
|
|
2
|
-
import bytes from "bytes";
|
|
3
|
-
var bytes_default = {
|
|
4
|
-
/**
|
|
5
|
-
* Formats bytes to a human-readable string value. When input cannot be formatted, the `null` value is returned. The accepted options are as follows.
|
|
6
|
-
*
|
|
7
|
-
- `decimalPlaces`: Maximum number of decimal places to include in output. `default=2`.
|
|
8
|
-
- `fixedDecimals`: Whether to always display the maximum number of decimal places. `default=false`.
|
|
9
|
-
- `thousandsSeparator`: Specify the separator for thousands. `default=''`.
|
|
10
|
-
- `unit`: The unit in which the result will be returned. It could be `B/KB/MB/GB/TB`. The default behavior is to auto-detect based on the input.
|
|
11
|
-
- `unitSeparator`: The separator between the value and the `unit`. `default=''`.
|
|
12
|
-
*/
|
|
13
|
-
format(valueInBytes, options) {
|
|
14
|
-
return bytes.format(valueInBytes, options);
|
|
15
|
-
},
|
|
16
|
-
/**
|
|
17
|
-
* Parse a human-readable string expression to bytes. If the unit value is a number, it will be
|
|
18
|
-
* returned as it is. Otherwise, the string expression will be converted to a number representing
|
|
19
|
-
* bytes.
|
|
20
|
-
*
|
|
21
|
-
* The `null` value is returned when the input cannot be parsed.
|
|
22
|
-
*
|
|
23
|
-
* Supported units and abbreviations are as follows and are case-insensitive:
|
|
24
|
-
- `b` for bytes
|
|
25
|
-
- `kb` for kilobytes
|
|
26
|
-
- `mb` for megabytes
|
|
27
|
-
- `gb` for gigabytes
|
|
28
|
-
- `tb` for terabytes
|
|
29
|
-
- `pb` for petabytes
|
|
30
|
-
*/
|
|
31
|
-
parse(unit) {
|
|
32
|
-
if (typeof unit === "number") {
|
|
33
|
-
return unit;
|
|
34
|
-
}
|
|
35
|
-
return bytes.parse(unit);
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
// src/uuid.ts
|
|
40
|
-
import { randomUUID } from "crypto";
|
|
41
|
-
var uuidGenerator = randomUUID;
|
|
42
|
-
function uuid(options) {
|
|
43
|
-
return uuidGenerator(options);
|
|
44
|
-
}
|
|
45
|
-
uuid.use = function uuidUse(generator) {
|
|
46
|
-
uuidGenerator = generator;
|
|
47
|
-
};
|
|
48
|
-
uuid.restore = function uuidRestore() {
|
|
49
|
-
uuidGenerator = randomUUID;
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
// src/seconds.ts
|
|
53
|
-
import { parse, format } from "@lukeed/ms";
|
|
54
|
-
var seconds_default = {
|
|
55
|
-
/**
|
|
56
|
-
* Formats seconds to pretty string output
|
|
57
|
-
*/
|
|
58
|
-
format(seconds, long) {
|
|
59
|
-
return format(seconds * 1e3, long);
|
|
60
|
-
},
|
|
61
|
-
/**
|
|
62
|
-
* Parse the time expression to seconds. If the unit value is a number, then
|
|
63
|
-
* it will be returned as it is. Otherwise the string expression will be
|
|
64
|
-
* converted to a number representing seconds.
|
|
65
|
-
*/
|
|
66
|
-
parse(duration) {
|
|
67
|
-
if (typeof duration === "number") {
|
|
68
|
-
return duration;
|
|
69
|
-
}
|
|
70
|
-
const milliseconds = parse(duration);
|
|
71
|
-
if (milliseconds === void 0) {
|
|
72
|
-
throw new Error(`Invalid duration expression "${duration}"`);
|
|
73
|
-
}
|
|
74
|
-
return Math.floor(milliseconds / 1e3);
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
// src/slugify.ts
|
|
79
|
-
import { default as slugifyPkg } from "slugify";
|
|
80
|
-
var slug = slugifyPkg;
|
|
81
|
-
|
|
82
|
-
// src/random.ts
|
|
83
|
-
import { randomBytes } from "crypto";
|
|
84
|
-
var defaultGenerator = (size) => {
|
|
85
|
-
const bits = (size + 1) * 6;
|
|
86
|
-
const buffer = randomBytes(Math.ceil(bits / 8));
|
|
87
|
-
return Buffer.from(buffer).toString("base64").replace(/\+/g, "-").replace(/\//g, "_").replace(/\=/g, "").slice(0, size);
|
|
88
|
-
};
|
|
89
|
-
var randomGenerator = defaultGenerator;
|
|
90
|
-
function random(size) {
|
|
91
|
-
return randomGenerator(size);
|
|
92
|
-
}
|
|
93
|
-
random.use = function randomUse(generator) {
|
|
94
|
-
randomGenerator = generator;
|
|
95
|
-
};
|
|
96
|
-
random.restore = function randomRestore() {
|
|
97
|
-
randomGenerator = defaultGenerator;
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
// src/excerpt.ts
|
|
101
|
-
import truncatise from "truncatise";
|
|
102
|
-
function excerpt(sentence2, charactersLimit, options) {
|
|
103
|
-
return truncatise(sentence2, {
|
|
104
|
-
TruncateLength: charactersLimit,
|
|
105
|
-
/**
|
|
106
|
-
* Do not complete words when "completeWords" is not explicitly set
|
|
107
|
-
* to true
|
|
108
|
-
*/
|
|
109
|
-
Strict: options && options.completeWords === true ? false : true,
|
|
110
|
-
StripHTML: true,
|
|
111
|
-
TruncateBy: "characters",
|
|
112
|
-
Suffix: options && options.suffix
|
|
113
|
-
});
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
// src/justify.ts
|
|
117
|
-
function applyPadding(value, options) {
|
|
118
|
-
if (options.paddingLeft) {
|
|
119
|
-
value = `${options.paddingChar.repeat(options.paddingLeft)}${value}`;
|
|
120
|
-
}
|
|
121
|
-
if (options.paddingRight) {
|
|
122
|
-
value = `${value}${options.paddingChar.repeat(options.paddingRight)}`;
|
|
123
|
-
}
|
|
124
|
-
return value;
|
|
125
|
-
}
|
|
126
|
-
function justify(columns, options) {
|
|
127
|
-
const normalizedOptions = {
|
|
128
|
-
align: "left",
|
|
129
|
-
indent: " ",
|
|
130
|
-
...options
|
|
131
|
-
};
|
|
132
|
-
return columns.map((column) => {
|
|
133
|
-
const columnWidth = options.getLength?.(column) ?? column.length;
|
|
134
|
-
if (columnWidth >= normalizedOptions.width) {
|
|
135
|
-
return column;
|
|
136
|
-
}
|
|
137
|
-
if (normalizedOptions.align === "left") {
|
|
138
|
-
return applyPadding(column, {
|
|
139
|
-
paddingChar: normalizedOptions.indent,
|
|
140
|
-
paddingRight: normalizedOptions.width - columnWidth
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
return applyPadding(column, {
|
|
144
|
-
paddingChar: normalizedOptions.indent,
|
|
145
|
-
paddingLeft: normalizedOptions.width - columnWidth
|
|
146
|
-
});
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
// src/ordinal.ts
|
|
151
|
-
function ordinal(value) {
|
|
152
|
-
const transformedValue = Math.abs(typeof value === "string" ? Number.parseInt(value) : value);
|
|
153
|
-
if (!Number.isFinite(transformedValue) || Number.isNaN(transformedValue)) {
|
|
154
|
-
throw new Error("Cannot ordinalize invalid or infinite numbers");
|
|
155
|
-
}
|
|
156
|
-
const percent = transformedValue % 100;
|
|
157
|
-
if (percent >= 10 && percent <= 20) {
|
|
158
|
-
return `${value}th`;
|
|
159
|
-
}
|
|
160
|
-
const decimal = transformedValue % 10;
|
|
161
|
-
switch (decimal) {
|
|
162
|
-
case 1:
|
|
163
|
-
return `${value}st`;
|
|
164
|
-
case 2:
|
|
165
|
-
return `${value}nd`;
|
|
166
|
-
case 3:
|
|
167
|
-
return `${value}rd`;
|
|
168
|
-
default:
|
|
169
|
-
return `${value}th`;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
// src/truncate.ts
|
|
174
|
-
import truncatise2 from "truncatise";
|
|
175
|
-
function truncate(sentence2, charactersLimit, options) {
|
|
176
|
-
return truncatise2(sentence2, {
|
|
177
|
-
TruncateLength: charactersLimit,
|
|
178
|
-
/**
|
|
179
|
-
* Do not complete words when "completeWords" is not explicitly set
|
|
180
|
-
* to true
|
|
181
|
-
*/
|
|
182
|
-
Strict: options && options.completeWords === true ? false : true,
|
|
183
|
-
StripHTML: false,
|
|
184
|
-
TruncateBy: "characters",
|
|
185
|
-
Suffix: options && options.suffix
|
|
186
|
-
});
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
// src/sentence.ts
|
|
190
|
-
function sentence(values, options) {
|
|
191
|
-
if (values.length === 0) {
|
|
192
|
-
return "";
|
|
193
|
-
}
|
|
194
|
-
if (values.length === 1) {
|
|
195
|
-
return values[0];
|
|
196
|
-
}
|
|
197
|
-
if (values.length === 2) {
|
|
198
|
-
return `${values[0]}${options?.pairSeparator || " and "}${values[1]}`;
|
|
199
|
-
}
|
|
200
|
-
const normalized = Object.assign({ separator: ", ", lastSeparator: ", and " }, options);
|
|
201
|
-
return `${values.slice(0, -1).join(normalized.separator)}${normalized.lastSeparator}${values[values.length - 1]}`;
|
|
202
|
-
}
|
|
203
|
-
|
|
204
|
-
// src/word_wrap.ts
|
|
205
|
-
function wordWrap(value, options) {
|
|
206
|
-
const width = options.width;
|
|
207
|
-
const indent = options.indent ?? "";
|
|
208
|
-
const newLine = `${options.newLine ?? "\n"}${indent}`;
|
|
209
|
-
let regexString = ".{1," + width + "}";
|
|
210
|
-
regexString += "([\\s\u200B]+|$)|[^\\s\u200B]+?([\\s\u200B]+|$)";
|
|
211
|
-
const re = new RegExp(regexString, "g");
|
|
212
|
-
const lines = value.match(re) || [];
|
|
213
|
-
const result = lines.map(function(line) {
|
|
214
|
-
if (line.slice(-1) === "\n") {
|
|
215
|
-
line = line.slice(0, line.length - 1);
|
|
216
|
-
}
|
|
217
|
-
return options.escape ? options.escape(line) : line;
|
|
218
|
-
}).join(newLine);
|
|
219
|
-
return result;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
// src/milliseconds.ts
|
|
223
|
-
import { parse as parse2, format as format2 } from "@lukeed/ms";
|
|
224
|
-
var milliseconds_default = {
|
|
225
|
-
/**
|
|
226
|
-
* Formats milliseconds to pretty string output
|
|
227
|
-
*/
|
|
228
|
-
format(milliseconds, long) {
|
|
229
|
-
return format2(milliseconds, long);
|
|
230
|
-
},
|
|
231
|
-
/**
|
|
232
|
-
* Parse the time expression to milliseconds. If the unit value is a number,
|
|
233
|
-
* then it will be returned as it is. Otherwise the string expression will
|
|
234
|
-
* be converted to a number representing seconds.
|
|
235
|
-
*/
|
|
236
|
-
parse(duration) {
|
|
237
|
-
if (typeof duration === "number") {
|
|
238
|
-
return duration;
|
|
239
|
-
}
|
|
240
|
-
const milliseconds = parse2(duration);
|
|
241
|
-
if (milliseconds === void 0) {
|
|
242
|
-
throw new Error(`Invalid duration expression "${duration}"`);
|
|
243
|
-
}
|
|
244
|
-
return milliseconds;
|
|
245
|
-
}
|
|
246
|
-
};
|
|
247
|
-
|
|
248
|
-
// src/html_escape.ts
|
|
249
|
-
function htmlEscape(value) {
|
|
250
|
-
return value.replace(/&/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">");
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
// src/interpolate.ts
|
|
254
|
-
function parseProp(data, key) {
|
|
255
|
-
const tokens = key.split(".");
|
|
256
|
-
while (tokens.length) {
|
|
257
|
-
if (data === null || typeof data !== "object") {
|
|
258
|
-
return;
|
|
259
|
-
}
|
|
260
|
-
const token = tokens.shift();
|
|
261
|
-
data = Object.hasOwn(data, token) ? data[token] : void 0;
|
|
262
|
-
}
|
|
263
|
-
return data;
|
|
264
|
-
}
|
|
265
|
-
function interpolate(input, data) {
|
|
266
|
-
return input.replace(/(\\)?{{(.*?)}}/g, (_, escapeChar, key) => {
|
|
267
|
-
if (escapeChar) {
|
|
268
|
-
return `{{${key}}}`;
|
|
269
|
-
}
|
|
270
|
-
return parseProp(data, key.trim());
|
|
271
|
-
});
|
|
272
|
-
}
|
|
273
|
-
|
|
274
|
-
// src/to_unix_slash.ts
|
|
275
|
-
function toUnixSlash(path) {
|
|
276
|
-
const isExtendedLengthPath = path.startsWith("\\\\?\\");
|
|
277
|
-
if (isExtendedLengthPath) {
|
|
278
|
-
return path;
|
|
279
|
-
}
|
|
280
|
-
return path.replace(/\\/g, "/");
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
// src/pluralize.ts
|
|
284
|
-
import { default as pluralizePkg } from "pluralize";
|
|
285
|
-
function pluralize(word, count, inclusive) {
|
|
286
|
-
return pluralizePkg(word, count, inclusive);
|
|
287
|
-
}
|
|
288
|
-
pluralize.addPluralRule = pluralizePkg.addPluralRule;
|
|
289
|
-
pluralize.addSingularRule = pluralizePkg.addSingularRule;
|
|
290
|
-
pluralize.addIrregularRule = pluralizePkg.addIrregularRule;
|
|
291
|
-
pluralize.addUncountableRule = pluralizePkg.addUncountableRule;
|
|
292
|
-
var plural = pluralizePkg.plural;
|
|
293
|
-
var singular = pluralizePkg.singular;
|
|
294
|
-
var isPlural = pluralizePkg.isPlural;
|
|
295
|
-
var isSingular = pluralizePkg.isSingular;
|
|
296
|
-
|
|
297
|
-
// src/change_case.ts
|
|
298
|
-
import * as changeCase from "case-anything";
|
|
299
|
-
var NO_CASE_SPLIT_REGEXP = [/([a-z0-9])([A-Z])/g, /([A-Z])([A-Z][a-z])/g];
|
|
300
|
-
var NO_CASE_STRIP_REGEXP = /[^A-Z0-9]+/gi;
|
|
301
|
-
var SMALL_WORDS = /\b(?:an?d?|a[st]|because|but|by|en|for|i[fn]|neither|nor|o[fnr]|only|over|per|so|some|tha[tn]|the|to|up|upon|vs?\.?|versus|via|when|with|without|yet)\b/i;
|
|
302
|
-
var TOKENS = /[^\s:–—-]+|./g;
|
|
303
|
-
var WHITESPACE = /\s/;
|
|
304
|
-
var IS_MANUAL_CASE = /.(?=[A-Z]|\..)/;
|
|
305
|
-
var ALPHANUMERIC_PATTERN = /[A-Za-z0-9\u00C0-\u00FF]/;
|
|
306
|
-
function titleCase(input) {
|
|
307
|
-
let output = "";
|
|
308
|
-
let result;
|
|
309
|
-
while ((result = TOKENS.exec(input)) !== null) {
|
|
310
|
-
const { 0: token, index } = result;
|
|
311
|
-
if (!IS_MANUAL_CASE.test(token) && (!SMALL_WORDS.test(token) || index === 0 || index + token.length === input.length) && (input.charAt(index + token.length) !== ":" || WHITESPACE.test(input.charAt(index + token.length + 1)))) {
|
|
312
|
-
output += token.replace(ALPHANUMERIC_PATTERN, (char) => char.toUpperCase());
|
|
313
|
-
continue;
|
|
314
|
-
}
|
|
315
|
-
output += token;
|
|
316
|
-
}
|
|
317
|
-
return output;
|
|
318
|
-
}
|
|
319
|
-
function camelCase2(value) {
|
|
320
|
-
return changeCase.camelCase(value);
|
|
321
|
-
}
|
|
322
|
-
function snakeCase2(value) {
|
|
323
|
-
return changeCase.snakeCase(value);
|
|
324
|
-
}
|
|
325
|
-
function dashCase(value, options) {
|
|
326
|
-
if (options && options.capitalize) {
|
|
327
|
-
return changeCase.trainCase(value);
|
|
328
|
-
}
|
|
329
|
-
return changeCase.kebabCase(value);
|
|
330
|
-
}
|
|
331
|
-
function pascalCase2(value) {
|
|
332
|
-
return changeCase.pascalCase(value);
|
|
333
|
-
}
|
|
334
|
-
function capitalCase2(value) {
|
|
335
|
-
return changeCase.capitalCase(value);
|
|
336
|
-
}
|
|
337
|
-
function sentenceCase(value) {
|
|
338
|
-
return noCase(value, (input, index) => {
|
|
339
|
-
const result = input.toLowerCase();
|
|
340
|
-
if (index === 0) {
|
|
341
|
-
return input.charAt(0).toUpperCase() + input.substring(1);
|
|
342
|
-
}
|
|
343
|
-
return result;
|
|
344
|
-
});
|
|
345
|
-
}
|
|
346
|
-
function dotCase(value, options) {
|
|
347
|
-
const transformedValue = changeCase.dotNotation(value);
|
|
348
|
-
if (options && options.lowerCase) {
|
|
349
|
-
return transformedValue.toLowerCase();
|
|
350
|
-
}
|
|
351
|
-
return transformedValue;
|
|
352
|
-
}
|
|
353
|
-
function noCase(value, transform) {
|
|
354
|
-
let result = NO_CASE_SPLIT_REGEXP.reduce((input, regex) => input.replace(regex, "$1\0$2"), value);
|
|
355
|
-
result = result.replace(NO_CASE_STRIP_REGEXP, "\0");
|
|
356
|
-
let start = 0;
|
|
357
|
-
let end = result.length;
|
|
358
|
-
while (result.charAt(start) === "\0") {
|
|
359
|
-
start++;
|
|
360
|
-
}
|
|
361
|
-
while (result.charAt(end - 1) === "\0") {
|
|
362
|
-
end--;
|
|
363
|
-
}
|
|
364
|
-
return result.slice(start, end).split("\0").map(transform || ((input) => input.toLowerCase())).join(" ");
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
// index.ts
|
|
368
|
-
function condenseWhitespace(value) {
|
|
369
|
-
return value.trim().replace(/\s{2,}/g, " ");
|
|
370
|
-
}
|
|
371
|
-
var string = {
|
|
372
|
-
excerpt,
|
|
373
|
-
truncate,
|
|
374
|
-
slug,
|
|
375
|
-
interpolate,
|
|
376
|
-
plural,
|
|
377
|
-
pluralize,
|
|
378
|
-
singular,
|
|
379
|
-
isPlural,
|
|
380
|
-
isSingular,
|
|
381
|
-
camelCase: camelCase2,
|
|
382
|
-
capitalCase: capitalCase2,
|
|
383
|
-
dashCase,
|
|
384
|
-
dotCase,
|
|
385
|
-
noCase,
|
|
386
|
-
pascalCase: pascalCase2,
|
|
387
|
-
sentenceCase,
|
|
388
|
-
snakeCase: snakeCase2,
|
|
389
|
-
titleCase,
|
|
390
|
-
random,
|
|
391
|
-
sentence,
|
|
392
|
-
condenseWhitespace,
|
|
393
|
-
wordWrap,
|
|
394
|
-
seconds: seconds_default,
|
|
395
|
-
milliseconds: milliseconds_default,
|
|
396
|
-
bytes: bytes_default,
|
|
397
|
-
ordinal,
|
|
398
|
-
htmlEscape,
|
|
399
|
-
justify,
|
|
400
|
-
uuid,
|
|
401
|
-
toUnixSlash
|
|
402
|
-
};
|
|
403
|
-
var index_default = string;
|
|
404
|
-
|
|
405
|
-
export {
|
|
406
|
-
index_default
|
|
407
|
-
};
|
|
@@ -1,170 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* bytes
|
|
3
|
-
* Copyright(c) 2012-2014 TJ Holowaychuk
|
|
4
|
-
* Copyright(c) 2015 Jed Watson
|
|
5
|
-
* MIT Licensed
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
'use strict';
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Module exports.
|
|
12
|
-
* @public
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
module.exports = bytes;
|
|
16
|
-
module.exports.format = format;
|
|
17
|
-
module.exports.parse = parse;
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Module variables.
|
|
21
|
-
* @private
|
|
22
|
-
*/
|
|
23
|
-
|
|
24
|
-
var formatThousandsRegExp = /\B(?=(\d{3})+(?!\d))/g;
|
|
25
|
-
|
|
26
|
-
var formatDecimalsRegExp = /(?:\.0*|(\.[^0]+)0+)$/;
|
|
27
|
-
|
|
28
|
-
var map = {
|
|
29
|
-
b: 1,
|
|
30
|
-
kb: 1 << 10,
|
|
31
|
-
mb: 1 << 20,
|
|
32
|
-
gb: 1 << 30,
|
|
33
|
-
tb: Math.pow(1024, 4),
|
|
34
|
-
pb: Math.pow(1024, 5),
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
var parseRegExp = /^((-|\+)?(\d+(?:\.\d+)?)) *(kb|mb|gb|tb|pb)$/i;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Convert the given value in bytes into a string or parse to string to an integer in bytes.
|
|
41
|
-
*
|
|
42
|
-
* @param {string|number} value
|
|
43
|
-
* @param {{
|
|
44
|
-
* case: [string],
|
|
45
|
-
* decimalPlaces: [number]
|
|
46
|
-
* fixedDecimals: [boolean]
|
|
47
|
-
* thousandsSeparator: [string]
|
|
48
|
-
* unitSeparator: [string]
|
|
49
|
-
* }} [options] bytes options.
|
|
50
|
-
*
|
|
51
|
-
* @returns {string|number|null}
|
|
52
|
-
*/
|
|
53
|
-
|
|
54
|
-
function bytes(value, options) {
|
|
55
|
-
if (typeof value === 'string') {
|
|
56
|
-
return parse(value);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
if (typeof value === 'number') {
|
|
60
|
-
return format(value, options);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
return null;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Format the given value in bytes into a string.
|
|
68
|
-
*
|
|
69
|
-
* If the value is negative, it is kept as such. If it is a float,
|
|
70
|
-
* it is rounded.
|
|
71
|
-
*
|
|
72
|
-
* @param {number} value
|
|
73
|
-
* @param {object} [options]
|
|
74
|
-
* @param {number} [options.decimalPlaces=2]
|
|
75
|
-
* @param {number} [options.fixedDecimals=false]
|
|
76
|
-
* @param {string} [options.thousandsSeparator=]
|
|
77
|
-
* @param {string} [options.unit=]
|
|
78
|
-
* @param {string} [options.unitSeparator=]
|
|
79
|
-
*
|
|
80
|
-
* @returns {string|null}
|
|
81
|
-
* @public
|
|
82
|
-
*/
|
|
83
|
-
|
|
84
|
-
function format(value, options) {
|
|
85
|
-
if (!Number.isFinite(value)) {
|
|
86
|
-
return null;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
var mag = Math.abs(value);
|
|
90
|
-
var thousandsSeparator = (options && options.thousandsSeparator) || '';
|
|
91
|
-
var unitSeparator = (options && options.unitSeparator) || '';
|
|
92
|
-
var decimalPlaces = (options && options.decimalPlaces !== undefined) ? options.decimalPlaces : 2;
|
|
93
|
-
var fixedDecimals = Boolean(options && options.fixedDecimals);
|
|
94
|
-
var unit = (options && options.unit) || '';
|
|
95
|
-
|
|
96
|
-
if (!unit || !map[unit.toLowerCase()]) {
|
|
97
|
-
if (mag >= map.pb) {
|
|
98
|
-
unit = 'PB';
|
|
99
|
-
} else if (mag >= map.tb) {
|
|
100
|
-
unit = 'TB';
|
|
101
|
-
} else if (mag >= map.gb) {
|
|
102
|
-
unit = 'GB';
|
|
103
|
-
} else if (mag >= map.mb) {
|
|
104
|
-
unit = 'MB';
|
|
105
|
-
} else if (mag >= map.kb) {
|
|
106
|
-
unit = 'KB';
|
|
107
|
-
} else {
|
|
108
|
-
unit = 'B';
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
var val = value / map[unit.toLowerCase()];
|
|
113
|
-
var str = val.toFixed(decimalPlaces);
|
|
114
|
-
|
|
115
|
-
if (!fixedDecimals) {
|
|
116
|
-
str = str.replace(formatDecimalsRegExp, '$1');
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
if (thousandsSeparator) {
|
|
120
|
-
str = str.split('.').map(function (s, i) {
|
|
121
|
-
return i === 0
|
|
122
|
-
? s.replace(formatThousandsRegExp, thousandsSeparator)
|
|
123
|
-
: s
|
|
124
|
-
}).join('.');
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
return str + unitSeparator + unit;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
/**
|
|
131
|
-
* Parse the string value into an integer in bytes.
|
|
132
|
-
*
|
|
133
|
-
* If no unit is given, it is assumed the value is in bytes.
|
|
134
|
-
*
|
|
135
|
-
* @param {number|string} val
|
|
136
|
-
*
|
|
137
|
-
* @returns {number|null}
|
|
138
|
-
* @public
|
|
139
|
-
*/
|
|
140
|
-
|
|
141
|
-
function parse(val) {
|
|
142
|
-
if (typeof val === 'number' && !isNaN(val)) {
|
|
143
|
-
return val;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
if (typeof val !== 'string') {
|
|
147
|
-
return null;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
// Test if the string passed is valid
|
|
151
|
-
var results = parseRegExp.exec(val);
|
|
152
|
-
var floatValue;
|
|
153
|
-
var unit = 'b';
|
|
154
|
-
|
|
155
|
-
if (!results) {
|
|
156
|
-
// Nothing could be extracted from the given string
|
|
157
|
-
floatValue = parseInt(val, 10);
|
|
158
|
-
unit = 'b'
|
|
159
|
-
} else {
|
|
160
|
-
// Retrieve the value and the unit
|
|
161
|
-
floatValue = parseFloat(results[1]);
|
|
162
|
-
unit = results[4].toLowerCase();
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
if (isNaN(floatValue)) {
|
|
166
|
-
return null;
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
return Math.floor(map[unit] * floatValue);
|
|
170
|
-
}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "bytes",
|
|
3
|
-
"description": "Utility to parse a string bytes to bytes and vice-versa",
|
|
4
|
-
"version": "3.1.2",
|
|
5
|
-
"author": "TJ Holowaychuk <tj@vision-media.ca> (http://tjholowaychuk.com)",
|
|
6
|
-
"contributors": [
|
|
7
|
-
"Jed Watson <jed.watson@me.com>",
|
|
8
|
-
"Théo FIDRY <theo.fidry@gmail.com>"
|
|
9
|
-
],
|
|
10
|
-
"license": "MIT",
|
|
11
|
-
"keywords": [
|
|
12
|
-
"byte",
|
|
13
|
-
"bytes",
|
|
14
|
-
"utility",
|
|
15
|
-
"parse",
|
|
16
|
-
"parser",
|
|
17
|
-
"convert",
|
|
18
|
-
"converter"
|
|
19
|
-
],
|
|
20
|
-
"repository": "visionmedia/bytes.js",
|
|
21
|
-
"devDependencies": {
|
|
22
|
-
"eslint": "7.32.0",
|
|
23
|
-
"eslint-plugin-markdown": "2.2.1",
|
|
24
|
-
"mocha": "9.2.0",
|
|
25
|
-
"nyc": "15.1.0"
|
|
26
|
-
},
|
|
27
|
-
"files": [
|
|
28
|
-
"History.md",
|
|
29
|
-
"LICENSE",
|
|
30
|
-
"Readme.md",
|
|
31
|
-
"index.js"
|
|
32
|
-
],
|
|
33
|
-
"engines": {
|
|
34
|
-
"node": ">= 0.8"
|
|
35
|
-
},
|
|
36
|
-
"scripts": {
|
|
37
|
-
"lint": "eslint .",
|
|
38
|
-
"test": "mocha --check-leaks --reporter spec",
|
|
39
|
-
"test-ci": "nyc --reporter=lcov --reporter=text npm test",
|
|
40
|
-
"test-cov": "nyc --reporter=html --reporter=text npm test"
|
|
41
|
-
}
|
|
42
|
-
}
|