@prosopo/dotenv 3.0.7 → 3.0.25
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/CHANGELOG.md +150 -0
- package/dist/cjs/env.cjs +4 -4
- package/dist/env.js +4 -4
- package/package.json +6 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,155 @@
|
|
|
1
1
|
# @prosopo/dotenv
|
|
2
2
|
|
|
3
|
+
## 3.0.25
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
- Updated dependencies [1e3a838]
|
|
7
|
+
- @prosopo/config@3.1.20
|
|
8
|
+
- @prosopo/common@3.1.20
|
|
9
|
+
|
|
10
|
+
## 3.0.24
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 5659b24: Release 3.4.4
|
|
14
|
+
- Updated dependencies [f912439]
|
|
15
|
+
- Updated dependencies [5659b24]
|
|
16
|
+
- @prosopo/common@3.1.19
|
|
17
|
+
- @prosopo/config@3.1.19
|
|
18
|
+
|
|
19
|
+
## 3.0.23
|
|
20
|
+
### Patch Changes
|
|
21
|
+
|
|
22
|
+
- c72ecbd: Reduce noisy logs
|
|
23
|
+
- 50c4120: Release 3.4.3
|
|
24
|
+
- Updated dependencies [50c4120]
|
|
25
|
+
- @prosopo/common@3.1.18
|
|
26
|
+
- @prosopo/config@3.1.18
|
|
27
|
+
|
|
28
|
+
## 3.0.22
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- 618703f: Release 3.4.2
|
|
32
|
+
- Updated dependencies [618703f]
|
|
33
|
+
- @prosopo/common@3.1.17
|
|
34
|
+
- @prosopo/config@3.1.17
|
|
35
|
+
|
|
36
|
+
## 3.0.21
|
|
37
|
+
### Patch Changes
|
|
38
|
+
|
|
39
|
+
- 11303d9: Release 3.4.0
|
|
40
|
+
- 18cb28b: Release 3.4.1
|
|
41
|
+
- Updated dependencies [11303d9]
|
|
42
|
+
- Updated dependencies [18cb28b]
|
|
43
|
+
- @prosopo/common@3.1.16
|
|
44
|
+
- @prosopo/config@3.1.16
|
|
45
|
+
|
|
46
|
+
## 3.0.20
|
|
47
|
+
### Patch Changes
|
|
48
|
+
|
|
49
|
+
- f3f7aec: Release 3.4.0
|
|
50
|
+
- Updated dependencies [f3f7aec]
|
|
51
|
+
- @prosopo/common@3.1.15
|
|
52
|
+
- @prosopo/config@3.1.15
|
|
53
|
+
|
|
54
|
+
## 3.0.19
|
|
55
|
+
### Patch Changes
|
|
56
|
+
|
|
57
|
+
- Release 3.3.1
|
|
58
|
+
- 0824221: Release 3.2.4
|
|
59
|
+
- Updated dependencies
|
|
60
|
+
- Updated dependencies [0824221]
|
|
61
|
+
- @prosopo/common@3.1.14
|
|
62
|
+
- @prosopo/config@3.1.14
|
|
63
|
+
|
|
64
|
+
## 3.0.18
|
|
65
|
+
### Patch Changes
|
|
66
|
+
|
|
67
|
+
- 008d112: Release 3.3.0
|
|
68
|
+
- Updated dependencies [008d112]
|
|
69
|
+
- @prosopo/common@3.1.13
|
|
70
|
+
- @prosopo/config@3.1.13
|
|
71
|
+
|
|
72
|
+
## 3.0.17
|
|
73
|
+
### Patch Changes
|
|
74
|
+
|
|
75
|
+
- 0824221: Release 3.2.4
|
|
76
|
+
- Updated dependencies [0824221]
|
|
77
|
+
- @prosopo/common@3.1.12
|
|
78
|
+
- @prosopo/config@3.1.12
|
|
79
|
+
|
|
80
|
+
## 3.0.16
|
|
81
|
+
### Patch Changes
|
|
82
|
+
|
|
83
|
+
- 1a23649: Release 3.2.3
|
|
84
|
+
- Updated dependencies [1a23649]
|
|
85
|
+
- @prosopo/common@3.1.11
|
|
86
|
+
- @prosopo/config@3.1.11
|
|
87
|
+
|
|
88
|
+
## 3.0.15
|
|
89
|
+
### Patch Changes
|
|
90
|
+
|
|
91
|
+
- 657a827: Release 3.2.2
|
|
92
|
+
- Updated dependencies [657a827]
|
|
93
|
+
- @prosopo/common@3.1.10
|
|
94
|
+
- @prosopo/config@3.1.10
|
|
95
|
+
|
|
96
|
+
## 3.0.14
|
|
97
|
+
### Patch Changes
|
|
98
|
+
|
|
99
|
+
- 4440947: fix type-only tsc compilation
|
|
100
|
+
- 7bdaca6: Release 3.2.1
|
|
101
|
+
- Updated dependencies [4440947]
|
|
102
|
+
- Updated dependencies [7bdaca6]
|
|
103
|
+
- Updated dependencies [809b984]
|
|
104
|
+
- Updated dependencies [809b984]
|
|
105
|
+
- @prosopo/common@3.1.9
|
|
106
|
+
- @prosopo/config@3.1.9
|
|
107
|
+
|
|
108
|
+
## 3.0.13
|
|
109
|
+
### Patch Changes
|
|
110
|
+
|
|
111
|
+
- 6fe8570: Release 3.2.0
|
|
112
|
+
- Updated dependencies [6fe8570]
|
|
113
|
+
- @prosopo/common@3.1.8
|
|
114
|
+
- @prosopo/config@3.1.8
|
|
115
|
+
|
|
116
|
+
## 3.0.12
|
|
117
|
+
### Patch Changes
|
|
118
|
+
|
|
119
|
+
- f304be9: Release 3.1.13
|
|
120
|
+
- Updated dependencies [f304be9]
|
|
121
|
+
- @prosopo/common@3.1.7
|
|
122
|
+
- @prosopo/config@3.1.7
|
|
123
|
+
|
|
124
|
+
## 3.0.11
|
|
125
|
+
### Patch Changes
|
|
126
|
+
|
|
127
|
+
- Updated dependencies [9eed772]
|
|
128
|
+
- @prosopo/config@3.1.6
|
|
129
|
+
- @prosopo/common@3.1.6
|
|
130
|
+
|
|
131
|
+
## 3.0.10
|
|
132
|
+
### Patch Changes
|
|
133
|
+
|
|
134
|
+
- 6960643: lint detect missing and unneccessary imports
|
|
135
|
+
- Updated dependencies [6960643]
|
|
136
|
+
- @prosopo/common@3.1.5
|
|
137
|
+
|
|
138
|
+
## 3.0.9
|
|
139
|
+
### Patch Changes
|
|
140
|
+
|
|
141
|
+
- Updated dependencies [30e7d4d]
|
|
142
|
+
- @prosopo/config@3.1.5
|
|
143
|
+
- @prosopo/common@3.1.4
|
|
144
|
+
|
|
145
|
+
## 3.0.8
|
|
146
|
+
### Patch Changes
|
|
147
|
+
|
|
148
|
+
- Updated dependencies [44ffda2]
|
|
149
|
+
- Updated dependencies [a49b538]
|
|
150
|
+
- @prosopo/config@3.1.4
|
|
151
|
+
- @prosopo/common@3.1.3
|
|
152
|
+
|
|
3
153
|
## 3.0.7
|
|
4
154
|
### Patch Changes
|
|
5
155
|
|
package/dist/cjs/env.cjs
CHANGED
|
@@ -25,7 +25,7 @@ function loadEnv(rootDir, filename, filePath, nodeEnv, override = false) {
|
|
|
25
25
|
nodeEnv
|
|
26
26
|
);
|
|
27
27
|
const args = { path: envPath, override };
|
|
28
|
-
logger.
|
|
28
|
+
logger.debug(() => ({
|
|
29
29
|
data: { envPath },
|
|
30
30
|
msg: "Loading env"
|
|
31
31
|
}));
|
|
@@ -36,7 +36,7 @@ function getEnvFile(rootDir, filename = ".env", filepath = path.join(__dirname$1
|
|
|
36
36
|
const env = nodeEnv || getEnv();
|
|
37
37
|
const fileNameFull = `${filename}.${env}`;
|
|
38
38
|
let searchPath = path.resolve(rootDir || ".");
|
|
39
|
-
logger.
|
|
39
|
+
logger.debug(() => ({
|
|
40
40
|
data: { fileName: fileNameFull, searchPath },
|
|
41
41
|
msg: "Searching"
|
|
42
42
|
}));
|
|
@@ -47,7 +47,7 @@ function getEnvFile(rootDir, filename = ".env", filepath = path.join(__dirname$1
|
|
|
47
47
|
fs.readFileSync(path.join(searchPath, "package.json"), "utf8")
|
|
48
48
|
);
|
|
49
49
|
if (pkgJson.name === "@prosopo/captcha-private") {
|
|
50
|
-
logger.
|
|
50
|
+
logger.debug(() => ({
|
|
51
51
|
data: { fileName: fileNameFull },
|
|
52
52
|
msg: "Reached the workspace root package.json, stopping search."
|
|
53
53
|
}));
|
|
@@ -57,7 +57,7 @@ function getEnvFile(rootDir, filename = ".env", filepath = path.join(__dirname$1
|
|
|
57
57
|
searchPath = path.resolve(searchPath, "..");
|
|
58
58
|
levelCount += 1;
|
|
59
59
|
if (levelCount > 10) {
|
|
60
|
-
logger.
|
|
60
|
+
logger.debug(() => ({
|
|
61
61
|
data: { fileName: fileNameFull, levelCount },
|
|
62
62
|
msg: "Checked directories above, stopping search."
|
|
63
63
|
}));
|
package/dist/env.js
CHANGED
|
@@ -23,7 +23,7 @@ function loadEnv(rootDir, filename, filePath, nodeEnv, override = false) {
|
|
|
23
23
|
nodeEnv
|
|
24
24
|
);
|
|
25
25
|
const args = { path: envPath, override };
|
|
26
|
-
logger.
|
|
26
|
+
logger.debug(() => ({
|
|
27
27
|
data: { envPath },
|
|
28
28
|
msg: "Loading env"
|
|
29
29
|
}));
|
|
@@ -34,7 +34,7 @@ function getEnvFile(rootDir, filename = ".env", filepath = path.join(__dirname,
|
|
|
34
34
|
const env = nodeEnv || getEnv();
|
|
35
35
|
const fileNameFull = `${filename}.${env}`;
|
|
36
36
|
let searchPath = path.resolve(rootDir || ".");
|
|
37
|
-
logger.
|
|
37
|
+
logger.debug(() => ({
|
|
38
38
|
data: { fileName: fileNameFull, searchPath },
|
|
39
39
|
msg: "Searching"
|
|
40
40
|
}));
|
|
@@ -45,7 +45,7 @@ function getEnvFile(rootDir, filename = ".env", filepath = path.join(__dirname,
|
|
|
45
45
|
fs.readFileSync(path.join(searchPath, "package.json"), "utf8")
|
|
46
46
|
);
|
|
47
47
|
if (pkgJson.name === "@prosopo/captcha-private") {
|
|
48
|
-
logger.
|
|
48
|
+
logger.debug(() => ({
|
|
49
49
|
data: { fileName: fileNameFull },
|
|
50
50
|
msg: "Reached the workspace root package.json, stopping search."
|
|
51
51
|
}));
|
|
@@ -55,7 +55,7 @@ function getEnvFile(rootDir, filename = ".env", filepath = path.join(__dirname,
|
|
|
55
55
|
searchPath = path.resolve(searchPath, "..");
|
|
56
56
|
levelCount += 1;
|
|
57
57
|
if (levelCount > 10) {
|
|
58
|
-
logger.
|
|
58
|
+
logger.debug(() => ({
|
|
59
59
|
data: { fileName: fileNameFull, levelCount },
|
|
60
60
|
msg: "Checked directories above, stopping search."
|
|
61
61
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosopo/dotenv",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.25",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"exports": {
|
|
@@ -22,22 +22,17 @@
|
|
|
22
22
|
"build": "NODE_ENV=${NODE_ENV:-development}; vite build --config vite.esm.config.ts --mode $NODE_ENV",
|
|
23
23
|
"build:tsc": "tsc --build --verbose",
|
|
24
24
|
"build:cjs": "NODE_ENV=${NODE_ENV:-development}; vite build --config vite.cjs.config.ts --mode $NODE_ENV",
|
|
25
|
-
"typecheck": "tsc --
|
|
25
|
+
"typecheck": "tsc --project tsconfig.types.json",
|
|
26
26
|
"cli": "node ./dist/js/cli.js"
|
|
27
27
|
},
|
|
28
28
|
"type": "module",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@prosopo/common": "3.1.
|
|
31
|
-
"@prosopo/config": "3.1.
|
|
32
|
-
"
|
|
33
|
-
"axios": "1.10.0",
|
|
34
|
-
"dotenv": "16.4.5",
|
|
35
|
-
"esbuild": "0.25.6",
|
|
36
|
-
"express": "4.21.2",
|
|
37
|
-
"openpgp": "5.11.3",
|
|
38
|
-
"webpack-dev-server": "5.2.2"
|
|
30
|
+
"@prosopo/common": "3.1.20",
|
|
31
|
+
"@prosopo/config": "3.1.20",
|
|
32
|
+
"dotenv": "16.4.5"
|
|
39
33
|
},
|
|
40
34
|
"devDependencies": {
|
|
35
|
+
"@types/node": "22.10.2",
|
|
41
36
|
"@vitest/coverage-v8": "3.0.9",
|
|
42
37
|
"concurrently": "9.0.1",
|
|
43
38
|
"del-cli": "6.0.0",
|