@powerlines/plugin-env 0.15.13 → 0.15.14
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 +4 -0
- package/dist/_virtual/rolldown_runtime.mjs +33 -0
- package/dist/babel/plugin.cjs +16 -16
- package/dist/babel/plugin.d.mts +2 -2
- package/dist/babel/plugin.mjs +7 -7
- package/dist/components/docs.cjs +8 -8
- package/dist/components/docs.mjs +5 -5
- package/dist/components/env.cjs +38 -39
- package/dist/components/env.d.mts +2 -2
- package/dist/components/env.mjs +11 -11
- package/dist/helpers/automd-generator.cjs +4 -4
- package/dist/helpers/automd-generator.d.mts +1 -1
- package/dist/helpers/automd-generator.mjs +3 -3
- package/dist/helpers/load.cjs +12 -13
- package/dist/helpers/load.d.mts +2 -2
- package/dist/helpers/load.mjs +10 -10
- package/dist/helpers/persistence.cjs +23 -23
- package/dist/helpers/persistence.d.mts +1 -1
- package/dist/helpers/persistence.mjs +7 -7
- package/dist/helpers/reflect.cjs +9 -9
- package/dist/helpers/reflect.mjs +5 -5
- package/dist/helpers/source-file-env.cjs +1 -1
- package/dist/helpers/source-file-env.mjs +1 -1
- package/dist/index.cjs +28 -26
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +25 -25
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/parse-type-definition.cjs +31 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/parse-type-definition.mjs +31 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/to-array.cjs +8 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/to-array.mjs +7 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.cjs +6 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/get-object-tag.mjs +5 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/index.cjs +3 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/index.mjs +5 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.cjs +6 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-buffer.mjs +6 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-collection.cjs +1 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-collection.mjs +3 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-object.cjs +13 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-object.mjs +13 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.cjs +13 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-plain-object.mjs +13 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-string.cjs +12 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/is-string.mjs +11 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/type-detect.cjs +11 -0
- package/dist/node_modules/.pnpm/@stryke_convert@0.6.30/node_modules/@stryke/convert/dist/type-checks/src/type-detect.mjs +12 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/is-parent-path.cjs +10 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/is-parent-path.mjs +10 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/is-type.cjs +13 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/is-type.mjs +13 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/join-paths.cjs +49 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/join-paths.mjs +49 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/regex.cjs +9 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/regex.mjs +5 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/slash.cjs +8 -0
- package/dist/node_modules/.pnpm/@stryke_path@0.24.1/node_modules/@stryke/path/dist/slash.mjs +7 -0
- package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.cjs +346 -0
- package/dist/node_modules/.pnpm/c12@3.3.3_magicast@0.5.1/node_modules/c12/dist/index.mjs +346 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.cjs +786 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/json5.mjs +786 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/jsonc.cjs +3 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/jsonc.mjs +3 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.cjs +23 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DA7CpUDY.mjs +22 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.cjs +405 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/shared/confbox.DnMsyigM.mjs +404 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.cjs +657 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/toml.mjs +657 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.cjs +1054 -0
- package/dist/node_modules/.pnpm/confbox@0.2.2/node_modules/confbox/dist/yaml.mjs +1054 -0
- package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.cjs +43 -0
- package/dist/node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs +42 -0
- package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.cjs +46 -0
- package/dist/node_modules/.pnpm/destr@2.0.5/node_modules/destr/dist/index.mjs +45 -0
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.cjs +288 -0
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.mjs +285 -0
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.cjs +71 -0
- package/dist/node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.mjs +68 -0
- package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.cjs +1013 -0
- package/dist/node_modules/.pnpm/exsolve@1.0.8/node_modules/exsolve/dist/index.mjs +1007 -0
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.cjs +23 -0
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/index.mjs +13 -0
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.cjs +2698 -0
- package/dist/node_modules/.pnpm/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs +2685 -0
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.cjs +4457 -0
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/dist/jiti.mjs +4454 -0
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.cjs +29 -0
- package/dist/node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs +29 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs +181 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.mjs +176 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.cjs +22 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.mjs +17 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.cjs +3967 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/node.mjs +3962 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.cjs +11768 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/proxy.mjs +11763 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.cjs +25 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/shared/node-fetch-native.DhEqb06g.mjs +20 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.cjs +20 -0
- package/dist/node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/lib/index.mjs +17 -0
- package/dist/node_modules/.pnpm/nypm@0.6.2/node_modules/nypm/dist/shared/nypm.CLjaS_sz.cjs +174 -0
- package/dist/node_modules/.pnpm/nypm@0.6.2/node_modules/nypm/dist/shared/nypm.CLjaS_sz.mjs +172 -0
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.cjs +13 -0
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/crypto/node/index.mjs +12 -0
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.cjs +3 -0
- package/dist/node_modules/.pnpm/ohash@2.0.11/node_modules/ohash/dist/index.mjs +3 -0
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.cjs +145 -0
- package/dist/node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs +138 -0
- package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.cjs +127 -0
- package/dist/node_modules/.pnpm/pkg-types@2.3.0/node_modules/pkg-types/dist/index.mjs +125 -0
- package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.cjs +138 -0
- package/dist/node_modules/.pnpm/rc9@2.1.2/node_modules/rc9/dist/index.mjs +136 -0
- package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.cjs +629 -0
- package/dist/node_modules/.pnpm/tinyexec@1.0.2/node_modules/tinyexec/dist/main.mjs +627 -0
- package/dist/{plugin-alloy → packages/plugin-alloy}/src/types/components.d.mts +1 -1
- package/dist/{plugin-alloy → packages/plugin-alloy}/src/typescript/components/typescript-file.d.mts +1 -1
- package/dist/{plugin-alloy → packages/plugin-alloy}/src/typescript/components/typescript-interface.d.mts +1 -1
- package/dist/{powerlines → packages/powerlines}/src/types/build.d.mts +6 -6
- package/dist/{powerlines → packages/powerlines}/src/types/config.d.mts +1 -2
- package/dist/{powerlines → packages/powerlines}/src/types/tsconfig.d.mts +1 -1
- package/dist/types/plugin.cjs +19 -18
- package/dist/types/plugin.d.mts +6 -6
- package/dist/types/plugin.mjs +4 -4
- package/dist/types/runtime.cjs +3 -2
- package/dist/types/runtime.d.mts +1 -1
- package/dist/types/runtime.mjs +1 -1
- package/package.json +10 -10
- package/dist/deepkit/schemas/reflection.cjs +0 -5368
- package/dist/deepkit/schemas/reflection.mjs +0 -5365
- package/dist/deepkit/schemas/reflection2.cjs +0 -4112
- package/dist/deepkit/schemas/reflection2.mjs +0 -4110
- package/dist/deepkit/src/capnp.cjs +0 -1692
- package/dist/deepkit/src/capnp.mjs +0 -1690
- package/dist/deepkit/src/esbuild-plugin.cjs +0 -99
- package/dist/deepkit/src/esbuild-plugin.mjs +0 -98
- package/dist/deepkit/src/reflect-type.cjs +0 -40
- package/dist/deepkit/src/reflect-type.mjs +0 -38
- package/dist/deepkit/src/resolve-reflections.cjs +0 -23
- package/dist/deepkit/src/resolve-reflections.mjs +0 -22
- package/dist/deepkit/src/transformer.cjs +0 -92
- package/dist/deepkit/src/transformer.mjs +0 -89
- package/dist/deepkit/src/transpile.cjs +0 -39
- package/dist/deepkit/src/transpile.mjs +0 -37
- package/dist/deepkit/src/types.cjs +0 -22
- package/dist/deepkit/src/types.mjs +0 -21
- package/dist/deepkit/src/utilities.cjs +0 -182
- package/dist/deepkit/src/utilities.mjs +0 -181
- package/dist/plugin-alloy/src/core/components/output.cjs +0 -45
- package/dist/plugin-alloy/src/core/components/output.mjs +0 -44
- package/dist/plugin-alloy/src/core/components/single-line-comment.cjs +0 -22
- package/dist/plugin-alloy/src/core/components/single-line-comment.mjs +0 -21
- package/dist/plugin-alloy/src/core/components/source-file.cjs +0 -64
- package/dist/plugin-alloy/src/core/components/source-file.mjs +0 -62
- package/dist/plugin-alloy/src/core/contexts/context.cjs +0 -136
- package/dist/plugin-alloy/src/core/contexts/context.mjs +0 -128
- package/dist/plugin-alloy/src/core/contexts/index.cjs +0 -2
- package/dist/plugin-alloy/src/core/contexts/index.mjs +0 -4
- package/dist/plugin-alloy/src/core/contexts/reflection.cjs +0 -110
- package/dist/plugin-alloy/src/core/contexts/reflection.mjs +0 -101
- package/dist/plugin-alloy/src/helpers/refkey.cjs +0 -23
- package/dist/plugin-alloy/src/helpers/refkey.mjs +0 -22
- package/dist/plugin-alloy/src/index.cjs +0 -106
- package/dist/plugin-alloy/src/index.mjs +0 -104
- package/dist/plugin-alloy/src/markdown/components/markdown-file.cjs +0 -115
- package/dist/plugin-alloy/src/markdown/components/markdown-file.mjs +0 -114
- package/dist/plugin-alloy/src/markdown/components/markdown-table.cjs +0 -39
- package/dist/plugin-alloy/src/markdown/components/markdown-table.mjs +0 -38
- package/dist/plugin-alloy/src/markdown/contexts/markdown-table.cjs +0 -72
- package/dist/plugin-alloy/src/markdown/contexts/markdown-table.mjs +0 -71
- package/dist/plugin-alloy/src/types/components.cjs +0 -22
- package/dist/plugin-alloy/src/types/components.mjs +0 -21
- package/dist/plugin-alloy/src/types/plugin.cjs +0 -55
- package/dist/plugin-alloy/src/types/plugin.mjs +0 -52
- package/dist/plugin-alloy/src/typescript/components/builtin-file.cjs +0 -57
- package/dist/plugin-alloy/src/typescript/components/builtin-file.mjs +0 -56
- package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.cjs +0 -126
- package/dist/plugin-alloy/src/typescript/components/tsdoc-reflection.mjs +0 -124
- package/dist/plugin-alloy/src/typescript/components/tsdoc.cjs +0 -442
- package/dist/plugin-alloy/src/typescript/components/tsdoc.mjs +0 -433
- package/dist/plugin-alloy/src/typescript/components/typescript-file.cjs +0 -212
- package/dist/plugin-alloy/src/typescript/components/typescript-file.mjs +0 -209
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.cjs +0 -68
- package/dist/plugin-alloy/src/typescript/components/typescript-interface.mjs +0 -67
- package/dist/plugin-alloy/src/typescript/components/typescript-object.cjs +0 -124
- package/dist/plugin-alloy/src/typescript/components/typescript-object.mjs +0 -123
- package/dist/plugin-automd/src/index.cjs +0 -127
- package/dist/plugin-automd/src/index.mjs +0 -124
- package/dist/plugin-automd/src/types/plugin.cjs +0 -47
- package/dist/plugin-automd/src/types/plugin.mjs +0 -47
- package/dist/plugin-automd/src/types/toc.cjs +0 -26
- package/dist/plugin-automd/src/types/toc.mjs +0 -25
- package/dist/plugin-babel/src/helpers/ast-utils.cjs +0 -74
- package/dist/plugin-babel/src/helpers/ast-utils.mjs +0 -70
- package/dist/plugin-babel/src/helpers/create-plugin.cjs +0 -71
- package/dist/plugin-babel/src/helpers/create-plugin.mjs +0 -69
- package/dist/plugin-babel/src/helpers/filters.cjs +0 -158
- package/dist/plugin-babel/src/helpers/filters.mjs +0 -154
- package/dist/plugin-babel/src/helpers/index.cjs +0 -5
- package/dist/plugin-babel/src/helpers/index.mjs +0 -7
- package/dist/plugin-babel/src/helpers/module-helpers.cjs +0 -200
- package/dist/plugin-babel/src/helpers/module-helpers.mjs +0 -192
- package/dist/plugin-babel/src/helpers/options.cjs +0 -74
- package/dist/plugin-babel/src/helpers/options.mjs +0 -71
- package/dist/plugin-babel/src/index.cjs +0 -131
- package/dist/plugin-babel/src/index.mjs +0 -129
- package/dist/plugin-babel/src/types/plugin.cjs +0 -42
- package/dist/plugin-babel/src/types/plugin.mjs +0 -39
- package/dist/powerlines/src/internal/helpers/hooks.cjs +0 -137
- package/dist/powerlines/src/internal/helpers/hooks.mjs +0 -135
- package/dist/powerlines/src/lib/build/esbuild.cjs +0 -161
- package/dist/powerlines/src/lib/build/esbuild.mjs +0 -159
- package/dist/powerlines/src/lib/entry.cjs +0 -203
- package/dist/powerlines/src/lib/entry.mjs +0 -201
- package/dist/powerlines/src/lib/logger.cjs +0 -108
- package/dist/powerlines/src/lib/logger.mjs +0 -106
- package/dist/powerlines/src/lib/utilities/bundle.cjs +0 -67
- package/dist/powerlines/src/lib/utilities/bundle.mjs +0 -66
- package/dist/powerlines/src/lib/utilities/resolve.cjs +0 -49
- package/dist/powerlines/src/lib/utilities/resolve.mjs +0 -48
- package/dist/powerlines/src/plugin-utils/paths.cjs +0 -46
- package/dist/powerlines/src/plugin-utils/paths.mjs +0 -45
- package/dist/powerlines/src/types/api.cjs +0 -62
- package/dist/powerlines/src/types/api.mjs +0 -62
- package/dist/powerlines/src/types/babel.cjs +0 -156
- package/dist/powerlines/src/types/babel.mjs +0 -147
- package/dist/powerlines/src/types/build.cjs +0 -127
- package/dist/powerlines/src/types/build.mjs +0 -121
- package/dist/powerlines/src/types/commands.cjs +0 -16
- package/dist/powerlines/src/types/commands.mjs +0 -15
- package/dist/powerlines/src/types/config.cjs +0 -413
- package/dist/powerlines/src/types/config.mjs +0 -391
- package/dist/powerlines/src/types/context.cjs +0 -381
- package/dist/powerlines/src/types/context.mjs +0 -364
- package/dist/powerlines/src/types/fs.cjs +0 -78
- package/dist/powerlines/src/types/fs.mjs +0 -75
- package/dist/powerlines/src/types/hooks.cjs +0 -71
- package/dist/powerlines/src/types/hooks.mjs +0 -68
- package/dist/powerlines/src/types/index.cjs +0 -11
- package/dist/powerlines/src/types/index.mjs +0 -13
- package/dist/powerlines/src/types/plugin.cjs +0 -184
- package/dist/powerlines/src/types/plugin.mjs +0 -178
- package/dist/powerlines/src/types/resolved.cjs +0 -153
- package/dist/powerlines/src/types/resolved.mjs +0 -148
- package/dist/powerlines/src/types/unplugin.cjs +0 -47
- package/dist/powerlines/src/types/unplugin.mjs +0 -46
- /package/dist/{deepkit → packages/deepkit}/schemas/reflection.d.mts +0 -0
- /package/dist/{deepkit → packages/deepkit}/src/types.d.mts +0 -0
- /package/dist/{plugin-alloy → packages/plugin-alloy}/src/core/components/source-file.d.mts +0 -0
- /package/dist/{plugin-alloy → packages/plugin-alloy}/src/types/index.d.mts +0 -0
- /package/dist/{plugin-alloy → packages/plugin-alloy}/src/types/plugin.d.mts +0 -0
- /package/dist/{plugin-alloy → packages/plugin-alloy}/src/typescript/components/builtin-file.d.mts +0 -0
- /package/dist/{plugin-alloy → packages/plugin-alloy}/src/typescript/components/tsdoc.d.mts +0 -0
- /package/dist/{plugin-automd → packages/plugin-automd}/src/types/plugin.d.mts +0 -0
- /package/dist/{plugin-automd → packages/plugin-automd}/src/types/toc.d.mts +0 -0
- /package/dist/{plugin-babel → packages/plugin-babel}/src/types/index.d.mts +0 -0
- /package/dist/{plugin-babel → packages/plugin-babel}/src/types/plugin.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/internal/helpers/hooks.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/api.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/babel.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/commands.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/context.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/fs.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/hooks.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/index.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/plugin.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/resolved.d.mts +0 -0
- /package/dist/{powerlines → packages/powerlines}/src/types/unplugin.d.mts +0 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
const require_rolldown_runtime = require('../../../../../../_virtual/rolldown_runtime.cjs');
|
|
2
|
+
const require_jiti$1 = require('../dist/jiti.cjs');
|
|
3
|
+
let node_module = require("node:module");
|
|
4
|
+
|
|
5
|
+
//#region ../../node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs
|
|
6
|
+
var import_jiti = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_jiti$1.default, 1);
|
|
7
|
+
function onError(err) {
|
|
8
|
+
throw err;
|
|
9
|
+
}
|
|
10
|
+
const nativeImport = (id) => import(id);
|
|
11
|
+
let _transform;
|
|
12
|
+
function lazyTransform(...args) {
|
|
13
|
+
if (!_transform) _transform = (0, node_module.createRequire)(require("url").pathToFileURL(__filename).href)("../dist/babel.cjs");
|
|
14
|
+
return _transform(...args);
|
|
15
|
+
}
|
|
16
|
+
function createJiti(id, opts = {}) {
|
|
17
|
+
if (!opts.transform) opts = {
|
|
18
|
+
...opts,
|
|
19
|
+
transform: lazyTransform
|
|
20
|
+
};
|
|
21
|
+
return (0, import_jiti.default)(id, opts, {
|
|
22
|
+
onError,
|
|
23
|
+
nativeImport,
|
|
24
|
+
createRequire: node_module.createRequire
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
exports.createJiti = createJiti;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { __toESM } from "../../../../../../_virtual/rolldown_runtime.mjs";
|
|
2
|
+
import { require_jiti } from "../dist/jiti.mjs";
|
|
3
|
+
import { createRequire } from "node:module";
|
|
4
|
+
|
|
5
|
+
//#region ../../node_modules/.pnpm/jiti@2.6.1/node_modules/jiti/lib/jiti.mjs
|
|
6
|
+
var import_jiti = /* @__PURE__ */ __toESM(require_jiti(), 1);
|
|
7
|
+
function onError(err) {
|
|
8
|
+
throw err;
|
|
9
|
+
}
|
|
10
|
+
const nativeImport = (id) => import(id);
|
|
11
|
+
let _transform;
|
|
12
|
+
function lazyTransform(...args) {
|
|
13
|
+
if (!_transform) _transform = createRequire(import.meta.url)("../dist/babel.cjs");
|
|
14
|
+
return _transform(...args);
|
|
15
|
+
}
|
|
16
|
+
function createJiti(id, opts = {}) {
|
|
17
|
+
if (!opts.transform) opts = {
|
|
18
|
+
...opts,
|
|
19
|
+
transform: lazyTransform
|
|
20
|
+
};
|
|
21
|
+
return (0, import_jiti.default)(id, opts, {
|
|
22
|
+
onError,
|
|
23
|
+
nativeImport,
|
|
24
|
+
createRequire
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
//#endregion
|
|
29
|
+
export { createJiti };
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const require_rolldown_runtime = require('../../../../../../../_virtual/rolldown_runtime.cjs');
|
|
4
|
+
const require_node_fetch_native_DhEqb06g$1 = require('../shared/node-fetch-native.DhEqb06g.cjs');
|
|
5
|
+
const require_node$1 = require('../node.cjs');
|
|
6
|
+
|
|
7
|
+
//#region ../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs
|
|
8
|
+
var require_multipart_parser = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports) => {
|
|
9
|
+
var y = Object.defineProperty;
|
|
10
|
+
var c = (R, o) => y(R, "name", {
|
|
11
|
+
value: o,
|
|
12
|
+
configurable: !0
|
|
13
|
+
});
|
|
14
|
+
const node = require_node$1.default;
|
|
15
|
+
require("node:http"), require("node:https"), require("node:zlib"), require("node:stream"), require("node:buffer"), require("node:util"), require_node_fetch_native_DhEqb06g$1.default, require("node:url"), require("node:net"), require("node:fs"), require("node:path");
|
|
16
|
+
let s = 0;
|
|
17
|
+
const S = {
|
|
18
|
+
START_BOUNDARY: s++,
|
|
19
|
+
HEADER_FIELD_START: s++,
|
|
20
|
+
HEADER_FIELD: s++,
|
|
21
|
+
HEADER_VALUE_START: s++,
|
|
22
|
+
HEADER_VALUE: s++,
|
|
23
|
+
HEADER_VALUE_ALMOST_DONE: s++,
|
|
24
|
+
HEADERS_ALMOST_DONE: s++,
|
|
25
|
+
PART_DATA_START: s++,
|
|
26
|
+
PART_DATA: s++,
|
|
27
|
+
END: s++
|
|
28
|
+
};
|
|
29
|
+
let f = 1;
|
|
30
|
+
const F = {
|
|
31
|
+
PART_BOUNDARY: f,
|
|
32
|
+
LAST_BOUNDARY: f *= 2
|
|
33
|
+
}, LF = 10, CR = 13, SPACE = 32, HYPHEN = 45, COLON = 58, A = 97, Z = 122, lower = c((R) => R | 32, "lower"), noop = c(() => {}, "noop"), g = class g$1 {
|
|
34
|
+
constructor(o) {
|
|
35
|
+
this.index = 0, this.flags = 0, this.onHeaderEnd = noop, this.onHeaderField = noop, this.onHeadersEnd = noop, this.onHeaderValue = noop, this.onPartBegin = noop, this.onPartData = noop, this.onPartEnd = noop, this.boundaryChars = {}, o = `\r
|
|
36
|
+
--` + o;
|
|
37
|
+
const t = new Uint8Array(o.length);
|
|
38
|
+
for (let n = 0; n < o.length; n++) t[n] = o.charCodeAt(n), this.boundaryChars[t[n]] = !0;
|
|
39
|
+
this.boundary = t, this.lookbehind = new Uint8Array(this.boundary.length + 8), this.state = S.START_BOUNDARY;
|
|
40
|
+
}
|
|
41
|
+
write(o) {
|
|
42
|
+
let t = 0;
|
|
43
|
+
const n = o.length;
|
|
44
|
+
let E = this.index, { lookbehind: l, boundary: h, boundaryChars: H, index: e, state: a, flags: d } = this;
|
|
45
|
+
const b = this.boundary.length, m = b - 1, O = o.length;
|
|
46
|
+
let r, P;
|
|
47
|
+
const u = c((D) => {
|
|
48
|
+
this[D + "Mark"] = t;
|
|
49
|
+
}, "mark"), i = c((D) => {
|
|
50
|
+
delete this[D + "Mark"];
|
|
51
|
+
}, "clear"), T = c((D, p, _, N) => {
|
|
52
|
+
(p === void 0 || p !== _) && this[D](N && N.subarray(p, _));
|
|
53
|
+
}, "callback"), L = c((D, p) => {
|
|
54
|
+
const _ = D + "Mark";
|
|
55
|
+
_ in this && (p ? (T(D, this[_], t, o), delete this[_]) : (T(D, this[_], o.length, o), this[_] = 0));
|
|
56
|
+
}, "dataCallback");
|
|
57
|
+
for (t = 0; t < n; t++) switch (r = o[t], a) {
|
|
58
|
+
case S.START_BOUNDARY:
|
|
59
|
+
if (e === h.length - 2) {
|
|
60
|
+
if (r === HYPHEN) d |= F.LAST_BOUNDARY;
|
|
61
|
+
else if (r !== CR) return;
|
|
62
|
+
e++;
|
|
63
|
+
break;
|
|
64
|
+
} else if (e - 1 === h.length - 2) {
|
|
65
|
+
if (d & F.LAST_BOUNDARY && r === HYPHEN) a = S.END, d = 0;
|
|
66
|
+
else if (!(d & F.LAST_BOUNDARY) && r === LF) e = 0, T("onPartBegin"), a = S.HEADER_FIELD_START;
|
|
67
|
+
else return;
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
r !== h[e + 2] && (e = -2), r === h[e + 2] && e++;
|
|
71
|
+
break;
|
|
72
|
+
case S.HEADER_FIELD_START: a = S.HEADER_FIELD, u("onHeaderField"), e = 0;
|
|
73
|
+
case S.HEADER_FIELD:
|
|
74
|
+
if (r === CR) {
|
|
75
|
+
i("onHeaderField"), a = S.HEADERS_ALMOST_DONE;
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
if (e++, r === HYPHEN) break;
|
|
79
|
+
if (r === COLON) {
|
|
80
|
+
if (e === 1) return;
|
|
81
|
+
L("onHeaderField", !0), a = S.HEADER_VALUE_START;
|
|
82
|
+
break;
|
|
83
|
+
}
|
|
84
|
+
if (P = lower(r), P < A || P > Z) return;
|
|
85
|
+
break;
|
|
86
|
+
case S.HEADER_VALUE_START:
|
|
87
|
+
if (r === SPACE) break;
|
|
88
|
+
u("onHeaderValue"), a = S.HEADER_VALUE;
|
|
89
|
+
case S.HEADER_VALUE:
|
|
90
|
+
r === CR && (L("onHeaderValue", !0), T("onHeaderEnd"), a = S.HEADER_VALUE_ALMOST_DONE);
|
|
91
|
+
break;
|
|
92
|
+
case S.HEADER_VALUE_ALMOST_DONE:
|
|
93
|
+
if (r !== LF) return;
|
|
94
|
+
a = S.HEADER_FIELD_START;
|
|
95
|
+
break;
|
|
96
|
+
case S.HEADERS_ALMOST_DONE:
|
|
97
|
+
if (r !== LF) return;
|
|
98
|
+
T("onHeadersEnd"), a = S.PART_DATA_START;
|
|
99
|
+
break;
|
|
100
|
+
case S.PART_DATA_START: a = S.PART_DATA, u("onPartData");
|
|
101
|
+
case S.PART_DATA:
|
|
102
|
+
if (E = e, e === 0) {
|
|
103
|
+
for (t += m; t < O && !(o[t] in H);) t += b;
|
|
104
|
+
t -= m, r = o[t];
|
|
105
|
+
}
|
|
106
|
+
if (e < h.length) h[e] === r ? (e === 0 && L("onPartData", !0), e++) : e = 0;
|
|
107
|
+
else if (e === h.length) e++, r === CR ? d |= F.PART_BOUNDARY : r === HYPHEN ? d |= F.LAST_BOUNDARY : e = 0;
|
|
108
|
+
else if (e - 1 === h.length) if (d & F.PART_BOUNDARY) {
|
|
109
|
+
if (e = 0, r === LF) {
|
|
110
|
+
d &= ~F.PART_BOUNDARY, T("onPartEnd"), T("onPartBegin"), a = S.HEADER_FIELD_START;
|
|
111
|
+
break;
|
|
112
|
+
}
|
|
113
|
+
} else d & F.LAST_BOUNDARY && r === HYPHEN ? (T("onPartEnd"), a = S.END, d = 0) : e = 0;
|
|
114
|
+
if (e > 0) l[e - 1] = r;
|
|
115
|
+
else if (E > 0) {
|
|
116
|
+
const D = new Uint8Array(l.buffer, l.byteOffset, l.byteLength);
|
|
117
|
+
T("onPartData", 0, E, D), E = 0, u("onPartData"), t--;
|
|
118
|
+
}
|
|
119
|
+
break;
|
|
120
|
+
case S.END: break;
|
|
121
|
+
default: throw new Error(`Unexpected state entered: ${a}`);
|
|
122
|
+
}
|
|
123
|
+
L("onHeaderField"), L("onHeaderValue"), L("onPartData"), this.index = e, this.state = a, this.flags = d;
|
|
124
|
+
}
|
|
125
|
+
end() {
|
|
126
|
+
if (this.state === S.HEADER_FIELD_START && this.index === 0 || this.state === S.PART_DATA && this.index === this.boundary.length) this.onPartEnd();
|
|
127
|
+
else if (this.state !== S.END) throw new Error("MultipartParser.end(): stream ended unexpectedly");
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
c(g, "MultipartParser");
|
|
131
|
+
let MultipartParser = g;
|
|
132
|
+
function _fileName(R) {
|
|
133
|
+
const o = R.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);
|
|
134
|
+
if (!o) return;
|
|
135
|
+
const t = o[2] || o[3] || "";
|
|
136
|
+
let n = t.slice(t.lastIndexOf("\\") + 1);
|
|
137
|
+
return n = n.replace(/%22/g, "\""), n = n.replace(/&#(\d{4});/g, (E, l) => String.fromCharCode(l)), n;
|
|
138
|
+
}
|
|
139
|
+
c(_fileName, "_fileName");
|
|
140
|
+
async function toFormData(R, o) {
|
|
141
|
+
if (!/multipart/i.test(o)) throw new TypeError("Failed to fetch");
|
|
142
|
+
const t = o.match(/boundary=(?:"([^"]+)"|([^;]+))/i);
|
|
143
|
+
if (!t) throw new TypeError("no or bad content-type header, no multipart boundary");
|
|
144
|
+
const n = new MultipartParser(t[1] || t[2]);
|
|
145
|
+
let E, l, h, H, e, a;
|
|
146
|
+
const d = [], b = new node.FormData(), m = c((i) => {
|
|
147
|
+
h += u.decode(i, { stream: !0 });
|
|
148
|
+
}, "onPartData"), O = c((i) => {
|
|
149
|
+
d.push(i);
|
|
150
|
+
}, "appendToFile"), r = c(() => {
|
|
151
|
+
const i = new node.File(d, a, { type: e });
|
|
152
|
+
b.append(H, i);
|
|
153
|
+
}, "appendFileToFormData"), P = c(() => {
|
|
154
|
+
b.append(H, h);
|
|
155
|
+
}, "appendEntryToFormData"), u = new TextDecoder("utf-8");
|
|
156
|
+
u.decode(), n.onPartBegin = function() {
|
|
157
|
+
n.onPartData = m, n.onPartEnd = P, E = "", l = "", h = "", H = "", e = "", a = null, d.length = 0;
|
|
158
|
+
}, n.onHeaderField = function(i) {
|
|
159
|
+
E += u.decode(i, { stream: !0 });
|
|
160
|
+
}, n.onHeaderValue = function(i) {
|
|
161
|
+
l += u.decode(i, { stream: !0 });
|
|
162
|
+
}, n.onHeaderEnd = function() {
|
|
163
|
+
if (l += u.decode(), E = E.toLowerCase(), E === "content-disposition") {
|
|
164
|
+
const i = l.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);
|
|
165
|
+
i && (H = i[2] || i[3] || ""), a = _fileName(l), a && (n.onPartData = O, n.onPartEnd = r);
|
|
166
|
+
} else E === "content-type" && (e = l);
|
|
167
|
+
l = "", E = "";
|
|
168
|
+
};
|
|
169
|
+
for await (const i of R) n.write(i);
|
|
170
|
+
return n.end(), b;
|
|
171
|
+
}
|
|
172
|
+
c(toFormData, "toFormData"), exports.toFormData = toFormData;
|
|
173
|
+
}));
|
|
174
|
+
|
|
175
|
+
//#endregion
|
|
176
|
+
Object.defineProperty(exports, 'default', {
|
|
177
|
+
enumerable: true,
|
|
178
|
+
get: function () {
|
|
179
|
+
return require_multipart_parser();
|
|
180
|
+
}
|
|
181
|
+
});
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
import { __commonJSMin, __require } from "../../../../../../../_virtual/rolldown_runtime.mjs";
|
|
2
|
+
import { require_node_fetch_native_DhEqb06g } from "../shared/node-fetch-native.DhEqb06g.mjs";
|
|
3
|
+
import { require_node } from "../node.mjs";
|
|
4
|
+
|
|
5
|
+
//#region ../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/chunks/multipart-parser.cjs
|
|
6
|
+
var require_multipart_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
7
|
+
var y = Object.defineProperty;
|
|
8
|
+
var c = (R, o) => y(R, "name", {
|
|
9
|
+
value: o,
|
|
10
|
+
configurable: !0
|
|
11
|
+
});
|
|
12
|
+
const node = require_node();
|
|
13
|
+
__require("node:http"), __require("node:https"), __require("node:zlib"), __require("node:stream"), __require("node:buffer"), __require("node:util"), require_node_fetch_native_DhEqb06g(), __require("node:url"), __require("node:net"), __require("node:fs"), __require("node:path");
|
|
14
|
+
let s = 0;
|
|
15
|
+
const S = {
|
|
16
|
+
START_BOUNDARY: s++,
|
|
17
|
+
HEADER_FIELD_START: s++,
|
|
18
|
+
HEADER_FIELD: s++,
|
|
19
|
+
HEADER_VALUE_START: s++,
|
|
20
|
+
HEADER_VALUE: s++,
|
|
21
|
+
HEADER_VALUE_ALMOST_DONE: s++,
|
|
22
|
+
HEADERS_ALMOST_DONE: s++,
|
|
23
|
+
PART_DATA_START: s++,
|
|
24
|
+
PART_DATA: s++,
|
|
25
|
+
END: s++
|
|
26
|
+
};
|
|
27
|
+
let f = 1;
|
|
28
|
+
const F = {
|
|
29
|
+
PART_BOUNDARY: f,
|
|
30
|
+
LAST_BOUNDARY: f *= 2
|
|
31
|
+
}, LF = 10, CR = 13, SPACE = 32, HYPHEN = 45, COLON = 58, A = 97, Z = 122, lower = c((R) => R | 32, "lower"), noop = c(() => {}, "noop"), g = class g$1 {
|
|
32
|
+
constructor(o) {
|
|
33
|
+
this.index = 0, this.flags = 0, this.onHeaderEnd = noop, this.onHeaderField = noop, this.onHeadersEnd = noop, this.onHeaderValue = noop, this.onPartBegin = noop, this.onPartData = noop, this.onPartEnd = noop, this.boundaryChars = {}, o = `\r
|
|
34
|
+
--` + o;
|
|
35
|
+
const t = new Uint8Array(o.length);
|
|
36
|
+
for (let n = 0; n < o.length; n++) t[n] = o.charCodeAt(n), this.boundaryChars[t[n]] = !0;
|
|
37
|
+
this.boundary = t, this.lookbehind = new Uint8Array(this.boundary.length + 8), this.state = S.START_BOUNDARY;
|
|
38
|
+
}
|
|
39
|
+
write(o) {
|
|
40
|
+
let t = 0;
|
|
41
|
+
const n = o.length;
|
|
42
|
+
let E = this.index, { lookbehind: l, boundary: h, boundaryChars: H, index: e, state: a, flags: d } = this;
|
|
43
|
+
const b = this.boundary.length, m = b - 1, O = o.length;
|
|
44
|
+
let r, P;
|
|
45
|
+
const u = c((D) => {
|
|
46
|
+
this[D + "Mark"] = t;
|
|
47
|
+
}, "mark"), i = c((D) => {
|
|
48
|
+
delete this[D + "Mark"];
|
|
49
|
+
}, "clear"), T = c((D, p, _, N) => {
|
|
50
|
+
(p === void 0 || p !== _) && this[D](N && N.subarray(p, _));
|
|
51
|
+
}, "callback"), L = c((D, p) => {
|
|
52
|
+
const _ = D + "Mark";
|
|
53
|
+
_ in this && (p ? (T(D, this[_], t, o), delete this[_]) : (T(D, this[_], o.length, o), this[_] = 0));
|
|
54
|
+
}, "dataCallback");
|
|
55
|
+
for (t = 0; t < n; t++) switch (r = o[t], a) {
|
|
56
|
+
case S.START_BOUNDARY:
|
|
57
|
+
if (e === h.length - 2) {
|
|
58
|
+
if (r === HYPHEN) d |= F.LAST_BOUNDARY;
|
|
59
|
+
else if (r !== CR) return;
|
|
60
|
+
e++;
|
|
61
|
+
break;
|
|
62
|
+
} else if (e - 1 === h.length - 2) {
|
|
63
|
+
if (d & F.LAST_BOUNDARY && r === HYPHEN) a = S.END, d = 0;
|
|
64
|
+
else if (!(d & F.LAST_BOUNDARY) && r === LF) e = 0, T("onPartBegin"), a = S.HEADER_FIELD_START;
|
|
65
|
+
else return;
|
|
66
|
+
break;
|
|
67
|
+
}
|
|
68
|
+
r !== h[e + 2] && (e = -2), r === h[e + 2] && e++;
|
|
69
|
+
break;
|
|
70
|
+
case S.HEADER_FIELD_START: a = S.HEADER_FIELD, u("onHeaderField"), e = 0;
|
|
71
|
+
case S.HEADER_FIELD:
|
|
72
|
+
if (r === CR) {
|
|
73
|
+
i("onHeaderField"), a = S.HEADERS_ALMOST_DONE;
|
|
74
|
+
break;
|
|
75
|
+
}
|
|
76
|
+
if (e++, r === HYPHEN) break;
|
|
77
|
+
if (r === COLON) {
|
|
78
|
+
if (e === 1) return;
|
|
79
|
+
L("onHeaderField", !0), a = S.HEADER_VALUE_START;
|
|
80
|
+
break;
|
|
81
|
+
}
|
|
82
|
+
if (P = lower(r), P < A || P > Z) return;
|
|
83
|
+
break;
|
|
84
|
+
case S.HEADER_VALUE_START:
|
|
85
|
+
if (r === SPACE) break;
|
|
86
|
+
u("onHeaderValue"), a = S.HEADER_VALUE;
|
|
87
|
+
case S.HEADER_VALUE:
|
|
88
|
+
r === CR && (L("onHeaderValue", !0), T("onHeaderEnd"), a = S.HEADER_VALUE_ALMOST_DONE);
|
|
89
|
+
break;
|
|
90
|
+
case S.HEADER_VALUE_ALMOST_DONE:
|
|
91
|
+
if (r !== LF) return;
|
|
92
|
+
a = S.HEADER_FIELD_START;
|
|
93
|
+
break;
|
|
94
|
+
case S.HEADERS_ALMOST_DONE:
|
|
95
|
+
if (r !== LF) return;
|
|
96
|
+
T("onHeadersEnd"), a = S.PART_DATA_START;
|
|
97
|
+
break;
|
|
98
|
+
case S.PART_DATA_START: a = S.PART_DATA, u("onPartData");
|
|
99
|
+
case S.PART_DATA:
|
|
100
|
+
if (E = e, e === 0) {
|
|
101
|
+
for (t += m; t < O && !(o[t] in H);) t += b;
|
|
102
|
+
t -= m, r = o[t];
|
|
103
|
+
}
|
|
104
|
+
if (e < h.length) h[e] === r ? (e === 0 && L("onPartData", !0), e++) : e = 0;
|
|
105
|
+
else if (e === h.length) e++, r === CR ? d |= F.PART_BOUNDARY : r === HYPHEN ? d |= F.LAST_BOUNDARY : e = 0;
|
|
106
|
+
else if (e - 1 === h.length) if (d & F.PART_BOUNDARY) {
|
|
107
|
+
if (e = 0, r === LF) {
|
|
108
|
+
d &= ~F.PART_BOUNDARY, T("onPartEnd"), T("onPartBegin"), a = S.HEADER_FIELD_START;
|
|
109
|
+
break;
|
|
110
|
+
}
|
|
111
|
+
} else d & F.LAST_BOUNDARY && r === HYPHEN ? (T("onPartEnd"), a = S.END, d = 0) : e = 0;
|
|
112
|
+
if (e > 0) l[e - 1] = r;
|
|
113
|
+
else if (E > 0) {
|
|
114
|
+
const D = new Uint8Array(l.buffer, l.byteOffset, l.byteLength);
|
|
115
|
+
T("onPartData", 0, E, D), E = 0, u("onPartData"), t--;
|
|
116
|
+
}
|
|
117
|
+
break;
|
|
118
|
+
case S.END: break;
|
|
119
|
+
default: throw new Error(`Unexpected state entered: ${a}`);
|
|
120
|
+
}
|
|
121
|
+
L("onHeaderField"), L("onHeaderValue"), L("onPartData"), this.index = e, this.state = a, this.flags = d;
|
|
122
|
+
}
|
|
123
|
+
end() {
|
|
124
|
+
if (this.state === S.HEADER_FIELD_START && this.index === 0 || this.state === S.PART_DATA && this.index === this.boundary.length) this.onPartEnd();
|
|
125
|
+
else if (this.state !== S.END) throw new Error("MultipartParser.end(): stream ended unexpectedly");
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
c(g, "MultipartParser");
|
|
129
|
+
let MultipartParser = g;
|
|
130
|
+
function _fileName(R) {
|
|
131
|
+
const o = R.match(/\bfilename=("(.*?)"|([^()<>@,;:\\"/[\]?={}\s\t]+))($|;\s)/i);
|
|
132
|
+
if (!o) return;
|
|
133
|
+
const t = o[2] || o[3] || "";
|
|
134
|
+
let n = t.slice(t.lastIndexOf("\\") + 1);
|
|
135
|
+
return n = n.replace(/%22/g, "\""), n = n.replace(/&#(\d{4});/g, (E, l) => String.fromCharCode(l)), n;
|
|
136
|
+
}
|
|
137
|
+
c(_fileName, "_fileName");
|
|
138
|
+
async function toFormData(R, o) {
|
|
139
|
+
if (!/multipart/i.test(o)) throw new TypeError("Failed to fetch");
|
|
140
|
+
const t = o.match(/boundary=(?:"([^"]+)"|([^;]+))/i);
|
|
141
|
+
if (!t) throw new TypeError("no or bad content-type header, no multipart boundary");
|
|
142
|
+
const n = new MultipartParser(t[1] || t[2]);
|
|
143
|
+
let E, l, h, H, e, a;
|
|
144
|
+
const d = [], b = new node.FormData(), m = c((i) => {
|
|
145
|
+
h += u.decode(i, { stream: !0 });
|
|
146
|
+
}, "onPartData"), O = c((i) => {
|
|
147
|
+
d.push(i);
|
|
148
|
+
}, "appendToFile"), r = c(() => {
|
|
149
|
+
const i = new node.File(d, a, { type: e });
|
|
150
|
+
b.append(H, i);
|
|
151
|
+
}, "appendFileToFormData"), P = c(() => {
|
|
152
|
+
b.append(H, h);
|
|
153
|
+
}, "appendEntryToFormData"), u = new TextDecoder("utf-8");
|
|
154
|
+
u.decode(), n.onPartBegin = function() {
|
|
155
|
+
n.onPartData = m, n.onPartEnd = P, E = "", l = "", h = "", H = "", e = "", a = null, d.length = 0;
|
|
156
|
+
}, n.onHeaderField = function(i) {
|
|
157
|
+
E += u.decode(i, { stream: !0 });
|
|
158
|
+
}, n.onHeaderValue = function(i) {
|
|
159
|
+
l += u.decode(i, { stream: !0 });
|
|
160
|
+
}, n.onHeaderEnd = function() {
|
|
161
|
+
if (l += u.decode(), E = E.toLowerCase(), E === "content-disposition") {
|
|
162
|
+
const i = l.match(/\bname=("([^"]*)"|([^()<>@,;:\\"/[\]?={}\s\t]+))/i);
|
|
163
|
+
i && (H = i[2] || i[3] || ""), a = _fileName(l), a && (n.onPartData = O, n.onPartEnd = r);
|
|
164
|
+
} else E === "content-type" && (e = l);
|
|
165
|
+
l = "", E = "";
|
|
166
|
+
};
|
|
167
|
+
for await (const i of R) n.write(i);
|
|
168
|
+
return n.end(), b;
|
|
169
|
+
}
|
|
170
|
+
c(toFormData, "toFormData"), exports.toFormData = toFormData;
|
|
171
|
+
}));
|
|
172
|
+
|
|
173
|
+
//#endregion
|
|
174
|
+
export default require_multipart_parser();
|
|
175
|
+
|
|
176
|
+
export { };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
const require_rolldown_runtime = require('../../../../../../_virtual/rolldown_runtime.cjs');
|
|
4
|
+
const require_node_fetch_native_DhEqb06g$1 = require('./shared/node-fetch-native.DhEqb06g.cjs');
|
|
5
|
+
const require_node$1 = require('./node.cjs');
|
|
6
|
+
|
|
7
|
+
//#region ../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.cjs
|
|
8
|
+
var require_dist = /* @__PURE__ */ require_rolldown_runtime.__commonJSMin(((exports) => {
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
10
|
+
const node = require_node$1.default;
|
|
11
|
+
require("node:http"), require("node:https"), require("node:zlib"), require("node:stream"), require("node:buffer"), require("node:util"), require_node_fetch_native_DhEqb06g$1.default, require("node:url"), require("node:net"), require("node:fs"), require("node:path");
|
|
12
|
+
const o = !!globalThis.process?.env?.FORCE_NODE_FETCH, fetch = !o && globalThis.fetch || node.fetch, Blob = !o && globalThis.Blob || node.Blob, File = !o && globalThis.File || node.File, FormData = !o && globalThis.FormData || node.FormData, Headers = !o && globalThis.Headers || node.Headers, Request = !o && globalThis.Request || node.Request, Response = !o && globalThis.Response || node.Response, AbortController = !o && globalThis.AbortController || node.AbortController;
|
|
13
|
+
exports.AbortError = node.AbortError, exports.FetchError = node.FetchError, exports.blobFrom = node.blobFrom, exports.blobFromSync = node.blobFromSync, exports.fileFrom = node.fileFrom, exports.fileFromSync = node.fileFromSync, exports.isRedirect = node.isRedirect, exports.AbortController = AbortController, exports.Blob = Blob, exports.File = File, exports.FormData = FormData, exports.Headers = Headers, exports.Request = Request, exports.Response = Response, exports.default = fetch, exports.fetch = fetch;
|
|
14
|
+
}));
|
|
15
|
+
|
|
16
|
+
//#endregion
|
|
17
|
+
Object.defineProperty(exports, 'default', {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () {
|
|
20
|
+
return require_dist();
|
|
21
|
+
}
|
|
22
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { __commonJSMin, __require } from "../../../../../../_virtual/rolldown_runtime.mjs";
|
|
2
|
+
import { require_node_fetch_native_DhEqb06g } from "./shared/node-fetch-native.DhEqb06g.mjs";
|
|
3
|
+
import { require_node } from "./node.mjs";
|
|
4
|
+
|
|
5
|
+
//#region ../../node_modules/.pnpm/node-fetch-native@1.6.7/node_modules/node-fetch-native/dist/index.cjs
|
|
6
|
+
var require_dist = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
8
|
+
const node = require_node();
|
|
9
|
+
__require("node:http"), __require("node:https"), __require("node:zlib"), __require("node:stream"), __require("node:buffer"), __require("node:util"), require_node_fetch_native_DhEqb06g(), __require("node:url"), __require("node:net"), __require("node:fs"), __require("node:path");
|
|
10
|
+
const o = !!globalThis.process?.env?.FORCE_NODE_FETCH, fetch = !o && globalThis.fetch || node.fetch, Blob = !o && globalThis.Blob || node.Blob, File = !o && globalThis.File || node.File, FormData = !o && globalThis.FormData || node.FormData, Headers = !o && globalThis.Headers || node.Headers, Request = !o && globalThis.Request || node.Request, Response = !o && globalThis.Response || node.Response, AbortController = !o && globalThis.AbortController || node.AbortController;
|
|
11
|
+
exports.AbortError = node.AbortError, exports.FetchError = node.FetchError, exports.blobFrom = node.blobFrom, exports.blobFromSync = node.blobFromSync, exports.fileFrom = node.fileFrom, exports.fileFromSync = node.fileFromSync, exports.isRedirect = node.isRedirect, exports.AbortController = AbortController, exports.Blob = Blob, exports.File = File, exports.FormData = FormData, exports.Headers = Headers, exports.Request = Request, exports.Response = Response, exports.default = fetch, exports.fetch = fetch;
|
|
12
|
+
}));
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
export default require_dist();
|
|
16
|
+
|
|
17
|
+
export { require_dist };
|