@nuxt/kit-nightly 4.2.1-29370820.95518afa → 4.2.1-29370847.26aaf83d
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/index.mjs +4 -4
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -16,11 +16,11 @@ import { isRelative, withTrailingSlash as withTrailingSlash$2 } from 'ufo';
|
|
|
16
16
|
import { read, update } from 'rc9';
|
|
17
17
|
import semver, { gte } from 'semver';
|
|
18
18
|
import { captureStackTrace } from 'errx';
|
|
19
|
+
import process from 'node:process';
|
|
19
20
|
import { glob } from 'tinyglobby';
|
|
20
21
|
import { resolveAlias as resolveAlias$1, reverseResolveAlias } from 'pathe/utils';
|
|
21
22
|
import ignore from 'ignore';
|
|
22
23
|
import { loadConfig } from 'c12';
|
|
23
|
-
import process$1 from 'node:process';
|
|
24
24
|
import destr from 'destr';
|
|
25
25
|
import { snakeCase, pascalCase, kebabCase } from 'scule';
|
|
26
26
|
import { klona } from 'klona';
|
|
@@ -1085,7 +1085,7 @@ function useRuntimeConfig() {
|
|
|
1085
1085
|
return applyEnv(klona(nuxt.options.nitro.runtimeConfig), {
|
|
1086
1086
|
prefix: "NITRO_",
|
|
1087
1087
|
altPrefix: "NUXT_",
|
|
1088
|
-
envExpansion: nuxt.options.nitro.experimental?.envExpansion ?? !!process
|
|
1088
|
+
envExpansion: nuxt.options.nitro.experimental?.envExpansion ?? !!process.env.NITRO_ENV_EXPANSION
|
|
1089
1089
|
});
|
|
1090
1090
|
}
|
|
1091
1091
|
function updateRuntimeConfig(runtimeConfig) {
|
|
@@ -1096,7 +1096,7 @@ function updateRuntimeConfig(runtimeConfig) {
|
|
|
1096
1096
|
} catch {
|
|
1097
1097
|
}
|
|
1098
1098
|
}
|
|
1099
|
-
function getEnv(key, opts, env = process
|
|
1099
|
+
function getEnv(key, opts, env = process.env) {
|
|
1100
1100
|
const envKey = snakeCase(key).toUpperCase();
|
|
1101
1101
|
return destr(
|
|
1102
1102
|
env[opts.prefix + envKey] ?? env[opts.altPrefix + envKey]
|
|
@@ -1128,7 +1128,7 @@ function applyEnv(obj, opts, parentKey = "") {
|
|
|
1128
1128
|
return obj;
|
|
1129
1129
|
}
|
|
1130
1130
|
const envExpandRx = /\{\{([^{}]*)\}\}/g;
|
|
1131
|
-
function _expandFromEnv(value, env = process
|
|
1131
|
+
function _expandFromEnv(value, env = process.env) {
|
|
1132
1132
|
return value.replace(envExpandRx, (match, key) => {
|
|
1133
1133
|
return env[key] || match;
|
|
1134
1134
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nuxt/kit-nightly",
|
|
3
|
-
"version": "4.2.1-
|
|
3
|
+
"version": "4.2.1-29370847.26aaf83d",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/nuxt/nuxt.git",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"untyped": "^2.0.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.1-
|
|
48
|
+
"@nuxt/schema": "npm:@nuxt/schema-nightly@4.2.1-29370847.26aaf83d",
|
|
49
49
|
"@rspack/core": "1.6.0",
|
|
50
50
|
"@types/semver": "7.7.1",
|
|
51
51
|
"hookable": "5.5.3",
|