@karmaniverous/get-dotenv 2.2.0 → 2.2.2
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.
|
@@ -200,7 +200,23 @@ const getDotenvSync = function () {
|
|
|
200
200
|
if (log) console.log(dotenv);
|
|
201
201
|
|
|
202
202
|
// Load process.env.
|
|
203
|
-
if (loadProcess) Object.assign(process.env, dotenv
|
|
203
|
+
if (loadProcess) Object.assign(process.env, dotenv, {
|
|
204
|
+
__getdotenvOptions: JSON.stringify({
|
|
205
|
+
dotenvToken,
|
|
206
|
+
dynamicPath,
|
|
207
|
+
env,
|
|
208
|
+
excludeDynamic,
|
|
209
|
+
excludeEnv,
|
|
210
|
+
excludeGlobal,
|
|
211
|
+
excludePrivate,
|
|
212
|
+
excludePublic,
|
|
213
|
+
loadProcess,
|
|
214
|
+
log,
|
|
215
|
+
outputPath,
|
|
216
|
+
paths,
|
|
217
|
+
privateToken
|
|
218
|
+
})
|
|
219
|
+
});
|
|
204
220
|
return dotenv;
|
|
205
221
|
};
|
|
206
222
|
exports.getDotenvSync = getDotenvSync;
|
|
@@ -234,7 +234,24 @@ export const getDotenvSync = ({
|
|
|
234
234
|
if (log) console.log(dotenv);
|
|
235
235
|
|
|
236
236
|
// Load process.env.
|
|
237
|
-
if (loadProcess)
|
|
237
|
+
if (loadProcess)
|
|
238
|
+
Object.assign(process.env, dotenv, {
|
|
239
|
+
__getdotenvOptions: JSON.stringify({
|
|
240
|
+
dotenvToken,
|
|
241
|
+
dynamicPath,
|
|
242
|
+
env,
|
|
243
|
+
excludeDynamic,
|
|
244
|
+
excludeEnv,
|
|
245
|
+
excludeGlobal,
|
|
246
|
+
excludePrivate,
|
|
247
|
+
excludePublic,
|
|
248
|
+
loadProcess,
|
|
249
|
+
log,
|
|
250
|
+
outputPath,
|
|
251
|
+
paths,
|
|
252
|
+
privateToken,
|
|
253
|
+
}),
|
|
254
|
+
});
|
|
238
255
|
|
|
239
256
|
return dotenv;
|
|
240
257
|
};
|