renovate-log-parser 0.1.1 → 0.2.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/README.md +119 -34
- package/dist/commands/install-analyze-skill.d.ts +0 -1
- package/dist/commands/install-analyze-skill.js +15 -12
- package/dist/commands/install-analyze-skill.js.map +1 -1
- package/dist/commands/web.d.ts +2 -1
- package/dist/commands/web.js +23 -11
- package/dist/commands/web.js.map +1 -1
- package/dist/core/skill-template.js +17 -3
- package/dist/core/skill-template.js.map +1 -1
- package/dist/server/api.d.ts +16 -0
- package/dist/server/api.js +173 -0
- package/dist/server/api.js.map +1 -0
- package/dist/server/http-error.d.ts +18 -0
- package/dist/server/http-error.js +23 -0
- package/dist/server/http-error.js.map +1 -0
- package/dist/server/index.d.ts +34 -0
- package/dist/server/index.js +54 -0
- package/dist/server/index.js.map +1 -0
- package/dist/server/log-registry.d.ts +34 -0
- package/dist/server/log-registry.js +157 -0
- package/dist/server/log-registry.js.map +1 -0
- package/dist/server/server-main.d.ts +1 -0
- package/dist/server/server-main.js +31 -0
- package/dist/server/server-main.js.map +1 -0
- package/dist/server/translate-filters.d.ts +58 -0
- package/dist/server/translate-filters.js +119 -0
- package/dist/server/translate-filters.js.map +1 -0
- package/package.json +13 -5
- package/web/.output/public/200.html +1 -0
- package/web/.output/public/404.html +1 -0
- package/web/.output/public/_nuxt/BDNMzG2s.js +1 -0
- package/web/.output/public/_nuxt/BjDV6v2h.js +1 -0
- package/web/.output/public/_nuxt/CVlqYHPc.js +6 -0
- package/web/.output/public/_nuxt/CuOsDQlp.js +1 -0
- package/web/.output/public/_nuxt/CztOM3Aq.js +28 -0
- package/web/.output/public/_nuxt/D3wuHpM_.js +3 -0
- package/web/.output/public/_nuxt/DK3Fl9T5.js +1 -0
- package/web/.output/public/_nuxt/DUXEQ2Eh.js +3 -0
- package/web/.output/public/_nuxt/DVWtRbHb.js +1 -0
- package/web/.output/public/_nuxt/DeS15jQo.js +1 -0
- package/web/.output/public/_nuxt/XP9RigIT.js +1 -0
- package/web/.output/public/_nuxt/builds/latest.json +1 -1
- package/web/.output/public/_nuxt/builds/meta/f68582c9-55a9-4352-b85a-d7f8de6f7202.json +1 -0
- package/web/.output/public/_nuxt/entry.BlZrUrUl.css +2 -0
- package/web/.output/public/_nuxt/error-404.zKZBzOko.css +1 -0
- package/web/.output/public/_nuxt/error-500.DwXcJPfY.css +1 -0
- package/web/.output/public/_nuxt/lGYp6_9X.js +1 -0
- package/web/.output/public/_nuxt/pages.BDcbBSnU.css +1 -0
- package/web/.output/public/_nuxt/public-sans-latin-400-italic.B1appi_f.woff2 +0 -0
- package/web/.output/public/_nuxt/public-sans-latin-400-italic.DsCWG5h0.woff +0 -0
- package/web/.output/public/_nuxt/public-sans-latin-400-normal.8Rpg0ruU.woff2 +0 -0
- package/web/.output/public/_nuxt/public-sans-latin-400-normal.SBbinRkI.woff +0 -0
- package/web/.output/public/_nuxt/public-sans-latin-500-normal.NlrCPXnF.woff2 +0 -0
- package/web/.output/public/_nuxt/public-sans-latin-500-normal.vCxiVFAq.woff +0 -0
- package/web/.output/public/_nuxt/public-sans-latin-600-normal.BR59oU-I.woff +0 -0
- package/web/.output/public/_nuxt/public-sans-latin-600-normal.Fru-LXNs.woff2 +0 -0
- package/web/.output/public/_nuxt/public-sans-latin-700-normal.BqJmxWdE.woff2 +0 -0
- package/web/.output/public/_nuxt/public-sans-latin-700-normal.Dm-oTPSL.woff +0 -0
- package/web/.output/public/favicon-dark.svg +32 -0
- package/web/.output/public/favicon-light.svg +32 -0
- package/web/.output/public/index.html +1 -0
- package/web/.output/nitro.json +0 -15
- package/web/.output/public/_fonts/57NSSoFy1VLVs2gqly8Ls9awBnZMFyXGrefpmqvdqmc-zJfbBtpgM4cDmcXBsqZNW79_kFnlpPd62b48glgdydA.woff2 +0 -0
- package/web/.output/public/_fonts/8VR2wSMN-3U4NbWAVYXlkRV6hA0jFBXP-0RtL3X7fko-x2gYI4qfmkRdxyQQUPaBZdZdgl1TeVrquF_TxHeM4lM.woff2 +0 -0
- package/web/.output/public/_fonts/GsKUclqeNLJ96g5AU593ug6yanivOiwjW_7zESNPChw-jHA4tBeM1bjF7LATGUpfBuSTyomIFrWBTzjF7txVYfg.woff2 +0 -0
- package/web/.output/public/_fonts/Ld1FnTo3yTIwDyGfTQ5-Fws9AWsCbKfMvgxduXr7JcY-W25bL8NF1fjpLRSOgJb7RoZPHqGQNwMTM7S9tHVoxx8.woff2 +0 -0
- package/web/.output/public/_fonts/NdzqRASp2bovDUhQT1IRE_EMqKJ2KYQdTCfFcBvL8yw-KhwZiS86o3fErOe5GGMExHUemmI_dBfaEFxjISZrBd0.woff2 +0 -0
- package/web/.output/public/_fonts/iTkrULNFJJkTvihIg1Vqi5IODRH_9btXCioVF5l98I8-AndUyau2HR2felA_ra8V2mutQgschhasE5FD1dXGJX8.woff2 +0 -0
- package/web/.output/public/_nuxt/BWja8e3M.js +0 -37
- package/web/.output/public/_nuxt/BgApMHS1.js +0 -1
- package/web/.output/public/_nuxt/CGPWRqbc.js +0 -1
- package/web/.output/public/_nuxt/DlAUqK2U.js +0 -1
- package/web/.output/public/_nuxt/Sgtec1U0.js +0 -1
- package/web/.output/public/_nuxt/builds/meta/785e7885-8d38-4aac-a7f6-735f68d27e63.json +0 -1
- package/web/.output/public/_nuxt/entry.9mB-pyEY.css +0 -1
- package/web/.output/public/_nuxt/error-404.B_PvSG-P.css +0 -1
- package/web/.output/public/_nuxt/error-500.CghkKCEr.css +0 -1
- package/web/.output/public/_nuxt/index.BlvAG7F6.css +0 -1
- package/web/.output/public/favicon.ico +0 -0
- package/web/.output/server/chunks/_/error-500.mjs +0 -19
- package/web/.output/server/chunks/_/error-500.mjs.map +0 -1
- package/web/.output/server/chunks/_/icons.mjs +0 -6153
- package/web/.output/server/chunks/_/icons.mjs.map +0 -1
- package/web/.output/server/chunks/_/icons2.mjs +0 -11494
- package/web/.output/server/chunks/_/icons2.mjs.map +0 -1
- package/web/.output/server/chunks/build/_plugin-vue_export-helper-1tPrXgE0.mjs +0 -10
- package/web/.output/server/chunks/build/_plugin-vue_export-helper-1tPrXgE0.mjs.map +0 -1
- package/web/.output/server/chunks/build/client.precomputed.mjs +0 -4
- package/web/.output/server/chunks/build/client.precomputed.mjs.map +0 -1
- package/web/.output/server/chunks/build/error-404-DOK13euR.mjs +0 -106
- package/web/.output/server/chunks/build/error-404-DOK13euR.mjs.map +0 -1
- package/web/.output/server/chunks/build/error-404-styles.9cNA4arh.mjs +0 -8
- package/web/.output/server/chunks/build/error-404-styles.9cNA4arh.mjs.map +0 -1
- package/web/.output/server/chunks/build/error-500-DKHEaocY.mjs +0 -89
- package/web/.output/server/chunks/build/error-500-DKHEaocY.mjs.map +0 -1
- package/web/.output/server/chunks/build/error-500-styles.BX54ZlkH.mjs +0 -8
- package/web/.output/server/chunks/build/error-500-styles.BX54ZlkH.mjs.map +0 -1
- package/web/.output/server/chunks/build/index-D_lNB6LA.mjs +0 -19675
- package/web/.output/server/chunks/build/index-D_lNB6LA.mjs.map +0 -1
- package/web/.output/server/chunks/build/index-styles.V2iua2bE.mjs +0 -8
- package/web/.output/server/chunks/build/index-styles.V2iua2bE.mjs.map +0 -1
- package/web/.output/server/chunks/build/server.mjs +0 -7910
- package/web/.output/server/chunks/build/server.mjs.map +0 -1
- package/web/.output/server/chunks/build/styles.mjs +0 -10
- package/web/.output/server/chunks/build/styles.mjs.map +0 -1
- package/web/.output/server/chunks/nitro/nitro.mjs +0 -6944
- package/web/.output/server/chunks/nitro/nitro.mjs.map +0 -1
- package/web/.output/server/chunks/routes/api/fields.get.mjs +0 -27
- package/web/.output/server/chunks/routes/api/fields.get.mjs.map +0 -1
- package/web/.output/server/chunks/routes/api/findings.get.mjs +0 -30
- package/web/.output/server/chunks/routes/api/findings.get.mjs.map +0 -1
- package/web/.output/server/chunks/routes/api/log/contents.post.mjs +0 -29
- package/web/.output/server/chunks/routes/api/log/contents.post.mjs.map +0 -1
- package/web/.output/server/chunks/routes/api/log/path.post.mjs +0 -30
- package/web/.output/server/chunks/routes/api/log/path.post.mjs.map +0 -1
- package/web/.output/server/chunks/routes/api/repositories.get.mjs +0 -27
- package/web/.output/server/chunks/routes/api/repositories.get.mjs.map +0 -1
- package/web/.output/server/chunks/routes/api/rows.get.mjs +0 -48
- package/web/.output/server/chunks/routes/api/rows.get.mjs.map +0 -1
- package/web/.output/server/chunks/routes/renderer.mjs +0 -451
- package/web/.output/server/chunks/routes/renderer.mjs.map +0 -1
- package/web/.output/server/chunks/virtual/_virtual_spa-template.mjs +0 -4
- package/web/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +0 -1
- package/web/.output/server/index.mjs +0 -16
- package/web/.output/server/index.mjs.map +0 -1
- package/web/.output/server/node_modules/.nitro/hookable@5.5.3/dist/index.mjs +0 -290
- package/web/.output/server/node_modules/.nitro/hookable@5.5.3/package.json +0 -49
- package/web/.output/server/node_modules/.nitro/hookable@6.1.1/dist/index.mjs +0 -257
- package/web/.output/server/node_modules/.nitro/hookable@6.1.1/package.json +0 -53
- package/web/.output/server/node_modules/@babel/parser/lib/index.js +0 -14599
- package/web/.output/server/node_modules/@babel/parser/package.json +0 -50
- package/web/.output/server/node_modules/@floating-ui/core/dist/floating-ui.core.mjs +0 -1038
- package/web/.output/server/node_modules/@floating-ui/core/package.json +0 -63
- package/web/.output/server/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs +0 -789
- package/web/.output/server/node_modules/@floating-ui/dom/package.json +0 -72
- package/web/.output/server/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs +0 -165
- package/web/.output/server/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs +0 -136
- package/web/.output/server/node_modules/@floating-ui/utils/package.json +0 -70
- package/web/.output/server/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs +0 -190
- package/web/.output/server/node_modules/@floating-ui/vue/package.json +0 -71
- package/web/.output/server/node_modules/@iconify/utils/lib/colors/index.js +0 -295
- package/web/.output/server/node_modules/@iconify/utils/lib/colors/keywords.js +0 -701
- package/web/.output/server/node_modules/@iconify/utils/lib/css/common.js +0 -75
- package/web/.output/server/node_modules/@iconify/utils/lib/css/format.js +0 -39
- package/web/.output/server/node_modules/@iconify/utils/lib/css/icon.js +0 -47
- package/web/.output/server/node_modules/@iconify/utils/lib/css/icons.js +0 -128
- package/web/.output/server/node_modules/@iconify/utils/lib/customisations/bool.js +0 -19
- package/web/.output/server/node_modules/@iconify/utils/lib/customisations/defaults.js +0 -13
- package/web/.output/server/node_modules/@iconify/utils/lib/customisations/flip.js +0 -17
- package/web/.output/server/node_modules/@iconify/utils/lib/customisations/merge.js +0 -16
- package/web/.output/server/node_modules/@iconify/utils/lib/customisations/rotate.js +0 -30
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/cleanup.js +0 -78
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/convert.js +0 -100
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/data.js +0 -28
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/format.js +0 -58
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/parse.js +0 -48
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/base.js +0 -203
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/create.js +0 -33
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/numbers.js +0 -132
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/similar.js +0 -165
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/regex/tree.js +0 -79
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/replace/find.js +0 -92
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/replace/replace.js +0 -26
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/components.js +0 -76
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/missing.js +0 -66
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/name.js +0 -45
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/parse.js +0 -103
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/similar.js +0 -36
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/tree.js +0 -92
- package/web/.output/server/node_modules/@iconify/utils/lib/emoji/test/variations.js +0 -62
- package/web/.output/server/node_modules/@iconify/utils/lib/icon/defaults.js +0 -25
- package/web/.output/server/node_modules/@iconify/utils/lib/icon/merge.js +0 -16
- package/web/.output/server/node_modules/@iconify/utils/lib/icon/name.js +0 -57
- package/web/.output/server/node_modules/@iconify/utils/lib/icon/square.js +0 -33
- package/web/.output/server/node_modules/@iconify/utils/lib/icon/transformations.js +0 -12
- package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/convert-info.js +0 -125
- package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/expand.js +0 -19
- package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icon.js +0 -25
- package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/get-icons.js +0 -36
- package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/minify.js +0 -91
- package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/parse.js +0 -46
- package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/tree.js +0 -23
- package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/validate-basic.js +0 -42
- package/web/.output/server/node_modules/@iconify/utils/lib/icon-set/validate.js +0 -123
- package/web/.output/server/node_modules/@iconify/utils/lib/index.js +0 -52
- package/web/.output/server/node_modules/@iconify/utils/lib/loader/custom.js +0 -30
- package/web/.output/server/node_modules/@iconify/utils/lib/loader/loader.js +0 -26
- package/web/.output/server/node_modules/@iconify/utils/lib/loader/modern.js +0 -27
- package/web/.output/server/node_modules/@iconify/utils/lib/loader/utils.js +0 -105
- package/web/.output/server/node_modules/@iconify/utils/lib/misc/objects.js +0 -26
- package/web/.output/server/node_modules/@iconify/utils/lib/misc/strings.js +0 -26
- package/web/.output/server/node_modules/@iconify/utils/lib/misc/title.js +0 -9
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/build.js +0 -113
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/defs.js +0 -31
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/encode-svg-for-css.js +0 -13
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/html.js +0 -9
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/id.js +0 -41
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/inner-html.js +0 -22
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/parse.js +0 -67
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/pretty.js +0 -54
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/size.js +0 -27
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/trim.js +0 -7
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/url.js +0 -22
- package/web/.output/server/node_modules/@iconify/utils/lib/svg/viewbox.js +0 -8
- package/web/.output/server/node_modules/@iconify/utils/package.json +0 -119
- package/web/.output/server/node_modules/@iconify/vue/dist/iconify.mjs +0 -1896
- package/web/.output/server/node_modules/@iconify/vue/package.json +0 -62
- package/web/.output/server/node_modules/@tanstack/virtual-core/dist/esm/index.js +0 -1268
- package/web/.output/server/node_modules/@tanstack/virtual-core/dist/esm/lazy-measurements.js +0 -34
- package/web/.output/server/node_modules/@tanstack/virtual-core/dist/esm/utils.js +0 -74
- package/web/.output/server/node_modules/@tanstack/virtual-core/package.json +0 -56
- package/web/.output/server/node_modules/@tanstack/vue-virtual/dist/esm/index.js +0 -66
- package/web/.output/server/node_modules/@tanstack/vue-virtual/package.json +0 -68
- package/web/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +0 -6759
- package/web/.output/server/node_modules/@vue/compiler-core/package.json +0 -58
- package/web/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +0 -689
- package/web/.output/server/node_modules/@vue/compiler-dom/package.json +0 -57
- package/web/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +0 -1413
- package/web/.output/server/node_modules/@vue/compiler-ssr/package.json +0 -34
- package/web/.output/server/node_modules/@vue/devtools-api/dist/index.js +0 -2
- package/web/.output/server/node_modules/@vue/devtools-api/package.json +0 -34
- package/web/.output/server/node_modules/@vue/devtools-kit/dist/index.js +0 -5670
- package/web/.output/server/node_modules/@vue/devtools-kit/node_modules/hookable/dist/index.mjs +0 -290
- package/web/.output/server/node_modules/@vue/devtools-kit/node_modules/hookable/package.json +0 -49
- package/web/.output/server/node_modules/@vue/devtools-kit/package.json +0 -44
- package/web/.output/server/node_modules/@vue/devtools-shared/dist/index.js +0 -239
- package/web/.output/server/node_modules/@vue/devtools-shared/package.json +0 -33
- package/web/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +0 -1899
- package/web/.output/server/node_modules/@vue/reactivity/package.json +0 -55
- package/web/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +0 -6940
- package/web/.output/server/node_modules/@vue/runtime-core/package.json +0 -52
- package/web/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +0 -1822
- package/web/.output/server/node_modules/@vue/runtime-dom/package.json +0 -60
- package/web/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +0 -896
- package/web/.output/server/node_modules/@vue/server-renderer/package.json +0 -55
- package/web/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +0 -604
- package/web/.output/server/node_modules/@vue/shared/package.json +0 -47
- package/web/.output/server/node_modules/@vueuse/core/dist/index.js +0 -8464
- package/web/.output/server/node_modules/@vueuse/core/package.json +0 -49
- package/web/.output/server/node_modules/@vueuse/shared/dist/index.js +0 -2013
- package/web/.output/server/node_modules/@vueuse/shared/package.json +0 -42
- package/web/.output/server/node_modules/aria-hidden/dist/es5/index.js +0 -174
- package/web/.output/server/node_modules/aria-hidden/package.json +0 -71
- package/web/.output/server/node_modules/birpc/dist/index.mjs +0 -291
- package/web/.output/server/node_modules/birpc/package.json +0 -57
- package/web/.output/server/node_modules/consola/dist/chunks/prompt.mjs +0 -280
- package/web/.output/server/node_modules/consola/dist/core.mjs +0 -512
- package/web/.output/server/node_modules/consola/dist/index.mjs +0 -651
- package/web/.output/server/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +0 -72
- package/web/.output/server/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +0 -288
- package/web/.output/server/node_modules/consola/package.json +0 -136
- package/web/.output/server/node_modules/devalue/index.js +0 -4
- package/web/.output/server/node_modules/devalue/package.json +0 -40
- package/web/.output/server/node_modules/devalue/src/base64.js +0 -60
- package/web/.output/server/node_modules/devalue/src/constants.js +0 -12
- package/web/.output/server/node_modules/devalue/src/parse.js +0 -283
- package/web/.output/server/node_modules/devalue/src/stringify.js +0 -401
- package/web/.output/server/node_modules/devalue/src/uneval.js +0 -552
- package/web/.output/server/node_modules/devalue/src/utils.js +0 -160
- package/web/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +0 -77
- package/web/.output/server/node_modules/entities/dist/commonjs/decode.js +0 -568
- package/web/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +0 -7
- package/web/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +0 -7
- package/web/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +0 -21
- package/web/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +0 -31
- package/web/.output/server/node_modules/entities/dist/commonjs/package.json +0 -3
- package/web/.output/server/node_modules/entities/package.json +0 -120
- package/web/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +0 -344
- package/web/.output/server/node_modules/estree-walker/package.json +0 -37
- package/web/.output/server/node_modules/hookable/dist/index.mjs +0 -257
- package/web/.output/server/node_modules/hookable/package.json +0 -53
- package/web/.output/server/node_modules/nostics/dist/index.mjs +0 -179
- package/web/.output/server/node_modules/nostics/package.json +0 -124
- package/web/.output/server/node_modules/perfect-debounce/dist/index.mjs +0 -89
- package/web/.output/server/node_modules/perfect-debounce/package.json +0 -41
- package/web/.output/server/node_modules/rou3/dist/index.mjs +0 -501
- package/web/.output/server/node_modules/rou3/package.json +0 -48
- package/web/.output/server/node_modules/source-map-js/lib/array-set.js +0 -121
- package/web/.output/server/node_modules/source-map-js/lib/base64-vlq.js +0 -140
- package/web/.output/server/node_modules/source-map-js/lib/base64.js +0 -67
- package/web/.output/server/node_modules/source-map-js/lib/binary-search.js +0 -111
- package/web/.output/server/node_modules/source-map-js/lib/mapping-list.js +0 -79
- package/web/.output/server/node_modules/source-map-js/lib/quick-sort.js +0 -132
- package/web/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +0 -1188
- package/web/.output/server/node_modules/source-map-js/lib/source-map-generator.js +0 -444
- package/web/.output/server/node_modules/source-map-js/lib/source-node.js +0 -413
- package/web/.output/server/node_modules/source-map-js/lib/util.js +0 -594
- package/web/.output/server/node_modules/source-map-js/package.json +0 -71
- package/web/.output/server/node_modules/source-map-js/source-map.js +0 -8
- package/web/.output/server/node_modules/srvx/dist/_chunks/_body-limit.mjs +0 -39
- package/web/.output/server/node_modules/srvx/dist/_chunks/_plugins.mjs +0 -56
- package/web/.output/server/node_modules/srvx/dist/_chunks/_trust-proxy.mjs +0 -58
- package/web/.output/server/node_modules/srvx/dist/_chunks/_url.mjs +0 -134
- package/web/.output/server/node_modules/srvx/dist/_chunks/_utils.mjs +0 -15
- package/web/.output/server/node_modules/srvx/dist/_chunks/_utils2.mjs +0 -75
- package/web/.output/server/node_modules/srvx/dist/adapters/node.mjs +0 -976
- package/web/.output/server/node_modules/srvx/package.json +0 -102
- package/web/.output/server/node_modules/tailwind-merge/dist/bundle-mjs.mjs +0 -3365
- package/web/.output/server/node_modules/tailwind-merge/package.json +0 -93
- package/web/.output/server/node_modules/tailwind-variants/dist/chunk-LQJYWU4O.js +0 -112
- package/web/.output/server/node_modules/tailwind-variants/dist/chunk-RZF76H2U.js +0 -269
- package/web/.output/server/node_modules/tailwind-variants/dist/index.js +0 -38
- package/web/.output/server/node_modules/tailwind-variants/package.json +0 -122
- package/web/.output/server/node_modules/tailwindcss/dist/chunk-X4GG3EDV.mjs +0 -1
- package/web/.output/server/node_modules/tailwindcss/dist/colors.mjs +0 -1
- package/web/.output/server/node_modules/tailwindcss/package.json +0 -89
- package/web/.output/server/node_modules/ufo/dist/index.mjs +0 -645
- package/web/.output/server/node_modules/ufo/package.json +0 -48
- package/web/.output/server/node_modules/unhead/dist/index.mjs +0 -9
- package/web/.output/server/node_modules/unhead/dist/parser.mjs +0 -508
- package/web/.output/server/node_modules/unhead/dist/plugins.mjs +0 -101
- package/web/.output/server/node_modules/unhead/dist/scripts.mjs +0 -30
- package/web/.output/server/node_modules/unhead/dist/server.mjs +0 -180
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.B3VbJo7Y.mjs +0 -207
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.BYvz9V1x.mjs +0 -43
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.BnoAbrHA.mjs +0 -269
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.CaI5ZD4O.mjs +0 -182
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.CbpEuj3y.mjs +0 -71
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.D4vSFytZ.mjs +0 -236
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.DQc16pHI.mjs +0 -196
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.Dh1cQCTe.mjs +0 -44
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.TxTMM7cM.mjs +0 -166
- package/web/.output/server/node_modules/unhead/dist/shared/unhead.yem5I2v_.mjs +0 -38
- package/web/.output/server/node_modules/unhead/dist/utils.mjs +0 -5
- package/web/.output/server/node_modules/unhead/node_modules/hookable/dist/index.mjs +0 -257
- package/web/.output/server/node_modules/unhead/node_modules/hookable/package.json +0 -53
- package/web/.output/server/node_modules/unhead/package.json +0 -105
- package/web/.output/server/node_modules/vue/dist/vue.cjs.js +0 -80
- package/web/.output/server/node_modules/vue/dist/vue.cjs.prod.js +0 -66
- package/web/.output/server/node_modules/vue/index.js +0 -7
- package/web/.output/server/node_modules/vue/index.mjs +0 -1
- package/web/.output/server/node_modules/vue/package.json +0 -112
- package/web/.output/server/node_modules/vue/server-renderer/index.mjs +0 -1
- package/web/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +0 -249
- package/web/.output/server/node_modules/vue-bundle-renderer/package.json +0 -57
- package/web/.output/server/node_modules/vue-demi/lib/index.mjs +0 -34
- package/web/.output/server/node_modules/vue-demi/package.json +0 -47
- package/web/.output/server/node_modules/vue-router/dist/devtools-Bpr7ZAVB.js +0 -1056
- package/web/.output/server/node_modules/vue-router/dist/useApi-CROJJdhE.js +0 -436
- package/web/.output/server/node_modules/vue-router/dist/vue-router.js +0 -1543
- package/web/.output/server/node_modules/vue-router/package.json +0 -214
- package/web/.output/server/node_modules/vue-router/vue-router.node.mjs +0 -2
- package/web/.output/server/package.json +0 -51
|
@@ -1,512 +0,0 @@
|
|
|
1
|
-
const LogLevels = {
|
|
2
|
-
silent: Number.NEGATIVE_INFINITY,
|
|
3
|
-
fatal: 0,
|
|
4
|
-
error: 0,
|
|
5
|
-
warn: 1,
|
|
6
|
-
log: 2,
|
|
7
|
-
info: 3,
|
|
8
|
-
success: 3,
|
|
9
|
-
fail: 3,
|
|
10
|
-
ready: 3,
|
|
11
|
-
start: 3,
|
|
12
|
-
box: 3,
|
|
13
|
-
debug: 4,
|
|
14
|
-
trace: 5,
|
|
15
|
-
verbose: Number.POSITIVE_INFINITY
|
|
16
|
-
};
|
|
17
|
-
const LogTypes = {
|
|
18
|
-
// Silent
|
|
19
|
-
silent: {
|
|
20
|
-
level: -1
|
|
21
|
-
},
|
|
22
|
-
// Level 0
|
|
23
|
-
fatal: {
|
|
24
|
-
level: LogLevels.fatal
|
|
25
|
-
},
|
|
26
|
-
error: {
|
|
27
|
-
level: LogLevels.error
|
|
28
|
-
},
|
|
29
|
-
// Level 1
|
|
30
|
-
warn: {
|
|
31
|
-
level: LogLevels.warn
|
|
32
|
-
},
|
|
33
|
-
// Level 2
|
|
34
|
-
log: {
|
|
35
|
-
level: LogLevels.log
|
|
36
|
-
},
|
|
37
|
-
// Level 3
|
|
38
|
-
info: {
|
|
39
|
-
level: LogLevels.info
|
|
40
|
-
},
|
|
41
|
-
success: {
|
|
42
|
-
level: LogLevels.success
|
|
43
|
-
},
|
|
44
|
-
fail: {
|
|
45
|
-
level: LogLevels.fail
|
|
46
|
-
},
|
|
47
|
-
ready: {
|
|
48
|
-
level: LogLevels.info
|
|
49
|
-
},
|
|
50
|
-
start: {
|
|
51
|
-
level: LogLevels.info
|
|
52
|
-
},
|
|
53
|
-
box: {
|
|
54
|
-
level: LogLevels.info
|
|
55
|
-
},
|
|
56
|
-
// Level 4
|
|
57
|
-
debug: {
|
|
58
|
-
level: LogLevels.debug
|
|
59
|
-
},
|
|
60
|
-
// Level 5
|
|
61
|
-
trace: {
|
|
62
|
-
level: LogLevels.trace
|
|
63
|
-
},
|
|
64
|
-
// Verbose
|
|
65
|
-
verbose: {
|
|
66
|
-
level: LogLevels.verbose
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
function isPlainObject$1(value) {
|
|
71
|
-
if (value === null || typeof value !== "object") {
|
|
72
|
-
return false;
|
|
73
|
-
}
|
|
74
|
-
const prototype = Object.getPrototypeOf(value);
|
|
75
|
-
if (prototype !== null && prototype !== Object.prototype && Object.getPrototypeOf(prototype) !== null) {
|
|
76
|
-
return false;
|
|
77
|
-
}
|
|
78
|
-
if (Symbol.iterator in value) {
|
|
79
|
-
return false;
|
|
80
|
-
}
|
|
81
|
-
if (Symbol.toStringTag in value) {
|
|
82
|
-
return Object.prototype.toString.call(value) === "[object Module]";
|
|
83
|
-
}
|
|
84
|
-
return true;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
function _defu(baseObject, defaults, namespace = ".", merger) {
|
|
88
|
-
if (!isPlainObject$1(defaults)) {
|
|
89
|
-
return _defu(baseObject, {}, namespace, merger);
|
|
90
|
-
}
|
|
91
|
-
const object = Object.assign({}, defaults);
|
|
92
|
-
for (const key in baseObject) {
|
|
93
|
-
if (key === "__proto__" || key === "constructor") {
|
|
94
|
-
continue;
|
|
95
|
-
}
|
|
96
|
-
const value = baseObject[key];
|
|
97
|
-
if (value === null || value === void 0) {
|
|
98
|
-
continue;
|
|
99
|
-
}
|
|
100
|
-
if (merger && merger(object, key, value, namespace)) {
|
|
101
|
-
continue;
|
|
102
|
-
}
|
|
103
|
-
if (Array.isArray(value) && Array.isArray(object[key])) {
|
|
104
|
-
object[key] = [...value, ...object[key]];
|
|
105
|
-
} else if (isPlainObject$1(value) && isPlainObject$1(object[key])) {
|
|
106
|
-
object[key] = _defu(
|
|
107
|
-
value,
|
|
108
|
-
object[key],
|
|
109
|
-
(namespace ? `${namespace}.` : "") + key.toString(),
|
|
110
|
-
merger
|
|
111
|
-
);
|
|
112
|
-
} else {
|
|
113
|
-
object[key] = value;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
return object;
|
|
117
|
-
}
|
|
118
|
-
function createDefu(merger) {
|
|
119
|
-
return (...arguments_) => (
|
|
120
|
-
// eslint-disable-next-line unicorn/no-array-reduce
|
|
121
|
-
arguments_.reduce((p, c) => _defu(p, c, "", merger), {})
|
|
122
|
-
);
|
|
123
|
-
}
|
|
124
|
-
const defu = createDefu();
|
|
125
|
-
|
|
126
|
-
function isPlainObject(obj) {
|
|
127
|
-
return Object.prototype.toString.call(obj) === "[object Object]";
|
|
128
|
-
}
|
|
129
|
-
function isLogObj(arg) {
|
|
130
|
-
if (!isPlainObject(arg)) {
|
|
131
|
-
return false;
|
|
132
|
-
}
|
|
133
|
-
if (!arg.message && !arg.args) {
|
|
134
|
-
return false;
|
|
135
|
-
}
|
|
136
|
-
if (arg.stack) {
|
|
137
|
-
return false;
|
|
138
|
-
}
|
|
139
|
-
return true;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
let paused = false;
|
|
143
|
-
const queue = [];
|
|
144
|
-
class Consola {
|
|
145
|
-
options;
|
|
146
|
-
_lastLog;
|
|
147
|
-
_mockFn;
|
|
148
|
-
/**
|
|
149
|
-
* Creates an instance of Consola with specified options or defaults.
|
|
150
|
-
*
|
|
151
|
-
* @param {Partial<ConsolaOptions>} [options={}] - Configuration options for the Consola instance.
|
|
152
|
-
*/
|
|
153
|
-
constructor(options = {}) {
|
|
154
|
-
const types = options.types || LogTypes;
|
|
155
|
-
this.options = defu(
|
|
156
|
-
{
|
|
157
|
-
...options,
|
|
158
|
-
defaults: { ...options.defaults },
|
|
159
|
-
level: _normalizeLogLevel(options.level, types),
|
|
160
|
-
reporters: [...options.reporters || []]
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
types: LogTypes,
|
|
164
|
-
throttle: 1e3,
|
|
165
|
-
throttleMin: 5,
|
|
166
|
-
formatOptions: {
|
|
167
|
-
date: true,
|
|
168
|
-
colors: false,
|
|
169
|
-
compact: true
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
);
|
|
173
|
-
for (const type in types) {
|
|
174
|
-
const defaults = {
|
|
175
|
-
type,
|
|
176
|
-
...this.options.defaults,
|
|
177
|
-
...types[type]
|
|
178
|
-
};
|
|
179
|
-
this[type] = this._wrapLogFn(defaults);
|
|
180
|
-
this[type].raw = this._wrapLogFn(
|
|
181
|
-
defaults,
|
|
182
|
-
true
|
|
183
|
-
);
|
|
184
|
-
}
|
|
185
|
-
if (this.options.mockFn) {
|
|
186
|
-
this.mockTypes();
|
|
187
|
-
}
|
|
188
|
-
this._lastLog = {};
|
|
189
|
-
}
|
|
190
|
-
/**
|
|
191
|
-
* Gets the current log level of the Consola instance.
|
|
192
|
-
*
|
|
193
|
-
* @returns {number} The current log level.
|
|
194
|
-
*/
|
|
195
|
-
get level() {
|
|
196
|
-
return this.options.level;
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
* Sets the minimum log level that will be output by the instance.
|
|
200
|
-
*
|
|
201
|
-
* @param {number} level - The new log level to set.
|
|
202
|
-
*/
|
|
203
|
-
set level(level) {
|
|
204
|
-
this.options.level = _normalizeLogLevel(
|
|
205
|
-
level,
|
|
206
|
-
this.options.types,
|
|
207
|
-
this.options.level
|
|
208
|
-
);
|
|
209
|
-
}
|
|
210
|
-
/**
|
|
211
|
-
* Displays a prompt to the user and returns the response.
|
|
212
|
-
* Throw an error if `prompt` is not supported by the current configuration.
|
|
213
|
-
*
|
|
214
|
-
* @template T
|
|
215
|
-
* @param {string} message - The message to display in the prompt.
|
|
216
|
-
* @param {T} [opts] - Optional options for the prompt. See {@link PromptOptions}.
|
|
217
|
-
* @returns {promise<T>} A promise that infer with the prompt options. See {@link PromptOptions}.
|
|
218
|
-
*/
|
|
219
|
-
prompt(message, opts) {
|
|
220
|
-
if (!this.options.prompt) {
|
|
221
|
-
throw new Error("prompt is not supported!");
|
|
222
|
-
}
|
|
223
|
-
return this.options.prompt(message, opts);
|
|
224
|
-
}
|
|
225
|
-
/**
|
|
226
|
-
* Creates a new instance of Consola, inheriting options from the current instance, with possible overrides.
|
|
227
|
-
*
|
|
228
|
-
* @param {Partial<ConsolaOptions>} options - Optional overrides for the new instance. See {@link ConsolaOptions}.
|
|
229
|
-
* @returns {ConsolaInstance} A new Consola instance. See {@link ConsolaInstance}.
|
|
230
|
-
*/
|
|
231
|
-
create(options) {
|
|
232
|
-
const instance = new Consola({
|
|
233
|
-
...this.options,
|
|
234
|
-
...options
|
|
235
|
-
});
|
|
236
|
-
if (this._mockFn) {
|
|
237
|
-
instance.mockTypes(this._mockFn);
|
|
238
|
-
}
|
|
239
|
-
return instance;
|
|
240
|
-
}
|
|
241
|
-
/**
|
|
242
|
-
* Creates a new Consola instance with the specified default log object properties.
|
|
243
|
-
*
|
|
244
|
-
* @param {InputLogObject} defaults - Default properties to include in any log from the new instance. See {@link InputLogObject}.
|
|
245
|
-
* @returns {ConsolaInstance} A new Consola instance. See {@link ConsolaInstance}.
|
|
246
|
-
*/
|
|
247
|
-
withDefaults(defaults) {
|
|
248
|
-
return this.create({
|
|
249
|
-
...this.options,
|
|
250
|
-
defaults: {
|
|
251
|
-
...this.options.defaults,
|
|
252
|
-
...defaults
|
|
253
|
-
}
|
|
254
|
-
});
|
|
255
|
-
}
|
|
256
|
-
/**
|
|
257
|
-
* Creates a new Consola instance with a specified tag, which will be included in every log.
|
|
258
|
-
*
|
|
259
|
-
* @param {string} tag - The tag to include in each log of the new instance.
|
|
260
|
-
* @returns {ConsolaInstance} A new Consola instance. See {@link ConsolaInstance}.
|
|
261
|
-
*/
|
|
262
|
-
withTag(tag) {
|
|
263
|
-
return this.withDefaults({
|
|
264
|
-
tag: this.options.defaults.tag ? this.options.defaults.tag + ":" + tag : tag
|
|
265
|
-
});
|
|
266
|
-
}
|
|
267
|
-
/**
|
|
268
|
-
* Adds a custom reporter to the Consola instance.
|
|
269
|
-
* Reporters will be called for each log message, depending on their implementation and log level.
|
|
270
|
-
*
|
|
271
|
-
* @param {ConsolaReporter} reporter - The reporter to add. See {@link ConsolaReporter}.
|
|
272
|
-
* @returns {Consola} The current Consola instance.
|
|
273
|
-
*/
|
|
274
|
-
addReporter(reporter) {
|
|
275
|
-
this.options.reporters.push(reporter);
|
|
276
|
-
return this;
|
|
277
|
-
}
|
|
278
|
-
/**
|
|
279
|
-
* Removes a custom reporter from the Consola instance.
|
|
280
|
-
* If no reporter is specified, all reporters will be removed.
|
|
281
|
-
*
|
|
282
|
-
* @param {ConsolaReporter} reporter - The reporter to remove. See {@link ConsolaReporter}.
|
|
283
|
-
* @returns {Consola} The current Consola instance.
|
|
284
|
-
*/
|
|
285
|
-
removeReporter(reporter) {
|
|
286
|
-
if (reporter) {
|
|
287
|
-
const i = this.options.reporters.indexOf(reporter);
|
|
288
|
-
if (i !== -1) {
|
|
289
|
-
return this.options.reporters.splice(i, 1);
|
|
290
|
-
}
|
|
291
|
-
} else {
|
|
292
|
-
this.options.reporters.splice(0);
|
|
293
|
-
}
|
|
294
|
-
return this;
|
|
295
|
-
}
|
|
296
|
-
/**
|
|
297
|
-
* Replaces all reporters of the Consola instance with the specified array of reporters.
|
|
298
|
-
*
|
|
299
|
-
* @param {ConsolaReporter[]} reporters - The new reporters to set. See {@link ConsolaReporter}.
|
|
300
|
-
* @returns {Consola} The current Consola instance.
|
|
301
|
-
*/
|
|
302
|
-
setReporters(reporters) {
|
|
303
|
-
this.options.reporters = Array.isArray(reporters) ? reporters : [reporters];
|
|
304
|
-
return this;
|
|
305
|
-
}
|
|
306
|
-
wrapAll() {
|
|
307
|
-
this.wrapConsole();
|
|
308
|
-
this.wrapStd();
|
|
309
|
-
}
|
|
310
|
-
restoreAll() {
|
|
311
|
-
this.restoreConsole();
|
|
312
|
-
this.restoreStd();
|
|
313
|
-
}
|
|
314
|
-
/**
|
|
315
|
-
* Overrides console methods with Consola logging methods for consistent logging.
|
|
316
|
-
*/
|
|
317
|
-
wrapConsole() {
|
|
318
|
-
for (const type in this.options.types) {
|
|
319
|
-
if (!console["__" + type]) {
|
|
320
|
-
console["__" + type] = console[type];
|
|
321
|
-
}
|
|
322
|
-
console[type] = this[type].raw;
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
/**
|
|
326
|
-
* Restores the original console methods, removing Consola overrides.
|
|
327
|
-
*/
|
|
328
|
-
restoreConsole() {
|
|
329
|
-
for (const type in this.options.types) {
|
|
330
|
-
if (console["__" + type]) {
|
|
331
|
-
console[type] = console["__" + type];
|
|
332
|
-
delete console["__" + type];
|
|
333
|
-
}
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
/**
|
|
337
|
-
* Overrides standard output and error streams to redirect them through Consola.
|
|
338
|
-
*/
|
|
339
|
-
wrapStd() {
|
|
340
|
-
this._wrapStream(this.options.stdout, "log");
|
|
341
|
-
this._wrapStream(this.options.stderr, "log");
|
|
342
|
-
}
|
|
343
|
-
_wrapStream(stream, type) {
|
|
344
|
-
if (!stream) {
|
|
345
|
-
return;
|
|
346
|
-
}
|
|
347
|
-
if (!stream.__write) {
|
|
348
|
-
stream.__write = stream.write;
|
|
349
|
-
}
|
|
350
|
-
stream.write = (data) => {
|
|
351
|
-
this[type].raw(String(data).trim());
|
|
352
|
-
};
|
|
353
|
-
}
|
|
354
|
-
/**
|
|
355
|
-
* Restores the original standard output and error streams, removing the Consola redirection.
|
|
356
|
-
*/
|
|
357
|
-
restoreStd() {
|
|
358
|
-
this._restoreStream(this.options.stdout);
|
|
359
|
-
this._restoreStream(this.options.stderr);
|
|
360
|
-
}
|
|
361
|
-
_restoreStream(stream) {
|
|
362
|
-
if (!stream) {
|
|
363
|
-
return;
|
|
364
|
-
}
|
|
365
|
-
if (stream.__write) {
|
|
366
|
-
stream.write = stream.__write;
|
|
367
|
-
delete stream.__write;
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
/**
|
|
371
|
-
* Pauses logging, queues incoming logs until resumed.
|
|
372
|
-
*/
|
|
373
|
-
pauseLogs() {
|
|
374
|
-
paused = true;
|
|
375
|
-
}
|
|
376
|
-
/**
|
|
377
|
-
* Resumes logging, processing any queued logs.
|
|
378
|
-
*/
|
|
379
|
-
resumeLogs() {
|
|
380
|
-
paused = false;
|
|
381
|
-
const _queue = queue.splice(0);
|
|
382
|
-
for (const item of _queue) {
|
|
383
|
-
item[0]._logFn(item[1], item[2]);
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
/**
|
|
387
|
-
* Replaces logging methods with mocks if a mock function is provided.
|
|
388
|
-
*
|
|
389
|
-
* @param {ConsolaOptions["mockFn"]} mockFn - The function to use for mocking logging methods. See {@link ConsolaOptions["mockFn"]}.
|
|
390
|
-
*/
|
|
391
|
-
mockTypes(mockFn) {
|
|
392
|
-
const _mockFn = mockFn || this.options.mockFn;
|
|
393
|
-
this._mockFn = _mockFn;
|
|
394
|
-
if (typeof _mockFn !== "function") {
|
|
395
|
-
return;
|
|
396
|
-
}
|
|
397
|
-
for (const type in this.options.types) {
|
|
398
|
-
this[type] = _mockFn(type, this.options.types[type]) || this[type];
|
|
399
|
-
this[type].raw = this[type];
|
|
400
|
-
}
|
|
401
|
-
}
|
|
402
|
-
_wrapLogFn(defaults, isRaw) {
|
|
403
|
-
return (...args) => {
|
|
404
|
-
if (paused) {
|
|
405
|
-
queue.push([this, defaults, args, isRaw]);
|
|
406
|
-
return;
|
|
407
|
-
}
|
|
408
|
-
return this._logFn(defaults, args, isRaw);
|
|
409
|
-
};
|
|
410
|
-
}
|
|
411
|
-
_logFn(defaults, args, isRaw) {
|
|
412
|
-
if ((defaults.level || 0) > this.level) {
|
|
413
|
-
return false;
|
|
414
|
-
}
|
|
415
|
-
const logObj = {
|
|
416
|
-
date: /* @__PURE__ */ new Date(),
|
|
417
|
-
args: [],
|
|
418
|
-
...defaults,
|
|
419
|
-
level: _normalizeLogLevel(defaults.level, this.options.types)
|
|
420
|
-
};
|
|
421
|
-
if (!isRaw && args.length === 1 && isLogObj(args[0])) {
|
|
422
|
-
Object.assign(logObj, args[0]);
|
|
423
|
-
} else {
|
|
424
|
-
logObj.args = [...args];
|
|
425
|
-
}
|
|
426
|
-
if (logObj.message) {
|
|
427
|
-
logObj.args.unshift(logObj.message);
|
|
428
|
-
delete logObj.message;
|
|
429
|
-
}
|
|
430
|
-
if (logObj.additional) {
|
|
431
|
-
if (!Array.isArray(logObj.additional)) {
|
|
432
|
-
logObj.additional = logObj.additional.split("\n");
|
|
433
|
-
}
|
|
434
|
-
logObj.args.push("\n" + logObj.additional.join("\n"));
|
|
435
|
-
delete logObj.additional;
|
|
436
|
-
}
|
|
437
|
-
logObj.type = typeof logObj.type === "string" ? logObj.type.toLowerCase() : "log";
|
|
438
|
-
logObj.tag = typeof logObj.tag === "string" ? logObj.tag : "";
|
|
439
|
-
const resolveLog = (newLog = false) => {
|
|
440
|
-
const repeated = (this._lastLog.count || 0) - this.options.throttleMin;
|
|
441
|
-
if (this._lastLog.object && repeated > 0) {
|
|
442
|
-
const args2 = [...this._lastLog.object.args];
|
|
443
|
-
if (repeated > 1) {
|
|
444
|
-
args2.push(`(repeated ${repeated} times)`);
|
|
445
|
-
}
|
|
446
|
-
this._log({ ...this._lastLog.object, args: args2 });
|
|
447
|
-
this._lastLog.count = 1;
|
|
448
|
-
}
|
|
449
|
-
if (newLog) {
|
|
450
|
-
this._lastLog.object = logObj;
|
|
451
|
-
this._log(logObj);
|
|
452
|
-
}
|
|
453
|
-
};
|
|
454
|
-
clearTimeout(this._lastLog.timeout);
|
|
455
|
-
const diffTime = this._lastLog.time && logObj.date ? logObj.date.getTime() - this._lastLog.time.getTime() : 0;
|
|
456
|
-
this._lastLog.time = logObj.date;
|
|
457
|
-
if (diffTime < this.options.throttle) {
|
|
458
|
-
try {
|
|
459
|
-
const serializedLog = JSON.stringify([
|
|
460
|
-
logObj.type,
|
|
461
|
-
logObj.tag,
|
|
462
|
-
logObj.args
|
|
463
|
-
]);
|
|
464
|
-
const isSameLog = this._lastLog.serialized === serializedLog;
|
|
465
|
-
this._lastLog.serialized = serializedLog;
|
|
466
|
-
if (isSameLog) {
|
|
467
|
-
this._lastLog.count = (this._lastLog.count || 0) + 1;
|
|
468
|
-
if (this._lastLog.count > this.options.throttleMin) {
|
|
469
|
-
this._lastLog.timeout = setTimeout(
|
|
470
|
-
resolveLog,
|
|
471
|
-
this.options.throttle
|
|
472
|
-
);
|
|
473
|
-
return;
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
} catch {
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
resolveLog(true);
|
|
480
|
-
}
|
|
481
|
-
_log(logObj) {
|
|
482
|
-
for (const reporter of this.options.reporters) {
|
|
483
|
-
reporter.log(logObj, {
|
|
484
|
-
options: this.options
|
|
485
|
-
});
|
|
486
|
-
}
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
function _normalizeLogLevel(input, types = {}, defaultLevel = 3) {
|
|
490
|
-
if (input === void 0) {
|
|
491
|
-
return defaultLevel;
|
|
492
|
-
}
|
|
493
|
-
if (typeof input === "number") {
|
|
494
|
-
return input;
|
|
495
|
-
}
|
|
496
|
-
if (types[input] && types[input].level !== void 0) {
|
|
497
|
-
return types[input].level;
|
|
498
|
-
}
|
|
499
|
-
return defaultLevel;
|
|
500
|
-
}
|
|
501
|
-
Consola.prototype.add = Consola.prototype.addReporter;
|
|
502
|
-
Consola.prototype.remove = Consola.prototype.removeReporter;
|
|
503
|
-
Consola.prototype.clear = Consola.prototype.removeReporter;
|
|
504
|
-
Consola.prototype.withScope = Consola.prototype.withTag;
|
|
505
|
-
Consola.prototype.mock = Consola.prototype.mockTypes;
|
|
506
|
-
Consola.prototype.pause = Consola.prototype.pauseLogs;
|
|
507
|
-
Consola.prototype.resume = Consola.prototype.resumeLogs;
|
|
508
|
-
function createConsola(options = {}) {
|
|
509
|
-
return new Consola(options);
|
|
510
|
-
}
|
|
511
|
-
|
|
512
|
-
export { Consola, LogLevels, LogTypes, createConsola };
|