@agnostack/env 1.4.0-beta.2 → 2.0.0-beta.1
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/LICENSE +1 -0
- package/dist/env.d.ts +6 -6
- package/dist/project.d.ts +1 -1
- package/package.json +32 -34
package/LICENSE
CHANGED
package/dist/env.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ export const ENV_PREFIXES: string[];
|
|
|
8
8
|
export function nextKeyValidator(envKey: string): boolean;
|
|
9
9
|
export function lowerKeyValidator(envKey: string): boolean;
|
|
10
10
|
export function publicKeyValidator(envKey: string): boolean;
|
|
11
|
-
export function cleanLowerEnv(_env: Record<string, string | undefined> | undefined, keyValidator?: (
|
|
12
|
-
export function cleanPublicEnv(_env: Record<string, string | undefined> | undefined, keyValidator?: (
|
|
11
|
+
export function cleanLowerEnv(_env: Record<string, string | undefined> | undefined, keyValidator?: (envKey: string) => boolean): Record<string, string | undefined>;
|
|
12
|
+
export function cleanPublicEnv(_env: Record<string, string | undefined> | undefined, keyValidator?: (envKey: string) => boolean): Record<string, string | undefined>;
|
|
13
13
|
export function parseEnvData(_env?: NodeJS.ProcessEnv): {
|
|
14
14
|
env: Record<string, string> & {
|
|
15
15
|
ENVIRONMENT: string;
|
|
@@ -28,7 +28,7 @@ export function parseEnvData(_env?: NodeJS.ProcessEnv): {
|
|
|
28
28
|
};
|
|
29
29
|
export function getPublicEnvValue(publicEnv: Record<string, string | undefined> | undefined, key: string): string | undefined;
|
|
30
30
|
export function replaceEnvTemplate(replaceable: unknown, { env: _env, template, callback, }?: {
|
|
31
|
-
env?: Record<string, string | undefined
|
|
32
|
-
template?: RegExp
|
|
33
|
-
callback?: (
|
|
34
|
-
}
|
|
31
|
+
env?: Record<string, string | undefined>;
|
|
32
|
+
template?: RegExp;
|
|
33
|
+
callback?: (replacedValue: string, replaceable: string) => string;
|
|
34
|
+
}): string;
|
package/dist/project.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ export function parseProjectName(_name: unknown): {
|
|
|
4
4
|
organization: string;
|
|
5
5
|
projectName: string;
|
|
6
6
|
};
|
|
7
|
-
export function parsePackageInfo(packageInfo?: PackageInfo
|
|
7
|
+
export function parsePackageInfo(packageInfo?: PackageInfo): [{
|
|
8
8
|
keywords: string[] | undefined;
|
|
9
9
|
appOwner: string;
|
|
10
10
|
appName: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agnostack/env",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-beta.1",
|
|
4
4
|
"author": "agnoStack Dev <developers@agnostack.com> (https://agnostack.com)",
|
|
5
5
|
"owner": "agnoStack",
|
|
6
6
|
"description": "Please contact agnoStack via info@agnostack.com for any questions",
|
|
@@ -36,54 +36,52 @@
|
|
|
36
36
|
"*.md"
|
|
37
37
|
],
|
|
38
38
|
"engines": {
|
|
39
|
-
"node": ">=
|
|
39
|
+
"node": ">=22.x"
|
|
40
40
|
},
|
|
41
41
|
"scripts": {
|
|
42
42
|
"tsc": "npx -p typescript tsc",
|
|
43
|
-
"watch": "yarn tsc -w",
|
|
44
|
-
"prebuild": "yarn tsc
|
|
45
|
-
"build": "yarn tsc && yarn tsc -p tsconfig.esm.json && node scripts/write-esm-pkg.mjs",
|
|
46
|
-
"clean": "
|
|
43
|
+
"watch": "yarn tsc -p tsconfig.build.json -w",
|
|
44
|
+
"prebuild": "yarn tsc -b tsconfig.build.json --clean && node scripts/clean.mjs dist _storage",
|
|
45
|
+
"build": "yarn tsc -p tsconfig.build.json && yarn tsc -p tsconfig.esm.json && node scripts/write-esm-pkg.mjs",
|
|
46
|
+
"clean": "node scripts/clean.mjs dist node_modules _storage",
|
|
47
47
|
"clean:install": "yarn clean && yarn install --force",
|
|
48
|
-
"lint": "eslint
|
|
49
|
-
"
|
|
48
|
+
"lint:fix": "eslint . --fix",
|
|
49
|
+
"lint": "eslint .",
|
|
50
|
+
"typecheck": "yarn tsc",
|
|
50
51
|
"verify:dist": "node scripts/verify-dist.mjs",
|
|
51
|
-
"
|
|
52
|
-
"test": "
|
|
53
|
-
"release": "
|
|
52
|
+
"test:watch": "vitest",
|
|
53
|
+
"test": "vitest run",
|
|
54
|
+
"release": "semantic-release",
|
|
54
55
|
"release:debug": "yarn release --debug",
|
|
55
|
-
"
|
|
56
|
+
"prepublishOnly": "yarn verify:dist",
|
|
57
|
+
"prepare": "husky"
|
|
56
58
|
},
|
|
57
59
|
"lint-staged": {
|
|
58
60
|
"{src,test,types}/**/*.{js,ts}": [
|
|
59
61
|
"eslint --fix"
|
|
60
62
|
]
|
|
61
63
|
},
|
|
64
|
+
"sideEffects": false,
|
|
62
65
|
"devDependencies": {
|
|
63
|
-
"@commitlint/cli": "
|
|
64
|
-
"@commitlint/config-conventional": "
|
|
66
|
+
"@commitlint/cli": "19.x",
|
|
67
|
+
"@commitlint/config-conventional": "19.x",
|
|
68
|
+
"@eslint/js": "9.x",
|
|
65
69
|
"@semantic-release/changelog": "6.0.3",
|
|
66
70
|
"@semantic-release/git": "10.0.1",
|
|
67
|
-
"@semantic-release/github": "
|
|
68
|
-
"@semantic-release/npm": "
|
|
69
|
-
"@semantic-release/release-notes-generator": "
|
|
70
|
-
"@types/
|
|
71
|
-
"@
|
|
72
|
-
"@typescript-eslint/
|
|
73
|
-
"
|
|
74
|
-
"eslint": "
|
|
75
|
-
"
|
|
76
|
-
"husky": "
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"ts-jest": "29.x",
|
|
82
|
-
"typescript": "5.4.2"
|
|
83
|
-
},
|
|
84
|
-
"resolutions": {
|
|
85
|
-
"**/npm": "10.8.2",
|
|
86
|
-
"**/rimraf": "4.4.1"
|
|
71
|
+
"@semantic-release/github": "11.x",
|
|
72
|
+
"@semantic-release/npm": "12.x",
|
|
73
|
+
"@semantic-release/release-notes-generator": "14.x",
|
|
74
|
+
"@types/node": "22.x",
|
|
75
|
+
"@typescript-eslint/eslint-plugin": "8.x",
|
|
76
|
+
"@typescript-eslint/parser": "8.x",
|
|
77
|
+
"eslint": "9.x",
|
|
78
|
+
"eslint-plugin-import": "2.x",
|
|
79
|
+
"globals": "16.x",
|
|
80
|
+
"husky": "9.x",
|
|
81
|
+
"lint-staged": "15.x",
|
|
82
|
+
"semantic-release": "25.x",
|
|
83
|
+
"typescript": "5.9.3",
|
|
84
|
+
"vitest": "3.x"
|
|
87
85
|
},
|
|
88
86
|
"publishConfig": {
|
|
89
87
|
"access": "public"
|