@sveltejs/kit 1.0.0-next.395 → 1.0.0-next.396
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/chunks/filesystem.js +1 -1
- package/dist/chunks/sync.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/vite.js +1 -1
- package/package.json +1 -1
- package/types/ambient.d.ts +2 -1
|
@@ -58,7 +58,7 @@ function copy(source, target, opts = {}) {
|
|
|
58
58
|
to,
|
|
59
59
|
data.replace(
|
|
60
60
|
/** @type {RegExp} */ (regex),
|
|
61
|
-
(
|
|
61
|
+
(_match, key) => /** @type {Record<string, string>} */ (opts.replace)[key]
|
|
62
62
|
)
|
|
63
63
|
);
|
|
64
64
|
} else {
|
package/dist/chunks/sync.js
CHANGED
|
@@ -1241,7 +1241,7 @@ function create_module(id, env) {
|
|
|
1241
1241
|
continue;
|
|
1242
1242
|
}
|
|
1243
1243
|
|
|
1244
|
-
const comment = `/** @type {import('${id}'
|
|
1244
|
+
const comment = `/** @type {import('${id}').${key}} */`;
|
|
1245
1245
|
const declaration = `export const ${key} = ${JSON.stringify(env[key])};`;
|
|
1246
1246
|
|
|
1247
1247
|
declarations.push(`${comment}\n${declaration}`);
|
package/dist/cli.js
CHANGED
package/dist/vite.js
CHANGED
package/package.json
CHANGED
package/types/ambient.d.ts
CHANGED
|
@@ -102,7 +102,8 @@ declare module '$app/env' {
|
|
|
102
102
|
/**
|
|
103
103
|
* This module provides access to runtime environment variables, as defined by the platform you're running on. For example
|
|
104
104
|
* if you're using [`adapter-node`](https://github.com/sveltejs/kit/tree/master/packages/adapter-node) (or running
|
|
105
|
-
* [`vite preview`](https://kit.svelte.dev/docs/cli)), this is equivalent to `process.env`.
|
|
105
|
+
* [`vite preview`](https://kit.svelte.dev/docs/cli)), this is equivalent to `process.env`. This module only includes
|
|
106
|
+
* variables that _do not_ begin with [`config.kit.env.publicPrefix`](https://kit.svelte.dev/docs/configuration#kit-env-publicprefix).
|
|
106
107
|
*
|
|
107
108
|
* This module cannot be imported into client-side code.
|
|
108
109
|
*
|