@nsshunt/stsconfig 1.27.2 → 1.27.3
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/stsconfig.mjs +2 -3
- package/dist/stsconfig.mjs.map +1 -1
- package/dist/stsconfig.umd.js +4 -23
- package/dist/stsconfig.umd.js.map +1 -1
- package/package.json +3 -3
package/dist/stsconfig.umd.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
(function(global, factory) {
|
|
2
2
|
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("node:fs"), require("dotenv"), require("node:http"), require("node:https")) : typeof define === "function" && define.amd ? define(["exports", "node:fs", "dotenv", "node:http", "node:https"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global["@nsshunt/stsconfig"] = {}, global["node:fs"], global.dotenv, global["node:http"], global["node:https"]));
|
|
3
|
-
})(this, function(exports2,
|
|
3
|
+
})(this, function(exports2, node_fs, dotenv, http, https) {
|
|
4
4
|
"use strict";var __typeError = (msg) => {
|
|
5
5
|
throw TypeError(msg);
|
|
6
6
|
};
|
|
@@ -18,24 +18,6 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
18
18
|
});
|
|
19
19
|
|
|
20
20
|
var _options, _httpAgent, _httpsAgent, _agentResetInterval, _requestCount, _SetupResetInterval, _GetAgentOptions, _url, _method, _headers, _data, _agentManager, _timeout, _withCredentials;
|
|
21
|
-
function _interopNamespaceDefault(e) {
|
|
22
|
-
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
23
|
-
if (e) {
|
|
24
|
-
for (const k in e) {
|
|
25
|
-
if (k !== "default") {
|
|
26
|
-
const d = Object.getOwnPropertyDescriptor(e, k);
|
|
27
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
28
|
-
enumerable: true,
|
|
29
|
-
get: () => e[k]
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
n.default = e;
|
|
35
|
-
return Object.freeze(n);
|
|
36
|
-
}
|
|
37
|
-
const fs__namespace = /* @__PURE__ */ _interopNamespaceDefault(fs);
|
|
38
|
-
const dotenv__namespace = /* @__PURE__ */ _interopNamespaceDefault(dotenv);
|
|
39
21
|
function getDefaultExportFromCjs(x) {
|
|
40
22
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
41
23
|
}
|
|
@@ -1463,11 +1445,10 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
1463
1445
|
chalk.stderr.supportsColor = stderrColor;
|
|
1464
1446
|
var source = chalk;
|
|
1465
1447
|
const chalk$1 = /* @__PURE__ */ getDefaultExportFromCjs(source);
|
|
1466
|
-
const { accessSync, constants, readFileSync } = fs__namespace;
|
|
1467
1448
|
const envOptions = {};
|
|
1468
1449
|
function SetupConfig(envOptions2, logger) {
|
|
1469
1450
|
const envfile = process.env.STSENVFILE === void 0 ? "/.env" : process.env.STSENVFILE;
|
|
1470
|
-
|
|
1451
|
+
dotenv.config({ path: envfile });
|
|
1471
1452
|
const defconfig = {
|
|
1472
1453
|
// Node runtime environment
|
|
1473
1454
|
isProduction: process.env.NODE_ENV === void 0 ? false : process.env.NODE_ENV === "production" ? true : false,
|
|
@@ -1627,8 +1608,8 @@ var __privateWrapper = (obj, member, setter, getter) => ({
|
|
|
1627
1608
|
};
|
|
1628
1609
|
const ReadFile = (passwordFile) => {
|
|
1629
1610
|
try {
|
|
1630
|
-
accessSync(passwordFile, constants.R_OK);
|
|
1631
|
-
const data = readFileSync(passwordFile, "utf8");
|
|
1611
|
+
node_fs.accessSync(passwordFile, node_fs.constants.R_OK);
|
|
1612
|
+
const data = node_fs.readFileSync(passwordFile, "utf8");
|
|
1632
1613
|
if (logger) ;
|
|
1633
1614
|
return data;
|
|
1634
1615
|
} catch (err) {
|