@nsshunt/stsdatamanagement 1.17.52 → 1.17.53
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.
|
@@ -31,17 +31,18 @@ import { $Options } from "@nsshunt/stsconfig";
|
|
|
31
31
|
import { $stsgd, Sleep } from "@nsshunt/stsutils";
|
|
32
32
|
import Debug from "debug";
|
|
33
33
|
import colors from "colors";
|
|
34
|
-
import require$$0$
|
|
35
|
-
import require$$0$
|
|
34
|
+
import require$$0$4 from "events";
|
|
35
|
+
import require$$0$5, { Buffer as Buffer$2 } from "buffer";
|
|
36
|
+
import require$$0$3 from "path";
|
|
36
37
|
import require$$1 from "fs";
|
|
37
38
|
import * as fs$2 from "node:fs/promises";
|
|
38
39
|
import si from "systeminformation";
|
|
39
40
|
import { v4 } from "uuid";
|
|
40
41
|
import axios from "axios";
|
|
41
|
-
const
|
|
42
|
+
const crypto$2 = {};
|
|
42
43
|
const __viteBrowserExternal = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
43
44
|
__proto__: null,
|
|
44
|
-
default:
|
|
45
|
+
default: crypto$2
|
|
45
46
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
46
47
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
47
48
|
function getDefaultExportFromCjs(x) {
|
|
@@ -976,7 +977,7 @@ binaryParsers.init(function(oid, converter) {
|
|
|
976
977
|
// database host. defaults to localhost
|
|
977
978
|
host: "localhost",
|
|
978
979
|
// database user's name
|
|
979
|
-
user:
|
|
980
|
+
user: crypto$2.platform === "win32" ? crypto$2.env.USERNAME : crypto$2.env.USER,
|
|
980
981
|
// name of database to connect
|
|
981
982
|
database: void 0,
|
|
982
983
|
// database user's password
|
|
@@ -1423,7 +1424,7 @@ function split(matcher, mapper, options2) {
|
|
|
1423
1424
|
}
|
|
1424
1425
|
var split2 = split;
|
|
1425
1426
|
(function(module2) {
|
|
1426
|
-
var path
|
|
1427
|
+
var path = require$$0$3, Stream = require$$0$2.Stream, split3 = split2, util2 = require$$0$2, defaultPort = 5432, isWin = crypto$2.platform === "win32", warnStream = crypto$2.stderr;
|
|
1427
1428
|
var S_IRWXG = 56, S_IRWXO = 7, S_IFMT = 61440, S_IFREG = 32768;
|
|
1428
1429
|
function isRegFile(mode) {
|
|
1429
1430
|
return (mode & S_IFMT) == S_IFREG;
|
|
@@ -1452,12 +1453,12 @@ var split2 = split;
|
|
|
1452
1453
|
return old2;
|
|
1453
1454
|
};
|
|
1454
1455
|
module2.exports.getFileName = function(rawEnv) {
|
|
1455
|
-
var env = rawEnv ||
|
|
1456
|
-
var file = env.PGPASSFILE || (isWin ? path
|
|
1456
|
+
var env = rawEnv || crypto$2.env;
|
|
1457
|
+
var file = env.PGPASSFILE || (isWin ? path.join(env.APPDATA || "./", "postgresql", "pgpass.conf") : path.join(env.HOME || "./", ".pgpass"));
|
|
1457
1458
|
return file;
|
|
1458
1459
|
};
|
|
1459
1460
|
module2.exports.usePgPass = function(stats, fname) {
|
|
1460
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
1461
|
+
if (Object.prototype.hasOwnProperty.call(crypto$2.env, "PGPASSWORD")) {
|
|
1461
1462
|
return false;
|
|
1462
1463
|
}
|
|
1463
1464
|
if (isWin) {
|
|
@@ -1518,7 +1519,7 @@ var split2 = split;
|
|
|
1518
1519
|
var isLastField = false;
|
|
1519
1520
|
var addToObj = function(idx, i0, i1) {
|
|
1520
1521
|
var field = line.substring(i0, i1);
|
|
1521
|
-
if (!Object.hasOwnProperty.call(
|
|
1522
|
+
if (!Object.hasOwnProperty.call(crypto$2.env, "PGPASS_NO_DEESCAPE")) {
|
|
1522
1523
|
field = field.replace(/\\([:\\])/g, "$1");
|
|
1523
1524
|
}
|
|
1524
1525
|
obj[fieldNames[idx]] = field;
|
|
@@ -1701,16 +1702,16 @@ var defaults$3 = defaultsExports;
|
|
|
1701
1702
|
var parse$2 = pgConnectionString.parse;
|
|
1702
1703
|
var val = function(key, config2, envVar) {
|
|
1703
1704
|
if (envVar === void 0) {
|
|
1704
|
-
envVar =
|
|
1705
|
+
envVar = crypto$2.env["PG" + key.toUpperCase()];
|
|
1705
1706
|
} else if (envVar === false)
|
|
1706
1707
|
;
|
|
1707
1708
|
else {
|
|
1708
|
-
envVar =
|
|
1709
|
+
envVar = crypto$2.env[envVar];
|
|
1709
1710
|
}
|
|
1710
1711
|
return config2[key] || envVar || defaults$3[key];
|
|
1711
1712
|
};
|
|
1712
1713
|
var readSSLConfigFromEnvironment = function() {
|
|
1713
|
-
switch (
|
|
1714
|
+
switch (crypto$2.env.PGSSLMODE) {
|
|
1714
1715
|
case "disable":
|
|
1715
1716
|
return false;
|
|
1716
1717
|
case "prefer":
|
|
@@ -1777,7 +1778,7 @@ let ConnectionParameters$1 = class ConnectionParameters {
|
|
|
1777
1778
|
this.idle_in_transaction_session_timeout = val("idle_in_transaction_session_timeout", config2, false);
|
|
1778
1779
|
this.query_timeout = val("query_timeout", config2, false);
|
|
1779
1780
|
if (config2.connectionTimeoutMillis === void 0) {
|
|
1780
|
-
this.connect_timeout =
|
|
1781
|
+
this.connect_timeout = crypto$2.env.PGCONNECT_TIMEOUT || 0;
|
|
1781
1782
|
} else {
|
|
1782
1783
|
this.connect_timeout = Math.floor(config2.connectionTimeoutMillis / 1e3);
|
|
1783
1784
|
}
|
|
@@ -1908,7 +1909,7 @@ let Result$1 = class Result {
|
|
|
1908
1909
|
}
|
|
1909
1910
|
};
|
|
1910
1911
|
var result = Result$1;
|
|
1911
|
-
const { EventEmitter: EventEmitter$2 } = require$$0$
|
|
1912
|
+
const { EventEmitter: EventEmitter$2 } = require$$0$4;
|
|
1912
1913
|
const Result2 = result;
|
|
1913
1914
|
const utils$3 = utils$4;
|
|
1914
1915
|
let Query$1 = class Query extends EventEmitter$2 {
|
|
@@ -1924,8 +1925,8 @@ let Query$1 = class Query extends EventEmitter$2 {
|
|
|
1924
1925
|
this.portal = config2.portal || "";
|
|
1925
1926
|
this.callback = config2.callback;
|
|
1926
1927
|
this._rowMode = config2.rowMode;
|
|
1927
|
-
if (
|
|
1928
|
-
this.callback =
|
|
1928
|
+
if (crypto$2.domain && config2.callback) {
|
|
1929
|
+
this.callback = crypto$2.domain.bind(config2.callback);
|
|
1929
1930
|
}
|
|
1930
1931
|
this._result = new Result2(this._rowMode, this.types);
|
|
1931
1932
|
this._results = this._result;
|
|
@@ -2015,7 +2016,7 @@ let Query$1 = class Query extends EventEmitter$2 {
|
|
|
2015
2016
|
try {
|
|
2016
2017
|
this.callback(null, this._results);
|
|
2017
2018
|
} catch (err) {
|
|
2018
|
-
|
|
2019
|
+
crypto$2.nextTick(() => {
|
|
2019
2020
|
throw err;
|
|
2020
2021
|
});
|
|
2021
2022
|
}
|
|
@@ -2896,7 +2897,7 @@ parser$1.Parser = Parser;
|
|
|
2896
2897
|
exports.parse = parse3;
|
|
2897
2898
|
})(dist$1);
|
|
2898
2899
|
var net = require$$0$2;
|
|
2899
|
-
var EventEmitter$1 = require$$0$
|
|
2900
|
+
var EventEmitter$1 = require$$0$4.EventEmitter;
|
|
2900
2901
|
const { parse, serialize } = dist$1;
|
|
2901
2902
|
const flushBuffer = serialize.flush();
|
|
2902
2903
|
const syncBuffer = serialize.sync();
|
|
@@ -3072,7 +3073,7 @@ let Connection$1 = class Connection extends EventEmitter$1 {
|
|
|
3072
3073
|
}
|
|
3073
3074
|
};
|
|
3074
3075
|
var connection = Connection$1;
|
|
3075
|
-
var EventEmitter = require$$0$
|
|
3076
|
+
var EventEmitter = require$$0$4.EventEmitter;
|
|
3076
3077
|
var utils$2 = utils$4;
|
|
3077
3078
|
var sasl = sasl$1;
|
|
3078
3079
|
var pgPass = libExports$2;
|
|
@@ -3126,7 +3127,7 @@ class Client extends EventEmitter {
|
|
|
3126
3127
|
}
|
|
3127
3128
|
_errorAllQueries(err) {
|
|
3128
3129
|
const enqueueError = (query2) => {
|
|
3129
|
-
|
|
3130
|
+
crypto$2.nextTick(() => {
|
|
3130
3131
|
query2.handleError(err, this.connection);
|
|
3131
3132
|
});
|
|
3132
3133
|
};
|
|
@@ -3143,7 +3144,7 @@ class Client extends EventEmitter {
|
|
|
3143
3144
|
this._connectionCallback = callback;
|
|
3144
3145
|
if (this._connecting || this._connected) {
|
|
3145
3146
|
const err = new Error("Client has already been connected. You cannot reuse a client.");
|
|
3146
|
-
|
|
3147
|
+
crypto$2.nextTick(() => {
|
|
3147
3148
|
callback(err);
|
|
3148
3149
|
});
|
|
3149
3150
|
return;
|
|
@@ -3188,7 +3189,7 @@ class Client extends EventEmitter {
|
|
|
3188
3189
|
this._handleErrorEvent(error);
|
|
3189
3190
|
}
|
|
3190
3191
|
}
|
|
3191
|
-
|
|
3192
|
+
crypto$2.nextTick(() => {
|
|
3192
3193
|
this.emit("end");
|
|
3193
3194
|
});
|
|
3194
3195
|
});
|
|
@@ -3469,7 +3470,7 @@ class Client extends EventEmitter {
|
|
|
3469
3470
|
this.hasExecuted = true;
|
|
3470
3471
|
const queryError = this.activeQuery.submit(this.connection);
|
|
3471
3472
|
if (queryError) {
|
|
3472
|
-
|
|
3473
|
+
crypto$2.nextTick(() => {
|
|
3473
3474
|
this.activeQuery.handleError(queryError, this.connection);
|
|
3474
3475
|
this.readyForQuery = true;
|
|
3475
3476
|
this._pulseQueryQueue();
|
|
@@ -3508,7 +3509,7 @@ class Client extends EventEmitter {
|
|
|
3508
3509
|
queryCallback = query2.callback;
|
|
3509
3510
|
readTimeoutTimer = setTimeout(() => {
|
|
3510
3511
|
var error = new Error("Query read timeout");
|
|
3511
|
-
|
|
3512
|
+
crypto$2.nextTick(() => {
|
|
3512
3513
|
query2.handleError(error, this.connection);
|
|
3513
3514
|
});
|
|
3514
3515
|
queryCallback(error);
|
|
@@ -3532,13 +3533,13 @@ class Client extends EventEmitter {
|
|
|
3532
3533
|
query2._result._types = this._types;
|
|
3533
3534
|
}
|
|
3534
3535
|
if (!this._queryable) {
|
|
3535
|
-
|
|
3536
|
+
crypto$2.nextTick(() => {
|
|
3536
3537
|
query2.handleError(new Error("Client has encountered a connection error and is not queryable"), this.connection);
|
|
3537
3538
|
});
|
|
3538
3539
|
return result2;
|
|
3539
3540
|
}
|
|
3540
3541
|
if (this._ending) {
|
|
3541
|
-
|
|
3542
|
+
crypto$2.nextTick(() => {
|
|
3542
3543
|
query2.handleError(new Error("Client was closed and is not queryable"), this.connection);
|
|
3543
3544
|
});
|
|
3544
3545
|
return result2;
|
|
@@ -3584,7 +3585,7 @@ function requirePgPool() {
|
|
|
3584
3585
|
if (hasRequiredPgPool)
|
|
3585
3586
|
return pgPool;
|
|
3586
3587
|
hasRequiredPgPool = 1;
|
|
3587
|
-
const EventEmitter2 = require$$0$
|
|
3588
|
+
const EventEmitter2 = require$$0$4.EventEmitter;
|
|
3588
3589
|
const NOOP = function() {
|
|
3589
3590
|
};
|
|
3590
3591
|
const removeWhere = (list, predicate) => {
|
|
@@ -3729,7 +3730,7 @@ function requirePgPool() {
|
|
|
3729
3730
|
const result2 = response.result;
|
|
3730
3731
|
if (this._isFull() || this._idle.length) {
|
|
3731
3732
|
if (this._idle.length) {
|
|
3732
|
-
|
|
3733
|
+
crypto$2.nextTick(() => this._pulseQueue());
|
|
3733
3734
|
}
|
|
3734
3735
|
if (!this.options.connectionTimeoutMillis) {
|
|
3735
3736
|
this._pendingQueue.push(new PendingItem(response.callback));
|
|
@@ -3997,7 +3998,7 @@ function requireQuery() {
|
|
|
3997
3998
|
if (hasRequiredQuery)
|
|
3998
3999
|
return queryExports;
|
|
3999
4000
|
hasRequiredQuery = 1;
|
|
4000
|
-
var EventEmitter2 = require$$0$
|
|
4001
|
+
var EventEmitter2 = require$$0$4.EventEmitter;
|
|
4001
4002
|
var util2 = require$$0$2;
|
|
4002
4003
|
var utils2 = utils$4;
|
|
4003
4004
|
var NativeQuery = query.exports = function(config2, values, callback) {
|
|
@@ -4098,8 +4099,8 @@ function requireQuery() {
|
|
|
4098
4099
|
self2.callback(null, results);
|
|
4099
4100
|
}
|
|
4100
4101
|
};
|
|
4101
|
-
if (
|
|
4102
|
-
after =
|
|
4102
|
+
if (crypto$2.domain) {
|
|
4103
|
+
after = crypto$2.domain.bind(after);
|
|
4103
4104
|
}
|
|
4104
4105
|
if (this.name) {
|
|
4105
4106
|
if (this.name.length > 63) {
|
|
@@ -4141,7 +4142,7 @@ function requireClient() {
|
|
|
4141
4142
|
hasRequiredClient = 1;
|
|
4142
4143
|
var Native = require$$0$1;
|
|
4143
4144
|
var TypeOverrides2 = typeOverrides;
|
|
4144
|
-
var EventEmitter2 = require$$0$
|
|
4145
|
+
var EventEmitter2 = require$$0$4.EventEmitter;
|
|
4145
4146
|
var util2 = require$$0$2;
|
|
4146
4147
|
var ConnectionParameters3 = connectionParameters;
|
|
4147
4148
|
var NativeQuery = requireQuery();
|
|
@@ -4175,7 +4176,7 @@ function requireClient() {
|
|
|
4175
4176
|
util2.inherits(Client2, EventEmitter2);
|
|
4176
4177
|
Client2.prototype._errorAllQueries = function(err) {
|
|
4177
4178
|
const enqueueError = (query2) => {
|
|
4178
|
-
|
|
4179
|
+
crypto$2.nextTick(() => {
|
|
4179
4180
|
query2.native = this.native;
|
|
4180
4181
|
query2.handleError(err);
|
|
4181
4182
|
});
|
|
@@ -4190,7 +4191,7 @@ function requireClient() {
|
|
|
4190
4191
|
Client2.prototype._connect = function(cb) {
|
|
4191
4192
|
var self2 = this;
|
|
4192
4193
|
if (this._connecting) {
|
|
4193
|
-
|
|
4194
|
+
crypto$2.nextTick(() => cb(new Error("Client has already been connected. You cannot reuse a client.")));
|
|
4194
4195
|
return;
|
|
4195
4196
|
}
|
|
4196
4197
|
this._connecting = true;
|
|
@@ -4265,7 +4266,7 @@ function requireClient() {
|
|
|
4265
4266
|
queryCallback = query2.callback;
|
|
4266
4267
|
readTimeoutTimer = setTimeout(() => {
|
|
4267
4268
|
var error = new Error("Query read timeout");
|
|
4268
|
-
|
|
4269
|
+
crypto$2.nextTick(() => {
|
|
4269
4270
|
query2.handleError(error, this.connection);
|
|
4270
4271
|
});
|
|
4271
4272
|
queryCallback(error);
|
|
@@ -4284,14 +4285,14 @@ function requireClient() {
|
|
|
4284
4285
|
}
|
|
4285
4286
|
if (!this._queryable) {
|
|
4286
4287
|
query2.native = this.native;
|
|
4287
|
-
|
|
4288
|
+
crypto$2.nextTick(() => {
|
|
4288
4289
|
query2.handleError(new Error("Client has encountered a connection error and is not queryable"));
|
|
4289
4290
|
});
|
|
4290
4291
|
return result2;
|
|
4291
4292
|
}
|
|
4292
4293
|
if (this._ending) {
|
|
4293
4294
|
query2.native = this.native;
|
|
4294
|
-
|
|
4295
|
+
crypto$2.nextTick(() => {
|
|
4295
4296
|
query2.handleError(new Error("Client was closed and is not queryable"));
|
|
4296
4297
|
});
|
|
4297
4298
|
return result2;
|
|
@@ -4314,7 +4315,7 @@ function requireClient() {
|
|
|
4314
4315
|
}
|
|
4315
4316
|
this.native.end(function() {
|
|
4316
4317
|
self2._errorAllQueries(new Error("Connection terminated"));
|
|
4317
|
-
|
|
4318
|
+
crypto$2.nextTick(() => {
|
|
4318
4319
|
self2.emit("end");
|
|
4319
4320
|
if (cb)
|
|
4320
4321
|
cb();
|
|
@@ -4404,7 +4405,7 @@ function requireLib$1() {
|
|
|
4404
4405
|
this.types = pgTypes;
|
|
4405
4406
|
this.DatabaseError = DatabaseError2;
|
|
4406
4407
|
};
|
|
4407
|
-
if (typeof
|
|
4408
|
+
if (typeof crypto$2.env.NODE_PG_FORCE_NATIVE !== "undefined") {
|
|
4408
4409
|
module2.exports = new PG(requireNative());
|
|
4409
4410
|
} else {
|
|
4410
4411
|
module2.exports = new PG(Client2);
|
|
@@ -4470,7 +4471,7 @@ class PGPoolManager {
|
|
|
4470
4471
|
const sep = usernamepassword.split(":");
|
|
4471
4472
|
const usernamepasswordReplacement = usernamepassword.replace(sep[1], "*****************************");
|
|
4472
4473
|
const safeConnectionStringURI = connectionStringURI.replace(usernamepassword, usernamepasswordReplacement);
|
|
4473
|
-
if (
|
|
4474
|
+
if (crypto$2.isPrimary) {
|
|
4474
4475
|
debug$9(`Created Database Pool with Master Thread, PID: [${process.pid}]`.yellow);
|
|
4475
4476
|
} else {
|
|
4476
4477
|
debug$9(`Created Database Pool with Worker Thread, PID: [${process.pid}]`.yellow);
|
|
@@ -7676,7 +7677,7 @@ function requireModern() {
|
|
|
7676
7677
|
};
|
|
7677
7678
|
return modern;
|
|
7678
7679
|
}
|
|
7679
|
-
const Errors =
|
|
7680
|
+
const Errors = crypto$2.version.charCodeAt(1) < 55 && crypto$2.version.charCodeAt(2) === 46 ? requireOld() : requireModern();
|
|
7680
7681
|
var redisErrors = Errors;
|
|
7681
7682
|
const __dirname$1 = "/home/runner/work/stsdatamanagement/stsdatamanagement/node_modules/ioredis/built";
|
|
7682
7683
|
var Command$1 = {};
|
|
@@ -9042,11 +9043,11 @@ var autoPipelining = {};
|
|
|
9042
9043
|
client2._runningAutoPipelines.delete(slotKey);
|
|
9043
9044
|
if (err) {
|
|
9044
9045
|
for (let i = 0; i < callbacks.length; i++) {
|
|
9045
|
-
|
|
9046
|
+
crypto$2.nextTick(callbacks[i], err);
|
|
9046
9047
|
}
|
|
9047
9048
|
} else {
|
|
9048
9049
|
for (let i = 0; i < callbacks.length; i++) {
|
|
9049
|
-
|
|
9050
|
+
crypto$2.nextTick(callbacks[i], ...results[i]);
|
|
9050
9051
|
}
|
|
9051
9052
|
}
|
|
9052
9053
|
if (client2._autoPipelines.has(slotKey)) {
|
|
@@ -9942,7 +9943,7 @@ function requireConnectionPool() {
|
|
|
9942
9943
|
return ConnectionPool;
|
|
9943
9944
|
hasRequiredConnectionPool = 1;
|
|
9944
9945
|
Object.defineProperty(ConnectionPool, "__esModule", { value: true });
|
|
9945
|
-
const events_1 = require$$0$
|
|
9946
|
+
const events_1 = require$$0$4;
|
|
9946
9947
|
const utils_12 = utils;
|
|
9947
9948
|
const util_12 = util$2;
|
|
9948
9949
|
const Redis_1 = requireRedis();
|
|
@@ -10425,7 +10426,7 @@ class DelayQueue {
|
|
|
10425
10426
|
* @param options
|
|
10426
10427
|
*/
|
|
10427
10428
|
push(bucket, item, options2) {
|
|
10428
|
-
const callback = options2.callback ||
|
|
10429
|
+
const callback = options2.callback || crypto$2.nextTick;
|
|
10429
10430
|
if (!this.queues[bucket]) {
|
|
10430
10431
|
this.queues[bucket] = new Deque();
|
|
10431
10432
|
}
|
|
@@ -10464,7 +10465,7 @@ function requireCluster() {
|
|
|
10464
10465
|
hasRequiredCluster = 1;
|
|
10465
10466
|
Object.defineProperty(cluster, "__esModule", { value: true });
|
|
10466
10467
|
const commands_12 = built$1;
|
|
10467
|
-
const events_1 = require$$0$
|
|
10468
|
+
const events_1 = require$$0$4;
|
|
10468
10469
|
const redis_errors_12 = redisErrors;
|
|
10469
10470
|
const standard_as_callback_12 = built;
|
|
10470
10471
|
const Command_12 = Command$1;
|
|
@@ -10714,7 +10715,7 @@ function requireCluster() {
|
|
|
10714
10715
|
refreshSlotsCache(callback) {
|
|
10715
10716
|
if (this.isRefreshing) {
|
|
10716
10717
|
if (callback) {
|
|
10717
|
-
|
|
10718
|
+
crypto$2.nextTick(callback);
|
|
10718
10719
|
}
|
|
10719
10720
|
return;
|
|
10720
10721
|
}
|
|
@@ -10973,7 +10974,7 @@ function requireCluster() {
|
|
|
10973
10974
|
setStatus(status) {
|
|
10974
10975
|
debug2("status: %s -> %s", this.status || "[empty]", status);
|
|
10975
10976
|
this.status = status;
|
|
10976
|
-
|
|
10977
|
+
crypto$2.nextTick(() => {
|
|
10977
10978
|
this.emit(status);
|
|
10978
10979
|
});
|
|
10979
10980
|
}
|
|
@@ -11097,7 +11098,7 @@ function requireCluster() {
|
|
|
11097
11098
|
}
|
|
11098
11099
|
invokeReadyDelayedCallbacks(err) {
|
|
11099
11100
|
for (const c of this._readyDelayedCallbacks) {
|
|
11100
|
-
|
|
11101
|
+
crypto$2.nextTick(c, err);
|
|
11101
11102
|
}
|
|
11102
11103
|
this._readyDelayedCallbacks = [];
|
|
11103
11104
|
}
|
|
@@ -11271,7 +11272,7 @@ class StandaloneConnector extends AbstractConnector_1.default {
|
|
|
11271
11272
|
Object.assign(connectionOptions, options2.tls);
|
|
11272
11273
|
}
|
|
11273
11274
|
return new Promise((resolve, reject) => {
|
|
11274
|
-
|
|
11275
|
+
crypto$2.nextTick(() => {
|
|
11275
11276
|
if (!this.connecting) {
|
|
11276
11277
|
reject(new Error(utils_1$2.CONNECTION_CLOSED_ERROR_MSG));
|
|
11277
11278
|
return;
|
|
@@ -11674,7 +11675,7 @@ var redisParser = {
|
|
|
11674
11675
|
redisParserExports = v;
|
|
11675
11676
|
}
|
|
11676
11677
|
};
|
|
11677
|
-
const Buffer$1 = require$$0$
|
|
11678
|
+
const Buffer$1 = require$$0$5.Buffer;
|
|
11678
11679
|
const StringDecoder = require$$0$2.StringDecoder;
|
|
11679
11680
|
const decoder = new StringDecoder();
|
|
11680
11681
|
const errors = redisErrors;
|
|
@@ -12622,7 +12623,7 @@ function requireRedis() {
|
|
|
12622
12623
|
hasRequiredRedis = 1;
|
|
12623
12624
|
Object.defineProperty(Redis$1, "__esModule", { value: true });
|
|
12624
12625
|
const commands_12 = built$1;
|
|
12625
|
-
const events_1 = require$$0$
|
|
12626
|
+
const events_1 = require$$0$4;
|
|
12626
12627
|
const standard_as_callback_12 = built;
|
|
12627
12628
|
const cluster_1 = requireCluster();
|
|
12628
12629
|
const Command_12 = Command$1;
|
|
@@ -12761,13 +12762,13 @@ function requireRedis() {
|
|
|
12761
12762
|
} else if (stream.destroyed) {
|
|
12762
12763
|
const firstError = _this.connector.firstError;
|
|
12763
12764
|
if (firstError) {
|
|
12764
|
-
|
|
12765
|
+
crypto$2.nextTick(() => {
|
|
12765
12766
|
eventHandler.errorHandler(_this)(firstError);
|
|
12766
12767
|
});
|
|
12767
12768
|
}
|
|
12768
|
-
|
|
12769
|
+
crypto$2.nextTick(eventHandler.closeHandler(_this));
|
|
12769
12770
|
} else {
|
|
12770
|
-
|
|
12771
|
+
crypto$2.nextTick(eventHandler.connectHandler(_this));
|
|
12771
12772
|
}
|
|
12772
12773
|
if (!stream.destroyed) {
|
|
12773
12774
|
stream.once("error", eventHandler.errorHandler(_this));
|
|
@@ -13123,7 +13124,7 @@ function requireRedis() {
|
|
|
13123
13124
|
debug2("status[%s]: %s -> %s", this._getDescription(), this.status || "[empty]", status);
|
|
13124
13125
|
}
|
|
13125
13126
|
this.status = status;
|
|
13126
|
-
|
|
13127
|
+
crypto$2.nextTick(this.emit.bind(this, status, arg));
|
|
13127
13128
|
}
|
|
13128
13129
|
createScanStream(command2, { key, options: options2 = {} }) {
|
|
13129
13130
|
return new ScanStream_1.default({
|
|
@@ -13269,7 +13270,7 @@ function requireRedis() {
|
|
|
13269
13270
|
})(built$2, builtExports);
|
|
13270
13271
|
const Redis = /* @__PURE__ */ getDefaultExportFromCjs(builtExports);
|
|
13271
13272
|
var pgCopyStreams = {};
|
|
13272
|
-
var Buffer2 = require$$0$
|
|
13273
|
+
var Buffer2 = require$$0$5.Buffer;
|
|
13273
13274
|
function OffsetBuffer() {
|
|
13274
13275
|
this.offset = 0;
|
|
13275
13276
|
this.size = 0;
|
|
@@ -13640,7 +13641,7 @@ let CopyStreamQuery$2 = class CopyStreamQuery extends Readable {
|
|
|
13640
13641
|
connectionStream.removeListener("readable", this._onReadableEvent);
|
|
13641
13642
|
connectionStream.addListener("data", this._pgDataHandler);
|
|
13642
13643
|
this._pgDataHandler(unreadBuffer);
|
|
13643
|
-
|
|
13644
|
+
crypto$2.nextTick(function() {
|
|
13644
13645
|
connectionStream.resume();
|
|
13645
13646
|
});
|
|
13646
13647
|
}
|
|
@@ -13919,7 +13920,7 @@ class CopyStreamQuery3 extends Duplex {
|
|
|
13919
13920
|
connectionStream.removeListener("readable", this._onReadableEvent);
|
|
13920
13921
|
connectionStream.addListener("data", this._pgDataHandler);
|
|
13921
13922
|
this._pgDataHandler(unreadBuffer);
|
|
13922
|
-
|
|
13923
|
+
crypto$2.nextTick(function() {
|
|
13923
13924
|
connectionStream.resume();
|
|
13924
13925
|
});
|
|
13925
13926
|
}
|
|
@@ -14895,7 +14896,7 @@ function requireKleur() {
|
|
|
14895
14896
|
if (hasRequiredKleur)
|
|
14896
14897
|
return kleur;
|
|
14897
14898
|
hasRequiredKleur = 1;
|
|
14898
|
-
const { FORCE_COLOR, NODE_DISABLE_COLORS, TERM } =
|
|
14899
|
+
const { FORCE_COLOR, NODE_DISABLE_COLORS, TERM } = crypto$2.env;
|
|
14899
14900
|
const $ = {
|
|
14900
14901
|
enabled: !NODE_DISABLE_COLORS && TERM !== "dumb" && FORCE_COLOR !== "0",
|
|
14901
14902
|
// modifiers
|
|
@@ -15245,7 +15246,7 @@ function requireFigures$1() {
|
|
|
15245
15246
|
line: "─",
|
|
15246
15247
|
pointer: ">"
|
|
15247
15248
|
};
|
|
15248
|
-
const figures =
|
|
15249
|
+
const figures = crypto$2.platform === "win32" ? win : main;
|
|
15249
15250
|
figures_1$1 = figures;
|
|
15250
15251
|
return figures_1$1;
|
|
15251
15252
|
}
|
|
@@ -15374,15 +15375,15 @@ function requirePrompt$1() {
|
|
|
15374
15375
|
hasRequiredPrompt$1 = 1;
|
|
15375
15376
|
const readline = require$$0$2;
|
|
15376
15377
|
const _require = requireUtil$1(), action2 = _require.action;
|
|
15377
|
-
const EventEmitter2 = require$$0$
|
|
15378
|
+
const EventEmitter2 = require$$0$4;
|
|
15378
15379
|
const _require2 = requireSrc(), beep = _require2.beep, cursor = _require2.cursor;
|
|
15379
15380
|
const color = requireKleur();
|
|
15380
15381
|
class Prompt extends EventEmitter2 {
|
|
15381
15382
|
constructor(opts = {}) {
|
|
15382
15383
|
super();
|
|
15383
15384
|
this.firstRender = true;
|
|
15384
|
-
this.in = opts.stdin ||
|
|
15385
|
-
this.out = opts.stdout ||
|
|
15385
|
+
this.in = opts.stdin || crypto$2.stdin;
|
|
15386
|
+
this.out = opts.stdout || crypto$2.stdout;
|
|
15386
15387
|
this.onRender = (opts.onRender || (() => void 0)).bind(this);
|
|
15387
15388
|
const rl = readline.createInterface({
|
|
15388
15389
|
input: this.in,
|
|
@@ -17808,7 +17809,7 @@ function requireFigures() {
|
|
|
17808
17809
|
line: "─",
|
|
17809
17810
|
pointer: ">"
|
|
17810
17811
|
};
|
|
17811
|
-
const figures =
|
|
17812
|
+
const figures = crypto$2.platform === "win32" ? win : main;
|
|
17812
17813
|
figures_1 = figures;
|
|
17813
17814
|
return figures_1;
|
|
17814
17815
|
}
|
|
@@ -17922,15 +17923,15 @@ function requirePrompt() {
|
|
|
17922
17923
|
hasRequiredPrompt = 1;
|
|
17923
17924
|
const readline = require$$0$2;
|
|
17924
17925
|
const { action: action2 } = requireUtil();
|
|
17925
|
-
const EventEmitter2 = require$$0$
|
|
17926
|
+
const EventEmitter2 = require$$0$4;
|
|
17926
17927
|
const { beep, cursor } = requireSrc();
|
|
17927
17928
|
const color = requireKleur();
|
|
17928
17929
|
class Prompt extends EventEmitter2 {
|
|
17929
17930
|
constructor(opts = {}) {
|
|
17930
17931
|
super();
|
|
17931
17932
|
this.firstRender = true;
|
|
17932
|
-
this.in = opts.stdin ||
|
|
17933
|
-
this.out = opts.stdout ||
|
|
17933
|
+
this.in = opts.stdin || crypto$2.stdin;
|
|
17934
|
+
this.out = opts.stdout || crypto$2.stdout;
|
|
17934
17935
|
this.onRender = (opts.onRender || (() => void 0)).bind(this);
|
|
17935
17936
|
const rl = readline.createInterface({ input: this.in, escapeCodeTimeout: 50 });
|
|
17936
17937
|
readline.emitKeypressEvents(this.in, rl);
|
|
@@ -19948,7 +19949,7 @@ function requireLib() {
|
|
|
19948
19949
|
}
|
|
19949
19950
|
function isNodeLT(tar) {
|
|
19950
19951
|
tar = (Array.isArray(tar) ? tar : tar.split(".")).map(Number);
|
|
19951
|
-
let i = 0, src2 =
|
|
19952
|
+
let i = 0, src2 = crypto$2.versions.node.split(".").map(Number);
|
|
19952
19953
|
for (; i < tar.length; i++) {
|
|
19953
19954
|
if (src2[i] > tar[i])
|
|
19954
19955
|
return false;
|
|
@@ -20291,7 +20292,7 @@ var options = {
|
|
|
20291
20292
|
const options2 = {};
|
|
20292
20293
|
const opt = Object.assign({}, preset, rawOptions);
|
|
20293
20294
|
options2.throttleTime = 1e3 / mergeOption(opt.fps, 10);
|
|
20294
|
-
options2.stream = mergeOption(opt.stream,
|
|
20295
|
+
options2.stream = mergeOption(opt.stream, crypto$2.stderr);
|
|
20295
20296
|
options2.terminal = mergeOption(opt.terminal, null);
|
|
20296
20297
|
options2.clearOnComplete = mergeOption(opt.clearOnComplete, false);
|
|
20297
20298
|
options2.stopOnComplete = mergeOption(opt.stopOnComplete, false);
|
|
@@ -20330,7 +20331,7 @@ const _ETA = eta;
|
|
|
20330
20331
|
const _Terminal$1 = terminal;
|
|
20331
20332
|
const _formatter = formatter;
|
|
20332
20333
|
const _options$2 = options;
|
|
20333
|
-
const _EventEmitter$1 = require$$0$
|
|
20334
|
+
const _EventEmitter$1 = require$$0$4;
|
|
20334
20335
|
var genericBar = class GenericBar extends _EventEmitter$1 {
|
|
20335
20336
|
constructor(options2) {
|
|
20336
20337
|
super();
|
|
@@ -20487,8 +20488,8 @@ var singleBar = class SingleBar extends _GenericBar {
|
|
|
20487
20488
|
}
|
|
20488
20489
|
if (this.sigintCallback === null && this.options.gracefulExit) {
|
|
20489
20490
|
this.sigintCallback = this.stop.bind(this);
|
|
20490
|
-
|
|
20491
|
-
|
|
20491
|
+
crypto$2.once("SIGINT", this.sigintCallback);
|
|
20492
|
+
crypto$2.once("SIGTERM", this.sigintCallback);
|
|
20492
20493
|
}
|
|
20493
20494
|
this.terminal.cursorSave();
|
|
20494
20495
|
if (this.options.hideCursor === true) {
|
|
@@ -20506,8 +20507,8 @@ var singleBar = class SingleBar extends _GenericBar {
|
|
|
20506
20507
|
return;
|
|
20507
20508
|
}
|
|
20508
20509
|
if (this.sigintCallback) {
|
|
20509
|
-
|
|
20510
|
-
|
|
20510
|
+
crypto$2.removeListener("SIGINT", this.sigintCallback);
|
|
20511
|
+
crypto$2.removeListener("SIGTERM", this.sigintCallback);
|
|
20511
20512
|
this.sigintCallback = null;
|
|
20512
20513
|
}
|
|
20513
20514
|
this.render();
|
|
@@ -20532,7 +20533,7 @@ var singleBar = class SingleBar extends _GenericBar {
|
|
|
20532
20533
|
const _Terminal = terminal;
|
|
20533
20534
|
const _BarElement = genericBar;
|
|
20534
20535
|
const _options = options;
|
|
20535
|
-
const _EventEmitter = require$$0$
|
|
20536
|
+
const _EventEmitter = require$$0$4;
|
|
20536
20537
|
var multiBar = class MultiBar extends _EventEmitter {
|
|
20537
20538
|
constructor(options2, preset) {
|
|
20538
20539
|
super();
|
|
@@ -20565,8 +20566,8 @@ var multiBar = class MultiBar extends _EventEmitter {
|
|
|
20565
20566
|
}
|
|
20566
20567
|
if (this.sigintCallback === null && this.options.gracefulExit) {
|
|
20567
20568
|
this.sigintCallback = this.stop.bind(this);
|
|
20568
|
-
|
|
20569
|
-
|
|
20569
|
+
crypto$2.once("SIGINT", this.sigintCallback);
|
|
20570
|
+
crypto$2.once("SIGTERM", this.sigintCallback);
|
|
20570
20571
|
}
|
|
20571
20572
|
if (!this.isActive) {
|
|
20572
20573
|
if (this.options.hideCursor === true) {
|
|
@@ -20630,8 +20631,8 @@ var multiBar = class MultiBar extends _EventEmitter {
|
|
|
20630
20631
|
clearTimeout(this.timer);
|
|
20631
20632
|
this.timer = null;
|
|
20632
20633
|
if (this.sigintCallback) {
|
|
20633
|
-
|
|
20634
|
-
|
|
20634
|
+
crypto$2.removeListener("SIGINT", this.sigintCallback);
|
|
20635
|
+
crypto$2.removeListener("SIGTERM", this.sigintCallback);
|
|
20635
20636
|
this.sigintCallback = null;
|
|
20636
20637
|
}
|
|
20637
20638
|
this.isActive = false;
|
|
@@ -20729,13 +20730,13 @@ class CliWorker {
|
|
|
20729
20730
|
datamax = datamax <= __privateGet(this, _options3).datamin ? __privateGet(this, _options3).datamin + 1 : datamax;
|
|
20730
20731
|
}
|
|
20731
20732
|
for (let i = 0; i < __privateGet(this, _options3).iterations; i++) {
|
|
20732
|
-
const coreRecordSizeRange =
|
|
20733
|
+
const coreRecordSizeRange = crypto$2.randomInt(128, 192);
|
|
20733
20734
|
const coreRecordSize = Math.floor(coreRecordSizeRange / 2);
|
|
20734
|
-
let randcard =
|
|
20735
|
+
let randcard = crypto$2.randomBytes(coreRecordSize).toString("hex");
|
|
20735
20736
|
if (datamax > 0) {
|
|
20736
|
-
const n =
|
|
20737
|
+
const n = crypto$2.randomInt(__privateGet(this, _options3).datamin, datamax);
|
|
20737
20738
|
const n2 = Math.floor(n / 2);
|
|
20738
|
-
const rndid =
|
|
20739
|
+
const rndid = crypto$2.randomBytes(n2).toString("hex");
|
|
20739
20740
|
randcard += rndid;
|
|
20740
20741
|
}
|
|
20741
20742
|
const randcardstring = randcard;
|
|
@@ -20778,7 +20779,7 @@ class CliWorker {
|
|
|
20778
20779
|
}
|
|
20779
20780
|
_options3 = new WeakMap();
|
|
20780
20781
|
const goptions = $Options();
|
|
20781
|
-
global.appRoot =
|
|
20782
|
+
global.appRoot = require$$0$3.resolve(__dirname);
|
|
20782
20783
|
const userid = "dbinitrunner";
|
|
20783
20784
|
const resrandomuserprefix = "RESRU-";
|
|
20784
20785
|
const debug$1 = Debug(`proc:${process.pid}:DataGenerator`);
|