@elgap/edukaai 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/BHDzAs85.js +1 -0
- package/.output/public/_nuxt/BJzbfdL_.js +1 -0
- package/.output/public/_nuxt/BKGLlKXk.js +6 -0
- package/.output/public/_nuxt/BLuXzJk3.js +1 -0
- package/.output/public/_nuxt/BNOzzLI3.js +1 -0
- package/.output/public/_nuxt/BO5GMwXh.js +1 -0
- package/.output/public/_nuxt/BQRbsFGy.js +1 -0
- package/.output/public/_nuxt/Be4MVdOg.js +1 -0
- package/.output/public/_nuxt/Bu4d3Z1T.js +1 -0
- package/.output/public/_nuxt/BwpBBNv4.js +1 -0
- package/.output/public/_nuxt/C1Og9-6n.js +97 -0
- package/.output/public/_nuxt/C3CjAhtj.js +1 -0
- package/.output/public/_nuxt/C6E3Ty3z.js +1 -0
- package/.output/public/_nuxt/COct4B42.js +1 -0
- package/.output/public/_nuxt/CQ6g2dtj.js +1 -0
- package/.output/public/_nuxt/CURSW5TV.js +246 -0
- package/.output/public/_nuxt/CW57JW4s.js +1 -0
- package/.output/public/_nuxt/Cg2fM61o.js +18 -0
- package/.output/public/_nuxt/CgGOeWta.js +1 -0
- package/.output/public/_nuxt/CoyYbT7u.js +1 -0
- package/.output/public/_nuxt/D11MHbGc.js +133 -0
- package/.output/public/_nuxt/D24dz0S8.js +1 -0
- package/.output/public/_nuxt/D3EFPr8x.js +1 -0
- package/.output/public/_nuxt/Dvt4ZHil.js +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -0
- package/.output/public/_nuxt/builds/meta/ab87ba0e-6d0d-4466-8b12-00d44f8fb9d3.json +1 -0
- package/.output/public/_nuxt/default.C1K1-g4D.css +1 -0
- package/.output/public/_nuxt/entry.CH8k-Mga.css +1 -0
- package/.output/public/_nuxt/error-404.C-Ezrlz-.css +1 -0
- package/.output/public/_nuxt/error-500.DBWf9FGj.css +1 -0
- package/.output/public/_nuxt/first-training.wFDD65zm.css +1 -0
- package/.output/public/_nuxt/import.cUKYdCrq.css +1 -0
- package/.output/public/_nuxt/index.D-2VHyHA.css +1 -0
- package/.output/public/_nuxt/index.D4J_vHmL.css +1 -0
- package/.output/public/_nuxt/mPJeLIz7.js +1 -0
- package/.output/server/chunks/_/error-500.mjs +19 -0
- package/.output/server/chunks/_/error-500.mjs.map +1 -0
- package/.output/server/chunks/build/ExampleCard-styles.BUOJhEg0.mjs +8 -0
- package/.output/server/chunks/build/ExampleCard-styles.BUOJhEg0.mjs.map +1 -0
- package/.output/server/chunks/build/ExampleForm-Bcpl0CfL.mjs +238 -0
- package/.output/server/chunks/build/ExampleForm-Bcpl0CfL.mjs.map +1 -0
- package/.output/server/chunks/build/ImportPreview-styles.CFmMl5Ok.mjs +8 -0
- package/.output/server/chunks/build/ImportPreview-styles.CFmMl5Ok.mjs.map +1 -0
- package/.output/server/chunks/build/_id_-BUSGcL-H.mjs +113 -0
- package/.output/server/chunks/build/_id_-BUSGcL-H.mjs.map +1 -0
- package/.output/server/chunks/build/axolotl-C-EXGgM8.mjs +112 -0
- package/.output/server/chunks/build/axolotl-C-EXGgM8.mjs.map +1 -0
- package/.output/server/chunks/build/best-practices-DsadorHb.mjs +38 -0
- package/.output/server/chunks/build/best-practices-DsadorHb.mjs.map +1 -0
- package/.output/server/chunks/build/client.precomputed.mjs +4 -0
- package/.output/server/chunks/build/client.precomputed.mjs.map +1 -0
- package/.output/server/chunks/build/default-DPkqqHOE.mjs +354 -0
- package/.output/server/chunks/build/default-DPkqqHOE.mjs.map +1 -0
- package/.output/server/chunks/build/default-styles.DsqVVS7k.mjs +8 -0
- package/.output/server/chunks/build/default-styles.DsqVVS7k.mjs.map +1 -0
- package/.output/server/chunks/build/error-404-K4UfZNck.mjs +97 -0
- package/.output/server/chunks/build/error-404-K4UfZNck.mjs.map +1 -0
- package/.output/server/chunks/build/error-404-styles.DuDrf-v0.mjs +8 -0
- package/.output/server/chunks/build/error-404-styles.DuDrf-v0.mjs.map +1 -0
- package/.output/server/chunks/build/error-500-CA7TEPNg.mjs +79 -0
- package/.output/server/chunks/build/error-500-CA7TEPNg.mjs.map +1 -0
- package/.output/server/chunks/build/error-500-styles.8IYEHzz6.mjs +8 -0
- package/.output/server/chunks/build/error-500-styles.8IYEHzz6.mjs.map +1 -0
- package/.output/server/chunks/build/examples-BHK8MDrs.mjs +134 -0
- package/.output/server/chunks/build/examples-BHK8MDrs.mjs.map +1 -0
- package/.output/server/chunks/build/export-BzxFqqfP.mjs +233 -0
- package/.output/server/chunks/build/export-BzxFqqfP.mjs.map +1 -0
- package/.output/server/chunks/build/faq-DKch73dS.mjs +112 -0
- package/.output/server/chunks/build/faq-DKch73dS.mjs.map +1 -0
- package/.output/server/chunks/build/field-guide-qbukT8F0.mjs +38 -0
- package/.output/server/chunks/build/field-guide-qbukT8F0.mjs.map +1 -0
- package/.output/server/chunks/build/first-training-BbEOBcEW.mjs +343 -0
- package/.output/server/chunks/build/first-training-BbEOBcEW.mjs.map +1 -0
- package/.output/server/chunks/build/first-training-styles.BzOa_KRD.mjs +8 -0
- package/.output/server/chunks/build/first-training-styles.BzOa_KRD.mjs.map +1 -0
- package/.output/server/chunks/build/glossary-CxSGCJoH.mjs +397 -0
- package/.output/server/chunks/build/glossary-CxSGCJoH.mjs.map +1 -0
- package/.output/server/chunks/build/huggingface-TSmyUzZU.mjs +128 -0
- package/.output/server/chunks/build/huggingface-TSmyUzZU.mjs.map +1 -0
- package/.output/server/chunks/build/import-C0kYhRv9.mjs +247 -0
- package/.output/server/chunks/build/import-C0kYhRv9.mjs.map +1 -0
- package/.output/server/chunks/build/index-C1ntBEWd.mjs +235 -0
- package/.output/server/chunks/build/index-C1ntBEWd.mjs.map +1 -0
- package/.output/server/chunks/build/index-D3CxihcX.mjs +320 -0
- package/.output/server/chunks/build/index-D3CxihcX.mjs.map +1 -0
- package/.output/server/chunks/build/index-DgKa1cy0.mjs +360 -0
- package/.output/server/chunks/build/index-DgKa1cy0.mjs.map +1 -0
- package/.output/server/chunks/build/index-cG54gaKX.mjs +513 -0
- package/.output/server/chunks/build/index-cG54gaKX.mjs.map +1 -0
- package/.output/server/chunks/build/index-styles.BX2SZiiS.mjs +8 -0
- package/.output/server/chunks/build/index-styles.BX2SZiiS.mjs.map +1 -0
- package/.output/server/chunks/build/llm-training-DIqc0eiM.mjs +91 -0
- package/.output/server/chunks/build/llm-training-DIqc0eiM.mjs.map +1 -0
- package/.output/server/chunks/build/new-b3338aLF.mjs +92 -0
- package/.output/server/chunks/build/new-b3338aLF.mjs.map +1 -0
- package/.output/server/chunks/build/nuxt-link-Ceyd90PQ.mjs +290 -0
- package/.output/server/chunks/build/nuxt-link-Ceyd90PQ.mjs.map +1 -0
- package/.output/server/chunks/build/sample-datasets-CVLWMQUA.mjs +45 -0
- package/.output/server/chunks/build/sample-datasets-CVLWMQUA.mjs.map +1 -0
- package/.output/server/chunks/build/server.mjs +1979 -0
- package/.output/server/chunks/build/server.mjs.map +1 -0
- package/.output/server/chunks/build/styles.mjs +20 -0
- package/.output/server/chunks/build/styles.mjs.map +1 -0
- package/.output/server/chunks/build/test-router-BYM6Cpst.mjs +105 -0
- package/.output/server/chunks/build/test-router-BYM6Cpst.mjs.map +1 -0
- package/.output/server/chunks/nitro/nitro.mjs +5800 -0
- package/.output/server/chunks/nitro/nitro.mjs.map +1 -0
- package/.output/server/chunks/routes/renderer.mjs +481 -0
- package/.output/server/chunks/routes/renderer.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/index.mjs +12 -0
- package/.output/server/index.mjs.map +1 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/api.js +2 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/app.js +2 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/component.js +2 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/context.js +2 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/hooks.js +2 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/index.js +22 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/util.js +2 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/const.js +5 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/env.js +17 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/index.js +45 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/plugin.js +2 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/proxy.js +111 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/time.js +28 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/package.json +37 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@7.7.9/dist/index.cjs +42 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@7.7.9/package.json +32 -0
- package/.output/server/node_modules/.nitro/hookable@5.5.3/dist/index.cjs +299 -0
- package/.output/server/node_modules/.nitro/hookable@5.5.3/package.json +49 -0
- package/.output/server/node_modules/.nitro/hookable@6.0.1/dist/index.mjs +266 -0
- package/.output/server/node_modules/.nitro/hookable@6.0.1/package.json +52 -0
- package/.output/server/node_modules/.nitro/perfect-debounce@1.0.0/dist/index.cjs +59 -0
- package/.output/server/node_modules/.nitro/perfect-debounce@1.0.0/package.json +44 -0
- package/.output/server/node_modules/.nitro/perfect-debounce@2.1.0/dist/index.mjs +89 -0
- package/.output/server/node_modules/.nitro/perfect-debounce@2.1.0/package.json +41 -0
- package/.output/server/node_modules/@babel/parser/lib/index.js +14582 -0
- package/.output/server/node_modules/@babel/parser/package.json +50 -0
- package/.output/server/node_modules/@iconify/utils/lib/colors/index.js +292 -0
- package/.output/server/node_modules/@iconify/utils/lib/colors/keywords.js +702 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/common.js +76 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/format.js +40 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/icon.js +52 -0
- package/.output/server/node_modules/@iconify/utils/lib/css/icons.js +133 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/bool.js +20 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.js +15 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/flip.js +18 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/merge.js +18 -0
- package/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.js +31 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.js +80 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/convert.js +102 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/data.js +29 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/format.js +60 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/parse.js +50 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.js +204 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.js +35 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.js +134 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.js +167 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.js +81 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.js +94 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.js +28 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.js +78 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.js +68 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.js +47 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.js +105 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.js +38 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.js +94 -0
- package/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.js +64 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/defaults.js +26 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/merge.js +18 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/name.js +58 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/square.js +34 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon/transformations.js +13 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.js +126 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.js +21 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.js +27 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.js +38 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.js +93 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.js +48 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.js +24 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.js +44 -0
- package/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.js +125 -0
- package/.output/server/node_modules/@iconify/utils/lib/index.js +53 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/custom.js +32 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/loader.js +28 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/modern.js +42 -0
- package/.output/server/node_modules/@iconify/utils/lib/loader/utils.js +63 -0
- package/.output/server/node_modules/@iconify/utils/lib/misc/objects.js +27 -0
- package/.output/server/node_modules/@iconify/utils/lib/misc/strings.js +27 -0
- package/.output/server/node_modules/@iconify/utils/lib/misc/title.js +10 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/build.js +115 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/defs.js +32 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +15 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/html.js +10 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/id.js +42 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.js +23 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/parse.js +69 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/pretty.js +55 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/size.js +28 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/trim.js +8 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/url.js +23 -0
- package/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.js +9 -0
- package/.output/server/node_modules/@iconify/utils/package.json +118 -0
- package/.output/server/node_modules/@iconify/vue/dist/iconify.mjs +1893 -0
- package/.output/server/node_modules/@iconify/vue/package.json +64 -0
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6763 -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 +689 -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 +1413 -0
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/.output/server/node_modules/@vue/devtools-kit/dist/index.cjs +6850 -0
- package/.output/server/node_modules/@vue/devtools-kit/package.json +44 -0
- package/.output/server/node_modules/@vue/devtools-shared/dist/index.cjs +378 -0
- package/.output/server/node_modules/@vue/devtools-shared/package.json +34 -0
- package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1870 -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 +6810 -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 +1750 -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 +883 -0
- package/.output/server/node_modules/@vue/server-renderer/package.json +55 -0
- package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +604 -0
- package/.output/server/node_modules/@vue/shared/package.json +47 -0
- package/.output/server/node_modules/birpc/dist/index.cjs +296 -0
- package/.output/server/node_modules/birpc/package.json +57 -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 +4 -0
- package/.output/server/node_modules/devalue/package.json +37 -0
- package/.output/server/node_modules/devalue/src/base64.js +110 -0
- package/.output/server/node_modules/devalue/src/constants.js +7 -0
- package/.output/server/node_modules/devalue/src/parse.js +246 -0
- package/.output/server/node_modules/devalue/src/stringify.js +350 -0
- package/.output/server/node_modules/devalue/src/uneval.js +490 -0
- package/.output/server/node_modules/devalue/src/utils.js +148 -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/pinia/dist/pinia.prod.cjs +719 -0
- package/.output/server/node_modules/pinia/package.json +94 -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-X4GG3EDV.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/index.mjs +9 -0
- package/.output/server/node_modules/unhead/dist/parser.mjs +508 -0
- package/.output/server/node_modules/unhead/dist/plugins.mjs +101 -0
- package/.output/server/node_modules/unhead/dist/scripts.mjs +30 -0
- package/.output/server/node_modules/unhead/dist/server.mjs +180 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BPM0-cfG.mjs +44 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +43 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BnoAbrHA.mjs +269 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CApf5sj3.mjs +148 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CbpEuj3y.mjs +71 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +196 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.D_nrZZPH.mjs +182 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.ckV6dpEQ.mjs +166 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.fVVqDC1O.mjs +203 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +38 -0
- package/.output/server/node_modules/unhead/dist/utils.mjs +5 -0
- package/.output/server/node_modules/unhead/package.json +105 -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 +301 -0
- package/.output/server/node_modules/vue-bundle-renderer/package.json +55 -0
- package/.output/server/node_modules/vue-router/dist/devtools-EWN81iOl.mjs +1220 -0
- package/.output/server/node_modules/vue-router/dist/vue-router.mjs +1557 -0
- package/.output/server/node_modules/vue-router/package.json +153 -0
- package/.output/server/node_modules/vue-router/vue-router.node.mjs +2 -0
- package/.output/server/package.json +37 -0
- package/LICENSE +21 -0
- package/README.md +132 -0
- package/bin/cli.js +75 -0
- package/package.json +71 -0
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ApiProxy = void 0;
|
|
4
|
+
const const_js_1 = require("./const.js");
|
|
5
|
+
const time_js_1 = require("./time.js");
|
|
6
|
+
class ApiProxy {
|
|
7
|
+
constructor(plugin, hook) {
|
|
8
|
+
this.target = null;
|
|
9
|
+
this.targetQueue = [];
|
|
10
|
+
this.onQueue = [];
|
|
11
|
+
this.plugin = plugin;
|
|
12
|
+
this.hook = hook;
|
|
13
|
+
const defaultSettings = {};
|
|
14
|
+
if (plugin.settings) {
|
|
15
|
+
for (const id in plugin.settings) {
|
|
16
|
+
const item = plugin.settings[id];
|
|
17
|
+
defaultSettings[id] = item.defaultValue;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
const localSettingsSaveId = `__vue-devtools-plugin-settings__${plugin.id}`;
|
|
21
|
+
let currentSettings = Object.assign({}, defaultSettings);
|
|
22
|
+
try {
|
|
23
|
+
const raw = localStorage.getItem(localSettingsSaveId);
|
|
24
|
+
const data = JSON.parse(raw);
|
|
25
|
+
Object.assign(currentSettings, data);
|
|
26
|
+
}
|
|
27
|
+
catch (e) {
|
|
28
|
+
// noop
|
|
29
|
+
}
|
|
30
|
+
this.fallbacks = {
|
|
31
|
+
getSettings() {
|
|
32
|
+
return currentSettings;
|
|
33
|
+
},
|
|
34
|
+
setSettings(value) {
|
|
35
|
+
try {
|
|
36
|
+
localStorage.setItem(localSettingsSaveId, JSON.stringify(value));
|
|
37
|
+
}
|
|
38
|
+
catch (e) {
|
|
39
|
+
// noop
|
|
40
|
+
}
|
|
41
|
+
currentSettings = value;
|
|
42
|
+
},
|
|
43
|
+
now() {
|
|
44
|
+
return (0, time_js_1.now)();
|
|
45
|
+
},
|
|
46
|
+
};
|
|
47
|
+
if (hook) {
|
|
48
|
+
hook.on(const_js_1.HOOK_PLUGIN_SETTINGS_SET, (pluginId, value) => {
|
|
49
|
+
if (pluginId === this.plugin.id) {
|
|
50
|
+
this.fallbacks.setSettings(value);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
this.proxiedOn = new Proxy({}, {
|
|
55
|
+
get: (_target, prop) => {
|
|
56
|
+
if (this.target) {
|
|
57
|
+
return this.target.on[prop];
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
return (...args) => {
|
|
61
|
+
this.onQueue.push({
|
|
62
|
+
method: prop,
|
|
63
|
+
args,
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
});
|
|
69
|
+
this.proxiedTarget = new Proxy({}, {
|
|
70
|
+
get: (_target, prop) => {
|
|
71
|
+
if (this.target) {
|
|
72
|
+
return this.target[prop];
|
|
73
|
+
}
|
|
74
|
+
else if (prop === 'on') {
|
|
75
|
+
return this.proxiedOn;
|
|
76
|
+
}
|
|
77
|
+
else if (Object.keys(this.fallbacks).includes(prop)) {
|
|
78
|
+
return (...args) => {
|
|
79
|
+
this.targetQueue.push({
|
|
80
|
+
method: prop,
|
|
81
|
+
args,
|
|
82
|
+
resolve: () => { },
|
|
83
|
+
});
|
|
84
|
+
return this.fallbacks[prop](...args);
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
return (...args) => {
|
|
89
|
+
return new Promise((resolve) => {
|
|
90
|
+
this.targetQueue.push({
|
|
91
|
+
method: prop,
|
|
92
|
+
args,
|
|
93
|
+
resolve,
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
async setRealTarget(target) {
|
|
102
|
+
this.target = target;
|
|
103
|
+
for (const item of this.onQueue) {
|
|
104
|
+
this.target.on[item.method](...item.args);
|
|
105
|
+
}
|
|
106
|
+
for (const item of this.targetQueue) {
|
|
107
|
+
item.resolve(await this.target[item.method](...item.args));
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
exports.ApiProxy = ApiProxy;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.now = exports.isPerformanceSupported = void 0;
|
|
4
|
+
let supported;
|
|
5
|
+
let perf;
|
|
6
|
+
function isPerformanceSupported() {
|
|
7
|
+
var _a;
|
|
8
|
+
if (supported !== undefined) {
|
|
9
|
+
return supported;
|
|
10
|
+
}
|
|
11
|
+
if (typeof window !== 'undefined' && window.performance) {
|
|
12
|
+
supported = true;
|
|
13
|
+
perf = window.performance;
|
|
14
|
+
}
|
|
15
|
+
else if (typeof globalThis !== 'undefined' && ((_a = globalThis.perf_hooks) === null || _a === void 0 ? void 0 : _a.performance)) {
|
|
16
|
+
supported = true;
|
|
17
|
+
perf = globalThis.perf_hooks.performance;
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
supported = false;
|
|
21
|
+
}
|
|
22
|
+
return supported;
|
|
23
|
+
}
|
|
24
|
+
exports.isPerformanceSupported = isPerformanceSupported;
|
|
25
|
+
function now() {
|
|
26
|
+
return isPerformanceSupported() ? perf.now() : Date.now();
|
|
27
|
+
}
|
|
28
|
+
exports.now = now;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vue/devtools-api",
|
|
3
|
+
"version": "6.6.4",
|
|
4
|
+
"description": "Interact with the Vue devtools from the page",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Guillaume Chau"
|
|
7
|
+
},
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"repository": {
|
|
10
|
+
"url": "https://github.com/vuejs/vue-devtools.git",
|
|
11
|
+
"type": "git",
|
|
12
|
+
"directory": "packages/api"
|
|
13
|
+
},
|
|
14
|
+
"sideEffects": false,
|
|
15
|
+
"main": "lib/cjs/index.js",
|
|
16
|
+
"browser": "lib/esm/index.js",
|
|
17
|
+
"module": "lib/esm/index.js",
|
|
18
|
+
"types": "lib/esm/index.d.ts",
|
|
19
|
+
"files": [
|
|
20
|
+
"lib/cjs",
|
|
21
|
+
"lib/esm"
|
|
22
|
+
],
|
|
23
|
+
"publishConfig": {
|
|
24
|
+
"access": "public"
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "rimraf lib && yarn build:esm && yarn build:cjs",
|
|
28
|
+
"build:esm": "tsc --module es2015 --outDir lib/esm -d",
|
|
29
|
+
"build:cjs": "tsc --module commonjs --outDir lib/cjs",
|
|
30
|
+
"build:watch": "yarn tsc --module es2015 --outDir lib/esm -d -w --sourceMap"
|
|
31
|
+
},
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"@types/node": "^20.11.16",
|
|
34
|
+
"@types/webpack-env": "^1.15.1",
|
|
35
|
+
"typescript": "^5.3.3"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
addCustomCommand: () => import_devtools_kit.addCustomCommand,
|
|
24
|
+
addCustomTab: () => import_devtools_kit.addCustomTab,
|
|
25
|
+
onDevToolsClientConnected: () => import_devtools_kit.onDevToolsClientConnected,
|
|
26
|
+
onDevToolsConnected: () => import_devtools_kit.onDevToolsConnected,
|
|
27
|
+
removeCustomCommand: () => import_devtools_kit.removeCustomCommand,
|
|
28
|
+
setupDevToolsPlugin: () => import_devtools_kit.setupDevToolsPlugin,
|
|
29
|
+
setupDevtoolsPlugin: () => import_devtools_kit.setupDevToolsPlugin
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(index_exports);
|
|
32
|
+
var import_devtools_kit = require("@vue/devtools-kit");
|
|
33
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
34
|
+
0 && (module.exports = {
|
|
35
|
+
addCustomCommand,
|
|
36
|
+
addCustomTab,
|
|
37
|
+
onDevToolsClientConnected,
|
|
38
|
+
onDevToolsConnected,
|
|
39
|
+
removeCustomCommand,
|
|
40
|
+
setupDevToolsPlugin,
|
|
41
|
+
setupDevtoolsPlugin
|
|
42
|
+
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vue/devtools-api",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "7.7.9",
|
|
5
|
+
"author": "webfansplz",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"directory": "packages/devtools-api",
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/vuejs/devtools.git"
|
|
11
|
+
},
|
|
12
|
+
"sideEffects": false,
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"import": "./dist/index.js",
|
|
16
|
+
"require": "./dist/index.cjs"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"main": "./dist/index.cjs",
|
|
20
|
+
"module": "./dist/index.js",
|
|
21
|
+
"files": [
|
|
22
|
+
"dist"
|
|
23
|
+
],
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@vue/devtools-kit": "^7.7.9"
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "tsup --clean",
|
|
29
|
+
"prepare:type": "tsup --dts-only",
|
|
30
|
+
"stub": "tsup --watch --onSuccess 'tsup --dts-only'"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,299 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
function flatHooks(configHooks, hooks = {}, parentName) {
|
|
4
|
+
for (const key in configHooks) {
|
|
5
|
+
const subHook = configHooks[key];
|
|
6
|
+
const name = parentName ? `${parentName}:${key}` : key;
|
|
7
|
+
if (typeof subHook === "object" && subHook !== null) {
|
|
8
|
+
flatHooks(subHook, hooks, name);
|
|
9
|
+
} else if (typeof subHook === "function") {
|
|
10
|
+
hooks[name] = subHook;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
return hooks;
|
|
14
|
+
}
|
|
15
|
+
function mergeHooks(...hooks) {
|
|
16
|
+
const finalHooks = {};
|
|
17
|
+
for (const hook of hooks) {
|
|
18
|
+
const flatenHook = flatHooks(hook);
|
|
19
|
+
for (const key in flatenHook) {
|
|
20
|
+
if (finalHooks[key]) {
|
|
21
|
+
finalHooks[key].push(flatenHook[key]);
|
|
22
|
+
} else {
|
|
23
|
+
finalHooks[key] = [flatenHook[key]];
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
for (const key in finalHooks) {
|
|
28
|
+
if (finalHooks[key].length > 1) {
|
|
29
|
+
const array = finalHooks[key];
|
|
30
|
+
finalHooks[key] = (...arguments_) => serial(array, (function_) => function_(...arguments_));
|
|
31
|
+
} else {
|
|
32
|
+
finalHooks[key] = finalHooks[key][0];
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return finalHooks;
|
|
36
|
+
}
|
|
37
|
+
function serial(tasks, function_) {
|
|
38
|
+
return tasks.reduce(
|
|
39
|
+
(promise, task) => promise.then(() => function_(task)),
|
|
40
|
+
Promise.resolve()
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
const defaultTask = { run: (function_) => function_() };
|
|
44
|
+
const _createTask = () => defaultTask;
|
|
45
|
+
const createTask = typeof console.createTask !== "undefined" ? console.createTask : _createTask;
|
|
46
|
+
function serialTaskCaller(hooks, args) {
|
|
47
|
+
const name = args.shift();
|
|
48
|
+
const task = createTask(name);
|
|
49
|
+
return hooks.reduce(
|
|
50
|
+
(promise, hookFunction) => promise.then(() => task.run(() => hookFunction(...args))),
|
|
51
|
+
Promise.resolve()
|
|
52
|
+
);
|
|
53
|
+
}
|
|
54
|
+
function parallelTaskCaller(hooks, args) {
|
|
55
|
+
const name = args.shift();
|
|
56
|
+
const task = createTask(name);
|
|
57
|
+
return Promise.all(hooks.map((hook) => task.run(() => hook(...args))));
|
|
58
|
+
}
|
|
59
|
+
function serialCaller(hooks, arguments_) {
|
|
60
|
+
return hooks.reduce(
|
|
61
|
+
(promise, hookFunction) => promise.then(() => hookFunction(...arguments_ || [])),
|
|
62
|
+
Promise.resolve()
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
function parallelCaller(hooks, args) {
|
|
66
|
+
return Promise.all(hooks.map((hook) => hook(...args || [])));
|
|
67
|
+
}
|
|
68
|
+
function callEachWith(callbacks, arg0) {
|
|
69
|
+
for (const callback of [...callbacks]) {
|
|
70
|
+
callback(arg0);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
class Hookable {
|
|
75
|
+
constructor() {
|
|
76
|
+
this._hooks = {};
|
|
77
|
+
this._before = void 0;
|
|
78
|
+
this._after = void 0;
|
|
79
|
+
this._deprecatedMessages = void 0;
|
|
80
|
+
this._deprecatedHooks = {};
|
|
81
|
+
this.hook = this.hook.bind(this);
|
|
82
|
+
this.callHook = this.callHook.bind(this);
|
|
83
|
+
this.callHookWith = this.callHookWith.bind(this);
|
|
84
|
+
}
|
|
85
|
+
hook(name, function_, options = {}) {
|
|
86
|
+
if (!name || typeof function_ !== "function") {
|
|
87
|
+
return () => {
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
const originalName = name;
|
|
91
|
+
let dep;
|
|
92
|
+
while (this._deprecatedHooks[name]) {
|
|
93
|
+
dep = this._deprecatedHooks[name];
|
|
94
|
+
name = dep.to;
|
|
95
|
+
}
|
|
96
|
+
if (dep && !options.allowDeprecated) {
|
|
97
|
+
let message = dep.message;
|
|
98
|
+
if (!message) {
|
|
99
|
+
message = `${originalName} hook has been deprecated` + (dep.to ? `, please use ${dep.to}` : "");
|
|
100
|
+
}
|
|
101
|
+
if (!this._deprecatedMessages) {
|
|
102
|
+
this._deprecatedMessages = /* @__PURE__ */ new Set();
|
|
103
|
+
}
|
|
104
|
+
if (!this._deprecatedMessages.has(message)) {
|
|
105
|
+
console.warn(message);
|
|
106
|
+
this._deprecatedMessages.add(message);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
if (!function_.name) {
|
|
110
|
+
try {
|
|
111
|
+
Object.defineProperty(function_, "name", {
|
|
112
|
+
get: () => "_" + name.replace(/\W+/g, "_") + "_hook_cb",
|
|
113
|
+
configurable: true
|
|
114
|
+
});
|
|
115
|
+
} catch {
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
this._hooks[name] = this._hooks[name] || [];
|
|
119
|
+
this._hooks[name].push(function_);
|
|
120
|
+
return () => {
|
|
121
|
+
if (function_) {
|
|
122
|
+
this.removeHook(name, function_);
|
|
123
|
+
function_ = void 0;
|
|
124
|
+
}
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
hookOnce(name, function_) {
|
|
128
|
+
let _unreg;
|
|
129
|
+
let _function = (...arguments_) => {
|
|
130
|
+
if (typeof _unreg === "function") {
|
|
131
|
+
_unreg();
|
|
132
|
+
}
|
|
133
|
+
_unreg = void 0;
|
|
134
|
+
_function = void 0;
|
|
135
|
+
return function_(...arguments_);
|
|
136
|
+
};
|
|
137
|
+
_unreg = this.hook(name, _function);
|
|
138
|
+
return _unreg;
|
|
139
|
+
}
|
|
140
|
+
removeHook(name, function_) {
|
|
141
|
+
if (this._hooks[name]) {
|
|
142
|
+
const index = this._hooks[name].indexOf(function_);
|
|
143
|
+
if (index !== -1) {
|
|
144
|
+
this._hooks[name].splice(index, 1);
|
|
145
|
+
}
|
|
146
|
+
if (this._hooks[name].length === 0) {
|
|
147
|
+
delete this._hooks[name];
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
deprecateHook(name, deprecated) {
|
|
152
|
+
this._deprecatedHooks[name] = typeof deprecated === "string" ? { to: deprecated } : deprecated;
|
|
153
|
+
const _hooks = this._hooks[name] || [];
|
|
154
|
+
delete this._hooks[name];
|
|
155
|
+
for (const hook of _hooks) {
|
|
156
|
+
this.hook(name, hook);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
deprecateHooks(deprecatedHooks) {
|
|
160
|
+
Object.assign(this._deprecatedHooks, deprecatedHooks);
|
|
161
|
+
for (const name in deprecatedHooks) {
|
|
162
|
+
this.deprecateHook(name, deprecatedHooks[name]);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
addHooks(configHooks) {
|
|
166
|
+
const hooks = flatHooks(configHooks);
|
|
167
|
+
const removeFns = Object.keys(hooks).map(
|
|
168
|
+
(key) => this.hook(key, hooks[key])
|
|
169
|
+
);
|
|
170
|
+
return () => {
|
|
171
|
+
for (const unreg of removeFns.splice(0, removeFns.length)) {
|
|
172
|
+
unreg();
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
}
|
|
176
|
+
removeHooks(configHooks) {
|
|
177
|
+
const hooks = flatHooks(configHooks);
|
|
178
|
+
for (const key in hooks) {
|
|
179
|
+
this.removeHook(key, hooks[key]);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
removeAllHooks() {
|
|
183
|
+
for (const key in this._hooks) {
|
|
184
|
+
delete this._hooks[key];
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
callHook(name, ...arguments_) {
|
|
188
|
+
arguments_.unshift(name);
|
|
189
|
+
return this.callHookWith(serialTaskCaller, name, ...arguments_);
|
|
190
|
+
}
|
|
191
|
+
callHookParallel(name, ...arguments_) {
|
|
192
|
+
arguments_.unshift(name);
|
|
193
|
+
return this.callHookWith(parallelTaskCaller, name, ...arguments_);
|
|
194
|
+
}
|
|
195
|
+
callHookWith(caller, name, ...arguments_) {
|
|
196
|
+
const event = this._before || this._after ? { name, args: arguments_, context: {} } : void 0;
|
|
197
|
+
if (this._before) {
|
|
198
|
+
callEachWith(this._before, event);
|
|
199
|
+
}
|
|
200
|
+
const result = caller(
|
|
201
|
+
name in this._hooks ? [...this._hooks[name]] : [],
|
|
202
|
+
arguments_
|
|
203
|
+
);
|
|
204
|
+
if (result instanceof Promise) {
|
|
205
|
+
return result.finally(() => {
|
|
206
|
+
if (this._after && event) {
|
|
207
|
+
callEachWith(this._after, event);
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
if (this._after && event) {
|
|
212
|
+
callEachWith(this._after, event);
|
|
213
|
+
}
|
|
214
|
+
return result;
|
|
215
|
+
}
|
|
216
|
+
beforeEach(function_) {
|
|
217
|
+
this._before = this._before || [];
|
|
218
|
+
this._before.push(function_);
|
|
219
|
+
return () => {
|
|
220
|
+
if (this._before !== void 0) {
|
|
221
|
+
const index = this._before.indexOf(function_);
|
|
222
|
+
if (index !== -1) {
|
|
223
|
+
this._before.splice(index, 1);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
}
|
|
228
|
+
afterEach(function_) {
|
|
229
|
+
this._after = this._after || [];
|
|
230
|
+
this._after.push(function_);
|
|
231
|
+
return () => {
|
|
232
|
+
if (this._after !== void 0) {
|
|
233
|
+
const index = this._after.indexOf(function_);
|
|
234
|
+
if (index !== -1) {
|
|
235
|
+
this._after.splice(index, 1);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
function createHooks() {
|
|
242
|
+
return new Hookable();
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
const isBrowser = typeof window !== "undefined";
|
|
246
|
+
function createDebugger(hooks, _options = {}) {
|
|
247
|
+
const options = {
|
|
248
|
+
inspect: isBrowser,
|
|
249
|
+
group: isBrowser,
|
|
250
|
+
filter: () => true,
|
|
251
|
+
..._options
|
|
252
|
+
};
|
|
253
|
+
const _filter = options.filter;
|
|
254
|
+
const filter = typeof _filter === "string" ? (name) => name.startsWith(_filter) : _filter;
|
|
255
|
+
const _tag = options.tag ? `[${options.tag}] ` : "";
|
|
256
|
+
const logPrefix = (event) => _tag + event.name + "".padEnd(event._id, "\0");
|
|
257
|
+
const _idCtr = {};
|
|
258
|
+
const unsubscribeBefore = hooks.beforeEach((event) => {
|
|
259
|
+
if (filter !== void 0 && !filter(event.name)) {
|
|
260
|
+
return;
|
|
261
|
+
}
|
|
262
|
+
_idCtr[event.name] = _idCtr[event.name] || 0;
|
|
263
|
+
event._id = _idCtr[event.name]++;
|
|
264
|
+
console.time(logPrefix(event));
|
|
265
|
+
});
|
|
266
|
+
const unsubscribeAfter = hooks.afterEach((event) => {
|
|
267
|
+
if (filter !== void 0 && !filter(event.name)) {
|
|
268
|
+
return;
|
|
269
|
+
}
|
|
270
|
+
if (options.group) {
|
|
271
|
+
console.groupCollapsed(event.name);
|
|
272
|
+
}
|
|
273
|
+
if (options.inspect) {
|
|
274
|
+
console.timeLog(logPrefix(event), event.args);
|
|
275
|
+
} else {
|
|
276
|
+
console.timeEnd(logPrefix(event));
|
|
277
|
+
}
|
|
278
|
+
if (options.group) {
|
|
279
|
+
console.groupEnd();
|
|
280
|
+
}
|
|
281
|
+
_idCtr[event.name]--;
|
|
282
|
+
});
|
|
283
|
+
return {
|
|
284
|
+
/** Stop debugging and remove listeners */
|
|
285
|
+
close: () => {
|
|
286
|
+
unsubscribeBefore();
|
|
287
|
+
unsubscribeAfter();
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
exports.Hookable = Hookable;
|
|
293
|
+
exports.createDebugger = createDebugger;
|
|
294
|
+
exports.createHooks = createHooks;
|
|
295
|
+
exports.flatHooks = flatHooks;
|
|
296
|
+
exports.mergeHooks = mergeHooks;
|
|
297
|
+
exports.parallelCaller = parallelCaller;
|
|
298
|
+
exports.serial = serial;
|
|
299
|
+
exports.serialCaller = serialCaller;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "hookable",
|
|
3
|
+
"version": "5.5.3",
|
|
4
|
+
"description": "Awaitable hook system",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"hook",
|
|
7
|
+
"hookable",
|
|
8
|
+
"plugin",
|
|
9
|
+
"tapable",
|
|
10
|
+
"tappable"
|
|
11
|
+
],
|
|
12
|
+
"repository": "unjs/hookable",
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"exports": {
|
|
15
|
+
"import": "./dist/index.mjs",
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"require": "./dist/index.cjs"
|
|
18
|
+
},
|
|
19
|
+
"main": "./dist/index.cjs",
|
|
20
|
+
"module": "./dist/index.mjs",
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"files": [
|
|
23
|
+
"dist"
|
|
24
|
+
],
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@types/node": "^18.15.11",
|
|
27
|
+
"@vitest/coverage-c8": "^0.29.8",
|
|
28
|
+
"changelogen": "^0.5.2",
|
|
29
|
+
"eslint": "^8.37.0",
|
|
30
|
+
"eslint-config-unjs": "^0.1.0",
|
|
31
|
+
"expect-type": "^0.15.0",
|
|
32
|
+
"prettier": "^2.8.7",
|
|
33
|
+
"typescript": "^5.0.2",
|
|
34
|
+
"unbuild": "^1.1.2",
|
|
35
|
+
"vite": "^4.2.1",
|
|
36
|
+
"vitest": "^0.29.8"
|
|
37
|
+
},
|
|
38
|
+
"packageManager": "pnpm@8.0.0",
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "unbuild",
|
|
41
|
+
"dev": "vitest",
|
|
42
|
+
"lint": "eslint --cache --ext .ts,.js,.mjs,.cjs . && prettier -c src test",
|
|
43
|
+
"lint:fix": "eslint --cache --ext .ts,.js,.mjs,.cjs . --fix && prettier -c src test -w",
|
|
44
|
+
"prepublish": "pnpm build",
|
|
45
|
+
"release": "pnpm test && pnpm build && changelogen --release --push && pnpm publish",
|
|
46
|
+
"test": "pnpm lint && vitest run --coverage",
|
|
47
|
+
"test:types": "tsc --noEmit"
|
|
48
|
+
}
|
|
49
|
+
}
|