@rsbuild/core 1.0.0 → 1.0.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/bin/rsbuild.js +4 -2
- package/compiled/autoprefixer/index.d.ts +95 -0
- package/compiled/autoprefixer/index.js +7000 -0
- package/compiled/autoprefixer/license +20 -0
- package/compiled/autoprefixer/package.json +1 -0
- package/compiled/browserslist/index.d.ts +201 -0
- package/compiled/browserslist/index.js +1867 -0
- package/compiled/browserslist/license +20 -0
- package/compiled/browserslist/package.json +1 -0
- package/compiled/chokidar/index.d.ts +198 -0
- package/compiled/chokidar/index.js +5139 -0
- package/compiled/chokidar/license +21 -0
- package/compiled/chokidar/package.json +1 -0
- package/compiled/commander/{typings/index.d.ts → index.d.ts} +184 -102
- package/compiled/commander/index.js +2190 -1
- package/compiled/commander/package.json +1 -1
- package/compiled/connect/index.d.ts +90 -0
- package/compiled/connect/index.js +1240 -0
- package/compiled/connect/license +25 -0
- package/compiled/connect/package.json +1 -0
- package/compiled/connect-history-api-fallback/index.js +149 -1
- package/compiled/connect-history-api-fallback/package.json +1 -1
- package/compiled/css-loader/api.js +85 -0
- package/compiled/css-loader/getUrl.js +26 -0
- package/compiled/css-loader/index.d.ts +1 -0
- package/compiled/css-loader/index.js +7541 -0
- package/compiled/css-loader/license +20 -0
- package/compiled/css-loader/noSourceMaps.js +5 -0
- package/compiled/css-loader/package.json +1 -0
- package/compiled/css-loader/semver.js +1 -0
- package/compiled/css-loader/sourceMaps.js +16 -0
- package/compiled/dotenv/{lib/main.d.ts → index.d.ts} +25 -24
- package/compiled/dotenv/index.js +336 -1
- package/compiled/dotenv/package.json +1 -1
- package/compiled/dotenv-expand/index.d.ts +52 -0
- package/compiled/dotenv-expand/index.js +105 -1
- package/compiled/dotenv-expand/package.json +1 -1
- package/compiled/html-rspack-plugin/default_index.ejs +9 -0
- package/compiled/html-rspack-plugin/index.d.ts +284 -0
- package/compiled/html-rspack-plugin/index.js +1574 -0
- package/compiled/html-rspack-plugin/license +20 -0
- package/compiled/html-rspack-plugin/loader.js +173 -0
- package/compiled/html-rspack-plugin/package.json +1 -0
- package/compiled/http-compression/index.js +134 -1
- package/compiled/http-compression/package.json +1 -1
- package/compiled/http-proxy-middleware/index.d.ts +315 -0
- package/compiled/http-proxy-middleware/index.js +5251 -0
- package/compiled/http-proxy-middleware/license +22 -0
- package/compiled/http-proxy-middleware/package.json +1 -0
- package/compiled/jiti/index.d.ts +1 -0
- package/compiled/jiti/index.js +254 -1748
- package/compiled/jiti/package.json +1 -1
- package/compiled/launch-editor-middleware/index.d.ts +1 -0
- package/compiled/launch-editor-middleware/index.js +696 -0
- package/compiled/launch-editor-middleware/license +21 -0
- package/compiled/launch-editor-middleware/package.json +1 -0
- package/compiled/on-finished/index.d.ts +13 -0
- package/compiled/on-finished/index.js +197 -0
- package/compiled/on-finished/license +23 -0
- package/compiled/on-finished/package.json +1 -0
- package/compiled/open/index.d.ts +1 -153
- package/compiled/open/index.js +409 -1
- package/compiled/open/package.json +1 -1
- package/compiled/picocolors/index.d.ts +34 -0
- package/compiled/picocolors/index.js +97 -0
- package/compiled/picocolors/license +15 -0
- package/compiled/picocolors/package.json +1 -0
- package/compiled/postcss-load-config/index.d.ts +1 -0
- package/compiled/postcss-load-config/index.js +751 -0
- package/compiled/postcss-load-config/license +20 -0
- package/compiled/postcss-load-config/package.json +1 -0
- package/compiled/postcss-loader/index.d.ts +1 -0
- package/compiled/postcss-loader/index.js +8423 -0
- package/compiled/postcss-loader/license +20 -0
- package/compiled/postcss-loader/package.json +1 -0
- package/compiled/postcss-loader/semver.js +1 -0
- package/compiled/postcss-value-parser/index.d.ts +1 -0
- package/compiled/postcss-value-parser/index.js +495 -0
- package/compiled/postcss-value-parser/license +22 -0
- package/compiled/postcss-value-parser/package.json +1 -0
- package/compiled/rslog/index.d.ts +66 -0
- package/compiled/rslog/index.js +334 -0
- package/compiled/rslog/license +21 -0
- package/compiled/rslog/package.json +1 -0
- package/compiled/rspack-chain/index.d.ts +601 -0
- package/compiled/rspack-chain/index.js +1702 -0
- package/compiled/rspack-chain/license +373 -0
- package/compiled/rspack-chain/package.json +1 -0
- package/compiled/rspack-manifest-plugin/index.d.ts +1 -0
- package/compiled/rspack-manifest-plugin/index.js +5884 -0
- package/compiled/rspack-manifest-plugin/license +21 -0
- package/compiled/rspack-manifest-plugin/package.json +1 -0
- package/compiled/sirv/index.d.ts +1 -0
- package/compiled/sirv/index.js +701 -1
- package/compiled/sirv/package.json +1 -1
- package/compiled/style-loader/index.d.ts +1 -0
- package/compiled/style-loader/index.js +427 -0
- package/compiled/style-loader/license +20 -0
- package/compiled/style-loader/package.json +1 -0
- package/compiled/style-loader/runtime/injectStylesIntoLinkTag.js +29 -0
- package/compiled/style-loader/runtime/injectStylesIntoStyleTag.js +84 -0
- package/compiled/style-loader/runtime/insertBySelector.js +34 -0
- package/compiled/style-loader/runtime/insertStyleElement.js +10 -0
- package/compiled/style-loader/runtime/isEqualLocals.js +28 -0
- package/compiled/style-loader/runtime/isOldIE.js +17 -0
- package/compiled/style-loader/runtime/setAttributesWithAttributes.js +13 -0
- package/compiled/style-loader/runtime/setAttributesWithAttributesAndNonce.js +9 -0
- package/compiled/style-loader/runtime/setAttributesWithoutAttributes.js +10 -0
- package/compiled/style-loader/runtime/singletonStyleDomAPI.js +86 -0
- package/compiled/style-loader/runtime/styleDomAPI.js +61 -0
- package/compiled/style-loader/runtime/styleTagTransform.js +14 -0
- package/compiled/webpack-bundle-analyzer/index.d.ts +160 -0
- package/compiled/webpack-bundle-analyzer/index.js +13352 -0
- package/compiled/webpack-bundle-analyzer/license +20 -0
- package/compiled/webpack-bundle-analyzer/package.json +1 -0
- package/compiled/webpack-bundle-analyzer/public/viewer.js +16 -0
- package/compiled/webpack-bundle-analyzer/public/viewer.js.LICENSE.txt +10 -0
- package/compiled/webpack-dev-middleware/index.d.ts +1 -0
- package/compiled/webpack-dev-middleware/index.js +5672 -0
- package/compiled/webpack-dev-middleware/license +20 -0
- package/compiled/webpack-dev-middleware/package.json +1 -0
- package/compiled/webpack-dev-middleware/schema-utils.js +1 -0
- package/compiled/webpack-merge/index.d.ts +31 -0
- package/compiled/webpack-merge/index.js +1200 -0
- package/compiled/webpack-merge/license +20 -0
- package/compiled/webpack-merge/package.json +1 -0
- package/compiled/ws/index.d.ts +402 -0
- package/compiled/ws/index.js +3153 -0
- package/compiled/ws/license +20 -0
- package/compiled/ws/package.json +1 -0
- package/dist/client/hmr.js +249 -405
- package/dist/client/overlay.js +221 -0
- package/dist/{rspack-provider/plugins/basic.js → ignoreCssLoader.cjs} +12 -14
- package/dist/index.cjs +9004 -0
- package/dist/index.js +9075 -16
- package/dist/transformLoader.cjs +54 -0
- package/dist/transformRawLoader.cjs +65 -0
- package/dist-types/cli/commands.d.ts +20 -0
- package/dist-types/cli/init.d.ts +6 -0
- package/dist-types/cli/prepare.d.ts +1 -0
- package/dist-types/client/format.d.ts +5 -0
- package/dist-types/client/hmr.d.ts +1 -0
- package/dist-types/client/overlay.d.ts +1 -0
- package/dist-types/config.d.ts +63 -0
- package/dist-types/configChain.d.ts +162 -0
- package/dist-types/constants.d.ts +32 -0
- package/dist-types/createContext.d.ts +11 -0
- package/dist-types/createRsbuild.d.ts +2 -0
- package/dist-types/helpers/path.d.ts +10 -0
- package/dist-types/helpers.d.ts +57 -0
- package/dist-types/index.d.ts +24 -0
- package/dist-types/initHooks.d.ts +23 -0
- package/dist-types/initPlugins.d.ts +6 -0
- package/dist-types/internal.d.ts +20 -0
- package/dist-types/loadEnv.d.ts +27 -0
- package/dist-types/loader/ignoreCssLoader.d.ts +2 -0
- package/dist-types/loader/transformLoader.d.ts +5 -0
- package/dist-types/loader/transformRawLoader.d.ts +3 -0
- package/dist-types/logger.d.ts +4 -0
- package/dist-types/mergeConfig.d.ts +2 -0
- package/dist-types/package.json +1 -0
- package/dist-types/pluginHelper.d.ts +12 -0
- package/dist-types/pluginManager.d.ts +7 -0
- package/{dist → dist-types}/plugins/asset.d.ts +1 -1
- package/dist-types/plugins/basic.d.ts +5 -0
- package/dist-types/plugins/bundleAnalyzer.d.ts +2 -0
- package/dist-types/plugins/cache.d.ts +2 -0
- package/dist-types/plugins/cleanOutput.d.ts +2 -0
- package/dist-types/plugins/css.d.ts +10 -0
- package/dist-types/plugins/define.d.ts +2 -0
- package/dist-types/plugins/entry.d.ts +2 -0
- package/dist-types/plugins/externals.d.ts +2 -0
- package/{dist → dist-types}/plugins/fileSize.d.ts +1 -1
- package/dist-types/plugins/html.d.ts +9 -0
- package/dist-types/plugins/inlineChunk.d.ts +2 -0
- package/dist-types/plugins/lazyCompilation.d.ts +2 -0
- package/dist-types/plugins/manifest.d.ts +2 -0
- package/dist-types/plugins/minimize.d.ts +10 -0
- package/dist-types/plugins/moduleFederation.d.ts +2 -0
- package/dist-types/plugins/moment.d.ts +2 -0
- package/dist-types/plugins/nodeAddons.d.ts +2 -0
- package/dist-types/plugins/nonce.d.ts +2 -0
- package/{dist/plugins/startUrl.d.ts → dist-types/plugins/open.d.ts} +2 -1
- package/dist-types/plugins/output.d.ts +2 -0
- package/{dist → dist-types}/plugins/performance.d.ts +1 -1
- package/dist-types/plugins/progress.d.ts +2 -0
- package/dist-types/plugins/resolve.d.ts +2 -0
- package/dist-types/plugins/resourceHints.d.ts +2 -0
- package/dist-types/plugins/rsdoctor.d.ts +2 -0
- package/dist-types/plugins/rspackProfile.d.ts +2 -0
- package/dist-types/plugins/server.d.ts +2 -0
- package/dist-types/plugins/splitChunks.d.ts +4 -0
- package/dist-types/plugins/sri.d.ts +2 -0
- package/dist-types/plugins/swc.d.ts +7 -0
- package/dist-types/plugins/target.d.ts +2 -0
- package/dist-types/plugins/wasm.d.ts +2 -0
- package/dist-types/provider/build.d.ts +3 -0
- package/dist-types/provider/createCompiler.d.ts +33 -0
- package/dist-types/provider/initConfigs.d.ts +10 -0
- package/dist-types/provider/inspectConfig.d.ts +6 -0
- package/dist-types/provider/provider.d.ts +2 -0
- package/dist-types/provider/rspackConfig.d.ts +8 -0
- package/dist-types/rspack/HtmlAppIconPlugin.d.ts +13 -0
- package/dist-types/rspack/HtmlBasicPlugin.d.ts +37 -0
- package/dist-types/rspack/InlineChunkHtmlPlugin.d.ts +29 -0
- package/dist-types/rspack/preload/HtmlPreloadOrPrefetchPlugin.d.ts +29 -0
- package/dist-types/rspack/preload/helpers/determineAsValue.d.ts +22 -0
- package/dist-types/rspack/preload/helpers/doesChunkBelongToHtml.d.ts +29 -0
- package/dist-types/rspack/preload/helpers/extractChunks.d.ts +28 -0
- package/dist-types/rspack/preload/helpers/index.d.ts +4 -0
- package/dist-types/rspack/preload/helpers/type.d.ts +13 -0
- package/dist-types/server/compilerDevMiddleware.d.ts +30 -0
- package/dist-types/server/devMiddleware.d.ts +39 -0
- package/dist-types/server/devServer.d.ts +50 -0
- package/dist-types/server/environment.d.ts +7 -0
- package/dist-types/server/getDevMiddlewares.d.ts +25 -0
- package/dist-types/server/helper.d.ts +59 -0
- package/dist-types/server/httpServer.d.ts +8 -0
- package/dist-types/server/middlewares.d.ts +22 -0
- package/dist-types/server/prodServer.d.ts +25 -0
- package/dist-types/server/proxy.d.ts +6 -0
- package/dist-types/server/restart.d.ts +9 -0
- package/dist-types/server/runner/asModule.d.ts +2 -0
- package/dist-types/server/runner/basic.d.ts +25 -0
- package/dist-types/server/runner/cjs.d.ts +10 -0
- package/dist-types/server/runner/esm.d.ts +6 -0
- package/dist-types/server/runner/index.d.ts +8 -0
- package/dist-types/server/runner/type.d.ts +36 -0
- package/dist-types/server/socketServer.d.ts +22 -0
- package/dist-types/server/watchFiles.d.ts +11 -0
- package/dist-types/types/config/dev.d.ts +88 -0
- package/dist-types/types/config/html.d.ts +107 -0
- package/dist-types/types/config/index.d.ts +134 -0
- package/dist-types/types/config/output.d.ts +297 -0
- package/dist-types/types/config/performance.d.ts +123 -0
- package/dist-types/types/config/security.d.ts +18 -0
- package/dist-types/types/config/server.d.ts +106 -0
- package/dist-types/types/config/source.d.ts +79 -0
- package/dist-types/types/config/tools.d.ts +85 -0
- package/dist-types/types/context.d.ts +38 -0
- package/dist-types/types/hooks.d.ts +125 -0
- package/dist-types/types/index.d.ts +9 -0
- package/dist-types/types/plugin.d.ts +197 -0
- package/dist-types/types/rsbuild.d.ts +109 -0
- package/dist-types/types/rspack.d.ts +28 -0
- package/dist-types/types/stats.d.ts +17 -0
- package/dist-types/types/thirdParty.d.ts +168 -0
- package/dist-types/types/utils.d.ts +13 -0
- package/package.json +73 -43
- package/types.d.ts +36 -4
- package/compiled/dotenv-expand/lib/main.d.ts +0 -29
- package/compiled/jiti/types/jiti.d.ts +0 -19
- package/compiled/jiti/types/types.d.ts +0 -31
- package/compiled/open/license +0 -9
- package/compiled/sirv/sirv.d.ts +0 -27
- package/dist/cli/commands.d.ts +0 -20
- package/dist/cli/commands.js +0 -131
- package/dist/cli/config.d.ts +0 -9
- package/dist/cli/config.js +0 -110
- package/dist/cli/prepare.d.ts +0 -1
- package/dist/cli/prepare.js +0 -43
- package/dist/client/hmr/createSocketUrl.d.ts +0 -16
- package/dist/client/hmr/index.d.ts +0 -1
- package/dist/createRsbuild.d.ts +0 -10
- package/dist/createRsbuild.js +0 -100
- package/dist/index.d.ts +0 -10
- package/dist/loadEnv.d.ts +0 -5
- package/dist/loadEnv.js +0 -58
- package/dist/plugins/asset.js +0 -73
- package/dist/plugins/bundleAnalyzer.d.ts +0 -2
- package/dist/plugins/bundleAnalyzer.js +0 -59
- package/dist/plugins/cache.d.ts +0 -2
- package/dist/plugins/cache.js +0 -112
- package/dist/plugins/cleanOutput.d.ts +0 -2
- package/dist/plugins/cleanOutput.js +0 -47
- package/dist/plugins/define.d.ts +0 -2
- package/dist/plugins/define.js +0 -47
- package/dist/plugins/devtool.d.ts +0 -2
- package/dist/plugins/devtool.js +0 -46
- package/dist/plugins/entry.d.ts +0 -2
- package/dist/plugins/entry.js +0 -53
- package/dist/plugins/externals.d.ts +0 -2
- package/dist/plugins/externals.js +0 -48
- package/dist/plugins/fileSize.js +0 -158
- package/dist/plugins/html.d.ts +0 -15
- package/dist/plugins/html.js +0 -270
- package/dist/plugins/index.d.ts +0 -2
- package/dist/plugins/index.js +0 -61
- package/dist/plugins/inlineChunk.d.ts +0 -2
- package/dist/plugins/inlineChunk.js +0 -76
- package/dist/plugins/moment.d.ts +0 -2
- package/dist/plugins/moment.js +0 -68
- package/dist/plugins/networkPerformance.d.ts +0 -2
- package/dist/plugins/networkPerformance.js +0 -58
- package/dist/plugins/nodeAddons.d.ts +0 -2
- package/dist/plugins/nodeAddons.js +0 -70
- package/dist/plugins/performance.js +0 -63
- package/dist/plugins/preloadOrPrefetch.d.ts +0 -2
- package/dist/plugins/preloadOrPrefetch.js +0 -61
- package/dist/plugins/splitChunks.d.ts +0 -2
- package/dist/plugins/splitChunks.js +0 -228
- package/dist/plugins/startUrl.js +0 -148
- package/dist/plugins/target.d.ts +0 -2
- package/dist/plugins/target.js +0 -53
- package/dist/plugins/toml.d.ts +0 -2
- package/dist/plugins/toml.js +0 -36
- package/dist/plugins/wasm.d.ts +0 -2
- package/dist/plugins/wasm.js +0 -51
- package/dist/plugins/yaml.d.ts +0 -2
- package/dist/plugins/yaml.js +0 -36
- package/dist/rspack-plugins/HtmlBasicPlugin.d.ts +0 -19
- package/dist/rspack-plugins/HtmlBasicPlugin.js +0 -87
- package/dist/rspack-plugins/RemoveCssSourcemapPlugin.d.ts +0 -8
- package/dist/rspack-plugins/RemoveCssSourcemapPlugin.js +0 -51
- package/dist/rspack-provider/config.d.ts +0 -9
- package/dist/rspack-provider/config.js +0 -47
- package/dist/rspack-provider/core/build.d.ts +0 -19
- package/dist/rspack-provider/core/build.js +0 -79
- package/dist/rspack-provider/core/createCompiler.d.ts +0 -11
- package/dist/rspack-provider/core/createCompiler.js +0 -112
- package/dist/rspack-provider/core/createContext.d.ts +0 -13
- package/dist/rspack-provider/core/createContext.js +0 -133
- package/dist/rspack-provider/core/devMiddleware.d.ts +0 -3
- package/dist/rspack-provider/core/devMiddleware.js +0 -65
- package/dist/rspack-provider/core/initConfigs.d.ts +0 -14
- package/dist/rspack-provider/core/initConfigs.js +0 -78
- package/dist/rspack-provider/core/initHooks.d.ts +0 -19
- package/dist/rspack-provider/core/initHooks.js +0 -45
- package/dist/rspack-provider/core/initPlugins.d.ts +0 -9
- package/dist/rspack-provider/core/initPlugins.js +0 -87
- package/dist/rspack-provider/core/inspectConfig.d.ts +0 -19
- package/dist/rspack-provider/core/inspectConfig.js +0 -81
- package/dist/rspack-provider/core/rspackConfig.d.ts +0 -9
- package/dist/rspack-provider/core/rspackConfig.js +0 -132
- package/dist/rspack-provider/css-modules-typescript-pre-loader/index.d.ts +0 -6
- package/dist/rspack-provider/css-modules-typescript-pre-loader/index.js +0 -84
- package/dist/rspack-provider/css-modules-typescript-pre-loader/postcss-icss-extract-plugin.d.ts +0 -11
- package/dist/rspack-provider/css-modules-typescript-pre-loader/postcss-icss-extract-plugin.js +0 -67
- package/dist/rspack-provider/index.d.ts +0 -5
- package/dist/rspack-provider/index.js +0 -38
- package/dist/rspack-provider/plugins/basic.d.ts +0 -5
- package/dist/rspack-provider/plugins/css.d.ts +0 -29
- package/dist/rspack-provider/plugins/css.js +0 -199
- package/dist/rspack-provider/plugins/hmr.d.ts +0 -2
- package/dist/rspack-provider/plugins/hmr.js +0 -38
- package/dist/rspack-provider/plugins/less.d.ts +0 -2
- package/dist/rspack-provider/plugins/less.js +0 -78
- package/dist/rspack-provider/plugins/minimize.d.ts +0 -5
- package/dist/rspack-provider/plugins/minimize.js +0 -77
- package/dist/rspack-provider/plugins/output.d.ts +0 -2
- package/dist/rspack-provider/plugins/output.js +0 -65
- package/dist/rspack-provider/plugins/progress.d.ts +0 -2
- package/dist/rspack-provider/plugins/progress.js +0 -61
- package/dist/rspack-provider/plugins/resolve.d.ts +0 -2
- package/dist/rspack-provider/plugins/resolve.js +0 -54
- package/dist/rspack-provider/plugins/rspackProfile.d.ts +0 -5
- package/dist/rspack-provider/plugins/rspackProfile.js +0 -107
- package/dist/rspack-provider/plugins/sass.d.ts +0 -2
- package/dist/rspack-provider/plugins/sass.js +0 -83
- package/dist/rspack-provider/plugins/swc.d.ts +0 -7
- package/dist/rspack-provider/plugins/swc.js +0 -147
- package/dist/rspack-provider/plugins/transition.d.ts +0 -5
- package/dist/rspack-provider/plugins/transition.js +0 -42
- package/dist/rspack-provider/provider.d.ts +0 -8
- package/dist/rspack-provider/provider.js +0 -117
- package/dist/rspack-provider/shared.d.ts +0 -8
- package/dist/rspack-provider/shared.js +0 -116
- package/dist/server/dev-middleware/index.d.ts +0 -24
- package/dist/server/dev-middleware/index.js +0 -91
- package/dist/server/dev-middleware/socketServer.d.ts +0 -22
- package/dist/server/dev-middleware/socketServer.js +0 -164
- package/dist/server/devServer.d.ts +0 -34
- package/dist/server/devServer.js +0 -252
- package/dist/server/index.d.ts +0 -2
- package/dist/server/index.js +0 -31
- package/dist/server/middlewares.d.ts +0 -9
- package/dist/server/middlewares.js +0 -115
- package/dist/server/prodServer.d.ts +0 -33
- package/dist/server/prodServer.js +0 -197
- package/dist/server/proxy.d.ts +0 -9
- package/dist/server/proxy.js +0 -90
- package/dist/server/restart.d.ts +0 -11
- package/dist/server/restart.js +0 -65
- package/dist/types.d.ts +0 -19
- package/dist/types.js +0 -16
- package/static/template.html +0 -7
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
Copyright JS Foundation and other contributors
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
4
|
+
a copy of this software and associated documentation files (the
|
|
5
|
+
'Software'), to deal in the Software without restriction, including
|
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
9
|
+
the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be
|
|
12
|
+
included in all copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
17
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
18
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
19
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
20
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"css-loader","author":"Tobias Koppers @sokra","version":"7.1.2","funding":{"type":"opencollective","url":"https://opencollective.com/webpack"},"license":"MIT","types":"index.d.ts","type":"commonjs"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports.satisfies = () => true;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
module.exports = function (item) {
|
|
4
|
+
var content = item[1];
|
|
5
|
+
var cssMapping = item[3];
|
|
6
|
+
if (!cssMapping) {
|
|
7
|
+
return content;
|
|
8
|
+
}
|
|
9
|
+
if (typeof btoa === "function") {
|
|
10
|
+
var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(cssMapping))));
|
|
11
|
+
var data = "sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(base64);
|
|
12
|
+
var sourceMapping = "/*# ".concat(data, " */");
|
|
13
|
+
return [content].concat([sourceMapping]).join("\n");
|
|
14
|
+
}
|
|
15
|
+
return [content].join("\n");
|
|
16
|
+
};
|
|
@@ -1,33 +1,36 @@
|
|
|
1
|
-
// TypeScript Version: 3.0
|
|
2
1
|
/// <reference types="node" />
|
|
3
|
-
import
|
|
2
|
+
import { URL } from 'url';
|
|
3
|
+
|
|
4
|
+
// TypeScript Version: 3.0
|
|
5
|
+
|
|
4
6
|
|
|
5
|
-
|
|
7
|
+
interface DotenvParseOutput {
|
|
6
8
|
[name: string]: string;
|
|
7
9
|
}
|
|
8
10
|
|
|
9
11
|
/**
|
|
10
12
|
* Parses a string or buffer in the .env file format into an object.
|
|
11
13
|
*
|
|
12
|
-
* See https://docs
|
|
14
|
+
* See https://dotenvx.com/docs
|
|
13
15
|
*
|
|
14
16
|
* @param src - contents to be parsed. example: `'DB_HOST=localhost'`
|
|
15
|
-
* @param options - additional options. example: `{ debug: true }`
|
|
16
17
|
* @returns an object with keys and values based on `src`. example: `{ DB_HOST : 'localhost' }`
|
|
17
18
|
*/
|
|
18
|
-
|
|
19
|
+
declare function parse<T extends DotenvParseOutput = DotenvParseOutput>(
|
|
19
20
|
src: string | Buffer
|
|
20
21
|
): T;
|
|
21
22
|
|
|
22
|
-
|
|
23
|
+
interface DotenvConfigOptions {
|
|
23
24
|
/**
|
|
24
25
|
* Default: `path.resolve(process.cwd(), '.env')`
|
|
25
26
|
*
|
|
26
27
|
* Specify a custom path if your file containing environment variables is located elsewhere.
|
|
28
|
+
* Can also be an array of strings, specifying multiple paths.
|
|
27
29
|
*
|
|
28
30
|
* example: `require('dotenv').config({ path: '/custom/path/to/.env' })`
|
|
31
|
+
* example: `require('dotenv').config({ path: ['/path/to/first.env', '/path/to/second.env'] })`
|
|
29
32
|
*/
|
|
30
|
-
path?: string | URL;
|
|
33
|
+
path?: string | string[] | URL;
|
|
31
34
|
|
|
32
35
|
/**
|
|
33
36
|
* Default: `utf8`
|
|
@@ -70,17 +73,17 @@ export interface DotenvConfigOptions {
|
|
|
70
73
|
*
|
|
71
74
|
* Pass the DOTENV_KEY directly to config options. Defaults to looking for process.env.DOTENV_KEY environment variable. Note this only applies to decrypting .env.vault files. If passed as null or undefined, or not passed at all, dotenv falls back to its traditional job of parsing a .env file.
|
|
72
75
|
*
|
|
73
|
-
* example: `require('dotenv').config({ DOTENV_KEY: 'dotenv://:key_1234…@
|
|
76
|
+
* example: `require('dotenv').config({ DOTENV_KEY: 'dotenv://:key_1234…@dotenvx.com/vault/.env.vault?environment=production' })`
|
|
74
77
|
*/
|
|
75
78
|
DOTENV_KEY?: string;
|
|
76
79
|
}
|
|
77
80
|
|
|
78
|
-
|
|
81
|
+
interface DotenvConfigOutput {
|
|
79
82
|
error?: Error;
|
|
80
83
|
parsed?: DotenvParseOutput;
|
|
81
84
|
}
|
|
82
85
|
|
|
83
|
-
|
|
86
|
+
interface DotenvPopulateOptions {
|
|
84
87
|
/**
|
|
85
88
|
* Default: `false`
|
|
86
89
|
*
|
|
@@ -100,40 +103,36 @@ export interface DotenvPopulateOptions {
|
|
|
100
103
|
override?: boolean;
|
|
101
104
|
}
|
|
102
105
|
|
|
103
|
-
|
|
104
|
-
error?: Error;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
export interface DotenvPopulateInput {
|
|
106
|
+
interface DotenvPopulateInput {
|
|
108
107
|
[name: string]: string;
|
|
109
108
|
}
|
|
110
109
|
|
|
111
110
|
/**
|
|
112
111
|
* Loads `.env` file contents into process.env by default. If `DOTENV_KEY` is present, it smartly attempts to load encrypted `.env.vault` file contents into process.env.
|
|
113
112
|
*
|
|
114
|
-
* See https://docs
|
|
113
|
+
* See https://dotenvx.com/docs
|
|
115
114
|
*
|
|
116
115
|
* @param options - additional options. example: `{ path: './custom/path', encoding: 'latin1', debug: true, override: false }`
|
|
117
116
|
* @returns an object with a `parsed` key if successful or `error` key if an error occurred. example: { parsed: { KEY: 'value' } }
|
|
118
117
|
*
|
|
119
118
|
*/
|
|
120
|
-
|
|
119
|
+
declare function config(options?: DotenvConfigOptions): DotenvConfigOutput;
|
|
121
120
|
|
|
122
121
|
/**
|
|
123
122
|
* Loads `.env` file contents into process.env.
|
|
124
123
|
*
|
|
125
|
-
* See https://docs
|
|
124
|
+
* See https://dotenvx.com/docs
|
|
126
125
|
*
|
|
127
126
|
* @param options - additional options. example: `{ path: './custom/path', encoding: 'latin1', debug: true, override: false }`
|
|
128
127
|
* @returns an object with a `parsed` key if successful or `error` key if an error occurred. example: { parsed: { KEY: 'value' } }
|
|
129
128
|
*
|
|
130
129
|
*/
|
|
131
|
-
|
|
130
|
+
declare function configDotenv(options?: DotenvConfigOptions): DotenvConfigOutput;
|
|
132
131
|
|
|
133
132
|
/**
|
|
134
133
|
* Loads `source` json contents into `target` like process.env.
|
|
135
134
|
*
|
|
136
|
-
* See https://docs
|
|
135
|
+
* See https://dotenvx.com/docs
|
|
137
136
|
*
|
|
138
137
|
* @param processEnv - the target JSON object. in most cases use process.env but you can also pass your own JSON object
|
|
139
138
|
* @param parsed - the source JSON object
|
|
@@ -141,16 +140,18 @@ export function configDotenv(options?: DotenvConfigOptions): DotenvConfigOutput;
|
|
|
141
140
|
* @returns {void}
|
|
142
141
|
*
|
|
143
142
|
*/
|
|
144
|
-
|
|
143
|
+
declare function populate(processEnv: DotenvPopulateInput, parsed: DotenvPopulateInput, options?: DotenvConfigOptions): void;
|
|
145
144
|
|
|
146
145
|
/**
|
|
147
146
|
* Decrypt ciphertext
|
|
148
147
|
*
|
|
149
|
-
* See https://docs
|
|
148
|
+
* See https://dotenvx.com/docs
|
|
150
149
|
*
|
|
151
150
|
* @param encrypted - the encrypted ciphertext string
|
|
152
151
|
* @param keyStr - the decryption key string
|
|
153
152
|
* @returns {string}
|
|
154
153
|
*
|
|
155
154
|
*/
|
|
156
|
-
|
|
155
|
+
declare function decrypt(encrypted: string, keyStr: string): string;
|
|
156
|
+
|
|
157
|
+
export { type DotenvConfigOptions, type DotenvConfigOutput, type DotenvParseOutput, type DotenvPopulateInput, type DotenvPopulateOptions, config, configDotenv, decrypt, parse, populate };
|
package/compiled/dotenv/index.js
CHANGED
|
@@ -1 +1,336 @@
|
|
|
1
|
-
(()
|
|
1
|
+
(() => {
|
|
2
|
+
var __webpack_modules__ = {
|
|
3
|
+
396: (module, __unused_webpack_exports, __nccwpck_require__) => {
|
|
4
|
+
const fs = __nccwpck_require__(147);
|
|
5
|
+
const path = __nccwpck_require__(17);
|
|
6
|
+
const os = __nccwpck_require__(37);
|
|
7
|
+
const crypto = __nccwpck_require__(113);
|
|
8
|
+
const packageJson = __nccwpck_require__(684);
|
|
9
|
+
const version = packageJson.version;
|
|
10
|
+
const LINE =
|
|
11
|
+
/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/gm;
|
|
12
|
+
function parse(src) {
|
|
13
|
+
const obj = {};
|
|
14
|
+
let lines = src.toString();
|
|
15
|
+
lines = lines.replace(/\r\n?/gm, "\n");
|
|
16
|
+
let match;
|
|
17
|
+
while ((match = LINE.exec(lines)) != null) {
|
|
18
|
+
const key = match[1];
|
|
19
|
+
let value = match[2] || "";
|
|
20
|
+
value = value.trim();
|
|
21
|
+
const maybeQuote = value[0];
|
|
22
|
+
value = value.replace(/^(['"`])([\s\S]*)\1$/gm, "$2");
|
|
23
|
+
if (maybeQuote === '"') {
|
|
24
|
+
value = value.replace(/\\n/g, "\n");
|
|
25
|
+
value = value.replace(/\\r/g, "\r");
|
|
26
|
+
}
|
|
27
|
+
obj[key] = value;
|
|
28
|
+
}
|
|
29
|
+
return obj;
|
|
30
|
+
}
|
|
31
|
+
function _parseVault(options) {
|
|
32
|
+
const vaultPath = _vaultPath(options);
|
|
33
|
+
const result = DotenvModule.configDotenv({ path: vaultPath });
|
|
34
|
+
if (!result.parsed) {
|
|
35
|
+
const err = new Error(
|
|
36
|
+
`MISSING_DATA: Cannot parse ${vaultPath} for an unknown reason`,
|
|
37
|
+
);
|
|
38
|
+
err.code = "MISSING_DATA";
|
|
39
|
+
throw err;
|
|
40
|
+
}
|
|
41
|
+
const keys = _dotenvKey(options).split(",");
|
|
42
|
+
const length = keys.length;
|
|
43
|
+
let decrypted;
|
|
44
|
+
for (let i = 0; i < length; i++) {
|
|
45
|
+
try {
|
|
46
|
+
const key = keys[i].trim();
|
|
47
|
+
const attrs = _instructions(result, key);
|
|
48
|
+
decrypted = DotenvModule.decrypt(attrs.ciphertext, attrs.key);
|
|
49
|
+
break;
|
|
50
|
+
} catch (error) {
|
|
51
|
+
if (i + 1 >= length) {
|
|
52
|
+
throw error;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
return DotenvModule.parse(decrypted);
|
|
57
|
+
}
|
|
58
|
+
function _log(message) {
|
|
59
|
+
console.log(`[dotenv@${version}][INFO] ${message}`);
|
|
60
|
+
}
|
|
61
|
+
function _warn(message) {
|
|
62
|
+
console.log(`[dotenv@${version}][WARN] ${message}`);
|
|
63
|
+
}
|
|
64
|
+
function _debug(message) {
|
|
65
|
+
console.log(`[dotenv@${version}][DEBUG] ${message}`);
|
|
66
|
+
}
|
|
67
|
+
function _dotenvKey(options) {
|
|
68
|
+
if (options && options.DOTENV_KEY && options.DOTENV_KEY.length > 0) {
|
|
69
|
+
return options.DOTENV_KEY;
|
|
70
|
+
}
|
|
71
|
+
if (process.env.DOTENV_KEY && process.env.DOTENV_KEY.length > 0) {
|
|
72
|
+
return process.env.DOTENV_KEY;
|
|
73
|
+
}
|
|
74
|
+
return "";
|
|
75
|
+
}
|
|
76
|
+
function _instructions(result, dotenvKey) {
|
|
77
|
+
let uri;
|
|
78
|
+
try {
|
|
79
|
+
uri = new URL(dotenvKey);
|
|
80
|
+
} catch (error) {
|
|
81
|
+
if (error.code === "ERR_INVALID_URL") {
|
|
82
|
+
const err = new Error(
|
|
83
|
+
"INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development",
|
|
84
|
+
);
|
|
85
|
+
err.code = "INVALID_DOTENV_KEY";
|
|
86
|
+
throw err;
|
|
87
|
+
}
|
|
88
|
+
throw error;
|
|
89
|
+
}
|
|
90
|
+
const key = uri.password;
|
|
91
|
+
if (!key) {
|
|
92
|
+
const err = new Error("INVALID_DOTENV_KEY: Missing key part");
|
|
93
|
+
err.code = "INVALID_DOTENV_KEY";
|
|
94
|
+
throw err;
|
|
95
|
+
}
|
|
96
|
+
const environment = uri.searchParams.get("environment");
|
|
97
|
+
if (!environment) {
|
|
98
|
+
const err = new Error("INVALID_DOTENV_KEY: Missing environment part");
|
|
99
|
+
err.code = "INVALID_DOTENV_KEY";
|
|
100
|
+
throw err;
|
|
101
|
+
}
|
|
102
|
+
const environmentKey = `DOTENV_VAULT_${environment.toUpperCase()}`;
|
|
103
|
+
const ciphertext = result.parsed[environmentKey];
|
|
104
|
+
if (!ciphertext) {
|
|
105
|
+
const err = new Error(
|
|
106
|
+
`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${environmentKey} in your .env.vault file.`,
|
|
107
|
+
);
|
|
108
|
+
err.code = "NOT_FOUND_DOTENV_ENVIRONMENT";
|
|
109
|
+
throw err;
|
|
110
|
+
}
|
|
111
|
+
return { ciphertext, key };
|
|
112
|
+
}
|
|
113
|
+
function _vaultPath(options) {
|
|
114
|
+
let possibleVaultPath = null;
|
|
115
|
+
if (options && options.path && options.path.length > 0) {
|
|
116
|
+
if (Array.isArray(options.path)) {
|
|
117
|
+
for (const filepath of options.path) {
|
|
118
|
+
if (fs.existsSync(filepath)) {
|
|
119
|
+
possibleVaultPath = filepath.endsWith(".vault")
|
|
120
|
+
? filepath
|
|
121
|
+
: `${filepath}.vault`;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
} else {
|
|
125
|
+
possibleVaultPath = options.path.endsWith(".vault")
|
|
126
|
+
? options.path
|
|
127
|
+
: `${options.path}.vault`;
|
|
128
|
+
}
|
|
129
|
+
} else {
|
|
130
|
+
possibleVaultPath = path.resolve(process.cwd(), ".env.vault");
|
|
131
|
+
}
|
|
132
|
+
if (fs.existsSync(possibleVaultPath)) {
|
|
133
|
+
return possibleVaultPath;
|
|
134
|
+
}
|
|
135
|
+
return null;
|
|
136
|
+
}
|
|
137
|
+
function _resolveHome(envPath) {
|
|
138
|
+
return envPath[0] === "~"
|
|
139
|
+
? path.join(os.homedir(), envPath.slice(1))
|
|
140
|
+
: envPath;
|
|
141
|
+
}
|
|
142
|
+
function _configVault(options) {
|
|
143
|
+
_log("Loading env from encrypted .env.vault");
|
|
144
|
+
const parsed = DotenvModule._parseVault(options);
|
|
145
|
+
let processEnv = process.env;
|
|
146
|
+
if (options && options.processEnv != null) {
|
|
147
|
+
processEnv = options.processEnv;
|
|
148
|
+
}
|
|
149
|
+
DotenvModule.populate(processEnv, parsed, options);
|
|
150
|
+
return { parsed };
|
|
151
|
+
}
|
|
152
|
+
function configDotenv(options) {
|
|
153
|
+
const dotenvPath = path.resolve(process.cwd(), ".env");
|
|
154
|
+
let encoding = "utf8";
|
|
155
|
+
const debug = Boolean(options && options.debug);
|
|
156
|
+
if (options && options.encoding) {
|
|
157
|
+
encoding = options.encoding;
|
|
158
|
+
} else {
|
|
159
|
+
if (debug) {
|
|
160
|
+
_debug("No encoding is specified. UTF-8 is used by default");
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
let optionPaths = [dotenvPath];
|
|
164
|
+
if (options && options.path) {
|
|
165
|
+
if (!Array.isArray(options.path)) {
|
|
166
|
+
optionPaths = [_resolveHome(options.path)];
|
|
167
|
+
} else {
|
|
168
|
+
optionPaths = [];
|
|
169
|
+
for (const filepath of options.path) {
|
|
170
|
+
optionPaths.push(_resolveHome(filepath));
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
let lastError;
|
|
175
|
+
const parsedAll = {};
|
|
176
|
+
for (const path of optionPaths) {
|
|
177
|
+
try {
|
|
178
|
+
const parsed = DotenvModule.parse(
|
|
179
|
+
fs.readFileSync(path, { encoding }),
|
|
180
|
+
);
|
|
181
|
+
DotenvModule.populate(parsedAll, parsed, options);
|
|
182
|
+
} catch (e) {
|
|
183
|
+
if (debug) {
|
|
184
|
+
_debug(`Failed to load ${path} ${e.message}`);
|
|
185
|
+
}
|
|
186
|
+
lastError = e;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
let processEnv = process.env;
|
|
190
|
+
if (options && options.processEnv != null) {
|
|
191
|
+
processEnv = options.processEnv;
|
|
192
|
+
}
|
|
193
|
+
DotenvModule.populate(processEnv, parsedAll, options);
|
|
194
|
+
if (lastError) {
|
|
195
|
+
return { parsed: parsedAll, error: lastError };
|
|
196
|
+
} else {
|
|
197
|
+
return { parsed: parsedAll };
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
function config(options) {
|
|
201
|
+
if (_dotenvKey(options).length === 0) {
|
|
202
|
+
return DotenvModule.configDotenv(options);
|
|
203
|
+
}
|
|
204
|
+
const vaultPath = _vaultPath(options);
|
|
205
|
+
if (!vaultPath) {
|
|
206
|
+
_warn(
|
|
207
|
+
`You set DOTENV_KEY but you are missing a .env.vault file at ${vaultPath}. Did you forget to build it?`,
|
|
208
|
+
);
|
|
209
|
+
return DotenvModule.configDotenv(options);
|
|
210
|
+
}
|
|
211
|
+
return DotenvModule._configVault(options);
|
|
212
|
+
}
|
|
213
|
+
function decrypt(encrypted, keyStr) {
|
|
214
|
+
const key = Buffer.from(keyStr.slice(-64), "hex");
|
|
215
|
+
let ciphertext = Buffer.from(encrypted, "base64");
|
|
216
|
+
const nonce = ciphertext.subarray(0, 12);
|
|
217
|
+
const authTag = ciphertext.subarray(-16);
|
|
218
|
+
ciphertext = ciphertext.subarray(12, -16);
|
|
219
|
+
try {
|
|
220
|
+
const aesgcm = crypto.createDecipheriv("aes-256-gcm", key, nonce);
|
|
221
|
+
aesgcm.setAuthTag(authTag);
|
|
222
|
+
return `${aesgcm.update(ciphertext)}${aesgcm.final()}`;
|
|
223
|
+
} catch (error) {
|
|
224
|
+
const isRange = error instanceof RangeError;
|
|
225
|
+
const invalidKeyLength = error.message === "Invalid key length";
|
|
226
|
+
const decryptionFailed =
|
|
227
|
+
error.message ===
|
|
228
|
+
"Unsupported state or unable to authenticate data";
|
|
229
|
+
if (isRange || invalidKeyLength) {
|
|
230
|
+
const err = new Error(
|
|
231
|
+
"INVALID_DOTENV_KEY: It must be 64 characters long (or more)",
|
|
232
|
+
);
|
|
233
|
+
err.code = "INVALID_DOTENV_KEY";
|
|
234
|
+
throw err;
|
|
235
|
+
} else if (decryptionFailed) {
|
|
236
|
+
const err = new Error(
|
|
237
|
+
"DECRYPTION_FAILED: Please check your DOTENV_KEY",
|
|
238
|
+
);
|
|
239
|
+
err.code = "DECRYPTION_FAILED";
|
|
240
|
+
throw err;
|
|
241
|
+
} else {
|
|
242
|
+
throw error;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
function populate(processEnv, parsed, options = {}) {
|
|
247
|
+
const debug = Boolean(options && options.debug);
|
|
248
|
+
const override = Boolean(options && options.override);
|
|
249
|
+
if (typeof parsed !== "object") {
|
|
250
|
+
const err = new Error(
|
|
251
|
+
"OBJECT_REQUIRED: Please check the processEnv argument being passed to populate",
|
|
252
|
+
);
|
|
253
|
+
err.code = "OBJECT_REQUIRED";
|
|
254
|
+
throw err;
|
|
255
|
+
}
|
|
256
|
+
for (const key of Object.keys(parsed)) {
|
|
257
|
+
if (Object.prototype.hasOwnProperty.call(processEnv, key)) {
|
|
258
|
+
if (override === true) {
|
|
259
|
+
processEnv[key] = parsed[key];
|
|
260
|
+
}
|
|
261
|
+
if (debug) {
|
|
262
|
+
if (override === true) {
|
|
263
|
+
_debug(`"${key}" is already defined and WAS overwritten`);
|
|
264
|
+
} else {
|
|
265
|
+
_debug(`"${key}" is already defined and was NOT overwritten`);
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
} else {
|
|
269
|
+
processEnv[key] = parsed[key];
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
const DotenvModule = {
|
|
274
|
+
configDotenv,
|
|
275
|
+
_configVault,
|
|
276
|
+
_parseVault,
|
|
277
|
+
config,
|
|
278
|
+
decrypt,
|
|
279
|
+
parse,
|
|
280
|
+
populate,
|
|
281
|
+
};
|
|
282
|
+
module.exports.configDotenv = DotenvModule.configDotenv;
|
|
283
|
+
module.exports._configVault = DotenvModule._configVault;
|
|
284
|
+
module.exports._parseVault = DotenvModule._parseVault;
|
|
285
|
+
module.exports.config = DotenvModule.config;
|
|
286
|
+
module.exports.decrypt = DotenvModule.decrypt;
|
|
287
|
+
module.exports.parse = DotenvModule.parse;
|
|
288
|
+
module.exports.populate = DotenvModule.populate;
|
|
289
|
+
module.exports = DotenvModule;
|
|
290
|
+
},
|
|
291
|
+
684: (module) => {
|
|
292
|
+
"use strict";
|
|
293
|
+
module.exports = require("./package.json");
|
|
294
|
+
},
|
|
295
|
+
113: (module) => {
|
|
296
|
+
"use strict";
|
|
297
|
+
module.exports = require("crypto");
|
|
298
|
+
},
|
|
299
|
+
147: (module) => {
|
|
300
|
+
"use strict";
|
|
301
|
+
module.exports = require("fs");
|
|
302
|
+
},
|
|
303
|
+
37: (module) => {
|
|
304
|
+
"use strict";
|
|
305
|
+
module.exports = require("os");
|
|
306
|
+
},
|
|
307
|
+
17: (module) => {
|
|
308
|
+
"use strict";
|
|
309
|
+
module.exports = require("path");
|
|
310
|
+
},
|
|
311
|
+
};
|
|
312
|
+
var __webpack_module_cache__ = {};
|
|
313
|
+
function __nccwpck_require__(moduleId) {
|
|
314
|
+
var cachedModule = __webpack_module_cache__[moduleId];
|
|
315
|
+
if (cachedModule !== undefined) {
|
|
316
|
+
return cachedModule.exports;
|
|
317
|
+
}
|
|
318
|
+
var module = (__webpack_module_cache__[moduleId] = { exports: {} });
|
|
319
|
+
var threw = true;
|
|
320
|
+
try {
|
|
321
|
+
__webpack_modules__[moduleId](
|
|
322
|
+
module,
|
|
323
|
+
module.exports,
|
|
324
|
+
__nccwpck_require__,
|
|
325
|
+
);
|
|
326
|
+
threw = false;
|
|
327
|
+
} finally {
|
|
328
|
+
if (threw) delete __webpack_module_cache__[moduleId];
|
|
329
|
+
}
|
|
330
|
+
return module.exports;
|
|
331
|
+
}
|
|
332
|
+
if (typeof __nccwpck_require__ !== "undefined")
|
|
333
|
+
__nccwpck_require__.ab = __dirname + "/";
|
|
334
|
+
var __webpack_exports__ = __nccwpck_require__(396);
|
|
335
|
+
module.exports = __webpack_exports__;
|
|
336
|
+
})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"dotenv","version":"16.
|
|
1
|
+
{"name":"dotenv","version":"16.4.5","funding":"https://dotenvx.com","license":"BSD-2-Clause","types":"index.d.ts","type":"commonjs"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
// TypeScript Version: 3.0
|
|
3
|
+
|
|
4
|
+
interface DotenvPopulateInput {
|
|
5
|
+
[name: string]: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
interface DotenvParseInput {
|
|
9
|
+
[name: string]: string;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
interface DotenvParseOutput {
|
|
13
|
+
[name: string]: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
interface DotenvExpandOptions {
|
|
17
|
+
error?: Error;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Default: `process.env`
|
|
21
|
+
*
|
|
22
|
+
* Specify an object to write your secrets to. Defaults to process.env environment variables.
|
|
23
|
+
*
|
|
24
|
+
* example: `const processEnv = {}; require('dotenv').config({ processEnv: processEnv })`
|
|
25
|
+
*/
|
|
26
|
+
processEnv?: DotenvPopulateInput;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Default: `object`
|
|
30
|
+
*
|
|
31
|
+
* Object coming from dotenv's parsed result.
|
|
32
|
+
*/
|
|
33
|
+
parsed?: DotenvParseInput;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
interface DotenvExpandOutput {
|
|
37
|
+
error?: Error;
|
|
38
|
+
parsed?: DotenvParseOutput;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Adds variable expansion on top of dotenv.
|
|
43
|
+
*
|
|
44
|
+
* See https://docs.dotenv.org
|
|
45
|
+
*
|
|
46
|
+
* @param options - additional options. example: `{ processEnv: {}, error: null, parsed: { { KEY: 'value' } }`
|
|
47
|
+
* @returns an object with a `parsed` key if successful or `error` key if an error occurred. example: { parsed: { KEY: 'value' } }
|
|
48
|
+
*
|
|
49
|
+
*/
|
|
50
|
+
declare function expand(options?: DotenvExpandOptions): DotenvExpandOutput
|
|
51
|
+
|
|
52
|
+
export { type DotenvExpandOptions, type DotenvExpandOutput, type DotenvParseInput, type DotenvParseOutput, type DotenvPopulateInput, expand };
|