@powerlines/plugin-env 0.13.11 → 0.13.12
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/babel/index.d.cts +1 -1
- package/dist/babel/index.d.ts +1 -1
- package/dist/babel/plugin.d.cts +1 -1
- package/dist/babel/plugin.d.ts +1 -1
- package/dist/helpers/index.d.cts +1 -1
- package/dist/helpers/index.d.ts +1 -1
- package/dist/helpers/load.d.cts +1 -1
- package/dist/helpers/load.d.ts +1 -1
- package/dist/helpers/persistence.d.cts +1 -1
- package/dist/helpers/persistence.d.ts +1 -1
- package/dist/helpers/reflect.d.cts +1 -1
- package/dist/helpers/reflect.d.ts +1 -1
- package/dist/helpers/template-helpers.d.cts +1 -1
- package/dist/helpers/template-helpers.d.ts +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/{runtime-Cgwwl_i7.d.cts → runtime-BRVCxO4z.d.cts} +3 -3
- package/dist/{runtime-Cz7b0Zsv.d.ts → runtime-nCpMYmRi.d.ts} +3 -3
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/plugin.d.cts +1 -1
- package/dist/types/plugin.d.ts +1 -1
- package/dist/types/runtime.d.cts +1 -1
- package/dist/types/runtime.d.ts +1 -1
- package/package.json +7 -7
package/dist/babel/index.d.cts
CHANGED
package/dist/babel/index.d.ts
CHANGED
package/dist/babel/plugin.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as DeclareBabelTransformPluginReturn } from '../runtime-
|
|
1
|
+
import { D as DeclareBabelTransformPluginReturn } from '../runtime-BRVCxO4z.cjs';
|
|
2
2
|
import { EnvPluginContext, EnvPluginResolvedConfig } from '../types/plugin.cjs';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
4
|
import '@stryke/types/package-json';
|
package/dist/babel/plugin.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as DeclareBabelTransformPluginReturn } from '../runtime-
|
|
1
|
+
import { D as DeclareBabelTransformPluginReturn } from '../runtime-nCpMYmRi.js';
|
|
2
2
|
import { EnvPluginContext, EnvPluginResolvedConfig } from '../types/plugin.js';
|
|
3
3
|
import '@stryke/env/get-env-paths';
|
|
4
4
|
import '@stryke/types/package-json';
|
package/dist/helpers/index.d.cts
CHANGED
|
@@ -3,7 +3,7 @@ export { getEnvDefaultTypeDefinition, getEnvReflectionsPath, getEnvTypeReflectio
|
|
|
3
3
|
export { BaseEnv, BaseSecrets, CreateEnvReflectionOptions, createEnvReflection, createSecretsReflection, mergeEnvReflections, mergeSecretsReflections, reflectEnv, reflectSecrets } from './reflect.cjs';
|
|
4
4
|
export { formatEnvField, removeEnvPrefix } from './source-file-env.cjs';
|
|
5
5
|
export { createTemplateReflection } from './template-helpers.cjs';
|
|
6
|
-
import '../runtime-
|
|
6
|
+
import '../runtime-BRVCxO4z.cjs';
|
|
7
7
|
import '@stryke/env/get-env-paths';
|
|
8
8
|
import '@stryke/types/package-json';
|
|
9
9
|
import 'jiti';
|
package/dist/helpers/index.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ export { getEnvDefaultTypeDefinition, getEnvReflectionsPath, getEnvTypeReflectio
|
|
|
3
3
|
export { BaseEnv, BaseSecrets, CreateEnvReflectionOptions, createEnvReflection, createSecretsReflection, mergeEnvReflections, mergeSecretsReflections, reflectEnv, reflectSecrets } from './reflect.js';
|
|
4
4
|
export { formatEnvField, removeEnvPrefix } from './source-file-env.js';
|
|
5
5
|
export { createTemplateReflection } from './template-helpers.js';
|
|
6
|
-
import '../runtime-
|
|
6
|
+
import '../runtime-nCpMYmRi.js';
|
|
7
7
|
import '@stryke/env/get-env-paths';
|
|
8
8
|
import '@stryke/types/package-json';
|
|
9
9
|
import 'jiti';
|
package/dist/helpers/load.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as EnvironmentResolvedConfig } from '../runtime-
|
|
1
|
+
import { a as EnvironmentResolvedConfig } from '../runtime-BRVCxO4z.cjs';
|
|
2
2
|
import { DotenvParseOutput } from '@stryke/env/types';
|
|
3
3
|
import { EnvPluginContext, EnvPluginOptions } from '../types/plugin.cjs';
|
|
4
4
|
import '@stryke/env/get-env-paths';
|
package/dist/helpers/load.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as EnvironmentResolvedConfig } from '../runtime-
|
|
1
|
+
import { a as EnvironmentResolvedConfig } from '../runtime-nCpMYmRi.js';
|
|
2
2
|
import { DotenvParseOutput } from '@stryke/env/types';
|
|
3
3
|
import { EnvPluginContext, EnvPluginOptions } from '../types/plugin.js';
|
|
4
4
|
import '@stryke/env/get-env-paths';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReflectionClass } from '@deepkit/type';
|
|
2
2
|
import { TypeDefinition } from '@stryke/types/configuration';
|
|
3
|
-
import { C as Context } from '../runtime-
|
|
3
|
+
import { C as Context } from '../runtime-BRVCxO4z.cjs';
|
|
4
4
|
import { EnvPluginResolvedConfig, EnvType, EnvPluginContext } from '../types/plugin.cjs';
|
|
5
5
|
import '@stryke/env/get-env-paths';
|
|
6
6
|
import '@stryke/types/package-json';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReflectionClass } from '@deepkit/type';
|
|
2
2
|
import { TypeDefinition } from '@stryke/types/configuration';
|
|
3
|
-
import { C as Context } from '../runtime-
|
|
3
|
+
import { C as Context } from '../runtime-nCpMYmRi.js';
|
|
4
4
|
import { EnvPluginResolvedConfig, EnvType, EnvPluginContext } from '../types/plugin.js';
|
|
5
5
|
import '@stryke/env/get-env-paths';
|
|
6
6
|
import '@stryke/types/package-json';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReflectionClass, TypeObjectLiteral, TypeClass } from '@deepkit/type';
|
|
2
2
|
import { EnvPluginContext } from '../types/plugin.cjs';
|
|
3
|
-
import { E as EnvInterface, S as SecretsInterface } from '../runtime-
|
|
3
|
+
import { E as EnvInterface, S as SecretsInterface } from '../runtime-BRVCxO4z.cjs';
|
|
4
4
|
import '@alloy-js/core/jsx-runtime';
|
|
5
5
|
import '@stryke/capnp';
|
|
6
6
|
import '@stryke/env/types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReflectionClass, TypeObjectLiteral, TypeClass } from '@deepkit/type';
|
|
2
2
|
import { EnvPluginContext } from '../types/plugin.js';
|
|
3
|
-
import { E as EnvInterface, S as SecretsInterface } from '../runtime-
|
|
3
|
+
import { E as EnvInterface, S as SecretsInterface } from '../runtime-nCpMYmRi.js';
|
|
4
4
|
import '@alloy-js/core/jsx-runtime';
|
|
5
5
|
import '@stryke/capnp';
|
|
6
6
|
import '@stryke/env/types';
|
|
@@ -2,7 +2,7 @@ import { ReflectionClass } from '@deepkit/type';
|
|
|
2
2
|
import { EnvPluginContext, EnvType } from '../types/plugin.cjs';
|
|
3
3
|
import '@alloy-js/core/jsx-runtime';
|
|
4
4
|
import '@stryke/capnp';
|
|
5
|
-
import '../runtime-
|
|
5
|
+
import '../runtime-BRVCxO4z.cjs';
|
|
6
6
|
import '@stryke/env/get-env-paths';
|
|
7
7
|
import '@stryke/types/package-json';
|
|
8
8
|
import 'jiti';
|
|
@@ -2,7 +2,7 @@ import { ReflectionClass } from '@deepkit/type';
|
|
|
2
2
|
import { EnvPluginContext, EnvType } from '../types/plugin.js';
|
|
3
3
|
import '@alloy-js/core/jsx-runtime';
|
|
4
4
|
import '@stryke/capnp';
|
|
5
|
-
import '../runtime-
|
|
5
|
+
import '../runtime-nCpMYmRi.js';
|
|
6
6
|
import '@stryke/env/get-env-paths';
|
|
7
7
|
import '@stryke/types/package-json';
|
|
8
8
|
import 'jiti';
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PluginContext, b as Plugin } from './runtime-
|
|
2
|
-
export { E as EnvInterface, S as SecretsInterface } from './runtime-
|
|
1
|
+
import { P as PluginContext, b as Plugin } from './runtime-BRVCxO4z.cjs';
|
|
2
|
+
export { E as EnvInterface, S as SecretsInterface } from './runtime-BRVCxO4z.cjs';
|
|
3
3
|
import { Children } from '@alloy-js/core/jsx-runtime';
|
|
4
4
|
import { PrintTreeOptions } from '@alloy-js/core';
|
|
5
5
|
import { EnvPluginContext, EnvPluginResolvedConfig } from './types/plugin.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PluginContext, b as Plugin } from './runtime-
|
|
2
|
-
export { E as EnvInterface, S as SecretsInterface } from './runtime-
|
|
1
|
+
import { P as PluginContext, b as Plugin } from './runtime-nCpMYmRi.js';
|
|
2
|
+
export { E as EnvInterface, S as SecretsInterface } from './runtime-nCpMYmRi.js';
|
|
3
3
|
import { Children } from '@alloy-js/core/jsx-runtime';
|
|
4
4
|
import { PrintTreeOptions } from '@alloy-js/core';
|
|
5
5
|
import { EnvPluginContext, EnvPluginResolvedConfig } from './types/plugin.js';
|
|
@@ -156,7 +156,7 @@ type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserCon
|
|
|
156
156
|
logLevel: "error" | "warn" | "info" | "debug" | "trace" | null;
|
|
157
157
|
};
|
|
158
158
|
|
|
159
|
-
interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter
|
|
159
|
+
interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> {
|
|
160
160
|
/**
|
|
161
161
|
* The order in which the plugin should be applied.
|
|
162
162
|
*/
|
|
@@ -164,13 +164,13 @@ interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends k
|
|
|
164
164
|
/**
|
|
165
165
|
* A filter to determine when the hook should be called.
|
|
166
166
|
*/
|
|
167
|
-
filter?: TFilter
|
|
167
|
+
filter?: Pick<HookFilter, TFilter>;
|
|
168
168
|
/**
|
|
169
169
|
* The hook function to be called.
|
|
170
170
|
*/
|
|
171
171
|
handler: THookFunction;
|
|
172
172
|
}
|
|
173
|
-
type PluginHook<THookFunction extends FunctionLike, TFilter extends keyof HookFilter
|
|
173
|
+
type PluginHook<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> = THookFunction | PluginHookObject<THookFunction, TFilter>;
|
|
174
174
|
/**
|
|
175
175
|
* A result returned by the plugin from the `generateTypes` hook that describes the declaration types output file.
|
|
176
176
|
*/
|
|
@@ -156,7 +156,7 @@ type ResolvedConfig<TUserConfig extends UserConfig = UserConfig> = Omit<TUserCon
|
|
|
156
156
|
logLevel: "error" | "warn" | "info" | "debug" | "trace" | null;
|
|
157
157
|
};
|
|
158
158
|
|
|
159
|
-
interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter
|
|
159
|
+
interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> {
|
|
160
160
|
/**
|
|
161
161
|
* The order in which the plugin should be applied.
|
|
162
162
|
*/
|
|
@@ -164,13 +164,13 @@ interface PluginHookObject<THookFunction extends FunctionLike, TFilter extends k
|
|
|
164
164
|
/**
|
|
165
165
|
* A filter to determine when the hook should be called.
|
|
166
166
|
*/
|
|
167
|
-
filter?: TFilter
|
|
167
|
+
filter?: Pick<HookFilter, TFilter>;
|
|
168
168
|
/**
|
|
169
169
|
* The hook function to be called.
|
|
170
170
|
*/
|
|
171
171
|
handler: THookFunction;
|
|
172
172
|
}
|
|
173
|
-
type PluginHook<THookFunction extends FunctionLike, TFilter extends keyof HookFilter
|
|
173
|
+
type PluginHook<THookFunction extends FunctionLike, TFilter extends keyof HookFilter = never> = THookFunction | PluginHookObject<THookFunction, TFilter>;
|
|
174
174
|
/**
|
|
175
175
|
* A result returned by the plugin from the `generateTypes` hook that describes the declaration types output file.
|
|
176
176
|
*/
|
package/dist/types/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType } from './plugin.cjs';
|
|
2
|
-
export { E as EnvInterface, S as SecretsInterface } from '../runtime-
|
|
2
|
+
export { E as EnvInterface, S as SecretsInterface } from '../runtime-BRVCxO4z.cjs';
|
|
3
3
|
import '@alloy-js/core/jsx-runtime';
|
|
4
4
|
import '@deepkit/type';
|
|
5
5
|
import '@stryke/capnp';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { EnvPluginContext, EnvPluginOptions, EnvPluginResolvedConfig, EnvPluginUserConfig, EnvType } from './plugin.js';
|
|
2
|
-
export { E as EnvInterface, S as SecretsInterface } from '../runtime-
|
|
2
|
+
export { E as EnvInterface, S as SecretsInterface } from '../runtime-nCpMYmRi.js';
|
|
3
3
|
import '@alloy-js/core/jsx-runtime';
|
|
4
4
|
import '@deepkit/type';
|
|
5
5
|
import '@stryke/capnp';
|
package/dist/types/plugin.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Children } from '@alloy-js/core/jsx-runtime';
|
|
2
2
|
import { ReflectionClass } from '@deepkit/type';
|
|
3
3
|
import * as $ from '@stryke/capnp';
|
|
4
|
-
import { B as BabelUserConfig, U as UserConfig, R as ResolvedConfig, c as BabelResolvedConfig, P as PluginContext, E as EnvInterface, S as SecretsInterface } from '../runtime-
|
|
4
|
+
import { B as BabelUserConfig, U as UserConfig, R as ResolvedConfig, c as BabelResolvedConfig, P as PluginContext, E as EnvInterface, S as SecretsInterface } from '../runtime-BRVCxO4z.cjs';
|
|
5
5
|
import { DotenvParseOutput } from '@stryke/env/types';
|
|
6
6
|
import { DotenvConfiguration, TypeDefinitionParameter, TypeDefinition } from '@stryke/types/configuration';
|
|
7
7
|
import '@stryke/env/get-env-paths';
|
package/dist/types/plugin.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Children } from '@alloy-js/core/jsx-runtime';
|
|
2
2
|
import { ReflectionClass } from '@deepkit/type';
|
|
3
3
|
import * as $ from '@stryke/capnp';
|
|
4
|
-
import { B as BabelUserConfig, U as UserConfig, R as ResolvedConfig, c as BabelResolvedConfig, P as PluginContext, E as EnvInterface, S as SecretsInterface } from '../runtime-
|
|
4
|
+
import { B as BabelUserConfig, U as UserConfig, R as ResolvedConfig, c as BabelResolvedConfig, P as PluginContext, E as EnvInterface, S as SecretsInterface } from '../runtime-nCpMYmRi.js';
|
|
5
5
|
import { DotenvParseOutput } from '@stryke/env/types';
|
|
6
6
|
import { DotenvConfiguration, TypeDefinitionParameter, TypeDefinition } from '@stryke/types/configuration';
|
|
7
7
|
import '@stryke/env/get-env-paths';
|
package/dist/types/runtime.d.cts
CHANGED
package/dist/types/runtime.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-env",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.12",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "A package containing a Powerlines plugin for injecting static .env configuration values to the code so that they're accessible at runtime.",
|
|
6
6
|
"repository": {
|
|
@@ -179,9 +179,9 @@
|
|
|
179
179
|
"@alloy-js/typescript": "^0.20.0",
|
|
180
180
|
"@babel/core": "^7.28.5",
|
|
181
181
|
"@babel/types": "^7.28.5",
|
|
182
|
-
"@powerlines/alloy": "^0.11.
|
|
183
|
-
"@powerlines/plugin-babel": "^0.12.
|
|
184
|
-
"@powerlines/plugin-plugin": "^0.11.
|
|
182
|
+
"@powerlines/alloy": "^0.11.15",
|
|
183
|
+
"@powerlines/plugin-babel": "^0.12.15",
|
|
184
|
+
"@powerlines/plugin-plugin": "^0.11.14",
|
|
185
185
|
"@storm-software/config-tools": "^1.188.19",
|
|
186
186
|
"@stryke/capnp": "^0.12.19",
|
|
187
187
|
"@stryke/env": "^0.20.12",
|
|
@@ -190,12 +190,12 @@
|
|
|
190
190
|
"@stryke/string-format": "^0.12.1",
|
|
191
191
|
"@stryke/type-checks": "^0.3.11",
|
|
192
192
|
"@stryke/types": "^0.10.1",
|
|
193
|
-
"powerlines": "^0.19.
|
|
193
|
+
"powerlines": "^0.19.2"
|
|
194
194
|
},
|
|
195
195
|
"devDependencies": {
|
|
196
196
|
"@alloy-js/babel-preset": "^0.2.1",
|
|
197
197
|
"@babel/preset-typescript": "^7.28.5",
|
|
198
|
-
"@powerlines/nx": "^0.10.
|
|
198
|
+
"@powerlines/nx": "^0.10.6",
|
|
199
199
|
"@storm-software/tsup": "^0.2.17",
|
|
200
200
|
"@types/node": "^22.19.0",
|
|
201
201
|
"tsup": "8.4.0",
|
|
@@ -203,5 +203,5 @@
|
|
|
203
203
|
"vite": "^7.2.2"
|
|
204
204
|
},
|
|
205
205
|
"publishConfig": { "access": "public" },
|
|
206
|
-
"gitHead": "
|
|
206
|
+
"gitHead": "487dbe9d301ea6c2bba10d3dec1706b64a079452"
|
|
207
207
|
}
|