@nsshunt/stsdatamanagement 1.17.56 → 1.17.58

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,18 +31,20 @@ 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 process$1 from "process";
34
35
  import require$$0$4 from "events";
35
36
  import require$$0$5, { Buffer as Buffer$2 } from "buffer";
37
+ import crypto$2 from "crypto";
36
38
  import require$$0$3 from "path";
37
39
  import require$$1 from "fs";
38
40
  import * as fs$2 from "node:fs/promises";
39
41
  import si from "systeminformation";
40
42
  import { v4 } from "uuid";
41
43
  import axios from "axios";
42
- const crypto$2 = {};
44
+ const cluster$2 = {};
43
45
  const __viteBrowserExternal = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
44
46
  __proto__: null,
45
- default: crypto$2
47
+ default: cluster$2
46
48
  }, Symbol.toStringTag, { value: "Module" }));
47
49
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
48
50
  function getDefaultExportFromCjs(x) {
@@ -86,7 +88,6 @@ var lib$3 = {
86
88
  libExports$3 = v;
87
89
  }
88
90
  };
89
- const require$$0$2 = /* @__PURE__ */ getAugmentedNamespace(__viteBrowserExternal);
90
91
  var defaultsExports = {};
91
92
  var defaults$5 = {
92
93
  get exports() {
@@ -977,7 +978,7 @@ binaryParsers.init(function(oid, converter) {
977
978
  // database host. defaults to localhost
978
979
  host: "localhost",
979
980
  // database user's name
980
- user: crypto$2.platform === "win32" ? crypto$2.env.USERNAME : crypto$2.env.USER,
981
+ user: process$1.platform === "win32" ? process$1.env.USERNAME : process$1.env.USER,
981
982
  // name of database to connect
982
983
  database: void 0,
983
984
  // database user's password
@@ -1029,7 +1030,7 @@ binaryParsers.init(function(oid, converter) {
1029
1030
  pgTypes$1.setTypeParser(1016, "text", val2 ? pgTypes$1.getTypeParser(1007, "text") : parseBigIntegerArray2);
1030
1031
  });
1031
1032
  })(defaults$5);
1032
- const crypto$1 = require$$0$2;
1033
+ const crypto$1 = crypto$2;
1033
1034
  const defaults$4 = defaultsExports;
1034
1035
  function escapeElement(elementRepresentation) {
1035
1036
  var escaped = elementRepresentation.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
@@ -1160,7 +1161,7 @@ var utils$4 = {
1160
1161
  postgresMd5PasswordHash,
1161
1162
  md5
1162
1163
  };
1163
- const crypto = require$$0$2;
1164
+ const crypto = crypto$2;
1164
1165
  function startSession(mechanisms) {
1165
1166
  if (mechanisms.indexOf("SCRAM-SHA-256") === -1) {
1166
1167
  throw new Error("SASL: Only mechanism SCRAM-SHA-256 is currently supported");
@@ -1328,6 +1329,7 @@ var helper$1 = {
1328
1329
  helperExports = v;
1329
1330
  }
1330
1331
  };
1332
+ const require$$0$2 = /* @__PURE__ */ getAugmentedNamespace(__viteBrowserExternal);
1331
1333
  const { Transform } = require$$0$2;
1332
1334
  const { StringDecoder: StringDecoder$1 } = require$$0$2;
1333
1335
  const kLast = Symbol("last");
@@ -1424,7 +1426,7 @@ function split(matcher, mapper, options2) {
1424
1426
  }
1425
1427
  var split2 = split;
1426
1428
  (function(module2) {
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;
1429
+ var path = require$$0$3, Stream = require$$0$2.Stream, split3 = split2, util2 = require$$0$2, defaultPort = 5432, isWin = process$1.platform === "win32", warnStream = process$1.stderr;
1428
1430
  var S_IRWXG = 56, S_IRWXO = 7, S_IFMT = 61440, S_IFREG = 32768;
1429
1431
  function isRegFile(mode) {
1430
1432
  return (mode & S_IFMT) == S_IFREG;
@@ -1453,12 +1455,12 @@ var split2 = split;
1453
1455
  return old2;
1454
1456
  };
1455
1457
  module2.exports.getFileName = function(rawEnv) {
1456
- var env = rawEnv || crypto$2.env;
1458
+ var env = rawEnv || process$1.env;
1457
1459
  var file = env.PGPASSFILE || (isWin ? path.join(env.APPDATA || "./", "postgresql", "pgpass.conf") : path.join(env.HOME || "./", ".pgpass"));
1458
1460
  return file;
1459
1461
  };
1460
1462
  module2.exports.usePgPass = function(stats, fname) {
1461
- if (Object.prototype.hasOwnProperty.call(crypto$2.env, "PGPASSWORD")) {
1463
+ if (Object.prototype.hasOwnProperty.call(process$1.env, "PGPASSWORD")) {
1462
1464
  return false;
1463
1465
  }
1464
1466
  if (isWin) {
@@ -1519,7 +1521,7 @@ var split2 = split;
1519
1521
  var isLastField = false;
1520
1522
  var addToObj = function(idx, i0, i1) {
1521
1523
  var field = line.substring(i0, i1);
1522
- if (!Object.hasOwnProperty.call(crypto$2.env, "PGPASS_NO_DEESCAPE")) {
1524
+ if (!Object.hasOwnProperty.call(process$1.env, "PGPASS_NO_DEESCAPE")) {
1523
1525
  field = field.replace(/\\([:\\])/g, "$1");
1524
1526
  }
1525
1527
  obj[fieldNames[idx]] = field;
@@ -1702,16 +1704,16 @@ var defaults$3 = defaultsExports;
1702
1704
  var parse$2 = pgConnectionString.parse;
1703
1705
  var val = function(key, config2, envVar) {
1704
1706
  if (envVar === void 0) {
1705
- envVar = crypto$2.env["PG" + key.toUpperCase()];
1707
+ envVar = process$1.env["PG" + key.toUpperCase()];
1706
1708
  } else if (envVar === false)
1707
1709
  ;
1708
1710
  else {
1709
- envVar = crypto$2.env[envVar];
1711
+ envVar = process$1.env[envVar];
1710
1712
  }
1711
1713
  return config2[key] || envVar || defaults$3[key];
1712
1714
  };
1713
1715
  var readSSLConfigFromEnvironment = function() {
1714
- switch (crypto$2.env.PGSSLMODE) {
1716
+ switch (process$1.env.PGSSLMODE) {
1715
1717
  case "disable":
1716
1718
  return false;
1717
1719
  case "prefer":
@@ -1778,7 +1780,7 @@ let ConnectionParameters$1 = class ConnectionParameters {
1778
1780
  this.idle_in_transaction_session_timeout = val("idle_in_transaction_session_timeout", config2, false);
1779
1781
  this.query_timeout = val("query_timeout", config2, false);
1780
1782
  if (config2.connectionTimeoutMillis === void 0) {
1781
- this.connect_timeout = crypto$2.env.PGCONNECT_TIMEOUT || 0;
1783
+ this.connect_timeout = process$1.env.PGCONNECT_TIMEOUT || 0;
1782
1784
  } else {
1783
1785
  this.connect_timeout = Math.floor(config2.connectionTimeoutMillis / 1e3);
1784
1786
  }
@@ -1925,8 +1927,8 @@ let Query$1 = class Query extends EventEmitter$2 {
1925
1927
  this.portal = config2.portal || "";
1926
1928
  this.callback = config2.callback;
1927
1929
  this._rowMode = config2.rowMode;
1928
- if (crypto$2.domain && config2.callback) {
1929
- this.callback = crypto$2.domain.bind(config2.callback);
1930
+ if (process$1.domain && config2.callback) {
1931
+ this.callback = process$1.domain.bind(config2.callback);
1930
1932
  }
1931
1933
  this._result = new Result2(this._rowMode, this.types);
1932
1934
  this._results = this._result;
@@ -2016,7 +2018,7 @@ let Query$1 = class Query extends EventEmitter$2 {
2016
2018
  try {
2017
2019
  this.callback(null, this._results);
2018
2020
  } catch (err) {
2019
- crypto$2.nextTick(() => {
2021
+ process$1.nextTick(() => {
2020
2022
  throw err;
2021
2023
  });
2022
2024
  }
@@ -3127,7 +3129,7 @@ class Client extends EventEmitter {
3127
3129
  }
3128
3130
  _errorAllQueries(err) {
3129
3131
  const enqueueError = (query2) => {
3130
- crypto$2.nextTick(() => {
3132
+ process$1.nextTick(() => {
3131
3133
  query2.handleError(err, this.connection);
3132
3134
  });
3133
3135
  };
@@ -3144,7 +3146,7 @@ class Client extends EventEmitter {
3144
3146
  this._connectionCallback = callback;
3145
3147
  if (this._connecting || this._connected) {
3146
3148
  const err = new Error("Client has already been connected. You cannot reuse a client.");
3147
- crypto$2.nextTick(() => {
3149
+ process$1.nextTick(() => {
3148
3150
  callback(err);
3149
3151
  });
3150
3152
  return;
@@ -3189,7 +3191,7 @@ class Client extends EventEmitter {
3189
3191
  this._handleErrorEvent(error);
3190
3192
  }
3191
3193
  }
3192
- crypto$2.nextTick(() => {
3194
+ process$1.nextTick(() => {
3193
3195
  this.emit("end");
3194
3196
  });
3195
3197
  });
@@ -3470,7 +3472,7 @@ class Client extends EventEmitter {
3470
3472
  this.hasExecuted = true;
3471
3473
  const queryError = this.activeQuery.submit(this.connection);
3472
3474
  if (queryError) {
3473
- crypto$2.nextTick(() => {
3475
+ process$1.nextTick(() => {
3474
3476
  this.activeQuery.handleError(queryError, this.connection);
3475
3477
  this.readyForQuery = true;
3476
3478
  this._pulseQueryQueue();
@@ -3509,7 +3511,7 @@ class Client extends EventEmitter {
3509
3511
  queryCallback = query2.callback;
3510
3512
  readTimeoutTimer = setTimeout(() => {
3511
3513
  var error = new Error("Query read timeout");
3512
- crypto$2.nextTick(() => {
3514
+ process$1.nextTick(() => {
3513
3515
  query2.handleError(error, this.connection);
3514
3516
  });
3515
3517
  queryCallback(error);
@@ -3533,13 +3535,13 @@ class Client extends EventEmitter {
3533
3535
  query2._result._types = this._types;
3534
3536
  }
3535
3537
  if (!this._queryable) {
3536
- crypto$2.nextTick(() => {
3538
+ process$1.nextTick(() => {
3537
3539
  query2.handleError(new Error("Client has encountered a connection error and is not queryable"), this.connection);
3538
3540
  });
3539
3541
  return result2;
3540
3542
  }
3541
3543
  if (this._ending) {
3542
- crypto$2.nextTick(() => {
3544
+ process$1.nextTick(() => {
3543
3545
  query2.handleError(new Error("Client was closed and is not queryable"), this.connection);
3544
3546
  });
3545
3547
  return result2;
@@ -3730,7 +3732,7 @@ function requirePgPool() {
3730
3732
  const result2 = response.result;
3731
3733
  if (this._isFull() || this._idle.length) {
3732
3734
  if (this._idle.length) {
3733
- crypto$2.nextTick(() => this._pulseQueue());
3735
+ process$1.nextTick(() => this._pulseQueue());
3734
3736
  }
3735
3737
  if (!this.options.connectionTimeoutMillis) {
3736
3738
  this._pendingQueue.push(new PendingItem(response.callback));
@@ -4099,8 +4101,8 @@ function requireQuery() {
4099
4101
  self2.callback(null, results);
4100
4102
  }
4101
4103
  };
4102
- if (crypto$2.domain) {
4103
- after = crypto$2.domain.bind(after);
4104
+ if (process$1.domain) {
4105
+ after = process$1.domain.bind(after);
4104
4106
  }
4105
4107
  if (this.name) {
4106
4108
  if (this.name.length > 63) {
@@ -4176,7 +4178,7 @@ function requireClient() {
4176
4178
  util2.inherits(Client2, EventEmitter2);
4177
4179
  Client2.prototype._errorAllQueries = function(err) {
4178
4180
  const enqueueError = (query2) => {
4179
- crypto$2.nextTick(() => {
4181
+ process$1.nextTick(() => {
4180
4182
  query2.native = this.native;
4181
4183
  query2.handleError(err);
4182
4184
  });
@@ -4191,7 +4193,7 @@ function requireClient() {
4191
4193
  Client2.prototype._connect = function(cb) {
4192
4194
  var self2 = this;
4193
4195
  if (this._connecting) {
4194
- crypto$2.nextTick(() => cb(new Error("Client has already been connected. You cannot reuse a client.")));
4196
+ process$1.nextTick(() => cb(new Error("Client has already been connected. You cannot reuse a client.")));
4195
4197
  return;
4196
4198
  }
4197
4199
  this._connecting = true;
@@ -4266,7 +4268,7 @@ function requireClient() {
4266
4268
  queryCallback = query2.callback;
4267
4269
  readTimeoutTimer = setTimeout(() => {
4268
4270
  var error = new Error("Query read timeout");
4269
- crypto$2.nextTick(() => {
4271
+ process$1.nextTick(() => {
4270
4272
  query2.handleError(error, this.connection);
4271
4273
  });
4272
4274
  queryCallback(error);
@@ -4285,14 +4287,14 @@ function requireClient() {
4285
4287
  }
4286
4288
  if (!this._queryable) {
4287
4289
  query2.native = this.native;
4288
- crypto$2.nextTick(() => {
4290
+ process$1.nextTick(() => {
4289
4291
  query2.handleError(new Error("Client has encountered a connection error and is not queryable"));
4290
4292
  });
4291
4293
  return result2;
4292
4294
  }
4293
4295
  if (this._ending) {
4294
4296
  query2.native = this.native;
4295
- crypto$2.nextTick(() => {
4297
+ process$1.nextTick(() => {
4296
4298
  query2.handleError(new Error("Client was closed and is not queryable"));
4297
4299
  });
4298
4300
  return result2;
@@ -4315,7 +4317,7 @@ function requireClient() {
4315
4317
  }
4316
4318
  this.native.end(function() {
4317
4319
  self2._errorAllQueries(new Error("Connection terminated"));
4318
- crypto$2.nextTick(() => {
4320
+ process$1.nextTick(() => {
4319
4321
  self2.emit("end");
4320
4322
  if (cb)
4321
4323
  cb();
@@ -4405,7 +4407,7 @@ function requireLib$1() {
4405
4407
  this.types = pgTypes;
4406
4408
  this.DatabaseError = DatabaseError2;
4407
4409
  };
4408
- if (typeof crypto$2.env.NODE_PG_FORCE_NATIVE !== "undefined") {
4410
+ if (typeof process$1.env.NODE_PG_FORCE_NATIVE !== "undefined") {
4409
4411
  module2.exports = new PG(requireNative());
4410
4412
  } else {
4411
4413
  module2.exports = new PG(Client2);
@@ -4471,7 +4473,7 @@ class PGPoolManager {
4471
4473
  const sep = usernamepassword.split(":");
4472
4474
  const usernamepasswordReplacement = usernamepassword.replace(sep[1], "*****************************");
4473
4475
  const safeConnectionStringURI = connectionStringURI.replace(usernamepassword, usernamepasswordReplacement);
4474
- if (crypto$2.isPrimary) {
4476
+ if (cluster$2.isPrimary) {
4475
4477
  debug$9(`Created Database Pool with Master Thread, PID: [${process.pid}]`.yellow);
4476
4478
  } else {
4477
4479
  debug$9(`Created Database Pool with Worker Thread, PID: [${process.pid}]`.yellow);
@@ -7677,7 +7679,7 @@ function requireModern() {
7677
7679
  };
7678
7680
  return modern;
7679
7681
  }
7680
- const Errors = crypto$2.version.charCodeAt(1) < 55 && crypto$2.version.charCodeAt(2) === 46 ? requireOld() : requireModern();
7682
+ const Errors = process$1.version.charCodeAt(1) < 55 && process$1.version.charCodeAt(2) === 46 ? requireOld() : requireModern();
7681
7683
  var redisErrors = Errors;
7682
7684
  const __dirname$1 = "/home/runner/work/stsdatamanagement/stsdatamanagement/node_modules/ioredis/built";
7683
7685
  var Command$1 = {};
@@ -9043,11 +9045,11 @@ var autoPipelining = {};
9043
9045
  client2._runningAutoPipelines.delete(slotKey);
9044
9046
  if (err) {
9045
9047
  for (let i = 0; i < callbacks.length; i++) {
9046
- crypto$2.nextTick(callbacks[i], err);
9048
+ process$1.nextTick(callbacks[i], err);
9047
9049
  }
9048
9050
  } else {
9049
9051
  for (let i = 0; i < callbacks.length; i++) {
9050
- crypto$2.nextTick(callbacks[i], ...results[i]);
9052
+ process$1.nextTick(callbacks[i], ...results[i]);
9051
9053
  }
9052
9054
  }
9053
9055
  if (client2._autoPipelines.has(slotKey)) {
@@ -9124,7 +9126,7 @@ var autoPipelining = {};
9124
9126
  })(autoPipelining);
9125
9127
  var Script$1 = {};
9126
9128
  Object.defineProperty(Script$1, "__esModule", { value: true });
9127
- const crypto_1 = require$$0$2;
9129
+ const crypto_1 = crypto$2;
9128
9130
  const Command_1$3 = Command$1;
9129
9131
  const standard_as_callback_1$2 = built;
9130
9132
  class Script {
@@ -10426,7 +10428,7 @@ class DelayQueue {
10426
10428
  * @param options
10427
10429
  */
10428
10430
  push(bucket, item, options2) {
10429
- const callback = options2.callback || crypto$2.nextTick;
10431
+ const callback = options2.callback || process$1.nextTick;
10430
10432
  if (!this.queues[bucket]) {
10431
10433
  this.queues[bucket] = new Deque();
10432
10434
  }
@@ -10715,7 +10717,7 @@ function requireCluster() {
10715
10717
  refreshSlotsCache(callback) {
10716
10718
  if (this.isRefreshing) {
10717
10719
  if (callback) {
10718
- crypto$2.nextTick(callback);
10720
+ process$1.nextTick(callback);
10719
10721
  }
10720
10722
  return;
10721
10723
  }
@@ -10974,7 +10976,7 @@ function requireCluster() {
10974
10976
  setStatus(status) {
10975
10977
  debug2("status: %s -> %s", this.status || "[empty]", status);
10976
10978
  this.status = status;
10977
- crypto$2.nextTick(() => {
10979
+ process$1.nextTick(() => {
10978
10980
  this.emit(status);
10979
10981
  });
10980
10982
  }
@@ -11098,7 +11100,7 @@ function requireCluster() {
11098
11100
  }
11099
11101
  invokeReadyDelayedCallbacks(err) {
11100
11102
  for (const c of this._readyDelayedCallbacks) {
11101
- crypto$2.nextTick(c, err);
11103
+ process$1.nextTick(c, err);
11102
11104
  }
11103
11105
  this._readyDelayedCallbacks = [];
11104
11106
  }
@@ -11272,7 +11274,7 @@ class StandaloneConnector extends AbstractConnector_1.default {
11272
11274
  Object.assign(connectionOptions, options2.tls);
11273
11275
  }
11274
11276
  return new Promise((resolve, reject) => {
11275
- crypto$2.nextTick(() => {
11277
+ process$1.nextTick(() => {
11276
11278
  if (!this.connecting) {
11277
11279
  reject(new Error(utils_1$2.CONNECTION_CLOSED_ERROR_MSG));
11278
11280
  return;
@@ -12762,13 +12764,13 @@ function requireRedis() {
12762
12764
  } else if (stream.destroyed) {
12763
12765
  const firstError = _this.connector.firstError;
12764
12766
  if (firstError) {
12765
- crypto$2.nextTick(() => {
12767
+ process$1.nextTick(() => {
12766
12768
  eventHandler.errorHandler(_this)(firstError);
12767
12769
  });
12768
12770
  }
12769
- crypto$2.nextTick(eventHandler.closeHandler(_this));
12771
+ process$1.nextTick(eventHandler.closeHandler(_this));
12770
12772
  } else {
12771
- crypto$2.nextTick(eventHandler.connectHandler(_this));
12773
+ process$1.nextTick(eventHandler.connectHandler(_this));
12772
12774
  }
12773
12775
  if (!stream.destroyed) {
12774
12776
  stream.once("error", eventHandler.errorHandler(_this));
@@ -13124,7 +13126,7 @@ function requireRedis() {
13124
13126
  debug2("status[%s]: %s -> %s", this._getDescription(), this.status || "[empty]", status);
13125
13127
  }
13126
13128
  this.status = status;
13127
- crypto$2.nextTick(this.emit.bind(this, status, arg));
13129
+ process$1.nextTick(this.emit.bind(this, status, arg));
13128
13130
  }
13129
13131
  createScanStream(command2, { key, options: options2 = {} }) {
13130
13132
  return new ScanStream_1.default({
@@ -13641,7 +13643,7 @@ let CopyStreamQuery$2 = class CopyStreamQuery extends Readable {
13641
13643
  connectionStream.removeListener("readable", this._onReadableEvent);
13642
13644
  connectionStream.addListener("data", this._pgDataHandler);
13643
13645
  this._pgDataHandler(unreadBuffer);
13644
- crypto$2.nextTick(function() {
13646
+ process$1.nextTick(function() {
13645
13647
  connectionStream.resume();
13646
13648
  });
13647
13649
  }
@@ -13920,7 +13922,7 @@ class CopyStreamQuery3 extends Duplex {
13920
13922
  connectionStream.removeListener("readable", this._onReadableEvent);
13921
13923
  connectionStream.addListener("data", this._pgDataHandler);
13922
13924
  this._pgDataHandler(unreadBuffer);
13923
- crypto$2.nextTick(function() {
13925
+ process$1.nextTick(function() {
13924
13926
  connectionStream.resume();
13925
13927
  });
13926
13928
  }
@@ -14896,7 +14898,7 @@ function requireKleur() {
14896
14898
  if (hasRequiredKleur)
14897
14899
  return kleur;
14898
14900
  hasRequiredKleur = 1;
14899
- const { FORCE_COLOR, NODE_DISABLE_COLORS, TERM } = crypto$2.env;
14901
+ const { FORCE_COLOR, NODE_DISABLE_COLORS, TERM } = process$1.env;
14900
14902
  const $ = {
14901
14903
  enabled: !NODE_DISABLE_COLORS && TERM !== "dumb" && FORCE_COLOR !== "0",
14902
14904
  // modifiers
@@ -15246,7 +15248,7 @@ function requireFigures$1() {
15246
15248
  line: "─",
15247
15249
  pointer: ">"
15248
15250
  };
15249
- const figures = crypto$2.platform === "win32" ? win : main;
15251
+ const figures = process$1.platform === "win32" ? win : main;
15250
15252
  figures_1$1 = figures;
15251
15253
  return figures_1$1;
15252
15254
  }
@@ -15382,8 +15384,8 @@ function requirePrompt$1() {
15382
15384
  constructor(opts = {}) {
15383
15385
  super();
15384
15386
  this.firstRender = true;
15385
- this.in = opts.stdin || crypto$2.stdin;
15386
- this.out = opts.stdout || crypto$2.stdout;
15387
+ this.in = opts.stdin || process$1.stdin;
15388
+ this.out = opts.stdout || process$1.stdout;
15387
15389
  this.onRender = (opts.onRender || (() => void 0)).bind(this);
15388
15390
  const rl = readline.createInterface({
15389
15391
  input: this.in,
@@ -17809,7 +17811,7 @@ function requireFigures() {
17809
17811
  line: "─",
17810
17812
  pointer: ">"
17811
17813
  };
17812
- const figures = crypto$2.platform === "win32" ? win : main;
17814
+ const figures = process$1.platform === "win32" ? win : main;
17813
17815
  figures_1 = figures;
17814
17816
  return figures_1;
17815
17817
  }
@@ -17930,8 +17932,8 @@ function requirePrompt() {
17930
17932
  constructor(opts = {}) {
17931
17933
  super();
17932
17934
  this.firstRender = true;
17933
- this.in = opts.stdin || crypto$2.stdin;
17934
- this.out = opts.stdout || crypto$2.stdout;
17935
+ this.in = opts.stdin || process$1.stdin;
17936
+ this.out = opts.stdout || process$1.stdout;
17935
17937
  this.onRender = (opts.onRender || (() => void 0)).bind(this);
17936
17938
  const rl = readline.createInterface({ input: this.in, escapeCodeTimeout: 50 });
17937
17939
  readline.emitKeypressEvents(this.in, rl);
@@ -19949,7 +19951,7 @@ function requireLib() {
19949
19951
  }
19950
19952
  function isNodeLT(tar) {
19951
19953
  tar = (Array.isArray(tar) ? tar : tar.split(".")).map(Number);
19952
- let i = 0, src2 = crypto$2.versions.node.split(".").map(Number);
19954
+ let i = 0, src2 = process$1.versions.node.split(".").map(Number);
19953
19955
  for (; i < tar.length; i++) {
19954
19956
  if (src2[i] > tar[i])
19955
19957
  return false;
@@ -20292,7 +20294,7 @@ var options = {
20292
20294
  const options2 = {};
20293
20295
  const opt = Object.assign({}, preset, rawOptions);
20294
20296
  options2.throttleTime = 1e3 / mergeOption(opt.fps, 10);
20295
- options2.stream = mergeOption(opt.stream, crypto$2.stderr);
20297
+ options2.stream = mergeOption(opt.stream, process$1.stderr);
20296
20298
  options2.terminal = mergeOption(opt.terminal, null);
20297
20299
  options2.clearOnComplete = mergeOption(opt.clearOnComplete, false);
20298
20300
  options2.stopOnComplete = mergeOption(opt.stopOnComplete, false);
@@ -20488,8 +20490,8 @@ var singleBar = class SingleBar extends _GenericBar {
20488
20490
  }
20489
20491
  if (this.sigintCallback === null && this.options.gracefulExit) {
20490
20492
  this.sigintCallback = this.stop.bind(this);
20491
- crypto$2.once("SIGINT", this.sigintCallback);
20492
- crypto$2.once("SIGTERM", this.sigintCallback);
20493
+ process$1.once("SIGINT", this.sigintCallback);
20494
+ process$1.once("SIGTERM", this.sigintCallback);
20493
20495
  }
20494
20496
  this.terminal.cursorSave();
20495
20497
  if (this.options.hideCursor === true) {
@@ -20507,8 +20509,8 @@ var singleBar = class SingleBar extends _GenericBar {
20507
20509
  return;
20508
20510
  }
20509
20511
  if (this.sigintCallback) {
20510
- crypto$2.removeListener("SIGINT", this.sigintCallback);
20511
- crypto$2.removeListener("SIGTERM", this.sigintCallback);
20512
+ process$1.removeListener("SIGINT", this.sigintCallback);
20513
+ process$1.removeListener("SIGTERM", this.sigintCallback);
20512
20514
  this.sigintCallback = null;
20513
20515
  }
20514
20516
  this.render();
@@ -20566,8 +20568,8 @@ var multiBar = class MultiBar extends _EventEmitter {
20566
20568
  }
20567
20569
  if (this.sigintCallback === null && this.options.gracefulExit) {
20568
20570
  this.sigintCallback = this.stop.bind(this);
20569
- crypto$2.once("SIGINT", this.sigintCallback);
20570
- crypto$2.once("SIGTERM", this.sigintCallback);
20571
+ process$1.once("SIGINT", this.sigintCallback);
20572
+ process$1.once("SIGTERM", this.sigintCallback);
20571
20573
  }
20572
20574
  if (!this.isActive) {
20573
20575
  if (this.options.hideCursor === true) {
@@ -20631,8 +20633,8 @@ var multiBar = class MultiBar extends _EventEmitter {
20631
20633
  clearTimeout(this.timer);
20632
20634
  this.timer = null;
20633
20635
  if (this.sigintCallback) {
20634
- crypto$2.removeListener("SIGINT", this.sigintCallback);
20635
- crypto$2.removeListener("SIGTERM", this.sigintCallback);
20636
+ process$1.removeListener("SIGINT", this.sigintCallback);
20637
+ process$1.removeListener("SIGTERM", this.sigintCallback);
20636
20638
  this.sigintCallback = null;
20637
20639
  }
20638
20640
  this.isActive = false;