@nsshunt/stsdatamanagement 1.17.58 → 1.17.60
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.
|
@@ -27,16 +27,18 @@ var __privateMethod = (obj, member, method) => {
|
|
|
27
27
|
return method;
|
|
28
28
|
};
|
|
29
29
|
var _options2, _observer, _pool, _cache, _pgpool, _poolManager, _latestResourceVersion, latestResourceVersion_fn, _buildQueryString, buildQueryString_fn, _options3, _accessLayer, _useMultiBar, _workerScriptFolder, _accessLayer2;
|
|
30
|
+
import process from "process";
|
|
30
31
|
import { $Options } from "@nsshunt/stsconfig";
|
|
31
32
|
import { $stsgd, Sleep } from "@nsshunt/stsutils";
|
|
32
33
|
import Debug from "debug";
|
|
33
34
|
import colors from "colors";
|
|
34
|
-
import
|
|
35
|
-
import require$$0$
|
|
36
|
-
import require$$0$5, { Buffer as Buffer$2 } from "buffer";
|
|
35
|
+
import require$$0$5 from "events";
|
|
36
|
+
import require$$0$6, { Buffer as Buffer$2 } from "buffer";
|
|
37
37
|
import crypto$2 from "crypto";
|
|
38
|
-
import require$$0$
|
|
38
|
+
import require$$0$4 from "path";
|
|
39
39
|
import require$$1 from "fs";
|
|
40
|
+
import require$$0$3 from "stream";
|
|
41
|
+
import * as streamex from "node:stream";
|
|
40
42
|
import * as fs$2 from "node:fs/promises";
|
|
41
43
|
import si from "systeminformation";
|
|
42
44
|
import { v4 } from "uuid";
|
|
@@ -978,7 +980,7 @@ binaryParsers.init(function(oid, converter) {
|
|
|
978
980
|
// database host. defaults to localhost
|
|
979
981
|
host: "localhost",
|
|
980
982
|
// database user's name
|
|
981
|
-
user: process
|
|
983
|
+
user: process.platform === "win32" ? process.env.USERNAME : process.env.USER,
|
|
982
984
|
// name of database to connect
|
|
983
985
|
database: void 0,
|
|
984
986
|
// database user's password
|
|
@@ -1330,7 +1332,7 @@ var helper$1 = {
|
|
|
1330
1332
|
}
|
|
1331
1333
|
};
|
|
1332
1334
|
const require$$0$2 = /* @__PURE__ */ getAugmentedNamespace(__viteBrowserExternal);
|
|
1333
|
-
const { Transform } = require$$0$
|
|
1335
|
+
const { Transform } = require$$0$3;
|
|
1334
1336
|
const { StringDecoder: StringDecoder$1 } = require$$0$2;
|
|
1335
1337
|
const kLast = Symbol("last");
|
|
1336
1338
|
const kDecoder = Symbol("decoder");
|
|
@@ -1426,7 +1428,7 @@ function split(matcher, mapper, options2) {
|
|
|
1426
1428
|
}
|
|
1427
1429
|
var split2 = split;
|
|
1428
1430
|
(function(module2) {
|
|
1429
|
-
var path = require$$0$
|
|
1431
|
+
var path = require$$0$4, Stream = require$$0$3.Stream, split3 = split2, util2 = require$$0$2, defaultPort = 5432, isWin = process.platform === "win32", warnStream = process.stderr;
|
|
1430
1432
|
var S_IRWXG = 56, S_IRWXO = 7, S_IFMT = 61440, S_IFREG = 32768;
|
|
1431
1433
|
function isRegFile(mode) {
|
|
1432
1434
|
return (mode & S_IFMT) == S_IFREG;
|
|
@@ -1455,12 +1457,12 @@ var split2 = split;
|
|
|
1455
1457
|
return old2;
|
|
1456
1458
|
};
|
|
1457
1459
|
module2.exports.getFileName = function(rawEnv) {
|
|
1458
|
-
var env = rawEnv || process
|
|
1460
|
+
var env = rawEnv || process.env;
|
|
1459
1461
|
var file = env.PGPASSFILE || (isWin ? path.join(env.APPDATA || "./", "postgresql", "pgpass.conf") : path.join(env.HOME || "./", ".pgpass"));
|
|
1460
1462
|
return file;
|
|
1461
1463
|
};
|
|
1462
1464
|
module2.exports.usePgPass = function(stats, fname) {
|
|
1463
|
-
if (Object.prototype.hasOwnProperty.call(process
|
|
1465
|
+
if (Object.prototype.hasOwnProperty.call(process.env, "PGPASSWORD")) {
|
|
1464
1466
|
return false;
|
|
1465
1467
|
}
|
|
1466
1468
|
if (isWin) {
|
|
@@ -1521,7 +1523,7 @@ var split2 = split;
|
|
|
1521
1523
|
var isLastField = false;
|
|
1522
1524
|
var addToObj = function(idx, i0, i1) {
|
|
1523
1525
|
var field = line.substring(i0, i1);
|
|
1524
|
-
if (!Object.hasOwnProperty.call(process
|
|
1526
|
+
if (!Object.hasOwnProperty.call(process.env, "PGPASS_NO_DEESCAPE")) {
|
|
1525
1527
|
field = field.replace(/\\([:\\])/g, "$1");
|
|
1526
1528
|
}
|
|
1527
1529
|
obj[fieldNames[idx]] = field;
|
|
@@ -1704,16 +1706,16 @@ var defaults$3 = defaultsExports;
|
|
|
1704
1706
|
var parse$2 = pgConnectionString.parse;
|
|
1705
1707
|
var val = function(key, config2, envVar) {
|
|
1706
1708
|
if (envVar === void 0) {
|
|
1707
|
-
envVar = process
|
|
1709
|
+
envVar = process.env["PG" + key.toUpperCase()];
|
|
1708
1710
|
} else if (envVar === false)
|
|
1709
1711
|
;
|
|
1710
1712
|
else {
|
|
1711
|
-
envVar = process
|
|
1713
|
+
envVar = process.env[envVar];
|
|
1712
1714
|
}
|
|
1713
1715
|
return config2[key] || envVar || defaults$3[key];
|
|
1714
1716
|
};
|
|
1715
1717
|
var readSSLConfigFromEnvironment = function() {
|
|
1716
|
-
switch (process
|
|
1718
|
+
switch (process.env.PGSSLMODE) {
|
|
1717
1719
|
case "disable":
|
|
1718
1720
|
return false;
|
|
1719
1721
|
case "prefer":
|
|
@@ -1780,7 +1782,7 @@ let ConnectionParameters$1 = class ConnectionParameters {
|
|
|
1780
1782
|
this.idle_in_transaction_session_timeout = val("idle_in_transaction_session_timeout", config2, false);
|
|
1781
1783
|
this.query_timeout = val("query_timeout", config2, false);
|
|
1782
1784
|
if (config2.connectionTimeoutMillis === void 0) {
|
|
1783
|
-
this.connect_timeout = process
|
|
1785
|
+
this.connect_timeout = process.env.PGCONNECT_TIMEOUT || 0;
|
|
1784
1786
|
} else {
|
|
1785
1787
|
this.connect_timeout = Math.floor(config2.connectionTimeoutMillis / 1e3);
|
|
1786
1788
|
}
|
|
@@ -1911,7 +1913,7 @@ let Result$1 = class Result {
|
|
|
1911
1913
|
}
|
|
1912
1914
|
};
|
|
1913
1915
|
var result = Result$1;
|
|
1914
|
-
const { EventEmitter: EventEmitter$2 } = require$$0$
|
|
1916
|
+
const { EventEmitter: EventEmitter$2 } = require$$0$5;
|
|
1915
1917
|
const Result2 = result;
|
|
1916
1918
|
const utils$3 = utils$4;
|
|
1917
1919
|
let Query$1 = class Query extends EventEmitter$2 {
|
|
@@ -1927,8 +1929,8 @@ let Query$1 = class Query extends EventEmitter$2 {
|
|
|
1927
1929
|
this.portal = config2.portal || "";
|
|
1928
1930
|
this.callback = config2.callback;
|
|
1929
1931
|
this._rowMode = config2.rowMode;
|
|
1930
|
-
if (process
|
|
1931
|
-
this.callback = process
|
|
1932
|
+
if (process.domain && config2.callback) {
|
|
1933
|
+
this.callback = process.domain.bind(config2.callback);
|
|
1932
1934
|
}
|
|
1933
1935
|
this._result = new Result2(this._rowMode, this.types);
|
|
1934
1936
|
this._results = this._result;
|
|
@@ -2018,7 +2020,7 @@ let Query$1 = class Query extends EventEmitter$2 {
|
|
|
2018
2020
|
try {
|
|
2019
2021
|
this.callback(null, this._results);
|
|
2020
2022
|
} catch (err) {
|
|
2021
|
-
process
|
|
2023
|
+
process.nextTick(() => {
|
|
2022
2024
|
throw err;
|
|
2023
2025
|
});
|
|
2024
2026
|
}
|
|
@@ -2899,7 +2901,7 @@ parser$1.Parser = Parser;
|
|
|
2899
2901
|
exports.parse = parse3;
|
|
2900
2902
|
})(dist$1);
|
|
2901
2903
|
var net = require$$0$2;
|
|
2902
|
-
var EventEmitter$1 = require$$0$
|
|
2904
|
+
var EventEmitter$1 = require$$0$5.EventEmitter;
|
|
2903
2905
|
const { parse, serialize } = dist$1;
|
|
2904
2906
|
const flushBuffer = serialize.flush();
|
|
2905
2907
|
const syncBuffer = serialize.sync();
|
|
@@ -3075,7 +3077,7 @@ let Connection$1 = class Connection extends EventEmitter$1 {
|
|
|
3075
3077
|
}
|
|
3076
3078
|
};
|
|
3077
3079
|
var connection = Connection$1;
|
|
3078
|
-
var EventEmitter = require$$0$
|
|
3080
|
+
var EventEmitter = require$$0$5.EventEmitter;
|
|
3079
3081
|
var utils$2 = utils$4;
|
|
3080
3082
|
var sasl = sasl$1;
|
|
3081
3083
|
var pgPass = libExports$2;
|
|
@@ -3129,7 +3131,7 @@ class Client extends EventEmitter {
|
|
|
3129
3131
|
}
|
|
3130
3132
|
_errorAllQueries(err) {
|
|
3131
3133
|
const enqueueError = (query2) => {
|
|
3132
|
-
process
|
|
3134
|
+
process.nextTick(() => {
|
|
3133
3135
|
query2.handleError(err, this.connection);
|
|
3134
3136
|
});
|
|
3135
3137
|
};
|
|
@@ -3146,7 +3148,7 @@ class Client extends EventEmitter {
|
|
|
3146
3148
|
this._connectionCallback = callback;
|
|
3147
3149
|
if (this._connecting || this._connected) {
|
|
3148
3150
|
const err = new Error("Client has already been connected. You cannot reuse a client.");
|
|
3149
|
-
process
|
|
3151
|
+
process.nextTick(() => {
|
|
3150
3152
|
callback(err);
|
|
3151
3153
|
});
|
|
3152
3154
|
return;
|
|
@@ -3191,7 +3193,7 @@ class Client extends EventEmitter {
|
|
|
3191
3193
|
this._handleErrorEvent(error);
|
|
3192
3194
|
}
|
|
3193
3195
|
}
|
|
3194
|
-
process
|
|
3196
|
+
process.nextTick(() => {
|
|
3195
3197
|
this.emit("end");
|
|
3196
3198
|
});
|
|
3197
3199
|
});
|
|
@@ -3472,7 +3474,7 @@ class Client extends EventEmitter {
|
|
|
3472
3474
|
this.hasExecuted = true;
|
|
3473
3475
|
const queryError = this.activeQuery.submit(this.connection);
|
|
3474
3476
|
if (queryError) {
|
|
3475
|
-
process
|
|
3477
|
+
process.nextTick(() => {
|
|
3476
3478
|
this.activeQuery.handleError(queryError, this.connection);
|
|
3477
3479
|
this.readyForQuery = true;
|
|
3478
3480
|
this._pulseQueryQueue();
|
|
@@ -3511,7 +3513,7 @@ class Client extends EventEmitter {
|
|
|
3511
3513
|
queryCallback = query2.callback;
|
|
3512
3514
|
readTimeoutTimer = setTimeout(() => {
|
|
3513
3515
|
var error = new Error("Query read timeout");
|
|
3514
|
-
process
|
|
3516
|
+
process.nextTick(() => {
|
|
3515
3517
|
query2.handleError(error, this.connection);
|
|
3516
3518
|
});
|
|
3517
3519
|
queryCallback(error);
|
|
@@ -3535,13 +3537,13 @@ class Client extends EventEmitter {
|
|
|
3535
3537
|
query2._result._types = this._types;
|
|
3536
3538
|
}
|
|
3537
3539
|
if (!this._queryable) {
|
|
3538
|
-
process
|
|
3540
|
+
process.nextTick(() => {
|
|
3539
3541
|
query2.handleError(new Error("Client has encountered a connection error and is not queryable"), this.connection);
|
|
3540
3542
|
});
|
|
3541
3543
|
return result2;
|
|
3542
3544
|
}
|
|
3543
3545
|
if (this._ending) {
|
|
3544
|
-
process
|
|
3546
|
+
process.nextTick(() => {
|
|
3545
3547
|
query2.handleError(new Error("Client was closed and is not queryable"), this.connection);
|
|
3546
3548
|
});
|
|
3547
3549
|
return result2;
|
|
@@ -3587,7 +3589,7 @@ function requirePgPool() {
|
|
|
3587
3589
|
if (hasRequiredPgPool)
|
|
3588
3590
|
return pgPool;
|
|
3589
3591
|
hasRequiredPgPool = 1;
|
|
3590
|
-
const EventEmitter2 = require$$0$
|
|
3592
|
+
const EventEmitter2 = require$$0$5.EventEmitter;
|
|
3591
3593
|
const NOOP = function() {
|
|
3592
3594
|
};
|
|
3593
3595
|
const removeWhere = (list, predicate) => {
|
|
@@ -3732,7 +3734,7 @@ function requirePgPool() {
|
|
|
3732
3734
|
const result2 = response.result;
|
|
3733
3735
|
if (this._isFull() || this._idle.length) {
|
|
3734
3736
|
if (this._idle.length) {
|
|
3735
|
-
process
|
|
3737
|
+
process.nextTick(() => this._pulseQueue());
|
|
3736
3738
|
}
|
|
3737
3739
|
if (!this.options.connectionTimeoutMillis) {
|
|
3738
3740
|
this._pendingQueue.push(new PendingItem(response.callback));
|
|
@@ -4000,7 +4002,7 @@ function requireQuery() {
|
|
|
4000
4002
|
if (hasRequiredQuery)
|
|
4001
4003
|
return queryExports;
|
|
4002
4004
|
hasRequiredQuery = 1;
|
|
4003
|
-
var EventEmitter2 = require$$0$
|
|
4005
|
+
var EventEmitter2 = require$$0$5.EventEmitter;
|
|
4004
4006
|
var util2 = require$$0$2;
|
|
4005
4007
|
var utils2 = utils$4;
|
|
4006
4008
|
var NativeQuery = query.exports = function(config2, values, callback) {
|
|
@@ -4101,8 +4103,8 @@ function requireQuery() {
|
|
|
4101
4103
|
self2.callback(null, results);
|
|
4102
4104
|
}
|
|
4103
4105
|
};
|
|
4104
|
-
if (process
|
|
4105
|
-
after = process
|
|
4106
|
+
if (process.domain) {
|
|
4107
|
+
after = process.domain.bind(after);
|
|
4106
4108
|
}
|
|
4107
4109
|
if (this.name) {
|
|
4108
4110
|
if (this.name.length > 63) {
|
|
@@ -4144,7 +4146,7 @@ function requireClient() {
|
|
|
4144
4146
|
hasRequiredClient = 1;
|
|
4145
4147
|
var Native = require$$0$1;
|
|
4146
4148
|
var TypeOverrides2 = typeOverrides;
|
|
4147
|
-
var EventEmitter2 = require$$0$
|
|
4149
|
+
var EventEmitter2 = require$$0$5.EventEmitter;
|
|
4148
4150
|
var util2 = require$$0$2;
|
|
4149
4151
|
var ConnectionParameters3 = connectionParameters;
|
|
4150
4152
|
var NativeQuery = requireQuery();
|
|
@@ -4178,7 +4180,7 @@ function requireClient() {
|
|
|
4178
4180
|
util2.inherits(Client2, EventEmitter2);
|
|
4179
4181
|
Client2.prototype._errorAllQueries = function(err) {
|
|
4180
4182
|
const enqueueError = (query2) => {
|
|
4181
|
-
process
|
|
4183
|
+
process.nextTick(() => {
|
|
4182
4184
|
query2.native = this.native;
|
|
4183
4185
|
query2.handleError(err);
|
|
4184
4186
|
});
|
|
@@ -4193,7 +4195,7 @@ function requireClient() {
|
|
|
4193
4195
|
Client2.prototype._connect = function(cb) {
|
|
4194
4196
|
var self2 = this;
|
|
4195
4197
|
if (this._connecting) {
|
|
4196
|
-
process
|
|
4198
|
+
process.nextTick(() => cb(new Error("Client has already been connected. You cannot reuse a client.")));
|
|
4197
4199
|
return;
|
|
4198
4200
|
}
|
|
4199
4201
|
this._connecting = true;
|
|
@@ -4268,7 +4270,7 @@ function requireClient() {
|
|
|
4268
4270
|
queryCallback = query2.callback;
|
|
4269
4271
|
readTimeoutTimer = setTimeout(() => {
|
|
4270
4272
|
var error = new Error("Query read timeout");
|
|
4271
|
-
process
|
|
4273
|
+
process.nextTick(() => {
|
|
4272
4274
|
query2.handleError(error, this.connection);
|
|
4273
4275
|
});
|
|
4274
4276
|
queryCallback(error);
|
|
@@ -4287,14 +4289,14 @@ function requireClient() {
|
|
|
4287
4289
|
}
|
|
4288
4290
|
if (!this._queryable) {
|
|
4289
4291
|
query2.native = this.native;
|
|
4290
|
-
process
|
|
4292
|
+
process.nextTick(() => {
|
|
4291
4293
|
query2.handleError(new Error("Client has encountered a connection error and is not queryable"));
|
|
4292
4294
|
});
|
|
4293
4295
|
return result2;
|
|
4294
4296
|
}
|
|
4295
4297
|
if (this._ending) {
|
|
4296
4298
|
query2.native = this.native;
|
|
4297
|
-
process
|
|
4299
|
+
process.nextTick(() => {
|
|
4298
4300
|
query2.handleError(new Error("Client was closed and is not queryable"));
|
|
4299
4301
|
});
|
|
4300
4302
|
return result2;
|
|
@@ -4317,7 +4319,7 @@ function requireClient() {
|
|
|
4317
4319
|
}
|
|
4318
4320
|
this.native.end(function() {
|
|
4319
4321
|
self2._errorAllQueries(new Error("Connection terminated"));
|
|
4320
|
-
process
|
|
4322
|
+
process.nextTick(() => {
|
|
4321
4323
|
self2.emit("end");
|
|
4322
4324
|
if (cb)
|
|
4323
4325
|
cb();
|
|
@@ -4407,7 +4409,7 @@ function requireLib$1() {
|
|
|
4407
4409
|
this.types = pgTypes;
|
|
4408
4410
|
this.DatabaseError = DatabaseError2;
|
|
4409
4411
|
};
|
|
4410
|
-
if (typeof process
|
|
4412
|
+
if (typeof process.env.NODE_PG_FORCE_NATIVE !== "undefined") {
|
|
4411
4413
|
module2.exports = new PG(requireNative());
|
|
4412
4414
|
} else {
|
|
4413
4415
|
module2.exports = new PG(Client2);
|
|
@@ -7679,7 +7681,7 @@ function requireModern() {
|
|
|
7679
7681
|
};
|
|
7680
7682
|
return modern;
|
|
7681
7683
|
}
|
|
7682
|
-
const Errors = process
|
|
7684
|
+
const Errors = process.version.charCodeAt(1) < 55 && process.version.charCodeAt(2) === 46 ? requireOld() : requireModern();
|
|
7683
7685
|
var redisErrors = Errors;
|
|
7684
7686
|
const __dirname$1 = "/home/runner/work/stsdatamanagement/stsdatamanagement/node_modules/ioredis/built";
|
|
7685
7687
|
var Command$1 = {};
|
|
@@ -8960,7 +8962,7 @@ ClusterAllFailedError$1.default = ClusterAllFailedError;
|
|
|
8960
8962
|
ClusterAllFailedError.defaultMessage = "Failed to refresh slots cache.";
|
|
8961
8963
|
var ScanStream$1 = {};
|
|
8962
8964
|
Object.defineProperty(ScanStream$1, "__esModule", { value: true });
|
|
8963
|
-
const stream_1 = require$$0$
|
|
8965
|
+
const stream_1 = require$$0$3;
|
|
8964
8966
|
class ScanStream extends stream_1.Readable {
|
|
8965
8967
|
constructor(opt) {
|
|
8966
8968
|
super(opt);
|
|
@@ -9045,11 +9047,11 @@ var autoPipelining = {};
|
|
|
9045
9047
|
client2._runningAutoPipelines.delete(slotKey);
|
|
9046
9048
|
if (err) {
|
|
9047
9049
|
for (let i = 0; i < callbacks.length; i++) {
|
|
9048
|
-
process
|
|
9050
|
+
process.nextTick(callbacks[i], err);
|
|
9049
9051
|
}
|
|
9050
9052
|
} else {
|
|
9051
9053
|
for (let i = 0; i < callbacks.length; i++) {
|
|
9052
|
-
process
|
|
9054
|
+
process.nextTick(callbacks[i], ...results[i]);
|
|
9053
9055
|
}
|
|
9054
9056
|
}
|
|
9055
9057
|
if (client2._autoPipelines.has(slotKey)) {
|
|
@@ -9945,7 +9947,7 @@ function requireConnectionPool() {
|
|
|
9945
9947
|
return ConnectionPool;
|
|
9946
9948
|
hasRequiredConnectionPool = 1;
|
|
9947
9949
|
Object.defineProperty(ConnectionPool, "__esModule", { value: true });
|
|
9948
|
-
const events_1 = require$$0$
|
|
9950
|
+
const events_1 = require$$0$5;
|
|
9949
9951
|
const utils_12 = utils;
|
|
9950
9952
|
const util_12 = util$2;
|
|
9951
9953
|
const Redis_1 = requireRedis();
|
|
@@ -10428,7 +10430,7 @@ class DelayQueue {
|
|
|
10428
10430
|
* @param options
|
|
10429
10431
|
*/
|
|
10430
10432
|
push(bucket, item, options2) {
|
|
10431
|
-
const callback = options2.callback || process
|
|
10433
|
+
const callback = options2.callback || process.nextTick;
|
|
10432
10434
|
if (!this.queues[bucket]) {
|
|
10433
10435
|
this.queues[bucket] = new Deque();
|
|
10434
10436
|
}
|
|
@@ -10467,7 +10469,7 @@ function requireCluster() {
|
|
|
10467
10469
|
hasRequiredCluster = 1;
|
|
10468
10470
|
Object.defineProperty(cluster, "__esModule", { value: true });
|
|
10469
10471
|
const commands_12 = built$1;
|
|
10470
|
-
const events_1 = require$$0$
|
|
10472
|
+
const events_1 = require$$0$5;
|
|
10471
10473
|
const redis_errors_12 = redisErrors;
|
|
10472
10474
|
const standard_as_callback_12 = built;
|
|
10473
10475
|
const Command_12 = Command$1;
|
|
@@ -10717,7 +10719,7 @@ function requireCluster() {
|
|
|
10717
10719
|
refreshSlotsCache(callback) {
|
|
10718
10720
|
if (this.isRefreshing) {
|
|
10719
10721
|
if (callback) {
|
|
10720
|
-
process
|
|
10722
|
+
process.nextTick(callback);
|
|
10721
10723
|
}
|
|
10722
10724
|
return;
|
|
10723
10725
|
}
|
|
@@ -10976,7 +10978,7 @@ function requireCluster() {
|
|
|
10976
10978
|
setStatus(status) {
|
|
10977
10979
|
debug2("status: %s -> %s", this.status || "[empty]", status);
|
|
10978
10980
|
this.status = status;
|
|
10979
|
-
process
|
|
10981
|
+
process.nextTick(() => {
|
|
10980
10982
|
this.emit(status);
|
|
10981
10983
|
});
|
|
10982
10984
|
}
|
|
@@ -11100,7 +11102,7 @@ function requireCluster() {
|
|
|
11100
11102
|
}
|
|
11101
11103
|
invokeReadyDelayedCallbacks(err) {
|
|
11102
11104
|
for (const c of this._readyDelayedCallbacks) {
|
|
11103
|
-
process
|
|
11105
|
+
process.nextTick(c, err);
|
|
11104
11106
|
}
|
|
11105
11107
|
this._readyDelayedCallbacks = [];
|
|
11106
11108
|
}
|
|
@@ -11274,7 +11276,7 @@ class StandaloneConnector extends AbstractConnector_1.default {
|
|
|
11274
11276
|
Object.assign(connectionOptions, options2.tls);
|
|
11275
11277
|
}
|
|
11276
11278
|
return new Promise((resolve, reject) => {
|
|
11277
|
-
process
|
|
11279
|
+
process.nextTick(() => {
|
|
11278
11280
|
if (!this.connecting) {
|
|
11279
11281
|
reject(new Error(utils_1$2.CONNECTION_CLOSED_ERROR_MSG));
|
|
11280
11282
|
return;
|
|
@@ -11677,7 +11679,7 @@ var redisParser = {
|
|
|
11677
11679
|
redisParserExports = v;
|
|
11678
11680
|
}
|
|
11679
11681
|
};
|
|
11680
|
-
const Buffer$1 = require$$0$
|
|
11682
|
+
const Buffer$1 = require$$0$6.Buffer;
|
|
11681
11683
|
const StringDecoder = require$$0$2.StringDecoder;
|
|
11682
11684
|
const decoder = new StringDecoder();
|
|
11683
11685
|
const errors = redisErrors;
|
|
@@ -12625,7 +12627,7 @@ function requireRedis() {
|
|
|
12625
12627
|
hasRequiredRedis = 1;
|
|
12626
12628
|
Object.defineProperty(Redis$1, "__esModule", { value: true });
|
|
12627
12629
|
const commands_12 = built$1;
|
|
12628
|
-
const events_1 = require$$0$
|
|
12630
|
+
const events_1 = require$$0$5;
|
|
12629
12631
|
const standard_as_callback_12 = built;
|
|
12630
12632
|
const cluster_1 = requireCluster();
|
|
12631
12633
|
const Command_12 = Command$1;
|
|
@@ -12764,13 +12766,13 @@ function requireRedis() {
|
|
|
12764
12766
|
} else if (stream.destroyed) {
|
|
12765
12767
|
const firstError = _this.connector.firstError;
|
|
12766
12768
|
if (firstError) {
|
|
12767
|
-
process
|
|
12769
|
+
process.nextTick(() => {
|
|
12768
12770
|
eventHandler.errorHandler(_this)(firstError);
|
|
12769
12771
|
});
|
|
12770
12772
|
}
|
|
12771
|
-
process
|
|
12773
|
+
process.nextTick(eventHandler.closeHandler(_this));
|
|
12772
12774
|
} else {
|
|
12773
|
-
process
|
|
12775
|
+
process.nextTick(eventHandler.connectHandler(_this));
|
|
12774
12776
|
}
|
|
12775
12777
|
if (!stream.destroyed) {
|
|
12776
12778
|
stream.once("error", eventHandler.errorHandler(_this));
|
|
@@ -13126,7 +13128,7 @@ function requireRedis() {
|
|
|
13126
13128
|
debug2("status[%s]: %s -> %s", this._getDescription(), this.status || "[empty]", status);
|
|
13127
13129
|
}
|
|
13128
13130
|
this.status = status;
|
|
13129
|
-
process
|
|
13131
|
+
process.nextTick(this.emit.bind(this, status, arg));
|
|
13130
13132
|
}
|
|
13131
13133
|
createScanStream(command2, { key, options: options2 = {} }) {
|
|
13132
13134
|
return new ScanStream_1.default({
|
|
@@ -13272,7 +13274,7 @@ function requireRedis() {
|
|
|
13272
13274
|
})(built$2, builtExports);
|
|
13273
13275
|
const Redis = /* @__PURE__ */ getDefaultExportFromCjs(builtExports);
|
|
13274
13276
|
var pgCopyStreams = {};
|
|
13275
|
-
var Buffer2 = require$$0$
|
|
13277
|
+
var Buffer2 = require$$0$6.Buffer;
|
|
13276
13278
|
function OffsetBuffer() {
|
|
13277
13279
|
this.offset = 0;
|
|
13278
13280
|
this.size = 0;
|
|
@@ -13601,7 +13603,7 @@ var messageFormats = {
|
|
|
13601
13603
|
var copyTo = function(txt, options2) {
|
|
13602
13604
|
return new CopyStreamQuery$2(txt, options2);
|
|
13603
13605
|
};
|
|
13604
|
-
const { Readable } = require$$0$
|
|
13606
|
+
const { Readable } = require$$0$3;
|
|
13605
13607
|
const assert$1 = require$$0$2;
|
|
13606
13608
|
const BufferList$1 = obuf;
|
|
13607
13609
|
const code$2 = messageFormats;
|
|
@@ -13643,7 +13645,7 @@ let CopyStreamQuery$2 = class CopyStreamQuery extends Readable {
|
|
|
13643
13645
|
connectionStream.removeListener("readable", this._onReadableEvent);
|
|
13644
13646
|
connectionStream.addListener("data", this._pgDataHandler);
|
|
13645
13647
|
this._pgDataHandler(unreadBuffer);
|
|
13646
|
-
process
|
|
13648
|
+
process.nextTick(function() {
|
|
13647
13649
|
connectionStream.resume();
|
|
13648
13650
|
});
|
|
13649
13651
|
}
|
|
@@ -13745,7 +13747,7 @@ let CopyStreamQuery$2 = class CopyStreamQuery extends Readable {
|
|
|
13745
13747
|
var copyFrom$1 = function(txt, options2) {
|
|
13746
13748
|
return new CopyStreamQuery$1(txt, options2);
|
|
13747
13749
|
};
|
|
13748
|
-
const { Writable } = require$$0$
|
|
13750
|
+
const { Writable } = require$$0$3;
|
|
13749
13751
|
const code$1 = messageFormats;
|
|
13750
13752
|
let CopyStreamQuery$1 = class CopyStreamQuery2 extends Writable {
|
|
13751
13753
|
constructor(text2, options2) {
|
|
@@ -13875,7 +13877,7 @@ let CopyStreamQuery$1 = class CopyStreamQuery2 extends Writable {
|
|
|
13875
13877
|
var copyBoth = function(txt, options2) {
|
|
13876
13878
|
return new CopyStreamQuery3(txt, options2);
|
|
13877
13879
|
};
|
|
13878
|
-
const { Duplex } = require$$0$
|
|
13880
|
+
const { Duplex } = require$$0$3;
|
|
13879
13881
|
const assert = require$$0$2;
|
|
13880
13882
|
const BufferList = obuf;
|
|
13881
13883
|
const code = messageFormats;
|
|
@@ -13922,7 +13924,7 @@ class CopyStreamQuery3 extends Duplex {
|
|
|
13922
13924
|
connectionStream.removeListener("readable", this._onReadableEvent);
|
|
13923
13925
|
connectionStream.addListener("data", this._pgDataHandler);
|
|
13924
13926
|
this._pgDataHandler(unreadBuffer);
|
|
13925
|
-
process
|
|
13927
|
+
process.nextTick(function() {
|
|
13926
13928
|
connectionStream.resume();
|
|
13927
13929
|
});
|
|
13928
13930
|
}
|
|
@@ -14731,7 +14733,7 @@ class PGAccessLayer {
|
|
|
14731
14733
|
resolve("Completed");
|
|
14732
14734
|
};
|
|
14733
14735
|
const stream = client2.query(copyFrom2("COPY stsresource (resname,resdesc,vnum,validfrom,dbaction,dbactionuser) FROM STDIN"));
|
|
14734
|
-
const rs = new (
|
|
14736
|
+
const rs = new streamex.Readable();
|
|
14735
14737
|
let currentIndex = 0;
|
|
14736
14738
|
rs._read = function() {
|
|
14737
14739
|
if (currentIndex === fakerdata.length) {
|
|
@@ -14898,7 +14900,7 @@ function requireKleur() {
|
|
|
14898
14900
|
if (hasRequiredKleur)
|
|
14899
14901
|
return kleur;
|
|
14900
14902
|
hasRequiredKleur = 1;
|
|
14901
|
-
const { FORCE_COLOR, NODE_DISABLE_COLORS, TERM } = process
|
|
14903
|
+
const { FORCE_COLOR, NODE_DISABLE_COLORS, TERM } = process.env;
|
|
14902
14904
|
const $ = {
|
|
14903
14905
|
enabled: !NODE_DISABLE_COLORS && TERM !== "dumb" && FORCE_COLOR !== "0",
|
|
14904
14906
|
// modifiers
|
|
@@ -15248,7 +15250,7 @@ function requireFigures$1() {
|
|
|
15248
15250
|
line: "─",
|
|
15249
15251
|
pointer: ">"
|
|
15250
15252
|
};
|
|
15251
|
-
const figures = process
|
|
15253
|
+
const figures = process.platform === "win32" ? win : main;
|
|
15252
15254
|
figures_1$1 = figures;
|
|
15253
15255
|
return figures_1$1;
|
|
15254
15256
|
}
|
|
@@ -15377,15 +15379,15 @@ function requirePrompt$1() {
|
|
|
15377
15379
|
hasRequiredPrompt$1 = 1;
|
|
15378
15380
|
const readline = require$$0$2;
|
|
15379
15381
|
const _require = requireUtil$1(), action2 = _require.action;
|
|
15380
|
-
const EventEmitter2 = require$$0$
|
|
15382
|
+
const EventEmitter2 = require$$0$5;
|
|
15381
15383
|
const _require2 = requireSrc(), beep = _require2.beep, cursor = _require2.cursor;
|
|
15382
15384
|
const color = requireKleur();
|
|
15383
15385
|
class Prompt extends EventEmitter2 {
|
|
15384
15386
|
constructor(opts = {}) {
|
|
15385
15387
|
super();
|
|
15386
15388
|
this.firstRender = true;
|
|
15387
|
-
this.in = opts.stdin || process
|
|
15388
|
-
this.out = opts.stdout || process
|
|
15389
|
+
this.in = opts.stdin || process.stdin;
|
|
15390
|
+
this.out = opts.stdout || process.stdout;
|
|
15389
15391
|
this.onRender = (opts.onRender || (() => void 0)).bind(this);
|
|
15390
15392
|
const rl = readline.createInterface({
|
|
15391
15393
|
input: this.in,
|
|
@@ -17811,7 +17813,7 @@ function requireFigures() {
|
|
|
17811
17813
|
line: "─",
|
|
17812
17814
|
pointer: ">"
|
|
17813
17815
|
};
|
|
17814
|
-
const figures = process
|
|
17816
|
+
const figures = process.platform === "win32" ? win : main;
|
|
17815
17817
|
figures_1 = figures;
|
|
17816
17818
|
return figures_1;
|
|
17817
17819
|
}
|
|
@@ -17925,15 +17927,15 @@ function requirePrompt() {
|
|
|
17925
17927
|
hasRequiredPrompt = 1;
|
|
17926
17928
|
const readline = require$$0$2;
|
|
17927
17929
|
const { action: action2 } = requireUtil();
|
|
17928
|
-
const EventEmitter2 = require$$0$
|
|
17930
|
+
const EventEmitter2 = require$$0$5;
|
|
17929
17931
|
const { beep, cursor } = requireSrc();
|
|
17930
17932
|
const color = requireKleur();
|
|
17931
17933
|
class Prompt extends EventEmitter2 {
|
|
17932
17934
|
constructor(opts = {}) {
|
|
17933
17935
|
super();
|
|
17934
17936
|
this.firstRender = true;
|
|
17935
|
-
this.in = opts.stdin || process
|
|
17936
|
-
this.out = opts.stdout || process
|
|
17937
|
+
this.in = opts.stdin || process.stdin;
|
|
17938
|
+
this.out = opts.stdout || process.stdout;
|
|
17937
17939
|
this.onRender = (opts.onRender || (() => void 0)).bind(this);
|
|
17938
17940
|
const rl = readline.createInterface({ input: this.in, escapeCodeTimeout: 50 });
|
|
17939
17941
|
readline.emitKeypressEvents(this.in, rl);
|
|
@@ -19951,7 +19953,7 @@ function requireLib() {
|
|
|
19951
19953
|
}
|
|
19952
19954
|
function isNodeLT(tar) {
|
|
19953
19955
|
tar = (Array.isArray(tar) ? tar : tar.split(".")).map(Number);
|
|
19954
|
-
let i = 0, src2 = process
|
|
19956
|
+
let i = 0, src2 = process.versions.node.split(".").map(Number);
|
|
19955
19957
|
for (; i < tar.length; i++) {
|
|
19956
19958
|
if (src2[i] > tar[i])
|
|
19957
19959
|
return false;
|
|
@@ -19961,6 +19963,8 @@ function isNodeLT(tar) {
|
|
|
19961
19963
|
return false;
|
|
19962
19964
|
}
|
|
19963
19965
|
var prompts = isNodeLT("8.6.0") ? requireDist() : requireLib();
|
|
19966
|
+
const global$1 = typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {};
|
|
19967
|
+
const __dirname = "/home/runner/work/stsdatamanagement/stsdatamanagement/src";
|
|
19964
19968
|
class ETA {
|
|
19965
19969
|
constructor(length2, initTime, initValue) {
|
|
19966
19970
|
this.etaBufferLength = length2 || 100;
|
|
@@ -20294,7 +20298,7 @@ var options = {
|
|
|
20294
20298
|
const options2 = {};
|
|
20295
20299
|
const opt = Object.assign({}, preset, rawOptions);
|
|
20296
20300
|
options2.throttleTime = 1e3 / mergeOption(opt.fps, 10);
|
|
20297
|
-
options2.stream = mergeOption(opt.stream, process
|
|
20301
|
+
options2.stream = mergeOption(opt.stream, process.stderr);
|
|
20298
20302
|
options2.terminal = mergeOption(opt.terminal, null);
|
|
20299
20303
|
options2.clearOnComplete = mergeOption(opt.clearOnComplete, false);
|
|
20300
20304
|
options2.stopOnComplete = mergeOption(opt.stopOnComplete, false);
|
|
@@ -20333,7 +20337,7 @@ const _ETA = eta;
|
|
|
20333
20337
|
const _Terminal$1 = terminal;
|
|
20334
20338
|
const _formatter = formatter;
|
|
20335
20339
|
const _options$2 = options;
|
|
20336
|
-
const _EventEmitter$1 = require$$0$
|
|
20340
|
+
const _EventEmitter$1 = require$$0$5;
|
|
20337
20341
|
var genericBar = class GenericBar extends _EventEmitter$1 {
|
|
20338
20342
|
constructor(options2) {
|
|
20339
20343
|
super();
|
|
@@ -20490,8 +20494,8 @@ var singleBar = class SingleBar extends _GenericBar {
|
|
|
20490
20494
|
}
|
|
20491
20495
|
if (this.sigintCallback === null && this.options.gracefulExit) {
|
|
20492
20496
|
this.sigintCallback = this.stop.bind(this);
|
|
20493
|
-
process
|
|
20494
|
-
process
|
|
20497
|
+
process.once("SIGINT", this.sigintCallback);
|
|
20498
|
+
process.once("SIGTERM", this.sigintCallback);
|
|
20495
20499
|
}
|
|
20496
20500
|
this.terminal.cursorSave();
|
|
20497
20501
|
if (this.options.hideCursor === true) {
|
|
@@ -20509,8 +20513,8 @@ var singleBar = class SingleBar extends _GenericBar {
|
|
|
20509
20513
|
return;
|
|
20510
20514
|
}
|
|
20511
20515
|
if (this.sigintCallback) {
|
|
20512
|
-
process
|
|
20513
|
-
process
|
|
20516
|
+
process.removeListener("SIGINT", this.sigintCallback);
|
|
20517
|
+
process.removeListener("SIGTERM", this.sigintCallback);
|
|
20514
20518
|
this.sigintCallback = null;
|
|
20515
20519
|
}
|
|
20516
20520
|
this.render();
|
|
@@ -20535,7 +20539,7 @@ var singleBar = class SingleBar extends _GenericBar {
|
|
|
20535
20539
|
const _Terminal = terminal;
|
|
20536
20540
|
const _BarElement = genericBar;
|
|
20537
20541
|
const _options = options;
|
|
20538
|
-
const _EventEmitter = require$$0$
|
|
20542
|
+
const _EventEmitter = require$$0$5;
|
|
20539
20543
|
var multiBar = class MultiBar extends _EventEmitter {
|
|
20540
20544
|
constructor(options2, preset) {
|
|
20541
20545
|
super();
|
|
@@ -20568,8 +20572,8 @@ var multiBar = class MultiBar extends _EventEmitter {
|
|
|
20568
20572
|
}
|
|
20569
20573
|
if (this.sigintCallback === null && this.options.gracefulExit) {
|
|
20570
20574
|
this.sigintCallback = this.stop.bind(this);
|
|
20571
|
-
process
|
|
20572
|
-
process
|
|
20575
|
+
process.once("SIGINT", this.sigintCallback);
|
|
20576
|
+
process.once("SIGTERM", this.sigintCallback);
|
|
20573
20577
|
}
|
|
20574
20578
|
if (!this.isActive) {
|
|
20575
20579
|
if (this.options.hideCursor === true) {
|
|
@@ -20633,8 +20637,8 @@ var multiBar = class MultiBar extends _EventEmitter {
|
|
|
20633
20637
|
clearTimeout(this.timer);
|
|
20634
20638
|
this.timer = null;
|
|
20635
20639
|
if (this.sigintCallback) {
|
|
20636
|
-
process
|
|
20637
|
-
process
|
|
20640
|
+
process.removeListener("SIGINT", this.sigintCallback);
|
|
20641
|
+
process.removeListener("SIGTERM", this.sigintCallback);
|
|
20638
20642
|
this.sigintCallback = null;
|
|
20639
20643
|
}
|
|
20640
20644
|
this.isActive = false;
|
|
@@ -20781,7 +20785,7 @@ class CliWorker {
|
|
|
20781
20785
|
}
|
|
20782
20786
|
_options3 = new WeakMap();
|
|
20783
20787
|
const goptions = $Options();
|
|
20784
|
-
global.appRoot = require$$0$
|
|
20788
|
+
global$1.appRoot = require$$0$4.resolve(__dirname);
|
|
20785
20789
|
const userid = "dbinitrunner";
|
|
20786
20790
|
const resrandomuserprefix = "RESRU-";
|
|
20787
20791
|
const debug$1 = Debug(`proc:${process.pid}:DataGenerator`);
|