@nsshunt/stsdatamanagement 1.17.59 → 1.17.61

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,11 +27,11 @@ 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 process$1 from "process";
35
35
  import require$$0$5 from "events";
36
36
  import require$$0$6, { Buffer as Buffer$2 } from "buffer";
37
37
  import crypto$2 from "crypto";
@@ -979,7 +979,7 @@ binaryParsers.init(function(oid, converter) {
979
979
  // database host. defaults to localhost
980
980
  host: "localhost",
981
981
  // database user's name
982
- user: process$1.platform === "win32" ? process$1.env.USERNAME : process$1.env.USER,
982
+ user: process.platform === "win32" ? process.env.USERNAME : process.env.USER,
983
983
  // name of database to connect
984
984
  database: void 0,
985
985
  // database user's password
@@ -1427,7 +1427,7 @@ function split(matcher, mapper, options2) {
1427
1427
  }
1428
1428
  var split2 = split;
1429
1429
  (function(module2) {
1430
- var path = require$$0$4, Stream = require$$0$3.Stream, split3 = split2, util2 = require$$0$2, defaultPort = 5432, isWin = process$1.platform === "win32", warnStream = process$1.stderr;
1430
+ 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;
1431
1431
  var S_IRWXG = 56, S_IRWXO = 7, S_IFMT = 61440, S_IFREG = 32768;
1432
1432
  function isRegFile(mode) {
1433
1433
  return (mode & S_IFMT) == S_IFREG;
@@ -1456,12 +1456,12 @@ var split2 = split;
1456
1456
  return old2;
1457
1457
  };
1458
1458
  module2.exports.getFileName = function(rawEnv) {
1459
- var env = rawEnv || process$1.env;
1459
+ var env = rawEnv || process.env;
1460
1460
  var file = env.PGPASSFILE || (isWin ? path.join(env.APPDATA || "./", "postgresql", "pgpass.conf") : path.join(env.HOME || "./", ".pgpass"));
1461
1461
  return file;
1462
1462
  };
1463
1463
  module2.exports.usePgPass = function(stats, fname) {
1464
- if (Object.prototype.hasOwnProperty.call(process$1.env, "PGPASSWORD")) {
1464
+ if (Object.prototype.hasOwnProperty.call(process.env, "PGPASSWORD")) {
1465
1465
  return false;
1466
1466
  }
1467
1467
  if (isWin) {
@@ -1522,7 +1522,7 @@ var split2 = split;
1522
1522
  var isLastField = false;
1523
1523
  var addToObj = function(idx, i0, i1) {
1524
1524
  var field = line.substring(i0, i1);
1525
- if (!Object.hasOwnProperty.call(process$1.env, "PGPASS_NO_DEESCAPE")) {
1525
+ if (!Object.hasOwnProperty.call(process.env, "PGPASS_NO_DEESCAPE")) {
1526
1526
  field = field.replace(/\\([:\\])/g, "$1");
1527
1527
  }
1528
1528
  obj[fieldNames[idx]] = field;
@@ -1705,16 +1705,16 @@ var defaults$3 = defaultsExports;
1705
1705
  var parse$2 = pgConnectionString.parse;
1706
1706
  var val = function(key, config2, envVar) {
1707
1707
  if (envVar === void 0) {
1708
- envVar = process$1.env["PG" + key.toUpperCase()];
1708
+ envVar = process.env["PG" + key.toUpperCase()];
1709
1709
  } else if (envVar === false)
1710
1710
  ;
1711
1711
  else {
1712
- envVar = process$1.env[envVar];
1712
+ envVar = process.env[envVar];
1713
1713
  }
1714
1714
  return config2[key] || envVar || defaults$3[key];
1715
1715
  };
1716
1716
  var readSSLConfigFromEnvironment = function() {
1717
- switch (process$1.env.PGSSLMODE) {
1717
+ switch (process.env.PGSSLMODE) {
1718
1718
  case "disable":
1719
1719
  return false;
1720
1720
  case "prefer":
@@ -1781,7 +1781,7 @@ let ConnectionParameters$1 = class ConnectionParameters {
1781
1781
  this.idle_in_transaction_session_timeout = val("idle_in_transaction_session_timeout", config2, false);
1782
1782
  this.query_timeout = val("query_timeout", config2, false);
1783
1783
  if (config2.connectionTimeoutMillis === void 0) {
1784
- this.connect_timeout = process$1.env.PGCONNECT_TIMEOUT || 0;
1784
+ this.connect_timeout = process.env.PGCONNECT_TIMEOUT || 0;
1785
1785
  } else {
1786
1786
  this.connect_timeout = Math.floor(config2.connectionTimeoutMillis / 1e3);
1787
1787
  }
@@ -1928,8 +1928,8 @@ let Query$1 = class Query extends EventEmitter$2 {
1928
1928
  this.portal = config2.portal || "";
1929
1929
  this.callback = config2.callback;
1930
1930
  this._rowMode = config2.rowMode;
1931
- if (process$1.domain && config2.callback) {
1932
- this.callback = process$1.domain.bind(config2.callback);
1931
+ if (process.domain && config2.callback) {
1932
+ this.callback = process.domain.bind(config2.callback);
1933
1933
  }
1934
1934
  this._result = new Result2(this._rowMode, this.types);
1935
1935
  this._results = this._result;
@@ -2019,7 +2019,7 @@ let Query$1 = class Query extends EventEmitter$2 {
2019
2019
  try {
2020
2020
  this.callback(null, this._results);
2021
2021
  } catch (err) {
2022
- process$1.nextTick(() => {
2022
+ process.nextTick(() => {
2023
2023
  throw err;
2024
2024
  });
2025
2025
  }
@@ -3130,7 +3130,7 @@ class Client extends EventEmitter {
3130
3130
  }
3131
3131
  _errorAllQueries(err) {
3132
3132
  const enqueueError = (query2) => {
3133
- process$1.nextTick(() => {
3133
+ process.nextTick(() => {
3134
3134
  query2.handleError(err, this.connection);
3135
3135
  });
3136
3136
  };
@@ -3147,7 +3147,7 @@ class Client extends EventEmitter {
3147
3147
  this._connectionCallback = callback;
3148
3148
  if (this._connecting || this._connected) {
3149
3149
  const err = new Error("Client has already been connected. You cannot reuse a client.");
3150
- process$1.nextTick(() => {
3150
+ process.nextTick(() => {
3151
3151
  callback(err);
3152
3152
  });
3153
3153
  return;
@@ -3192,7 +3192,7 @@ class Client extends EventEmitter {
3192
3192
  this._handleErrorEvent(error);
3193
3193
  }
3194
3194
  }
3195
- process$1.nextTick(() => {
3195
+ process.nextTick(() => {
3196
3196
  this.emit("end");
3197
3197
  });
3198
3198
  });
@@ -3473,7 +3473,7 @@ class Client extends EventEmitter {
3473
3473
  this.hasExecuted = true;
3474
3474
  const queryError = this.activeQuery.submit(this.connection);
3475
3475
  if (queryError) {
3476
- process$1.nextTick(() => {
3476
+ process.nextTick(() => {
3477
3477
  this.activeQuery.handleError(queryError, this.connection);
3478
3478
  this.readyForQuery = true;
3479
3479
  this._pulseQueryQueue();
@@ -3512,7 +3512,7 @@ class Client extends EventEmitter {
3512
3512
  queryCallback = query2.callback;
3513
3513
  readTimeoutTimer = setTimeout(() => {
3514
3514
  var error = new Error("Query read timeout");
3515
- process$1.nextTick(() => {
3515
+ process.nextTick(() => {
3516
3516
  query2.handleError(error, this.connection);
3517
3517
  });
3518
3518
  queryCallback(error);
@@ -3536,13 +3536,13 @@ class Client extends EventEmitter {
3536
3536
  query2._result._types = this._types;
3537
3537
  }
3538
3538
  if (!this._queryable) {
3539
- process$1.nextTick(() => {
3539
+ process.nextTick(() => {
3540
3540
  query2.handleError(new Error("Client has encountered a connection error and is not queryable"), this.connection);
3541
3541
  });
3542
3542
  return result2;
3543
3543
  }
3544
3544
  if (this._ending) {
3545
- process$1.nextTick(() => {
3545
+ process.nextTick(() => {
3546
3546
  query2.handleError(new Error("Client was closed and is not queryable"), this.connection);
3547
3547
  });
3548
3548
  return result2;
@@ -3733,7 +3733,7 @@ function requirePgPool() {
3733
3733
  const result2 = response.result;
3734
3734
  if (this._isFull() || this._idle.length) {
3735
3735
  if (this._idle.length) {
3736
- process$1.nextTick(() => this._pulseQueue());
3736
+ process.nextTick(() => this._pulseQueue());
3737
3737
  }
3738
3738
  if (!this.options.connectionTimeoutMillis) {
3739
3739
  this._pendingQueue.push(new PendingItem(response.callback));
@@ -4102,8 +4102,8 @@ function requireQuery() {
4102
4102
  self2.callback(null, results);
4103
4103
  }
4104
4104
  };
4105
- if (process$1.domain) {
4106
- after = process$1.domain.bind(after);
4105
+ if (process.domain) {
4106
+ after = process.domain.bind(after);
4107
4107
  }
4108
4108
  if (this.name) {
4109
4109
  if (this.name.length > 63) {
@@ -4179,7 +4179,7 @@ function requireClient() {
4179
4179
  util2.inherits(Client2, EventEmitter2);
4180
4180
  Client2.prototype._errorAllQueries = function(err) {
4181
4181
  const enqueueError = (query2) => {
4182
- process$1.nextTick(() => {
4182
+ process.nextTick(() => {
4183
4183
  query2.native = this.native;
4184
4184
  query2.handleError(err);
4185
4185
  });
@@ -4194,7 +4194,7 @@ function requireClient() {
4194
4194
  Client2.prototype._connect = function(cb) {
4195
4195
  var self2 = this;
4196
4196
  if (this._connecting) {
4197
- process$1.nextTick(() => cb(new Error("Client has already been connected. You cannot reuse a client.")));
4197
+ process.nextTick(() => cb(new Error("Client has already been connected. You cannot reuse a client.")));
4198
4198
  return;
4199
4199
  }
4200
4200
  this._connecting = true;
@@ -4269,7 +4269,7 @@ function requireClient() {
4269
4269
  queryCallback = query2.callback;
4270
4270
  readTimeoutTimer = setTimeout(() => {
4271
4271
  var error = new Error("Query read timeout");
4272
- process$1.nextTick(() => {
4272
+ process.nextTick(() => {
4273
4273
  query2.handleError(error, this.connection);
4274
4274
  });
4275
4275
  queryCallback(error);
@@ -4288,14 +4288,14 @@ function requireClient() {
4288
4288
  }
4289
4289
  if (!this._queryable) {
4290
4290
  query2.native = this.native;
4291
- process$1.nextTick(() => {
4291
+ process.nextTick(() => {
4292
4292
  query2.handleError(new Error("Client has encountered a connection error and is not queryable"));
4293
4293
  });
4294
4294
  return result2;
4295
4295
  }
4296
4296
  if (this._ending) {
4297
4297
  query2.native = this.native;
4298
- process$1.nextTick(() => {
4298
+ process.nextTick(() => {
4299
4299
  query2.handleError(new Error("Client was closed and is not queryable"));
4300
4300
  });
4301
4301
  return result2;
@@ -4318,7 +4318,7 @@ function requireClient() {
4318
4318
  }
4319
4319
  this.native.end(function() {
4320
4320
  self2._errorAllQueries(new Error("Connection terminated"));
4321
- process$1.nextTick(() => {
4321
+ process.nextTick(() => {
4322
4322
  self2.emit("end");
4323
4323
  if (cb)
4324
4324
  cb();
@@ -4408,7 +4408,7 @@ function requireLib$1() {
4408
4408
  this.types = pgTypes;
4409
4409
  this.DatabaseError = DatabaseError2;
4410
4410
  };
4411
- if (typeof process$1.env.NODE_PG_FORCE_NATIVE !== "undefined") {
4411
+ if (typeof process.env.NODE_PG_FORCE_NATIVE !== "undefined") {
4412
4412
  module2.exports = new PG(requireNative());
4413
4413
  } else {
4414
4414
  module2.exports = new PG(Client2);
@@ -7680,7 +7680,7 @@ function requireModern() {
7680
7680
  };
7681
7681
  return modern;
7682
7682
  }
7683
- const Errors = process$1.version.charCodeAt(1) < 55 && process$1.version.charCodeAt(2) === 46 ? requireOld() : requireModern();
7683
+ const Errors = process.version.charCodeAt(1) < 55 && process.version.charCodeAt(2) === 46 ? requireOld() : requireModern();
7684
7684
  var redisErrors = Errors;
7685
7685
  const __dirname$1 = "/home/runner/work/stsdatamanagement/stsdatamanagement/node_modules/ioredis/built";
7686
7686
  var Command$1 = {};
@@ -9046,11 +9046,11 @@ var autoPipelining = {};
9046
9046
  client2._runningAutoPipelines.delete(slotKey);
9047
9047
  if (err) {
9048
9048
  for (let i = 0; i < callbacks.length; i++) {
9049
- process$1.nextTick(callbacks[i], err);
9049
+ process.nextTick(callbacks[i], err);
9050
9050
  }
9051
9051
  } else {
9052
9052
  for (let i = 0; i < callbacks.length; i++) {
9053
- process$1.nextTick(callbacks[i], ...results[i]);
9053
+ process.nextTick(callbacks[i], ...results[i]);
9054
9054
  }
9055
9055
  }
9056
9056
  if (client2._autoPipelines.has(slotKey)) {
@@ -10429,7 +10429,7 @@ class DelayQueue {
10429
10429
  * @param options
10430
10430
  */
10431
10431
  push(bucket, item, options2) {
10432
- const callback = options2.callback || process$1.nextTick;
10432
+ const callback = options2.callback || process.nextTick;
10433
10433
  if (!this.queues[bucket]) {
10434
10434
  this.queues[bucket] = new Deque();
10435
10435
  }
@@ -10718,7 +10718,7 @@ function requireCluster() {
10718
10718
  refreshSlotsCache(callback) {
10719
10719
  if (this.isRefreshing) {
10720
10720
  if (callback) {
10721
- process$1.nextTick(callback);
10721
+ process.nextTick(callback);
10722
10722
  }
10723
10723
  return;
10724
10724
  }
@@ -10977,7 +10977,7 @@ function requireCluster() {
10977
10977
  setStatus(status) {
10978
10978
  debug2("status: %s -> %s", this.status || "[empty]", status);
10979
10979
  this.status = status;
10980
- process$1.nextTick(() => {
10980
+ process.nextTick(() => {
10981
10981
  this.emit(status);
10982
10982
  });
10983
10983
  }
@@ -11101,7 +11101,7 @@ function requireCluster() {
11101
11101
  }
11102
11102
  invokeReadyDelayedCallbacks(err) {
11103
11103
  for (const c of this._readyDelayedCallbacks) {
11104
- process$1.nextTick(c, err);
11104
+ process.nextTick(c, err);
11105
11105
  }
11106
11106
  this._readyDelayedCallbacks = [];
11107
11107
  }
@@ -11275,7 +11275,7 @@ class StandaloneConnector extends AbstractConnector_1.default {
11275
11275
  Object.assign(connectionOptions, options2.tls);
11276
11276
  }
11277
11277
  return new Promise((resolve, reject) => {
11278
- process$1.nextTick(() => {
11278
+ process.nextTick(() => {
11279
11279
  if (!this.connecting) {
11280
11280
  reject(new Error(utils_1$2.CONNECTION_CLOSED_ERROR_MSG));
11281
11281
  return;
@@ -12765,13 +12765,13 @@ function requireRedis() {
12765
12765
  } else if (stream.destroyed) {
12766
12766
  const firstError = _this.connector.firstError;
12767
12767
  if (firstError) {
12768
- process$1.nextTick(() => {
12768
+ process.nextTick(() => {
12769
12769
  eventHandler.errorHandler(_this)(firstError);
12770
12770
  });
12771
12771
  }
12772
- process$1.nextTick(eventHandler.closeHandler(_this));
12772
+ process.nextTick(eventHandler.closeHandler(_this));
12773
12773
  } else {
12774
- process$1.nextTick(eventHandler.connectHandler(_this));
12774
+ process.nextTick(eventHandler.connectHandler(_this));
12775
12775
  }
12776
12776
  if (!stream.destroyed) {
12777
12777
  stream.once("error", eventHandler.errorHandler(_this));
@@ -13127,7 +13127,7 @@ function requireRedis() {
13127
13127
  debug2("status[%s]: %s -> %s", this._getDescription(), this.status || "[empty]", status);
13128
13128
  }
13129
13129
  this.status = status;
13130
- process$1.nextTick(this.emit.bind(this, status, arg));
13130
+ process.nextTick(this.emit.bind(this, status, arg));
13131
13131
  }
13132
13132
  createScanStream(command2, { key, options: options2 = {} }) {
13133
13133
  return new ScanStream_1.default({
@@ -13644,7 +13644,7 @@ let CopyStreamQuery$2 = class CopyStreamQuery extends Readable {
13644
13644
  connectionStream.removeListener("readable", this._onReadableEvent);
13645
13645
  connectionStream.addListener("data", this._pgDataHandler);
13646
13646
  this._pgDataHandler(unreadBuffer);
13647
- process$1.nextTick(function() {
13647
+ process.nextTick(function() {
13648
13648
  connectionStream.resume();
13649
13649
  });
13650
13650
  }
@@ -13923,7 +13923,7 @@ class CopyStreamQuery3 extends Duplex {
13923
13923
  connectionStream.removeListener("readable", this._onReadableEvent);
13924
13924
  connectionStream.addListener("data", this._pgDataHandler);
13925
13925
  this._pgDataHandler(unreadBuffer);
13926
- process$1.nextTick(function() {
13926
+ process.nextTick(function() {
13927
13927
  connectionStream.resume();
13928
13928
  });
13929
13929
  }
@@ -14899,7 +14899,7 @@ function requireKleur() {
14899
14899
  if (hasRequiredKleur)
14900
14900
  return kleur;
14901
14901
  hasRequiredKleur = 1;
14902
- const { FORCE_COLOR, NODE_DISABLE_COLORS, TERM } = process$1.env;
14902
+ const { FORCE_COLOR, NODE_DISABLE_COLORS, TERM } = process.env;
14903
14903
  const $ = {
14904
14904
  enabled: !NODE_DISABLE_COLORS && TERM !== "dumb" && FORCE_COLOR !== "0",
14905
14905
  // modifiers
@@ -15249,7 +15249,7 @@ function requireFigures$1() {
15249
15249
  line: "─",
15250
15250
  pointer: ">"
15251
15251
  };
15252
- const figures = process$1.platform === "win32" ? win : main;
15252
+ const figures = process.platform === "win32" ? win : main;
15253
15253
  figures_1$1 = figures;
15254
15254
  return figures_1$1;
15255
15255
  }
@@ -15385,8 +15385,8 @@ function requirePrompt$1() {
15385
15385
  constructor(opts = {}) {
15386
15386
  super();
15387
15387
  this.firstRender = true;
15388
- this.in = opts.stdin || process$1.stdin;
15389
- this.out = opts.stdout || process$1.stdout;
15388
+ this.in = opts.stdin || process.stdin;
15389
+ this.out = opts.stdout || process.stdout;
15390
15390
  this.onRender = (opts.onRender || (() => void 0)).bind(this);
15391
15391
  const rl = readline.createInterface({
15392
15392
  input: this.in,
@@ -17812,7 +17812,7 @@ function requireFigures() {
17812
17812
  line: "─",
17813
17813
  pointer: ">"
17814
17814
  };
17815
- const figures = process$1.platform === "win32" ? win : main;
17815
+ const figures = process.platform === "win32" ? win : main;
17816
17816
  figures_1 = figures;
17817
17817
  return figures_1;
17818
17818
  }
@@ -17933,8 +17933,8 @@ function requirePrompt() {
17933
17933
  constructor(opts = {}) {
17934
17934
  super();
17935
17935
  this.firstRender = true;
17936
- this.in = opts.stdin || process$1.stdin;
17937
- this.out = opts.stdout || process$1.stdout;
17936
+ this.in = opts.stdin || process.stdin;
17937
+ this.out = opts.stdout || process.stdout;
17938
17938
  this.onRender = (opts.onRender || (() => void 0)).bind(this);
17939
17939
  const rl = readline.createInterface({ input: this.in, escapeCodeTimeout: 50 });
17940
17940
  readline.emitKeypressEvents(this.in, rl);
@@ -19952,7 +19952,7 @@ function requireLib() {
19952
19952
  }
19953
19953
  function isNodeLT(tar) {
19954
19954
  tar = (Array.isArray(tar) ? tar : tar.split(".")).map(Number);
19955
- let i = 0, src2 = process$1.versions.node.split(".").map(Number);
19955
+ let i = 0, src2 = process.versions.node.split(".").map(Number);
19956
19956
  for (; i < tar.length; i++) {
19957
19957
  if (src2[i] > tar[i])
19958
19958
  return false;
@@ -19962,6 +19962,8 @@ function isNodeLT(tar) {
19962
19962
  return false;
19963
19963
  }
19964
19964
  var prompts = isNodeLT("8.6.0") ? requireDist() : requireLib();
19965
+ const global$1 = typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {};
19966
+ const __dirname = "/home/runner/work/stsdatamanagement/stsdatamanagement/src";
19965
19967
  class ETA {
19966
19968
  constructor(length2, initTime, initValue) {
19967
19969
  this.etaBufferLength = length2 || 100;
@@ -20295,7 +20297,7 @@ var options = {
20295
20297
  const options2 = {};
20296
20298
  const opt = Object.assign({}, preset, rawOptions);
20297
20299
  options2.throttleTime = 1e3 / mergeOption(opt.fps, 10);
20298
- options2.stream = mergeOption(opt.stream, process$1.stderr);
20300
+ options2.stream = mergeOption(opt.stream, process.stderr);
20299
20301
  options2.terminal = mergeOption(opt.terminal, null);
20300
20302
  options2.clearOnComplete = mergeOption(opt.clearOnComplete, false);
20301
20303
  options2.stopOnComplete = mergeOption(opt.stopOnComplete, false);
@@ -20491,8 +20493,8 @@ var singleBar = class SingleBar extends _GenericBar {
20491
20493
  }
20492
20494
  if (this.sigintCallback === null && this.options.gracefulExit) {
20493
20495
  this.sigintCallback = this.stop.bind(this);
20494
- process$1.once("SIGINT", this.sigintCallback);
20495
- process$1.once("SIGTERM", this.sigintCallback);
20496
+ process.once("SIGINT", this.sigintCallback);
20497
+ process.once("SIGTERM", this.sigintCallback);
20496
20498
  }
20497
20499
  this.terminal.cursorSave();
20498
20500
  if (this.options.hideCursor === true) {
@@ -20510,8 +20512,8 @@ var singleBar = class SingleBar extends _GenericBar {
20510
20512
  return;
20511
20513
  }
20512
20514
  if (this.sigintCallback) {
20513
- process$1.removeListener("SIGINT", this.sigintCallback);
20514
- process$1.removeListener("SIGTERM", this.sigintCallback);
20515
+ process.removeListener("SIGINT", this.sigintCallback);
20516
+ process.removeListener("SIGTERM", this.sigintCallback);
20515
20517
  this.sigintCallback = null;
20516
20518
  }
20517
20519
  this.render();
@@ -20569,8 +20571,8 @@ var multiBar = class MultiBar extends _EventEmitter {
20569
20571
  }
20570
20572
  if (this.sigintCallback === null && this.options.gracefulExit) {
20571
20573
  this.sigintCallback = this.stop.bind(this);
20572
- process$1.once("SIGINT", this.sigintCallback);
20573
- process$1.once("SIGTERM", this.sigintCallback);
20574
+ process.once("SIGINT", this.sigintCallback);
20575
+ process.once("SIGTERM", this.sigintCallback);
20574
20576
  }
20575
20577
  if (!this.isActive) {
20576
20578
  if (this.options.hideCursor === true) {
@@ -20634,8 +20636,8 @@ var multiBar = class MultiBar extends _EventEmitter {
20634
20636
  clearTimeout(this.timer);
20635
20637
  this.timer = null;
20636
20638
  if (this.sigintCallback) {
20637
- process$1.removeListener("SIGINT", this.sigintCallback);
20638
- process$1.removeListener("SIGTERM", this.sigintCallback);
20639
+ process.removeListener("SIGINT", this.sigintCallback);
20640
+ process.removeListener("SIGTERM", this.sigintCallback);
20639
20641
  this.sigintCallback = null;
20640
20642
  }
20641
20643
  this.isActive = false;
@@ -20782,7 +20784,7 @@ class CliWorker {
20782
20784
  }
20783
20785
  _options3 = new WeakMap();
20784
20786
  const goptions = $Options();
20785
- global.appRoot = require$$0$4.resolve(__dirname);
20787
+ global$1.appRoot = require$$0$4.resolve(__dirname);
20786
20788
  const userid = "dbinitrunner";
20787
20789
  const resrandomuserprefix = "RESRU-";
20788
20790
  const debug$1 = Debug(`proc:${process.pid}:DataGenerator`);