pinokiod 3.339.0 → 3.340.0
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/kernel/util.js +3 -1
- package/package.json +1 -1
package/kernel/util.js
CHANGED
|
@@ -312,7 +312,9 @@ const parse_env = async (filename) => {
|
|
|
312
312
|
try {
|
|
313
313
|
const buf = await fs.promises.readFile(filename)
|
|
314
314
|
let config = dotenv.parse(buf) // will return an object
|
|
315
|
-
|
|
315
|
+
if (!config || Object.keys(config).length === 0) {
|
|
316
|
+
console.warn(`[parse_env] initial parse empty for ${filename}`)
|
|
317
|
+
}
|
|
316
318
|
|
|
317
319
|
// Fallbacks for UTF-16 encodings (common from “Unicode” saves)
|
|
318
320
|
if ((!config || Object.keys(config).length === 0) && buf.length > 0) {
|