@powerlines/core 0.48.26 → 0.48.28
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/dist/_virtual/_rolldown/runtime.cjs +14 -0
- package/dist/_virtual/_rolldown/runtime.mjs +26 -0
- package/dist/constants/api.test.cjs +42 -0
- package/dist/constants/api.test.d.cts +1 -0
- package/dist/constants/api.test.d.mts +2 -0
- package/dist/constants/api.test.mjs +44 -0
- package/dist/constants/api.test.mjs.map +1 -0
- package/dist/constants/commands.test.cjs +29 -0
- package/dist/constants/commands.test.d.cts +1 -0
- package/dist/constants/commands.test.d.mts +2 -0
- package/dist/constants/commands.test.mjs +31 -0
- package/dist/constants/commands.test.mjs.map +1 -0
- package/dist/constants/devtools.test.cjs +46 -0
- package/dist/constants/devtools.test.d.cts +1 -0
- package/dist/constants/devtools.test.d.mts +2 -0
- package/dist/constants/devtools.test.mjs +48 -0
- package/dist/constants/devtools.test.mjs.map +1 -0
- package/dist/constants/environments.test.cjs +34 -0
- package/dist/constants/environments.test.d.cts +1 -0
- package/dist/constants/environments.test.d.mts +2 -0
- package/dist/constants/environments.test.mjs +36 -0
- package/dist/constants/environments.test.mjs.map +1 -0
- package/dist/constants/extensions.test.cjs +35 -0
- package/dist/constants/extensions.test.d.cts +1 -0
- package/dist/constants/extensions.test.d.mts +2 -0
- package/dist/constants/extensions.test.mjs +37 -0
- package/dist/constants/extensions.test.mjs.map +1 -0
- package/dist/constants/fs.test.cjs +34 -0
- package/dist/constants/fs.test.d.cts +1 -0
- package/dist/constants/fs.test.d.mts +2 -0
- package/dist/constants/fs.test.mjs +36 -0
- package/dist/constants/fs.test.mjs.map +1 -0
- package/dist/constants/hooks.test.cjs +29 -0
- package/dist/constants/hooks.test.d.cts +1 -0
- package/dist/constants/hooks.test.d.mts +2 -0
- package/dist/constants/hooks.test.mjs +31 -0
- package/dist/constants/hooks.test.mjs.map +1 -0
- package/dist/constants/log-level.test.cjs +76 -0
- package/dist/constants/log-level.test.d.cts +1 -0
- package/dist/constants/log-level.test.d.mts +2 -0
- package/dist/constants/log-level.test.mjs +78 -0
- package/dist/constants/log-level.test.mjs.map +1 -0
- package/dist/constants/meta.test.cjs +33 -0
- package/dist/constants/meta.test.d.cts +1 -0
- package/dist/constants/meta.test.d.mts +2 -0
- package/dist/constants/meta.test.mjs +35 -0
- package/dist/constants/meta.test.mjs.map +1 -0
- package/dist/constants/plugin.test.cjs +59 -0
- package/dist/constants/plugin.test.d.cts +1 -0
- package/dist/constants/plugin.test.d.mts +2 -0
- package/dist/constants/plugin.test.mjs +61 -0
- package/dist/constants/plugin.test.mjs.map +1 -0
- package/dist/context/base-context.cjs +8 -1
- package/dist/context/base-context.d.cts.map +1 -1
- package/dist/context/base-context.d.mts.map +1 -1
- package/dist/context/base-context.mjs +3 -1
- package/dist/context/base-context.mjs.map +1 -1
- package/dist/context/base-context.test.cjs +23 -0
- package/dist/context/base-context.test.d.cts +1 -0
- package/dist/context/base-context.test.d.mts +2 -0
- package/dist/context/base-context.test.mjs +25 -0
- package/dist/context/base-context.test.mjs.map +1 -0
- package/dist/context/context.cjs +8 -1
- package/dist/context/context.d.cts.map +1 -1
- package/dist/context/context.d.mts.map +1 -1
- package/dist/context/context.mjs +3 -1
- package/dist/context/context.mjs.map +1 -1
- package/dist/context/context.test.cjs +23 -0
- package/dist/context/context.test.d.cts +1 -0
- package/dist/context/context.test.d.mts +2 -0
- package/dist/context/context.test.mjs +25 -0
- package/dist/context/context.test.mjs.map +1 -0
- package/dist/context/environment-context.cjs +9 -1
- package/dist/context/environment-context.d.cts.map +1 -1
- package/dist/context/environment-context.d.mts.map +1 -1
- package/dist/context/environment-context.mjs +3 -1
- package/dist/context/environment-context.mjs.map +1 -1
- package/dist/context/environment-context.test.cjs +23 -0
- package/dist/context/environment-context.test.d.cts +1 -0
- package/dist/context/environment-context.test.d.mts +2 -0
- package/dist/context/environment-context.test.mjs +25 -0
- package/dist/context/environment-context.test.mjs.map +1 -0
- package/dist/context/execution-context.cjs +8 -1
- package/dist/context/execution-context.d.cts.map +1 -1
- package/dist/context/execution-context.d.mts.map +1 -1
- package/dist/context/execution-context.mjs +3 -1
- package/dist/context/execution-context.mjs.map +1 -1
- package/dist/context/execution-context.test.cjs +23 -0
- package/dist/context/execution-context.test.d.cts +1 -0
- package/dist/context/execution-context.test.d.mts +2 -0
- package/dist/context/execution-context.test.mjs +25 -0
- package/dist/context/execution-context.test.mjs.map +1 -0
- package/dist/context/plugin-context.cjs +9 -1
- package/dist/context/plugin-context.d.cts.map +1 -1
- package/dist/context/plugin-context.d.mts.map +1 -1
- package/dist/context/plugin-context.mjs +3 -1
- package/dist/context/plugin-context.mjs.map +1 -1
- package/dist/context/plugin-context.test.cjs +23 -0
- package/dist/context/plugin-context.test.d.cts +1 -0
- package/dist/context/plugin-context.test.d.mts +2 -0
- package/dist/context/plugin-context.test.mjs +25 -0
- package/dist/context/plugin-context.test.mjs.map +1 -0
- package/dist/lib/config.cjs +18 -0
- package/dist/lib/config.mjs +14 -1
- package/dist/lib/config.mjs.map +1 -1
- package/dist/lib/config.test.cjs +23 -0
- package/dist/lib/config.test.d.cts +1 -0
- package/dist/lib/config.test.d.mts +2 -0
- package/dist/lib/config.test.mjs +25 -0
- package/dist/lib/config.test.mjs.map +1 -0
- package/dist/lib/context-helpers.cjs +11 -0
- package/dist/lib/context-helpers.d.cts +4 -4
- package/dist/lib/context-helpers.d.cts.map +1 -1
- package/dist/lib/context-helpers.d.mts +4 -4
- package/dist/lib/context-helpers.d.mts.map +1 -1
- package/dist/lib/context-helpers.mjs +6 -1
- package/dist/lib/context-helpers.mjs.map +1 -1
- package/dist/lib/context-helpers.test.cjs +23 -0
- package/dist/lib/context-helpers.test.d.cts +1 -0
- package/dist/lib/context-helpers.test.d.mts +2 -0
- package/dist/lib/context-helpers.test.mjs +25 -0
- package/dist/lib/context-helpers.test.mjs.map +1 -0
- package/dist/lib/entry.cjs +16 -0
- package/dist/lib/entry.d.cts.map +1 -1
- package/dist/lib/entry.d.mts.map +1 -1
- package/dist/lib/entry.mjs +11 -1
- package/dist/lib/entry.mjs.map +1 -1
- package/dist/lib/entry.test.cjs +23 -0
- package/dist/lib/entry.test.d.cts +1 -0
- package/dist/lib/entry.test.d.mts +2 -0
- package/dist/lib/entry.test.mjs +25 -0
- package/dist/lib/entry.test.mjs.map +1 -0
- package/dist/lib/environment.cjs +12 -0
- package/dist/lib/environment.d.cts.map +1 -1
- package/dist/lib/environment.d.mts.map +1 -1
- package/dist/lib/environment.mjs +8 -1
- package/dist/lib/environment.mjs.map +1 -1
- package/dist/lib/environment.test.cjs +23 -0
- package/dist/lib/environment.test.d.cts +1 -0
- package/dist/lib/environment.test.d.mts +2 -0
- package/dist/lib/environment.test.mjs +25 -0
- package/dist/lib/environment.test.mjs.map +1 -0
- package/dist/lib/events.cjs +9 -1
- package/dist/lib/events.d.cts.map +1 -1
- package/dist/lib/events.d.mts.map +1 -1
- package/dist/lib/events.mjs +4 -1
- package/dist/lib/events.mjs.map +1 -1
- package/dist/lib/events.test.cjs +23 -0
- package/dist/lib/events.test.d.cts +1 -0
- package/dist/lib/events.test.d.mts +2 -0
- package/dist/lib/events.test.mjs +25 -0
- package/dist/lib/events.test.mjs.map +1 -0
- package/dist/lib/generate-types.cjs +12 -0
- package/dist/lib/generate-types.d.cts.map +1 -1
- package/dist/lib/generate-types.d.mts.map +1 -1
- package/dist/lib/generate-types.mjs +7 -1
- package/dist/lib/generate-types.mjs.map +1 -1
- package/dist/lib/generate-types.test.cjs +23 -0
- package/dist/lib/generate-types.test.d.cts +1 -0
- package/dist/lib/generate-types.test.d.mts +2 -0
- package/dist/lib/generate-types.test.mjs +25 -0
- package/dist/lib/generate-types.test.mjs.map +1 -0
- package/dist/lib/hooks.cjs +12 -0
- package/dist/lib/hooks.d.cts.map +1 -1
- package/dist/lib/hooks.d.mts.map +1 -1
- package/dist/lib/hooks.mjs +8 -1
- package/dist/lib/hooks.mjs.map +1 -1
- package/dist/lib/hooks.test.cjs +23 -0
- package/dist/lib/hooks.test.d.cts +1 -0
- package/dist/lib/hooks.test.d.mts +2 -0
- package/dist/lib/hooks.test.mjs +25 -0
- package/dist/lib/hooks.test.mjs.map +1 -0
- package/dist/lib/install-dependencies.cjs +9 -1
- package/dist/lib/install-dependencies.d.cts.map +1 -1
- package/dist/lib/install-dependencies.d.mts.map +1 -1
- package/dist/lib/install-dependencies.mjs +3 -1
- package/dist/lib/install-dependencies.mjs.map +1 -1
- package/dist/lib/install-dependencies.test.cjs +23 -0
- package/dist/lib/install-dependencies.test.d.cts +1 -0
- package/dist/lib/install-dependencies.test.d.mts +2 -0
- package/dist/lib/install-dependencies.test.mjs +25 -0
- package/dist/lib/install-dependencies.test.mjs.map +1 -0
- package/dist/lib/meta.test.cjs +35 -0
- package/dist/lib/meta.test.d.cts +1 -0
- package/dist/lib/meta.test.d.mts +2 -0
- package/dist/lib/meta.test.mjs +37 -0
- package/dist/lib/meta.test.mjs.map +1 -0
- package/dist/lib/plugins.cjs +11 -0
- package/dist/lib/plugins.d.cts.map +1 -1
- package/dist/lib/plugins.d.mts.map +1 -1
- package/dist/lib/plugins.mjs +7 -1
- package/dist/lib/plugins.mjs.map +1 -1
- package/dist/lib/plugins.test.cjs +23 -0
- package/dist/lib/plugins.test.d.cts +1 -0
- package/dist/lib/plugins.test.d.mts +2 -0
- package/dist/lib/plugins.test.mjs +25 -0
- package/dist/lib/plugins.test.mjs.map +1 -0
- package/dist/lib/resolver.cjs +8 -1
- package/dist/lib/resolver.mjs +3 -1
- package/dist/lib/resolver.mjs.map +1 -1
- package/dist/lib/resolver.test.cjs +23 -0
- package/dist/lib/resolver.test.d.cts +1 -0
- package/dist/lib/resolver.test.d.mts +2 -0
- package/dist/lib/resolver.test.mjs +25 -0
- package/dist/lib/resolver.test.mjs.map +1 -0
- package/dist/lib/streaming-channel.cjs +12 -1
- package/dist/lib/streaming-channel.d.cts.map +1 -1
- package/dist/lib/streaming-channel.d.mts.map +1 -1
- package/dist/lib/streaming-channel.mjs +6 -1
- package/dist/lib/streaming-channel.mjs.map +1 -1
- package/dist/lib/streaming-channel.test.cjs +23 -0
- package/dist/lib/streaming-channel.test.d.cts +1 -0
- package/dist/lib/streaming-channel.test.d.mts +2 -0
- package/dist/lib/streaming-channel.test.mjs +25 -0
- package/dist/lib/streaming-channel.test.mjs.map +1 -0
- package/dist/lib/typescript/ts-morph.cjs +11 -1
- package/dist/lib/typescript/ts-morph.d.cts.map +1 -1
- package/dist/lib/typescript/ts-morph.d.mts.map +1 -1
- package/dist/lib/typescript/ts-morph.mjs +6 -1
- package/dist/lib/typescript/ts-morph.mjs.map +1 -1
- package/dist/lib/typescript/ts-morph.test.cjs +23 -0
- package/dist/lib/typescript/ts-morph.test.d.cts +1 -0
- package/dist/lib/typescript/ts-morph.test.d.mts +2 -0
- package/dist/lib/typescript/ts-morph.test.mjs +25 -0
- package/dist/lib/typescript/ts-morph.test.mjs.map +1 -0
- package/dist/lib/typescript/tsconfig.cjs +19 -1
- package/dist/lib/typescript/tsconfig.d.cts.map +1 -1
- package/dist/lib/typescript/tsconfig.d.mts.map +1 -1
- package/dist/lib/typescript/tsconfig.mjs +14 -1
- package/dist/lib/typescript/tsconfig.mjs.map +1 -1
- package/dist/lib/typescript/tsconfig.test.cjs +23 -0
- package/dist/lib/typescript/tsconfig.test.d.cts +1 -0
- package/dist/lib/typescript/tsconfig.test.d.mts +2 -0
- package/dist/lib/typescript/tsconfig.test.mjs +25 -0
- package/dist/lib/typescript/tsconfig.test.mjs.map +1 -0
- package/dist/lib/unplugin/helpers.cjs +11 -0
- package/dist/lib/unplugin/helpers.d.cts.map +1 -1
- package/dist/lib/unplugin/helpers.d.mts.map +1 -1
- package/dist/lib/unplugin/helpers.mjs +6 -1
- package/dist/lib/unplugin/helpers.mjs.map +1 -1
- package/dist/lib/unplugin/helpers.test.cjs +23 -0
- package/dist/lib/unplugin/helpers.test.d.cts +1 -0
- package/dist/lib/unplugin/helpers.test.d.mts +2 -0
- package/dist/lib/unplugin/helpers.test.mjs +25 -0
- package/dist/lib/unplugin/helpers.test.mjs.map +1 -0
- package/dist/lib/unplugin/module-resolution.cjs +8 -1
- package/dist/lib/unplugin/module-resolution.d.cts.map +1 -1
- package/dist/lib/unplugin/module-resolution.d.mts.map +1 -1
- package/dist/lib/unplugin/module-resolution.mjs +3 -1
- package/dist/lib/unplugin/module-resolution.mjs.map +1 -1
- package/dist/lib/unplugin/module-resolution.test.cjs +23 -0
- package/dist/lib/unplugin/module-resolution.test.d.cts +1 -0
- package/dist/lib/unplugin/module-resolution.test.d.mts +2 -0
- package/dist/lib/unplugin/module-resolution.test.mjs +25 -0
- package/dist/lib/unplugin/module-resolution.test.mjs.map +1 -0
- package/dist/lib/unplugin/plugin.cjs +12 -1
- package/dist/lib/unplugin/plugin.d.cts.map +1 -1
- package/dist/lib/unplugin/plugin.d.mts.map +1 -1
- package/dist/lib/unplugin/plugin.mjs +6 -1
- package/dist/lib/unplugin/plugin.mjs.map +1 -1
- package/dist/lib/unplugin/plugin.test.cjs +23 -0
- package/dist/lib/unplugin/plugin.test.d.cts +1 -0
- package/dist/lib/unplugin/plugin.test.d.mts +2 -0
- package/dist/lib/unplugin/plugin.test.mjs +25 -0
- package/dist/lib/unplugin/plugin.test.mjs.map +1 -0
- package/dist/lib/utilities/file-header.cjs +13 -0
- package/dist/lib/utilities/file-header.mjs +8 -1
- package/dist/lib/utilities/file-header.mjs.map +1 -1
- package/dist/lib/utilities/file-header.test.cjs +23 -0
- package/dist/lib/utilities/file-header.test.d.cts +1 -0
- package/dist/lib/utilities/file-header.test.d.mts +2 -0
- package/dist/lib/utilities/file-header.test.mjs +25 -0
- package/dist/lib/utilities/file-header.test.mjs.map +1 -0
- package/dist/lib/utilities/format.cjs +11 -1
- package/dist/lib/utilities/format.mjs +6 -1
- package/dist/lib/utilities/format.mjs.map +1 -1
- package/dist/lib/utilities/format.test.cjs +23 -0
- package/dist/lib/utilities/format.test.d.cts +1 -0
- package/dist/lib/utilities/format.test.d.mts +2 -0
- package/dist/lib/utilities/format.test.mjs +25 -0
- package/dist/lib/utilities/format.test.mjs.map +1 -0
- package/dist/lib/utilities/source-file.cjs +12 -1
- package/dist/lib/utilities/source-file.mjs +7 -1
- package/dist/lib/utilities/source-file.mjs.map +1 -1
- package/dist/lib/utilities/source-file.test.cjs +23 -0
- package/dist/lib/utilities/source-file.test.d.cts +1 -0
- package/dist/lib/utilities/source-file.test.d.mts +2 -0
- package/dist/lib/utilities/source-file.test.mjs +25 -0
- package/dist/lib/utilities/source-file.test.mjs.map +1 -0
- package/dist/lib/utilities/source-map.cjs +8 -1
- package/dist/lib/utilities/source-map.mjs +3 -1
- package/dist/lib/utilities/source-map.mjs.map +1 -1
- package/dist/lib/utilities/source-map.test.cjs +23 -0
- package/dist/lib/utilities/source-map.test.d.cts +1 -0
- package/dist/lib/utilities/source-map.test.d.mts +2 -0
- package/dist/lib/utilities/source-map.test.mjs +25 -0
- package/dist/lib/utilities/source-map.test.mjs.map +1 -0
- package/dist/lib/utilities/write-file.cjs +9 -1
- package/dist/lib/utilities/write-file.mjs +3 -1
- package/dist/lib/utilities/write-file.mjs.map +1 -1
- package/dist/lib/utilities/write-file.test.cjs +23 -0
- package/dist/lib/utilities/write-file.test.d.cts +1 -0
- package/dist/lib/utilities/write-file.test.d.mts +2 -0
- package/dist/lib/utilities/write-file.test.mjs +25 -0
- package/dist/lib/utilities/write-file.test.mjs.map +1 -0
- package/dist/lib/vfs.cjs +8 -1
- package/dist/lib/vfs.d.cts.map +1 -1
- package/dist/lib/vfs.d.mts.map +1 -1
- package/dist/lib/vfs.mjs +3 -1
- package/dist/lib/vfs.mjs.map +1 -1
- package/dist/lib/vfs.test.cjs +23 -0
- package/dist/lib/vfs.test.d.cts +1 -0
- package/dist/lib/vfs.test.d.mts +2 -0
- package/dist/lib/vfs.test.mjs +25 -0
- package/dist/lib/vfs.test.mjs.map +1 -0
- package/dist/plugin-base.cjs +12 -1
- package/dist/plugin-base.mjs +6 -1
- package/dist/plugin-base.mjs.map +1 -1
- package/dist/plugin-base.test.cjs +23 -0
- package/dist/plugin-base.test.d.cts +1 -0
- package/dist/plugin-base.test.d.mts +2 -0
- package/dist/plugin-base.test.mjs +25 -0
- package/dist/plugin-base.test.mjs.map +1 -0
- package/dist/plugin-utils/build-helpers.cjs +8 -0
- package/dist/plugin-utils/build-helpers.d.cts.map +1 -1
- package/dist/plugin-utils/build-helpers.d.mts.map +1 -1
- package/dist/plugin-utils/build-helpers.mjs +3 -1
- package/dist/plugin-utils/build-helpers.mjs.map +1 -1
- package/dist/plugin-utils/build-helpers.test.cjs +23 -0
- package/dist/plugin-utils/build-helpers.test.d.cts +1 -0
- package/dist/plugin-utils/build-helpers.test.d.mts +2 -0
- package/dist/plugin-utils/build-helpers.test.mjs +25 -0
- package/dist/plugin-utils/build-helpers.test.mjs.map +1 -0
- package/dist/plugin-utils/combine-plugins.cjs +12 -1
- package/dist/plugin-utils/combine-plugins.mjs +6 -1
- package/dist/plugin-utils/combine-plugins.mjs.map +1 -1
- package/dist/plugin-utils/combine-plugins.test.cjs +23 -0
- package/dist/plugin-utils/combine-plugins.test.d.cts +1 -0
- package/dist/plugin-utils/combine-plugins.test.d.mts +2 -0
- package/dist/plugin-utils/combine-plugins.test.mjs +25 -0
- package/dist/plugin-utils/combine-plugins.test.mjs.map +1 -0
- package/dist/plugin-utils/context-helpers.cjs +13 -0
- package/dist/plugin-utils/context-helpers.mjs +8 -1
- package/dist/plugin-utils/context-helpers.mjs.map +1 -1
- package/dist/plugin-utils/context-helpers.test.cjs +23 -0
- package/dist/plugin-utils/context-helpers.test.d.cts +1 -0
- package/dist/plugin-utils/context-helpers.test.d.mts +2 -0
- package/dist/plugin-utils/context-helpers.test.mjs +25 -0
- package/dist/plugin-utils/context-helpers.test.mjs.map +1 -0
- package/dist/plugin-utils/docs-helper.cjs +8 -0
- package/dist/plugin-utils/docs-helper.mjs +3 -1
- package/dist/plugin-utils/docs-helper.mjs.map +1 -1
- package/dist/plugin-utils/docs-helper.test.cjs +23 -0
- package/dist/plugin-utils/docs-helper.test.d.cts +1 -0
- package/dist/plugin-utils/docs-helper.test.d.mts +2 -0
- package/dist/plugin-utils/docs-helper.test.mjs +25 -0
- package/dist/plugin-utils/docs-helper.test.mjs.map +1 -0
- package/dist/plugin-utils/enable-plugin.cjs +9 -1
- package/dist/plugin-utils/enable-plugin.d.cts.map +1 -1
- package/dist/plugin-utils/enable-plugin.d.mts.map +1 -1
- package/dist/plugin-utils/enable-plugin.mjs +3 -1
- package/dist/plugin-utils/enable-plugin.mjs.map +1 -1
- package/dist/plugin-utils/enable-plugin.test.cjs +23 -0
- package/dist/plugin-utils/enable-plugin.test.d.cts +1 -0
- package/dist/plugin-utils/enable-plugin.test.d.mts +2 -0
- package/dist/plugin-utils/enable-plugin.test.mjs +25 -0
- package/dist/plugin-utils/enable-plugin.test.mjs.map +1 -0
- package/dist/plugin-utils/extend.cjs +9 -1
- package/dist/plugin-utils/extend.d.cts.map +1 -1
- package/dist/plugin-utils/extend.d.mts.map +1 -1
- package/dist/plugin-utils/extend.mjs +3 -1
- package/dist/plugin-utils/extend.mjs.map +1 -1
- package/dist/plugin-utils/extend.test.cjs +23 -0
- package/dist/plugin-utils/extend.test.d.cts +1 -0
- package/dist/plugin-utils/extend.test.d.mts +2 -0
- package/dist/plugin-utils/extend.test.mjs +25 -0
- package/dist/plugin-utils/extend.test.mjs.map +1 -0
- package/dist/plugin-utils/filter.cjs +17 -0
- package/dist/plugin-utils/filter.mjs +13 -1
- package/dist/plugin-utils/filter.mjs.map +1 -1
- package/dist/plugin-utils/filter.test.cjs +23 -0
- package/dist/plugin-utils/filter.test.d.cts +1 -0
- package/dist/plugin-utils/filter.test.d.mts +2 -0
- package/dist/plugin-utils/filter.test.mjs +25 -0
- package/dist/plugin-utils/filter.test.mjs.map +1 -0
- package/dist/plugin-utils/format-package-json.cjs +9 -1
- package/dist/plugin-utils/format-package-json.mjs +3 -1
- package/dist/plugin-utils/format-package-json.mjs.map +1 -1
- package/dist/plugin-utils/format-package-json.test.cjs +23 -0
- package/dist/plugin-utils/format-package-json.test.d.cts +1 -0
- package/dist/plugin-utils/format-package-json.test.d.mts +2 -0
- package/dist/plugin-utils/format-package-json.test.mjs +25 -0
- package/dist/plugin-utils/format-package-json.test.mjs.map +1 -0
- package/dist/plugin-utils/format.cjs +9 -1
- package/dist/plugin-utils/format.mjs +3 -1
- package/dist/plugin-utils/format.mjs.map +1 -1
- package/dist/plugin-utils/format.test.cjs +23 -0
- package/dist/plugin-utils/format.test.d.cts +1 -0
- package/dist/plugin-utils/format.test.d.mts +2 -0
- package/dist/plugin-utils/format.test.mjs +25 -0
- package/dist/plugin-utils/format.test.mjs.map +1 -0
- package/dist/plugin-utils/get-config-path.cjs +9 -1
- package/dist/plugin-utils/get-config-path.mjs +3 -1
- package/dist/plugin-utils/get-config-path.mjs.map +1 -1
- package/dist/plugin-utils/get-config-path.test.cjs +23 -0
- package/dist/plugin-utils/get-config-path.test.d.cts +1 -0
- package/dist/plugin-utils/get-config-path.test.d.mts +2 -0
- package/dist/plugin-utils/get-config-path.test.mjs +25 -0
- package/dist/plugin-utils/get-config-path.test.mjs.map +1 -0
- package/dist/plugin-utils/helpers.cjs +25 -0
- package/dist/plugin-utils/helpers.d.cts.map +1 -1
- package/dist/plugin-utils/helpers.d.mts.map +1 -1
- package/dist/plugin-utils/helpers.mjs +20 -1
- package/dist/plugin-utils/helpers.mjs.map +1 -1
- package/dist/plugin-utils/helpers.test.cjs +23 -0
- package/dist/plugin-utils/helpers.test.d.cts +1 -0
- package/dist/plugin-utils/helpers.test.d.mts +2 -0
- package/dist/plugin-utils/helpers.test.mjs +25 -0
- package/dist/plugin-utils/helpers.test.mjs.map +1 -0
- package/dist/plugin-utils/install.cjs +12 -1
- package/dist/plugin-utils/install.mjs +6 -1
- package/dist/plugin-utils/install.mjs.map +1 -1
- package/dist/plugin-utils/install.test.cjs +23 -0
- package/dist/plugin-utils/install.test.d.cts +1 -0
- package/dist/plugin-utils/install.test.d.mts +2 -0
- package/dist/plugin-utils/install.test.mjs +25 -0
- package/dist/plugin-utils/install.test.mjs.map +1 -0
- package/dist/plugin-utils/logging.cjs +24 -0
- package/dist/plugin-utils/logging.mjs +20 -1
- package/dist/plugin-utils/logging.mjs.map +1 -1
- package/dist/plugin-utils/logging.test.cjs +23 -0
- package/dist/plugin-utils/logging.test.d.cts +1 -0
- package/dist/plugin-utils/logging.test.d.mts +2 -0
- package/dist/plugin-utils/logging.test.mjs +25 -0
- package/dist/plugin-utils/logging.test.mjs.map +1 -0
- package/dist/plugin-utils/merge.cjs +11 -1
- package/dist/plugin-utils/merge.d.cts.map +1 -1
- package/dist/plugin-utils/merge.d.mts.map +1 -1
- package/dist/plugin-utils/merge.mjs +6 -1
- package/dist/plugin-utils/merge.mjs.map +1 -1
- package/dist/plugin-utils/merge.test.cjs +23 -0
- package/dist/plugin-utils/merge.test.d.cts +1 -0
- package/dist/plugin-utils/merge.test.d.mts +2 -0
- package/dist/plugin-utils/merge.test.mjs +25 -0
- package/dist/plugin-utils/merge.test.mjs.map +1 -0
- package/dist/plugin-utils/modules.cjs +9 -1
- package/dist/plugin-utils/modules.mjs +4 -1
- package/dist/plugin-utils/modules.mjs.map +1 -1
- package/dist/plugin-utils/modules.test.cjs +23 -0
- package/dist/plugin-utils/modules.test.d.cts +1 -0
- package/dist/plugin-utils/modules.test.d.mts +2 -0
- package/dist/plugin-utils/modules.test.mjs +25 -0
- package/dist/plugin-utils/modules.test.mjs.map +1 -0
- package/dist/plugin-utils/paths.cjs +8 -0
- package/dist/plugin-utils/paths.mjs +3 -1
- package/dist/plugin-utils/paths.mjs.map +1 -1
- package/dist/plugin-utils/paths.test.cjs +23 -0
- package/dist/plugin-utils/paths.test.d.cts +1 -0
- package/dist/plugin-utils/paths.test.d.mts +2 -0
- package/dist/plugin-utils/paths.test.mjs +25 -0
- package/dist/plugin-utils/paths.test.mjs.map +1 -0
- package/dist/plugin-utils/virtual.cjs +17 -1
- package/dist/plugin-utils/virtual.mjs +12 -1
- package/dist/plugin-utils/virtual.mjs.map +1 -1
- package/dist/plugin-utils/virtual.test.cjs +23 -0
- package/dist/plugin-utils/virtual.test.d.cts +1 -0
- package/dist/plugin-utils/virtual.test.d.mts +2 -0
- package/dist/plugin-utils/virtual.test.mjs +25 -0
- package/dist/plugin-utils/virtual.test.mjs.map +1 -0
- package/dist/schemas/fs.d.cts.map +1 -1
- package/dist/schemas/fs.d.mts.map +1 -1
- package/dist/storage/base.cjs +9 -1
- package/dist/storage/base.d.cts.map +1 -1
- package/dist/storage/base.d.mts.map +1 -1
- package/dist/storage/base.mjs +3 -1
- package/dist/storage/base.mjs.map +1 -1
- package/dist/storage/base.test.cjs +23 -0
- package/dist/storage/base.test.d.cts +1 -0
- package/dist/storage/base.test.d.mts +2 -0
- package/dist/storage/base.test.mjs +25 -0
- package/dist/storage/base.test.mjs.map +1 -0
- package/dist/storage/file-system.cjs +9 -1
- package/dist/storage/file-system.mjs +3 -1
- package/dist/storage/file-system.mjs.map +1 -1
- package/dist/storage/file-system.test.cjs +23 -0
- package/dist/storage/file-system.test.d.cts +1 -0
- package/dist/storage/file-system.test.d.mts +2 -0
- package/dist/storage/file-system.test.mjs +25 -0
- package/dist/storage/file-system.test.mjs.map +1 -0
- package/dist/storage/helpers.cjs +12 -0
- package/dist/storage/helpers.mjs +7 -1
- package/dist/storage/helpers.mjs.map +1 -1
- package/dist/storage/helpers.test.cjs +23 -0
- package/dist/storage/helpers.test.d.cts +1 -0
- package/dist/storage/helpers.test.d.mts +2 -0
- package/dist/storage/helpers.test.mjs +25 -0
- package/dist/storage/helpers.test.mjs.map +1 -0
- package/dist/storage/virtual.cjs +9 -1
- package/dist/storage/virtual.d.cts.map +1 -1
- package/dist/storage/virtual.d.mts.map +1 -1
- package/dist/storage/virtual.mjs +3 -1
- package/dist/storage/virtual.mjs.map +1 -1
- package/dist/storage/virtual.test.cjs +23 -0
- package/dist/storage/virtual.test.d.cts +1 -0
- package/dist/storage/virtual.test.d.mts +2 -0
- package/dist/storage/virtual.test.mjs +25 -0
- package/dist/storage/virtual.test.mjs.map +1 -0
- package/package.json +257 -17
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import __tsdown_shims_path from 'node:path'
|
|
4
|
+
import __tsdown_shims_url from 'node:url'
|
|
5
|
+
|
|
6
|
+
const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
|
|
7
|
+
const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
|
|
8
|
+
|
|
9
|
+
import { HOOKS_LIST_ORDERS } from "./hooks.mjs";
|
|
10
|
+
import { describe, expect, it } from "vitest";
|
|
11
|
+
|
|
12
|
+
//#region src/constants/hooks.test.ts
|
|
13
|
+
describe("HOOKS_LIST_ORDERS", () => {
|
|
14
|
+
it("is an array", () => {
|
|
15
|
+
expect(Array.isArray(HOOKS_LIST_ORDERS)).toBe(true);
|
|
16
|
+
});
|
|
17
|
+
it("contains pre-ordered and post-ordered variants", () => {
|
|
18
|
+
expect(HOOKS_LIST_ORDERS).toContain("preOrdered");
|
|
19
|
+
expect(HOOKS_LIST_ORDERS).toContain("preEnforced");
|
|
20
|
+
expect(HOOKS_LIST_ORDERS).toContain("normal");
|
|
21
|
+
expect(HOOKS_LIST_ORDERS).toContain("postEnforced");
|
|
22
|
+
expect(HOOKS_LIST_ORDERS).toContain("postOrdered");
|
|
23
|
+
});
|
|
24
|
+
it("has exactly 5 entries", () => {
|
|
25
|
+
expect(HOOKS_LIST_ORDERS).toHaveLength(5);
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
|
|
29
|
+
//#endregion
|
|
30
|
+
export { };
|
|
31
|
+
//# sourceMappingURL=hooks.test.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.test.mjs","names":[],"sources":["../../src/constants/hooks.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport { HOOKS_LIST_ORDERS } from \"./hooks\";\n\ndescribe(\"HOOKS_LIST_ORDERS\", () => {\n it(\"is an array\", () => {\n expect(Array.isArray(HOOKS_LIST_ORDERS)).toBe(true);\n });\n\n it(\"contains pre-ordered and post-ordered variants\", () => {\n expect(HOOKS_LIST_ORDERS).toContain(\"preOrdered\");\n expect(HOOKS_LIST_ORDERS).toContain(\"preEnforced\");\n expect(HOOKS_LIST_ORDERS).toContain(\"normal\");\n expect(HOOKS_LIST_ORDERS).toContain(\"postEnforced\");\n expect(HOOKS_LIST_ORDERS).toContain(\"postOrdered\");\n });\n\n it(\"has exactly 5 entries\", () => {\n expect(HOOKS_LIST_ORDERS).toHaveLength(5);\n });\n});\n"],"mappings":";;;;;;;;;;;;AAGA,SAAS,2BAA2B;CAClC,GAAG,qBAAqB;EACtB,OAAO,MAAM,QAAQ,iBAAiB,CAAC,EAAE,KAAK,IAAI;CACpD,CAAC;CAED,GAAG,wDAAwD;EACzD,OAAO,iBAAiB,EAAE,UAAU,YAAY;EAChD,OAAO,iBAAiB,EAAE,UAAU,aAAa;EACjD,OAAO,iBAAiB,EAAE,UAAU,QAAQ;EAC5C,OAAO,iBAAiB,EAAE,UAAU,cAAc;EAClD,OAAO,iBAAiB,EAAE,UAAU,aAAa;CACnD,CAAC;CAED,GAAG,+BAA+B;EAChC,OAAO,iBAAiB,EAAE,aAAa,CAAC;CAC1C,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import __tsdown_shims_path from 'node:path'
|
|
4
|
+
import __tsdown_shims_url from 'node:url'
|
|
5
|
+
|
|
6
|
+
const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
|
|
7
|
+
const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
|
|
8
|
+
|
|
9
|
+
const require_constants_log_level = require('./log-level.cjs');
|
|
10
|
+
let vitest = require("vitest");
|
|
11
|
+
|
|
12
|
+
//#region src/constants/log-level.test.ts
|
|
13
|
+
(0, vitest.describe)("LogLevels", () => {
|
|
14
|
+
(0, vitest.it)("has all expected log level keys", () => {
|
|
15
|
+
(0, vitest.expect)(require_constants_log_level.LogLevels).toHaveProperty("SILENT");
|
|
16
|
+
(0, vitest.expect)(require_constants_log_level.LogLevels).toHaveProperty("ERROR");
|
|
17
|
+
(0, vitest.expect)(require_constants_log_level.LogLevels).toHaveProperty("WARN");
|
|
18
|
+
(0, vitest.expect)(require_constants_log_level.LogLevels).toHaveProperty("INFO");
|
|
19
|
+
(0, vitest.expect)(require_constants_log_level.LogLevels).toHaveProperty("DEBUG");
|
|
20
|
+
(0, vitest.expect)(require_constants_log_level.LogLevels).toHaveProperty("TRACE");
|
|
21
|
+
});
|
|
22
|
+
(0, vitest.it)("has correct string values for each level", () => {
|
|
23
|
+
(0, vitest.expect)(require_constants_log_level.LogLevels.SILENT).toBe("silent");
|
|
24
|
+
(0, vitest.expect)(require_constants_log_level.LogLevels.ERROR).toBe("error");
|
|
25
|
+
(0, vitest.expect)(require_constants_log_level.LogLevels.WARN).toBe("warn");
|
|
26
|
+
(0, vitest.expect)(require_constants_log_level.LogLevels.INFO).toBe("info");
|
|
27
|
+
(0, vitest.expect)(require_constants_log_level.LogLevels.DEBUG).toBe("debug");
|
|
28
|
+
(0, vitest.expect)(require_constants_log_level.LogLevels.TRACE).toBe("trace");
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
(0, vitest.describe)("LOG_LEVELS", () => {
|
|
32
|
+
(0, vitest.it)("is an array containing all log level values", () => {
|
|
33
|
+
(0, vitest.expect)(Array.isArray(require_constants_log_level.LOG_LEVELS)).toBe(true);
|
|
34
|
+
(0, vitest.expect)(require_constants_log_level.LOG_LEVELS).toContain("silent");
|
|
35
|
+
(0, vitest.expect)(require_constants_log_level.LOG_LEVELS).toContain("error");
|
|
36
|
+
(0, vitest.expect)(require_constants_log_level.LOG_LEVELS).toContain("warn");
|
|
37
|
+
(0, vitest.expect)(require_constants_log_level.LOG_LEVELS).toContain("info");
|
|
38
|
+
(0, vitest.expect)(require_constants_log_level.LOG_LEVELS).toContain("debug");
|
|
39
|
+
(0, vitest.expect)(require_constants_log_level.LOG_LEVELS).toContain("trace");
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
(0, vitest.describe)("LogCategories", () => {
|
|
43
|
+
(0, vitest.it)("has all expected category keys", () => {
|
|
44
|
+
(0, vitest.expect)(require_constants_log_level.LogCategories).toHaveProperty("GENERAL");
|
|
45
|
+
(0, vitest.expect)(require_constants_log_level.LogCategories).toHaveProperty("FS");
|
|
46
|
+
(0, vitest.expect)(require_constants_log_level.LogCategories).toHaveProperty("PERFORMANCE");
|
|
47
|
+
(0, vitest.expect)(require_constants_log_level.LogCategories).toHaveProperty("CONFIG");
|
|
48
|
+
(0, vitest.expect)(require_constants_log_level.LogCategories).toHaveProperty("PLUGINS");
|
|
49
|
+
(0, vitest.expect)(require_constants_log_level.LogCategories).toHaveProperty("HOOKS");
|
|
50
|
+
(0, vitest.expect)(require_constants_log_level.LogCategories).toHaveProperty("SCHEMA");
|
|
51
|
+
(0, vitest.expect)(require_constants_log_level.LogCategories).toHaveProperty("ENV");
|
|
52
|
+
(0, vitest.expect)(require_constants_log_level.LogCategories).toHaveProperty("RPC");
|
|
53
|
+
});
|
|
54
|
+
(0, vitest.it)("has correct string values", () => {
|
|
55
|
+
(0, vitest.expect)(require_constants_log_level.LogCategories.GENERAL).toBe("general");
|
|
56
|
+
(0, vitest.expect)(require_constants_log_level.LogCategories.FS).toBe("fs");
|
|
57
|
+
(0, vitest.expect)(require_constants_log_level.LogCategories.CONFIG).toBe("config");
|
|
58
|
+
(0, vitest.expect)(require_constants_log_level.LogCategories.PLUGINS).toBe("plugins");
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
(0, vitest.describe)("LOG_CATEGORIES_ARRAY", () => {
|
|
62
|
+
(0, vitest.it)("contains all category values", () => {
|
|
63
|
+
(0, vitest.expect)(Array.isArray(require_constants_log_level.LOG_CATEGORIES_ARRAY)).toBe(true);
|
|
64
|
+
(0, vitest.expect)(require_constants_log_level.LOG_CATEGORIES_ARRAY.length).toBeGreaterThan(0);
|
|
65
|
+
(0, vitest.expect)(require_constants_log_level.LOG_CATEGORIES_ARRAY).toContain("general");
|
|
66
|
+
(0, vitest.expect)(require_constants_log_level.LOG_CATEGORIES_ARRAY).toContain("config");
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
(0, vitest.describe)("LOG_CATEGORIES", () => {
|
|
70
|
+
(0, vitest.it)("is an array of category strings", () => {
|
|
71
|
+
(0, vitest.expect)(Array.isArray(require_constants_log_level.LOG_CATEGORIES)).toBe(true);
|
|
72
|
+
(0, vitest.expect)(require_constants_log_level.LOG_CATEGORIES).toContain("general");
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import __tsdown_shims_path from 'node:path'
|
|
4
|
+
import __tsdown_shims_url from 'node:url'
|
|
5
|
+
|
|
6
|
+
const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
|
|
7
|
+
const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
|
|
8
|
+
|
|
9
|
+
import { LOG_CATEGORIES, LOG_CATEGORIES_ARRAY, LOG_LEVELS, LogCategories, LogLevels } from "./log-level.mjs";
|
|
10
|
+
import { describe, expect, it } from "vitest";
|
|
11
|
+
|
|
12
|
+
//#region src/constants/log-level.test.ts
|
|
13
|
+
describe("LogLevels", () => {
|
|
14
|
+
it("has all expected log level keys", () => {
|
|
15
|
+
expect(LogLevels).toHaveProperty("SILENT");
|
|
16
|
+
expect(LogLevels).toHaveProperty("ERROR");
|
|
17
|
+
expect(LogLevels).toHaveProperty("WARN");
|
|
18
|
+
expect(LogLevels).toHaveProperty("INFO");
|
|
19
|
+
expect(LogLevels).toHaveProperty("DEBUG");
|
|
20
|
+
expect(LogLevels).toHaveProperty("TRACE");
|
|
21
|
+
});
|
|
22
|
+
it("has correct string values for each level", () => {
|
|
23
|
+
expect(LogLevels.SILENT).toBe("silent");
|
|
24
|
+
expect(LogLevels.ERROR).toBe("error");
|
|
25
|
+
expect(LogLevels.WARN).toBe("warn");
|
|
26
|
+
expect(LogLevels.INFO).toBe("info");
|
|
27
|
+
expect(LogLevels.DEBUG).toBe("debug");
|
|
28
|
+
expect(LogLevels.TRACE).toBe("trace");
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
describe("LOG_LEVELS", () => {
|
|
32
|
+
it("is an array containing all log level values", () => {
|
|
33
|
+
expect(Array.isArray(LOG_LEVELS)).toBe(true);
|
|
34
|
+
expect(LOG_LEVELS).toContain("silent");
|
|
35
|
+
expect(LOG_LEVELS).toContain("error");
|
|
36
|
+
expect(LOG_LEVELS).toContain("warn");
|
|
37
|
+
expect(LOG_LEVELS).toContain("info");
|
|
38
|
+
expect(LOG_LEVELS).toContain("debug");
|
|
39
|
+
expect(LOG_LEVELS).toContain("trace");
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
describe("LogCategories", () => {
|
|
43
|
+
it("has all expected category keys", () => {
|
|
44
|
+
expect(LogCategories).toHaveProperty("GENERAL");
|
|
45
|
+
expect(LogCategories).toHaveProperty("FS");
|
|
46
|
+
expect(LogCategories).toHaveProperty("PERFORMANCE");
|
|
47
|
+
expect(LogCategories).toHaveProperty("CONFIG");
|
|
48
|
+
expect(LogCategories).toHaveProperty("PLUGINS");
|
|
49
|
+
expect(LogCategories).toHaveProperty("HOOKS");
|
|
50
|
+
expect(LogCategories).toHaveProperty("SCHEMA");
|
|
51
|
+
expect(LogCategories).toHaveProperty("ENV");
|
|
52
|
+
expect(LogCategories).toHaveProperty("RPC");
|
|
53
|
+
});
|
|
54
|
+
it("has correct string values", () => {
|
|
55
|
+
expect(LogCategories.GENERAL).toBe("general");
|
|
56
|
+
expect(LogCategories.FS).toBe("fs");
|
|
57
|
+
expect(LogCategories.CONFIG).toBe("config");
|
|
58
|
+
expect(LogCategories.PLUGINS).toBe("plugins");
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
describe("LOG_CATEGORIES_ARRAY", () => {
|
|
62
|
+
it("contains all category values", () => {
|
|
63
|
+
expect(Array.isArray(LOG_CATEGORIES_ARRAY)).toBe(true);
|
|
64
|
+
expect(LOG_CATEGORIES_ARRAY.length).toBeGreaterThan(0);
|
|
65
|
+
expect(LOG_CATEGORIES_ARRAY).toContain("general");
|
|
66
|
+
expect(LOG_CATEGORIES_ARRAY).toContain("config");
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
describe("LOG_CATEGORIES", () => {
|
|
70
|
+
it("is an array of category strings", () => {
|
|
71
|
+
expect(Array.isArray(LOG_CATEGORIES)).toBe(true);
|
|
72
|
+
expect(LOG_CATEGORIES).toContain("general");
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
|
|
76
|
+
//#endregion
|
|
77
|
+
export { };
|
|
78
|
+
//# sourceMappingURL=log-level.test.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"log-level.test.mjs","names":[],"sources":["../../src/constants/log-level.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport {\n LOG_CATEGORIES,\n LOG_CATEGORIES_ARRAY,\n LOG_LEVELS,\n LogCategories,\n LogLevels\n} from \"./log-level\";\n\ndescribe(\"LogLevels\", () => {\n it(\"has all expected log level keys\", () => {\n expect(LogLevels).toHaveProperty(\"SILENT\");\n expect(LogLevels).toHaveProperty(\"ERROR\");\n expect(LogLevels).toHaveProperty(\"WARN\");\n expect(LogLevels).toHaveProperty(\"INFO\");\n expect(LogLevels).toHaveProperty(\"DEBUG\");\n expect(LogLevels).toHaveProperty(\"TRACE\");\n });\n\n it(\"has correct string values for each level\", () => {\n expect(LogLevels.SILENT).toBe(\"silent\");\n expect(LogLevels.ERROR).toBe(\"error\");\n expect(LogLevels.WARN).toBe(\"warn\");\n expect(LogLevels.INFO).toBe(\"info\");\n expect(LogLevels.DEBUG).toBe(\"debug\");\n expect(LogLevels.TRACE).toBe(\"trace\");\n });\n});\n\ndescribe(\"LOG_LEVELS\", () => {\n it(\"is an array containing all log level values\", () => {\n expect(Array.isArray(LOG_LEVELS)).toBe(true);\n expect(LOG_LEVELS).toContain(\"silent\");\n expect(LOG_LEVELS).toContain(\"error\");\n expect(LOG_LEVELS).toContain(\"warn\");\n expect(LOG_LEVELS).toContain(\"info\");\n expect(LOG_LEVELS).toContain(\"debug\");\n expect(LOG_LEVELS).toContain(\"trace\");\n });\n});\n\ndescribe(\"LogCategories\", () => {\n it(\"has all expected category keys\", () => {\n expect(LogCategories).toHaveProperty(\"GENERAL\");\n expect(LogCategories).toHaveProperty(\"FS\");\n expect(LogCategories).toHaveProperty(\"PERFORMANCE\");\n expect(LogCategories).toHaveProperty(\"CONFIG\");\n expect(LogCategories).toHaveProperty(\"PLUGINS\");\n expect(LogCategories).toHaveProperty(\"HOOKS\");\n expect(LogCategories).toHaveProperty(\"SCHEMA\");\n expect(LogCategories).toHaveProperty(\"ENV\");\n expect(LogCategories).toHaveProperty(\"RPC\");\n });\n\n it(\"has correct string values\", () => {\n expect(LogCategories.GENERAL).toBe(\"general\");\n expect(LogCategories.FS).toBe(\"fs\");\n expect(LogCategories.CONFIG).toBe(\"config\");\n expect(LogCategories.PLUGINS).toBe(\"plugins\");\n });\n});\n\ndescribe(\"LOG_CATEGORIES_ARRAY\", () => {\n it(\"contains all category values\", () => {\n expect(Array.isArray(LOG_CATEGORIES_ARRAY)).toBe(true);\n expect(LOG_CATEGORIES_ARRAY.length).toBeGreaterThan(0);\n expect(LOG_CATEGORIES_ARRAY).toContain(\"general\");\n expect(LOG_CATEGORIES_ARRAY).toContain(\"config\");\n });\n});\n\ndescribe(\"LOG_CATEGORIES\", () => {\n it(\"is an array of category strings\", () => {\n expect(Array.isArray(LOG_CATEGORIES)).toBe(true);\n expect(LOG_CATEGORIES).toContain(\"general\");\n });\n});\n"],"mappings":";;;;;;;;;;;;AASA,SAAS,mBAAmB;CAC1B,GAAG,yCAAyC;EAC1C,OAAO,SAAS,EAAE,eAAe,QAAQ;EACzC,OAAO,SAAS,EAAE,eAAe,OAAO;EACxC,OAAO,SAAS,EAAE,eAAe,MAAM;EACvC,OAAO,SAAS,EAAE,eAAe,MAAM;EACvC,OAAO,SAAS,EAAE,eAAe,OAAO;EACxC,OAAO,SAAS,EAAE,eAAe,OAAO;CAC1C,CAAC;CAED,GAAG,kDAAkD;EACnD,OAAO,UAAU,MAAM,EAAE,KAAK,QAAQ;EACtC,OAAO,UAAU,KAAK,EAAE,KAAK,OAAO;EACpC,OAAO,UAAU,IAAI,EAAE,KAAK,MAAM;EAClC,OAAO,UAAU,IAAI,EAAE,KAAK,MAAM;EAClC,OAAO,UAAU,KAAK,EAAE,KAAK,OAAO;EACpC,OAAO,UAAU,KAAK,EAAE,KAAK,OAAO;CACtC,CAAC;AACH,CAAC;AAED,SAAS,oBAAoB;CAC3B,GAAG,qDAAqD;EACtD,OAAO,MAAM,QAAQ,UAAU,CAAC,EAAE,KAAK,IAAI;EAC3C,OAAO,UAAU,EAAE,UAAU,QAAQ;EACrC,OAAO,UAAU,EAAE,UAAU,OAAO;EACpC,OAAO,UAAU,EAAE,UAAU,MAAM;EACnC,OAAO,UAAU,EAAE,UAAU,MAAM;EACnC,OAAO,UAAU,EAAE,UAAU,OAAO;EACpC,OAAO,UAAU,EAAE,UAAU,OAAO;CACtC,CAAC;AACH,CAAC;AAED,S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
const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
|
|
8
|
+
|
|
9
|
+
const require_constants_meta = require('./meta.cjs');
|
|
10
|
+
let vitest = require("vitest");
|
|
11
|
+
|
|
12
|
+
//#region src/constants/meta.test.ts
|
|
13
|
+
(0, vitest.describe)("hash length constants", () => {
|
|
14
|
+
(0, vitest.it)("ROOT_HASH_LENGTH is a positive number", () => {
|
|
15
|
+
(0, vitest.expect)(typeof 45).toBe("number");
|
|
16
|
+
(0, vitest.expect)(45).toBeGreaterThan(0);
|
|
17
|
+
});
|
|
18
|
+
(0, vitest.it)("CACHE_HASH_LENGTH is a positive number", () => {
|
|
19
|
+
(0, vitest.expect)(typeof 62).toBe("number");
|
|
20
|
+
(0, vitest.expect)(62).toBeGreaterThan(0);
|
|
21
|
+
});
|
|
22
|
+
(0, vitest.it)("CACHE_HASH_LENGTH is greater than ROOT_HASH_LENGTH", () => {
|
|
23
|
+
(0, vitest.expect)(62).toBeGreaterThan(45);
|
|
24
|
+
});
|
|
25
|
+
(0, vitest.it)("ROOT_HASH_LENGTH equals 45", () => {
|
|
26
|
+
(0, vitest.expect)(45).toBe(45);
|
|
27
|
+
});
|
|
28
|
+
(0, vitest.it)("CACHE_HASH_LENGTH equals 62", () => {
|
|
29
|
+
(0, vitest.expect)(62).toBe(62);
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import __tsdown_shims_path from 'node:path'
|
|
4
|
+
import __tsdown_shims_url from 'node:url'
|
|
5
|
+
|
|
6
|
+
const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
|
|
7
|
+
const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
|
|
8
|
+
|
|
9
|
+
import { CACHE_HASH_LENGTH, ROOT_HASH_LENGTH } from "./meta.mjs";
|
|
10
|
+
import { describe, expect, it } from "vitest";
|
|
11
|
+
|
|
12
|
+
//#region src/constants/meta.test.ts
|
|
13
|
+
describe("hash length constants", () => {
|
|
14
|
+
it("ROOT_HASH_LENGTH is a positive number", () => {
|
|
15
|
+
expect(typeof 45).toBe("number");
|
|
16
|
+
expect(45).toBeGreaterThan(0);
|
|
17
|
+
});
|
|
18
|
+
it("CACHE_HASH_LENGTH is a positive number", () => {
|
|
19
|
+
expect(typeof 62).toBe("number");
|
|
20
|
+
expect(62).toBeGreaterThan(0);
|
|
21
|
+
});
|
|
22
|
+
it("CACHE_HASH_LENGTH is greater than ROOT_HASH_LENGTH", () => {
|
|
23
|
+
expect(62).toBeGreaterThan(45);
|
|
24
|
+
});
|
|
25
|
+
it("ROOT_HASH_LENGTH equals 45", () => {
|
|
26
|
+
expect(45).toBe(45);
|
|
27
|
+
});
|
|
28
|
+
it("CACHE_HASH_LENGTH equals 62", () => {
|
|
29
|
+
expect(62).toBe(62);
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
export { };
|
|
35
|
+
//# sourceMappingURL=meta.test.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"meta.test.mjs","names":[],"sources":["../../src/constants/meta.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport { CACHE_HASH_LENGTH, ROOT_HASH_LENGTH } from \"./meta\";\n\ndescribe(\"hash length constants\", () => {\n it(\"ROOT_HASH_LENGTH is a positive number\", () => {\n expect(typeof ROOT_HASH_LENGTH).toBe(\"number\");\n expect(ROOT_HASH_LENGTH).toBeGreaterThan(0);\n });\n\n it(\"CACHE_HASH_LENGTH is a positive number\", () => {\n expect(typeof CACHE_HASH_LENGTH).toBe(\"number\");\n expect(CACHE_HASH_LENGTH).toBeGreaterThan(0);\n });\n\n it(\"CACHE_HASH_LENGTH is greater than ROOT_HASH_LENGTH\", () => {\n expect(CACHE_HASH_LENGTH).toBeGreaterThan(ROOT_HASH_LENGTH);\n });\n\n it(\"ROOT_HASH_LENGTH equals 45\", () => {\n expect(ROOT_HASH_LENGTH).toBe(45);\n });\n\n it(\"CACHE_HASH_LENGTH equals 62\", () => {\n expect(CACHE_HASH_LENGTH).toBe(62);\n });\n});\n"],"mappings":";;;;;;;;;;;;AAGA,SAAS,+BAA+B;CACtC,GAAG,+CAA+C;EAChD,OAAO,SAAuB,EAAE,KAAK,QAAQ;EAC7C,SAAuB,EAAE,gBAAgB,CAAC;CAC5C,CAAC;CAED,GAAG,gDAAgD;EACjD,OAAO,SAAwB,EAAE,KAAK,QAAQ;EAC9C,SAAwB,EAAE,gBAAgB,CAAC;CAC7C,CAAC;CAED,GAAG,4DAA4D;EAC7D,SAAwB,EAAE,kBAAgC;CAC5D,CAAC;CAED,GAAG,oCAAoC;EACrC,SAAuB,EAAE,KAAK,EAAE;CAClC,CAAC;CAED,GAAG,qCAAqC;EACtC,SAAwB,EAAE,KAAK,EAAE;CACnC,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import __tsdown_shims_path from 'node:path'
|
|
4
|
+
import __tsdown_shims_url from 'node:url'
|
|
5
|
+
|
|
6
|
+
const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
|
|
7
|
+
const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
|
|
8
|
+
|
|
9
|
+
const require_constants_plugin = require('./plugin.cjs');
|
|
10
|
+
let vitest = require("vitest");
|
|
11
|
+
|
|
12
|
+
//#region src/constants/plugin.test.ts
|
|
13
|
+
(0, vitest.describe)("UNPLUGIN_BUILDER_VARIANTS", () => {
|
|
14
|
+
(0, vitest.it)("is an array", () => {
|
|
15
|
+
(0, vitest.expect)(Array.isArray(require_constants_plugin.UNPLUGIN_BUILDER_VARIANTS)).toBe(true);
|
|
16
|
+
});
|
|
17
|
+
(0, vitest.it)("contains common bundler names", () => {
|
|
18
|
+
(0, vitest.expect)(require_constants_plugin.UNPLUGIN_BUILDER_VARIANTS).toContain("rollup");
|
|
19
|
+
(0, vitest.expect)(require_constants_plugin.UNPLUGIN_BUILDER_VARIANTS).toContain("webpack");
|
|
20
|
+
(0, vitest.expect)(require_constants_plugin.UNPLUGIN_BUILDER_VARIANTS).toContain("vite");
|
|
21
|
+
(0, vitest.expect)(require_constants_plugin.UNPLUGIN_BUILDER_VARIANTS).toContain("esbuild");
|
|
22
|
+
(0, vitest.expect)(require_constants_plugin.UNPLUGIN_BUILDER_VARIANTS).toContain("rolldown");
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
(0, vitest.describe)("BUILDER_VARIANTS", () => {
|
|
26
|
+
(0, vitest.it)("contains all unplugin variants plus extras", () => {
|
|
27
|
+
for (const variant of require_constants_plugin.UNPLUGIN_BUILDER_VARIANTS) (0, vitest.expect)(require_constants_plugin.BUILDER_VARIANTS).toContain(variant);
|
|
28
|
+
(0, vitest.expect)(require_constants_plugin.BUILDER_VARIANTS).toContain("tsup");
|
|
29
|
+
(0, vitest.expect)(require_constants_plugin.BUILDER_VARIANTS).toContain("tsdown");
|
|
30
|
+
(0, vitest.expect)(require_constants_plugin.BUILDER_VARIANTS).toContain("unbuild");
|
|
31
|
+
});
|
|
32
|
+
(0, vitest.it)("is larger than UNPLUGIN_BUILDER_VARIANTS", () => {
|
|
33
|
+
(0, vitest.expect)(require_constants_plugin.BUILDER_VARIANTS.length).toBeGreaterThan(require_constants_plugin.UNPLUGIN_BUILDER_VARIANTS.length);
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
(0, vitest.describe)("PLUGIN_NON_HOOK_FIELDS", () => {
|
|
37
|
+
(0, vitest.it)("is an array", () => {
|
|
38
|
+
(0, vitest.expect)(Array.isArray(require_constants_plugin.PLUGIN_NON_HOOK_FIELDS)).toBe(true);
|
|
39
|
+
});
|
|
40
|
+
(0, vitest.it)("contains expected plugin fields", () => {
|
|
41
|
+
(0, vitest.expect)(require_constants_plugin.PLUGIN_NON_HOOK_FIELDS).toContain("name");
|
|
42
|
+
(0, vitest.expect)(require_constants_plugin.PLUGIN_NON_HOOK_FIELDS).toContain("api");
|
|
43
|
+
(0, vitest.expect)(require_constants_plugin.PLUGIN_NON_HOOK_FIELDS).toContain("enforce");
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
(0, vitest.describe)("PLUGIN_HOOKS_FIELDS", () => {
|
|
47
|
+
(0, vitest.it)("is an array", () => {
|
|
48
|
+
(0, vitest.expect)(Array.isArray(require_constants_plugin.PLUGIN_HOOKS_FIELDS)).toBe(true);
|
|
49
|
+
});
|
|
50
|
+
(0, vitest.it)("contains common build lifecycle hooks", () => {
|
|
51
|
+
(0, vitest.expect)(require_constants_plugin.PLUGIN_HOOKS_FIELDS).toContain("build");
|
|
52
|
+
(0, vitest.expect)(require_constants_plugin.PLUGIN_HOOKS_FIELDS).toContain("buildStart");
|
|
53
|
+
(0, vitest.expect)(require_constants_plugin.PLUGIN_HOOKS_FIELDS).toContain("buildEnd");
|
|
54
|
+
(0, vitest.expect)(require_constants_plugin.PLUGIN_HOOKS_FIELDS).toContain("config");
|
|
55
|
+
(0, vitest.expect)(require_constants_plugin.PLUGIN_HOOKS_FIELDS).toContain("transform");
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import __tsdown_shims_path from 'node:path'
|
|
4
|
+
import __tsdown_shims_url from 'node:url'
|
|
5
|
+
|
|
6
|
+
const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
|
|
7
|
+
const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
|
|
8
|
+
|
|
9
|
+
import { BUILDER_VARIANTS, PLUGIN_HOOKS_FIELDS, PLUGIN_NON_HOOK_FIELDS, UNPLUGIN_BUILDER_VARIANTS } from "./plugin.mjs";
|
|
10
|
+
import { describe, expect, it } from "vitest";
|
|
11
|
+
|
|
12
|
+
//#region src/constants/plugin.test.ts
|
|
13
|
+
describe("UNPLUGIN_BUILDER_VARIANTS", () => {
|
|
14
|
+
it("is an array", () => {
|
|
15
|
+
expect(Array.isArray(UNPLUGIN_BUILDER_VARIANTS)).toBe(true);
|
|
16
|
+
});
|
|
17
|
+
it("contains common bundler names", () => {
|
|
18
|
+
expect(UNPLUGIN_BUILDER_VARIANTS).toContain("rollup");
|
|
19
|
+
expect(UNPLUGIN_BUILDER_VARIANTS).toContain("webpack");
|
|
20
|
+
expect(UNPLUGIN_BUILDER_VARIANTS).toContain("vite");
|
|
21
|
+
expect(UNPLUGIN_BUILDER_VARIANTS).toContain("esbuild");
|
|
22
|
+
expect(UNPLUGIN_BUILDER_VARIANTS).toContain("rolldown");
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
describe("BUILDER_VARIANTS", () => {
|
|
26
|
+
it("contains all unplugin variants plus extras", () => {
|
|
27
|
+
for (const variant of UNPLUGIN_BUILDER_VARIANTS) expect(BUILDER_VARIANTS).toContain(variant);
|
|
28
|
+
expect(BUILDER_VARIANTS).toContain("tsup");
|
|
29
|
+
expect(BUILDER_VARIANTS).toContain("tsdown");
|
|
30
|
+
expect(BUILDER_VARIANTS).toContain("unbuild");
|
|
31
|
+
});
|
|
32
|
+
it("is larger than UNPLUGIN_BUILDER_VARIANTS", () => {
|
|
33
|
+
expect(BUILDER_VARIANTS.length).toBeGreaterThan(UNPLUGIN_BUILDER_VARIANTS.length);
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
describe("PLUGIN_NON_HOOK_FIELDS", () => {
|
|
37
|
+
it("is an array", () => {
|
|
38
|
+
expect(Array.isArray(PLUGIN_NON_HOOK_FIELDS)).toBe(true);
|
|
39
|
+
});
|
|
40
|
+
it("contains expected plugin fields", () => {
|
|
41
|
+
expect(PLUGIN_NON_HOOK_FIELDS).toContain("name");
|
|
42
|
+
expect(PLUGIN_NON_HOOK_FIELDS).toContain("api");
|
|
43
|
+
expect(PLUGIN_NON_HOOK_FIELDS).toContain("enforce");
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
describe("PLUGIN_HOOKS_FIELDS", () => {
|
|
47
|
+
it("is an array", () => {
|
|
48
|
+
expect(Array.isArray(PLUGIN_HOOKS_FIELDS)).toBe(true);
|
|
49
|
+
});
|
|
50
|
+
it("contains common build lifecycle hooks", () => {
|
|
51
|
+
expect(PLUGIN_HOOKS_FIELDS).toContain("build");
|
|
52
|
+
expect(PLUGIN_HOOKS_FIELDS).toContain("buildStart");
|
|
53
|
+
expect(PLUGIN_HOOKS_FIELDS).toContain("buildEnd");
|
|
54
|
+
expect(PLUGIN_HOOKS_FIELDS).toContain("config");
|
|
55
|
+
expect(PLUGIN_HOOKS_FIELDS).toContain("transform");
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
//#endregion
|
|
60
|
+
export { };
|
|
61
|
+
//# sourceMappingURL=plugin.test.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.test.mjs","names":[],"sources":["../../src/constants/plugin.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport {\n BUILDER_VARIANTS,\n PLUGIN_HOOKS_FIELDS,\n PLUGIN_NON_HOOK_FIELDS,\n UNPLUGIN_BUILDER_VARIANTS\n} from \"./plugin\";\n\ndescribe(\"UNPLUGIN_BUILDER_VARIANTS\", () => {\n it(\"is an array\", () => {\n expect(Array.isArray(UNPLUGIN_BUILDER_VARIANTS)).toBe(true);\n });\n\n it(\"contains common bundler names\", () => {\n expect(UNPLUGIN_BUILDER_VARIANTS).toContain(\"rollup\");\n expect(UNPLUGIN_BUILDER_VARIANTS).toContain(\"webpack\");\n expect(UNPLUGIN_BUILDER_VARIANTS).toContain(\"vite\");\n expect(UNPLUGIN_BUILDER_VARIANTS).toContain(\"esbuild\");\n expect(UNPLUGIN_BUILDER_VARIANTS).toContain(\"rolldown\");\n });\n});\n\ndescribe(\"BUILDER_VARIANTS\", () => {\n it(\"contains all unplugin variants plus extras\", () => {\n for (const variant of UNPLUGIN_BUILDER_VARIANTS) {\n expect(BUILDER_VARIANTS).toContain(variant);\n }\n expect(BUILDER_VARIANTS).toContain(\"tsup\");\n expect(BUILDER_VARIANTS).toContain(\"tsdown\");\n expect(BUILDER_VARIANTS).toContain(\"unbuild\");\n });\n\n it(\"is larger than UNPLUGIN_BUILDER_VARIANTS\", () => {\n expect(BUILDER_VARIANTS.length).toBeGreaterThan(\n UNPLUGIN_BUILDER_VARIANTS.length\n );\n });\n});\n\ndescribe(\"PLUGIN_NON_HOOK_FIELDS\", () => {\n it(\"is an array\", () => {\n expect(Array.isArray(PLUGIN_NON_HOOK_FIELDS)).toBe(true);\n });\n\n it(\"contains expected plugin fields\", () => {\n expect(PLUGIN_NON_HOOK_FIELDS).toContain(\"name\");\n expect(PLUGIN_NON_HOOK_FIELDS).toContain(\"api\");\n expect(PLUGIN_NON_HOOK_FIELDS).toContain(\"enforce\");\n });\n});\n\ndescribe(\"PLUGIN_HOOKS_FIELDS\", () => {\n it(\"is an array\", () => {\n expect(Array.isArray(PLUGIN_HOOKS_FIELDS)).toBe(true);\n });\n\n it(\"contains common build lifecycle hooks\", () => {\n expect(PLUGIN_HOOKS_FIELDS).toContain(\"build\");\n expect(PLUGIN_HOOKS_FIELDS).toContain(\"buildStart\");\n expect(PLUGIN_HOOKS_FIELDS).toContain(\"buildE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OAAO;EAC7C,OAAO,mBAAmB,EAAE,UAAU,YAAY;EAClD,OAAO,mBAAmB,EAAE,UAAU,UAAU;EAChD,OAAO,mBAAmB,EAAE,UAAU,QAAQ;EAC9C,OAAO,mBAAmB,EAAE,UAAU,WAAW;CACnD,CAAC;AACH,CAAC"}
|
|
@@ -14,6 +14,7 @@ chalk = require_runtime.__toESM(chalk, 1);
|
|
|
14
14
|
let date_fns_formatDistanceToNowStrict = require("date-fns/formatDistanceToNowStrict");
|
|
15
15
|
|
|
16
16
|
//#region src/context/base-context.ts
|
|
17
|
+
var base_context_exports = /* @__PURE__ */ require_runtime.__exportAll({ PowerlinesBaseContext: () => PowerlinesBaseContext });
|
|
17
18
|
var PowerlinesBaseContext = class {
|
|
18
19
|
options;
|
|
19
20
|
#timestamp = Date.now();
|
|
@@ -126,4 +127,10 @@ var PowerlinesBaseContext = class {
|
|
|
126
127
|
};
|
|
127
128
|
|
|
128
129
|
//#endregion
|
|
129
|
-
exports.PowerlinesBaseContext = PowerlinesBaseContext;
|
|
130
|
+
exports.PowerlinesBaseContext = PowerlinesBaseContext;
|
|
131
|
+
Object.defineProperty(exports, 'base_context_exports', {
|
|
132
|
+
enumerable: true,
|
|
133
|
+
get: function () {
|
|
134
|
+
return base_context_exports;
|
|
135
|
+
}
|
|
136
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-context.d.cts","names":[],"sources":["../../src/context/base-context.ts"],"mappings":";;;;;;uBA0BsB,qBAAA,sCAET,WAAA,CAAY,cAAA;EAAA;EA0BM,OAAA,EAAS,OAAA;EAvB/B,cAAA;EAEA,MAAA,EAAS,cAAA;EAAA,aAEI,QAAA,
|
|
1
|
+
{"version":3,"file":"base-context.d.cts","names":[],"sources":["../../src/context/base-context.ts"],"mappings":";;;;;;uBA0BsB,qBAAA,sCAET,WAAA,CAAY,cAAA;EAAA;EA0BM,OAAA,EAAS,OAAA;EAvB/B,cAAA;EAEA,MAAA,EAAS,cAAA;EAAA,aAEI,QAAA,IAAY,QAAA;EAAA,IAErB,MAAA,IAAU,MAAA;EAAA,IAIV,GAAA;EAAA,IAIA,SAAA;EARU;;;;;EAAA,UAiBZ,WAAA,CAAoB,OAAA,EAAS,OAAA;EAAA,SAEtB,YAAA,CAAa,OAAA,GAAU,aAAA,EAAe,KAAA,GAAQ,KAAA,GAAQ,MAAA;EAE/D,YAAA,CAAa,OAAA,EAAS,aAAA,GAAa,MAAA;EASE;;;;;EAArC,KAAA,CAAM,OAAA,WAAkB,UAAA,GAAa,KAAA;EA6Db;;;;;EA5CxB,KAAA,CAAM,OAAA,WAAkB,UAAA,GAAa,KAAA;EAxDjC;;;;;EAyEJ,IAAA,CAAK,OAAA,WAAkB,UAAA;EApEvB;;;;;EA6EA,IAAA,CAAK,OAAA,WAAkB,UAAA;EArEnB;;;;;EA8EJ,KAAA,CAAM,OAAA,WAAkB,UAAA;EA/DQ;;;;;EAwEhC,KAAA,CAAM,OAAA,WAAkB,UAAA;EAtEF;;;;;;;;;;;;;EAuFtB,KAAA,CAAM,IAAA;EAnCN;;;EAAA,UAyDS,IAAA,IAAI,OAAA;AAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-context.d.mts","names":[],"sources":["../../src/context/base-context.ts"],"mappings":";;;;;;;;uBA0BsB,qBAAA,sCAET,WAAA,CAAY,cAAA;EAAA;EA0BM,OAAA,EAAS,OAAA;EAvB/B,cAAA;EAEA,MAAA,EAAS,cAAA;EAAA,aAEI,QAAA,
|
|
1
|
+
{"version":3,"file":"base-context.d.mts","names":[],"sources":["../../src/context/base-context.ts"],"mappings":";;;;;;;;uBA0BsB,qBAAA,sCAET,WAAA,CAAY,cAAA;EAAA;EA0BM,OAAA,EAAS,OAAA;EAvB/B,cAAA;EAEA,MAAA,EAAS,cAAA;EAAA,aAEI,QAAA,IAAY,QAAA;EAAA,IAErB,MAAA,IAAU,MAAA;EAAA,IAIV,GAAA;EAAA,IAIA,SAAA;;AAnBb;;;;YA4BW,WAAA,CAAoB,OAAA,EAAS,OAAA;EAAA,SAEtB,YAAA,CAAa,OAAA,GAAU,aAAA,EAAe,KAAA,GAAQ,KAAA,GAAQ,MAAA;EAE/D,YAAA,CAAa,OAAA,EAAS,aAAA,GAAa,MAAA;EArBrB;;;;;EA8Bd,KAAA,CAAM,OAAA,WAAkB,UAAA,GAAa,KAAA;EATF;;;;;EA0BnC,KAAA,CAAM,OAAA,WAAkB,UAAA,GAAa,KAAA;EA0Bd;;;;;EATvB,IAAA,CAAK,OAAA,WAAkB,UAAA;EAzER;;;;;EAkFf,IAAA,CAAK,OAAA,WAAkB,UAAA;EAxDQ;;;;;EAiE/B,KAAA,CAAM,OAAA,WAAkB,UAAA;EAlFpB;;;;;EA2FJ,KAAA,CAAM,OAAA,WAAkB,UAAA;EA1EF;;;;;;;;;;;;;EA2FtB,KAAA,CAAM,IAAA;EA9EA;;;EAAA,UAoGG,IAAA,IAAI,OAAA;AAAA"}
|
|
@@ -6,11 +6,13 @@ import __tsdown_shims_url from 'node:url'
|
|
|
6
6
|
const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
|
|
7
7
|
const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
|
|
8
8
|
|
|
9
|
+
import { __exportAll } from "../_virtual/_rolldown/runtime.mjs";
|
|
9
10
|
import { extendLogger } from "../plugin-utils/logging.mjs";
|
|
10
11
|
import chalk from "chalk";
|
|
11
12
|
import { formatDistanceToNowStrict } from "date-fns/formatDistanceToNowStrict";
|
|
12
13
|
|
|
13
14
|
//#region src/context/base-context.ts
|
|
15
|
+
var base_context_exports = /* @__PURE__ */ __exportAll({ PowerlinesBaseContext: () => PowerlinesBaseContext });
|
|
14
16
|
var PowerlinesBaseContext = class {
|
|
15
17
|
options;
|
|
16
18
|
#timestamp = Date.now();
|
|
@@ -123,5 +125,5 @@ var PowerlinesBaseContext = class {
|
|
|
123
125
|
};
|
|
124
126
|
|
|
125
127
|
//#endregion
|
|
126
|
-
export { PowerlinesBaseContext };
|
|
128
|
+
export { PowerlinesBaseContext, base_context_exports };
|
|
127
129
|
//# sourceMappingURL=base-context.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"base-context.mjs","names":["#timestamp"],"sources":["../../src/context/base-context.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { EnvPaths } from \"@stryke/env/get-env-paths\";\nimport chalk from \"chalk\";\nimport { formatDistanceToNowStrict } from \"date-fns/formatDistanceToNowStrict\";\nimport { extendLogger } from \"../plugin-utils/logging\";\nimport { Options } from \"../types/config\";\nimport { BaseContext } from \"../types/context\";\nimport { LogFn, Logger, LoggerOptions, LogMessage } from \"../types/logging\";\n\nexport abstract class PowerlinesBaseContext<\n TSystemContext = unknown\n> implements BaseContext<TSystemContext> {\n #timestamp: number = Date.now();\n\n public powerlinesPath!: string;\n\n public system!: TSystemContext;\n\n public abstract get envPaths(): EnvPaths;\n\n public get logger(): Logger {\n return this.createLogger();\n }\n\n public get cwd(): string {\n return this.options.cwd || process.cwd();\n }\n\n public get timestamp(): number {\n return this.#timestamp;\n }\n\n /**\n * Initialize the context with the provided configuration options and set up the resolver and user configuration file. This method is called during the construction of the context and can also be called when cloning the context to ensure that the new context has the same configuration and resolver setup as the original context.\n *\n * @param options - The configuration options to initialize the context with, which can include properties such as the project root, mode, log level, and other settings that affect the behavior of the context and its plugins.\n */\n protected constructor(public options: Options) {}\n\n public abstract createLogger(options?: LoggerOptions, logFn?: LogFn): Logger;\n\n public extendLogger(options: LoggerOptions) {\n return extendLogger(this.logger, options);\n }\n\n /**\n * A logging function for fatal messages\n *\n * @param message - The message to log.\n */\n public fatal(message: string | LogMessage | Error) {\n this.logger.error(\n message instanceof Error\n ? {\n meta: {},\n message: message.message,\n error: message\n }\n : message\n );\n }\n\n /**\n * A logging function for error messages\n *\n * @param message - The message to log.\n */\n public error(message: string | LogMessage | Error) {\n this.logger.error(\n message instanceof Error\n ? {\n meta: {},\n message: message.message,\n error: message\n }\n : message\n );\n }\n\n /**\n * A logging function for warning messages\n *\n * @param message - The message to log.\n */\n public warn(message: string | LogMessage) {\n this.logger.warn(message);\n }\n\n /**\n * A logging function for informational messages\n *\n * @param message - The message to log.\n */\n public info(message: string | LogMessage) {\n this.logger.info(message);\n }\n\n /**\n * A logging function for debug messages\n *\n * @param message - The message to log.\n */\n public debug(message: string | LogMessage) {\n this.logger.debug(message);\n }\n\n /**\n * A logging function for trace messages\n *\n * @param message - The message to log.\n */\n public trace(message: string | LogMessage) {\n this.logger.trace(message);\n }\n\n /**\n * A function to create a timer for measuring the duration of asynchronous operations\n *\n * @example\n * ```ts\n * const stopTimer = context.timer(\"Your Async Operation\");\n * await performAsyncOperation();\n * stopTimer(); // \"Your Async Operation completed in 123.45 milliseconds\"\n * ```\n *\n * @param name - The name of the timer.\n * @returns A function that, when called, stops the timer and logs the duration.\n */\n public timer(name: string): () => void {\n const startDate = Date.now();\n const startDuration = performance.now();\n\n return () => {\n const duration = performance.now() - startDuration;\n this.logger.info({\n meta: {\n category: \"performance\"\n },\n message: `${chalk.bold.cyanBright(name)} completed in ${chalk.bold.cyanBright(\n duration < 1000\n ? `${duration.toFixed(2)} milliseconds`\n : formatDistanceToNowStrict(startDate)\n )}`\n });\n };\n }\n\n /**\n * Initialize the context with the provided configuration options\n */\n protected async init() {\n // if (!this.powerlinesPath) {\n // const powerlinesPath = await resolvePackage(\"powerlines\");\n // if (!powerlinesPath) {\n // throw new Error(\"Could not resolve `powerlines` package location.\");\n // }\n // this.powerlinesPath = powerlinesPath;\n // }\n }\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"base-context.mjs","names":["#timestamp"],"sources":["../../src/context/base-context.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Powerlines\n\n This code was released as part of the Powerlines project. Powerlines\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/powerlines.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/powerlines\n Documentation: https://docs.stormsoftware.com/projects/powerlines\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { EnvPaths } from \"@stryke/env/get-env-paths\";\nimport chalk from \"chalk\";\nimport { formatDistanceToNowStrict } from \"date-fns/formatDistanceToNowStrict\";\nimport { extendLogger } from \"../plugin-utils/logging\";\nimport { Options } from \"../types/config\";\nimport { BaseContext } from \"../types/context\";\nimport { LogFn, Logger, LoggerOptions, LogMessage } from \"../types/logging\";\n\nexport abstract class PowerlinesBaseContext<\n TSystemContext = unknown\n> implements BaseContext<TSystemContext> {\n #timestamp: number = Date.now();\n\n public powerlinesPath!: string;\n\n public system!: TSystemContext;\n\n public abstract get envPaths(): EnvPaths;\n\n public get logger(): Logger {\n return this.createLogger();\n }\n\n public get cwd(): string {\n return this.options.cwd || process.cwd();\n }\n\n public get timestamp(): number {\n return this.#timestamp;\n }\n\n /**\n * Initialize the context with the provided configuration options and set up the resolver and user configuration file. This method is called during the construction of the context and can also be called when cloning the context to ensure that the new context has the same configuration and resolver setup as the original context.\n *\n * @param options - The configuration options to initialize the context with, which can include properties such as the project root, mode, log level, and other settings that affect the behavior of the context and its plugins.\n */\n protected constructor(public options: Options) {}\n\n public abstract createLogger(options?: LoggerOptions, logFn?: LogFn): Logger;\n\n public extendLogger(options: LoggerOptions) {\n return extendLogger(this.logger, options);\n }\n\n /**\n * A logging function for fatal messages\n *\n * @param message - The message to log.\n */\n public fatal(message: string | LogMessage | Error) {\n this.logger.error(\n message instanceof Error\n ? {\n meta: {},\n message: message.message,\n error: message\n }\n : message\n );\n }\n\n /**\n * A logging function for error messages\n *\n * @param message - The message to log.\n */\n public error(message: string | LogMessage | Error) {\n this.logger.error(\n message instanceof Error\n ? {\n meta: {},\n message: message.message,\n error: message\n }\n : message\n );\n }\n\n /**\n * A logging function for warning messages\n *\n * @param message - The message to log.\n */\n public warn(message: string | LogMessage) {\n this.logger.warn(message);\n }\n\n /**\n * A logging function for informational messages\n *\n * @param message - The message to log.\n */\n public info(message: string | LogMessage) {\n this.logger.info(message);\n }\n\n /**\n * A logging function for debug messages\n *\n * @param message - The message to log.\n */\n public debug(message: string | LogMessage) {\n this.logger.debug(message);\n }\n\n /**\n * A logging function for trace messages\n *\n * @param message - The message to log.\n */\n public trace(message: string | LogMessage) {\n this.logger.trace(message);\n }\n\n /**\n * A function to create a timer for measuring the duration of asynchronous operations\n *\n * @example\n * ```ts\n * const stopTimer = context.timer(\"Your Async Operation\");\n * await performAsyncOperation();\n * stopTimer(); // \"Your Async Operation completed in 123.45 milliseconds\"\n * ```\n *\n * @param name - The name of the timer.\n * @returns A function that, when called, stops the timer and logs the duration.\n */\n public timer(name: string): () => void {\n const startDate = Date.now();\n const startDuration = performance.now();\n\n return () => {\n const duration = performance.now() - startDuration;\n this.logger.info({\n meta: {\n category: \"performance\"\n },\n message: `${chalk.bold.cyanBright(name)} completed in ${chalk.bold.cyanBright(\n duration < 1000\n ? `${duration.toFixed(2)} milliseconds`\n : formatDistanceToNowStrict(startDate)\n )}`\n });\n };\n }\n\n /**\n * Initialize the context with the provided configuration options\n */\n protected async init() {\n // if (!this.powerlinesPath) {\n // const powerlinesPath = await resolvePackage(\"powerlines\");\n // if (!powerlinesPath) {\n // throw new Error(\"Could not resolve `powerlines`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WAAW,IAAI,EAAE,gBAAgB,MAAM,KAAK,WACjE,WAAW,MACP,GAAG,SAAS,QAAQ,CAAC,EAAE,iBACvB,0BAA0B,SAAS,CACzC;GACF,CAAC;EACH;CACF;;;;CAKA,MAAgB,OAAO,CAQvB;AACF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import __tsdown_shims_path from 'node:path'
|
|
4
|
+
import __tsdown_shims_url from 'node:url'
|
|
5
|
+
|
|
6
|
+
const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
|
|
7
|
+
const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
|
|
8
|
+
|
|
9
|
+
const require_context_base_context = require('./base-context.cjs');
|
|
10
|
+
let vitest = require("vitest");
|
|
11
|
+
|
|
12
|
+
//#region src/context/base-context.test.ts
|
|
13
|
+
(0, vitest.describe)("base/core/src/context/base-context.ts", () => {
|
|
14
|
+
(0, vitest.it)("loads module exports", () => {
|
|
15
|
+
(0, vitest.expect)(require_context_base_context.base_context_exports).toBeDefined();
|
|
16
|
+
(0, vitest.expect)(typeof require_context_base_context.base_context_exports).toBe("object");
|
|
17
|
+
});
|
|
18
|
+
(0, vitest.it)("has at least one runtime export", () => {
|
|
19
|
+
(0, vitest.expect)(Object.keys(require_context_base_context.base_context_exports).length).toBeGreaterThan(0);
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import __tsdown_shims_path from 'node:path'
|
|
4
|
+
import __tsdown_shims_url from 'node:url'
|
|
5
|
+
|
|
6
|
+
const __TSDOWN_SHIM_FILENAME__ = /* @__PURE__ */ __tsdown_shims_url.fileURLToPath(import.meta.url)
|
|
7
|
+
const __TSDOWN_SHIM_DIRNAME__ = /* @__PURE__ */ __tsdown_shims_path.dirname(__TSDOWN_SHIM_FILENAME__)
|
|
8
|
+
|
|
9
|
+
import { base_context_exports } from "./base-context.mjs";
|
|
10
|
+
import { describe, expect, it } from "vitest";
|
|
11
|
+
|
|
12
|
+
//#region src/context/base-context.test.ts
|
|
13
|
+
describe("base/core/src/context/base-context.ts", () => {
|
|
14
|
+
it("loads module exports", () => {
|
|
15
|
+
expect(base_context_exports).toBeDefined();
|
|
16
|
+
expect(typeof base_context_exports).toBe("object");
|
|
17
|
+
});
|
|
18
|
+
it("has at least one runtime export", () => {
|
|
19
|
+
expect(Object.keys(base_context_exports).length).toBeGreaterThan(0);
|
|
20
|
+
});
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
//#endregion
|
|
24
|
+
export { };
|
|
25
|
+
//# sourceMappingURL=base-context.test.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-context.test.mjs","names":["moduleExports"],"sources":["../../src/context/base-context.test.ts"],"sourcesContent":["import { describe, expect, it } from \"vitest\";\nimport * as moduleExports from \"./base-context\";\n\ndescribe(\"base/core/src/context/base-context.ts\", () => {\n it(\"loads module exports\", () => {\n expect(moduleExports).toBeDefined();\n expect(typeof moduleExports).toBe(\"object\");\n });\n\n it(\"has at least one runtime export\", () => {\n expect(Object.keys(moduleExports).length).toBeGreaterThan(0);\n });\n});\n"],"mappings":";;;;;;;;;;;;AAGA,SAAS,+CAA+C;CACtD,GAAG,8BAA8B;EAC/B,OAAOA,oBAAa,EAAE,YAAY;EAClC,OAAO,OAAOA,oBAAa,EAAE,KAAK,QAAQ;CAC5C,CAAC;CAED,GAAG,yCAAyC;EAC1C,OAAO,OAAO,KAAKA,oBAAa,EAAE,MAAM,EAAE,gBAAgB,CAAC;CAC7D,CAAC;AACH,CAAC"}
|
package/dist/context/context.cjs
CHANGED
|
@@ -57,6 +57,7 @@ let oxc_parser = require("oxc-parser");
|
|
|
57
57
|
let undici = require("undici");
|
|
58
58
|
|
|
59
59
|
//#region src/context/context.ts
|
|
60
|
+
var context_exports = /* @__PURE__ */ require_runtime.__exportAll({ PowerlinesContext: () => PowerlinesContext });
|
|
60
61
|
(0, undici.setGlobalDispatcher)(new undici.Agent({ keepAliveTimeout: 1e4 }).compose(undici.interceptors.retry({
|
|
61
62
|
maxRetries: 3,
|
|
62
63
|
minTimeout: 1e3,
|
|
@@ -968,4 +969,10 @@ var PowerlinesContext = class extends require_context_base_context.PowerlinesBas
|
|
|
968
969
|
};
|
|
969
970
|
|
|
970
971
|
//#endregion
|
|
971
|
-
exports.PowerlinesContext = PowerlinesContext;
|
|
972
|
+
exports.PowerlinesContext = PowerlinesContext;
|
|
973
|
+
Object.defineProperty(exports, 'context_exports', {
|
|
974
|
+
enumerable: true,
|
|
975
|
+
get: function () {
|
|
976
|
+
return context_exports;
|
|
977
|
+
}
|
|
978
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.cts","names":[],"sources":["../../src/context/context.ts"],"mappings":";;;;;;;;;;;;;;;cAgKa,iBAAA,yBACa,cAAA,GAAiB,cAAA,oCAGjC,qBAAA,CAAsB,cAAA,aACnB,OAAA,CAAQ,eAAA,EAAiB,cAAA;EAAA;EA6dE,OAAA,EAAS,gBAAA;EA3cxC,QAAA,EAAW,QAAA;EAvBU;;;EA4BrB,WAAA,EAAc,WAAA;EAvBF;;;EA4BZ,WAAA,EAAa,MAAA;EALC;;;EAUd,UAAA,EAAa,gBAAA;EAKC;;;EAAd,YAAA,EAAc,MAAA,kBAAwB,KAAA;EAerB;;;EAVjB,eAAA,EAAiB,MAAA,kBAAwB,KAAA;EA0BxB;;;EArBjB,aAAA,EAAe,QAAA;EA0EC;;;EArEhB,eAAA,EAAiB,MAAA;EAsHb;;;EAAA,UAjHD,cAAA,EAAgB,eAAA;EAoHf;;;EAAA,UA/GD,gBAAA,EAAkB,sBAAA,CAAuB,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