@prisma/cli-init 0.6.2 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{accelerate-7HJZB2GE.js → accelerate-5VID4BSA.js} +1317 -816
- package/dist/{chunk-YTWW6A72.js → chunk-7WBH7PZA.js} +245 -72
- package/dist/index.js +220 -145
- package/package.json +2 -2
|
@@ -16,16 +16,16 @@ import {
|
|
|
16
16
|
safeParse,
|
|
17
17
|
string,
|
|
18
18
|
union
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-7WBH7PZA.js";
|
|
20
20
|
import {
|
|
21
21
|
__commonJS,
|
|
22
22
|
__require,
|
|
23
23
|
__toESM
|
|
24
24
|
} from "./chunk-NJX2BODH.js";
|
|
25
25
|
|
|
26
|
-
// ../../node_modules/.pnpm/@prisma+query-plan-executor@
|
|
26
|
+
// ../../node_modules/.pnpm/@prisma+query-plan-executor@7.1.0/node_modules/@prisma/query-plan-executor/dist/index.js
|
|
27
27
|
var require_dist = __commonJS({
|
|
28
|
-
"../../node_modules/.pnpm/@prisma+query-plan-executor@
|
|
28
|
+
"../../node_modules/.pnpm/@prisma+query-plan-executor@7.1.0/node_modules/@prisma/query-plan-executor/dist/index.js"(exports2, module2) {
|
|
29
29
|
"use strict";
|
|
30
30
|
var __create = Object.create;
|
|
31
31
|
var __defProp = Object.defineProperty;
|
|
@@ -344,10 +344,10 @@ var require_dist = __commonJS({
|
|
|
344
344
|
}
|
|
345
345
|
};
|
|
346
346
|
exports22.Hash = Hash2;
|
|
347
|
-
function checkOpts(
|
|
347
|
+
function checkOpts(defaults2, opts) {
|
|
348
348
|
if (opts !== void 0 && {}.toString.call(opts) !== "[object Object]")
|
|
349
349
|
throw new Error("Options should be object or undefined");
|
|
350
|
-
const merged = Object.assign(
|
|
350
|
+
const merged = Object.assign(defaults2, opts);
|
|
351
351
|
return merged;
|
|
352
352
|
}
|
|
353
353
|
function wrapConstructor(hashCons) {
|
|
@@ -8553,10 +8553,10 @@ var require_dist = __commonJS({
|
|
|
8553
8553
|
var escapeString = (val) => {
|
|
8554
8554
|
let offset = 0;
|
|
8555
8555
|
let escaped = "";
|
|
8556
|
-
let
|
|
8557
|
-
while (
|
|
8558
|
-
escaped += val.substring(offset,
|
|
8559
|
-
escaped += LITTERAL_ESCAPE[
|
|
8556
|
+
let match2;
|
|
8557
|
+
while (match2 = CHARS_GLOBAL_REGEXP.exec(val)) {
|
|
8558
|
+
escaped += val.substring(offset, match2.index);
|
|
8559
|
+
escaped += LITTERAL_ESCAPE[match2[0]];
|
|
8560
8560
|
offset = CHARS_GLOBAL_REGEXP.lastIndex;
|
|
8561
8561
|
}
|
|
8562
8562
|
if (offset === 0) {
|
|
@@ -9150,21 +9150,21 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end, this.header)}`
|
|
|
9150
9150
|
*/
|
|
9151
9151
|
writeDefaultStringEscapeQuote(str) {
|
|
9152
9152
|
this.writeInt8(QUOTE);
|
|
9153
|
-
let
|
|
9154
|
-
let
|
|
9155
|
-
while ((
|
|
9156
|
-
this.writeString(str.slice(
|
|
9153
|
+
let match2;
|
|
9154
|
+
let lastIndex = 0;
|
|
9155
|
+
while ((match2 = CHARS_GLOBAL_REGEXP.exec(str)) !== null) {
|
|
9156
|
+
this.writeString(str.slice(lastIndex, match2.index));
|
|
9157
9157
|
this.writeInt8(SLASH);
|
|
9158
|
-
this.writeInt8(
|
|
9159
|
-
|
|
9158
|
+
this.writeInt8(match2[0].charCodeAt(0));
|
|
9159
|
+
lastIndex = CHARS_GLOBAL_REGEXP.lastIndex;
|
|
9160
9160
|
}
|
|
9161
|
-
if (
|
|
9161
|
+
if (lastIndex === 0) {
|
|
9162
9162
|
this.writeString(str);
|
|
9163
9163
|
this.writeInt8(QUOTE);
|
|
9164
9164
|
return;
|
|
9165
9165
|
}
|
|
9166
|
-
if (
|
|
9167
|
-
this.writeString(str.slice(
|
|
9166
|
+
if (lastIndex < str.length) {
|
|
9167
|
+
this.writeString(str.slice(lastIndex));
|
|
9168
9168
|
}
|
|
9169
9169
|
this.writeInt8(QUOTE);
|
|
9170
9170
|
}
|
|
@@ -10360,7 +10360,7 @@ ${Utils.log(this.opts, emptyBuf, 0, 7)}`
|
|
|
10360
10360
|
var SslRequest = require_ssl_request();
|
|
10361
10361
|
var Errors2 = require_errors();
|
|
10362
10362
|
var NativePasswordAuth = require_native_password_auth();
|
|
10363
|
-
var
|
|
10363
|
+
var os5 = __require("os");
|
|
10364
10364
|
var Iconv = require_lib();
|
|
10365
10365
|
var Crypto = __require("crypto");
|
|
10366
10366
|
var driverVersion = require_package().version;
|
|
@@ -10492,7 +10492,7 @@ ${Utils.log(this.opts, emptyBuf, 0, 7)}`
|
|
|
10492
10492
|
_Handshake.writeAttribute(out, "_os", encoding);
|
|
10493
10493
|
_Handshake.writeAttribute(out, process.platform, encoding);
|
|
10494
10494
|
_Handshake.writeAttribute(out, "_client_host", encoding);
|
|
10495
|
-
_Handshake.writeAttribute(out,
|
|
10495
|
+
_Handshake.writeAttribute(out, os5.hostname(), encoding);
|
|
10496
10496
|
_Handshake.writeAttribute(out, "_node_version", encoding);
|
|
10497
10497
|
_Handshake.writeAttribute(out, process.versions.node, encoding);
|
|
10498
10498
|
if (opts.connectAttributes !== true) {
|
|
@@ -13909,7 +13909,7 @@ ${Utils.log(this.opts, emptyBuf, 0, 7)}`
|
|
|
13909
13909
|
var TextEncoder2 = require_text_encoder();
|
|
13910
13910
|
var { Readable } = __require("stream");
|
|
13911
13911
|
var QUOTE = 39;
|
|
13912
|
-
var
|
|
13912
|
+
var Query2 = class extends Parser2 {
|
|
13913
13913
|
constructor(resolve, reject, connOpts, cmdParam) {
|
|
13914
13914
|
super(resolve, reject, connOpts, cmdParam);
|
|
13915
13915
|
this.binary = false;
|
|
@@ -14221,7 +14221,7 @@ ${Utils.log(this.opts, emptyBuf, 0, 7)}`
|
|
|
14221
14221
|
return this.inStream;
|
|
14222
14222
|
}
|
|
14223
14223
|
};
|
|
14224
|
-
module22.exports =
|
|
14224
|
+
module22.exports = Query2;
|
|
14225
14225
|
}
|
|
14226
14226
|
});
|
|
14227
14227
|
var require_binary_encoder = __commonJS2({
|
|
@@ -17394,7 +17394,7 @@ ${Utils.log(this.opts, emptyBuf, 0, 7)}`
|
|
|
17394
17394
|
var Quit = require_quit();
|
|
17395
17395
|
var Ping = require_ping();
|
|
17396
17396
|
var Reset = require_reset();
|
|
17397
|
-
var
|
|
17397
|
+
var Query2 = require_query();
|
|
17398
17398
|
var Prepare = require_prepare();
|
|
17399
17399
|
var OkPacket = require_ok_packet();
|
|
17400
17400
|
var Execute = require_execute();
|
|
@@ -17433,7 +17433,7 @@ ${Utils.log(this.opts, emptyBuf, 0, 7)}`
|
|
|
17433
17433
|
return tz;
|
|
17434
17434
|
};
|
|
17435
17435
|
var redirectUrlFormat = /(mariadb|mysql):\/\/(([^/@:]+)?(:([^/]+))?@)?(([^/:]+)(:([0-9]+))?)(\/([^?]+)(\?(.*))?)?$/;
|
|
17436
|
-
var
|
|
17436
|
+
var Connection2 = class _Connection extends EventEmitter {
|
|
17437
17437
|
opts;
|
|
17438
17438
|
sendQueue = new Queue();
|
|
17439
17439
|
receiveQueue = new Queue();
|
|
@@ -18767,7 +18767,7 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
|
|
|
18767
18767
|
return;
|
|
18768
18768
|
}
|
|
18769
18769
|
if (this.receiveQueue.peekFront() || this.info.status & ServerStatus.STATUS_IN_TRANS) {
|
|
18770
|
-
const cmd = new
|
|
18770
|
+
const cmd = new Query2(resolve, (err) => this._logAndReject(reject, err), this.opts, cmdParam);
|
|
18771
18771
|
this.addCommand(cmd, true);
|
|
18772
18772
|
} else
|
|
18773
18773
|
resolve();
|
|
@@ -18837,7 +18837,7 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
|
|
|
18837
18837
|
cmdParam.stack
|
|
18838
18838
|
)
|
|
18839
18839
|
);
|
|
18840
|
-
const cmd = new
|
|
18840
|
+
const cmd = new Query2(resolve, (err) => this._logAndReject(reject, err), this.opts, cmdParam);
|
|
18841
18841
|
this.addCommand(cmd, true);
|
|
18842
18842
|
}
|
|
18843
18843
|
prepare(cmdParam, resolve, reject) {
|
|
@@ -18980,7 +18980,7 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
|
|
|
18980
18980
|
this.waitingAuthenticationQueue = new Queue();
|
|
18981
18981
|
this.addCommand = this.addCommandQueue;
|
|
18982
18982
|
const tmpQuery = function(sql4, resolve2, reject2) {
|
|
18983
|
-
const cmd = new
|
|
18983
|
+
const cmd = new Query2(
|
|
18984
18984
|
resolve2,
|
|
18985
18985
|
(err) => {
|
|
18986
18986
|
if (conn.opts.logger.error)
|
|
@@ -19248,15 +19248,15 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
|
|
|
19248
19248
|
return this.#socket;
|
|
19249
19249
|
}
|
|
19250
19250
|
};
|
|
19251
|
-
module22.exports =
|
|
19251
|
+
module22.exports = Connection2;
|
|
19252
19252
|
}
|
|
19253
19253
|
});
|
|
19254
19254
|
var require_stream = __commonJS2({
|
|
19255
19255
|
"../../node_modules/.pnpm/mariadb@3.4.5/node_modules/mariadb/lib/cmd/stream.js"(exports22, module22) {
|
|
19256
19256
|
"use strict";
|
|
19257
|
-
var
|
|
19257
|
+
var Query2 = require_query();
|
|
19258
19258
|
var { Readable } = __require("stream");
|
|
19259
|
-
var Stream = class extends
|
|
19259
|
+
var Stream = class extends Query2 {
|
|
19260
19260
|
constructor(cmdParam, connOpts, socket) {
|
|
19261
19261
|
super(
|
|
19262
19262
|
() => {
|
|
@@ -19625,8 +19625,8 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
|
|
|
19625
19625
|
var Queue = require_denque();
|
|
19626
19626
|
var Errors2 = require_errors();
|
|
19627
19627
|
var Utils = require_utils2();
|
|
19628
|
-
var
|
|
19629
|
-
var
|
|
19628
|
+
var Connection2 = require_connection();
|
|
19629
|
+
var Pool2 = class extends EventEmitter {
|
|
19630
19630
|
opts;
|
|
19631
19631
|
#closed = false;
|
|
19632
19632
|
#connectionInCreation = false;
|
|
@@ -19756,7 +19756,7 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
|
|
|
19756
19756
|
const connectionOpts = Object.assign({}, this.opts.connOptions, {
|
|
19757
19757
|
connectTimeout: Math.max(1, Math.min(minTimeout, this.opts.connOptions.connectTimeout || Number.MAX_SAFE_INTEGER))
|
|
19758
19758
|
});
|
|
19759
|
-
const conn = new
|
|
19759
|
+
const conn = new Connection2(connectionOpts);
|
|
19760
19760
|
this._connectionCreationTask = null;
|
|
19761
19761
|
conn.connect().then((conn2) => this._prepareNewConnection(conn2, onSuccess, onError)).catch((err) => this._handleConnectionCreationError(err, onSuccess, onError, timeoutEnd));
|
|
19762
19762
|
}
|
|
@@ -20395,21 +20395,21 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
|
|
|
20395
20395
|
process.nextTick(this.rejecter, err);
|
|
20396
20396
|
}
|
|
20397
20397
|
};
|
|
20398
|
-
module22.exports =
|
|
20398
|
+
module22.exports = Pool2;
|
|
20399
20399
|
}
|
|
20400
20400
|
});
|
|
20401
20401
|
var require_pool_promise = __commonJS2({
|
|
20402
20402
|
"../../node_modules/.pnpm/mariadb@3.4.5/node_modules/mariadb/lib/pool-promise.js"(exports22, module22) {
|
|
20403
20403
|
"use strict";
|
|
20404
20404
|
var { EventEmitter } = __require("events");
|
|
20405
|
-
var
|
|
20405
|
+
var Pool2 = require_pool();
|
|
20406
20406
|
var ConnectionPromise = require_connection_promise();
|
|
20407
20407
|
var Errors2 = require_errors();
|
|
20408
20408
|
var PoolPromise = class extends EventEmitter {
|
|
20409
20409
|
#pool;
|
|
20410
20410
|
constructor(options) {
|
|
20411
20411
|
super();
|
|
20412
|
-
this.#pool = new
|
|
20412
|
+
this.#pool = new Pool2(options);
|
|
20413
20413
|
this.#pool.on("acquire", this.emit.bind(this, "acquire"));
|
|
20414
20414
|
this.#pool.on("connection", this.emit.bind(this, "connection"));
|
|
20415
20415
|
this.#pool.on("enqueue", this.emit.bind(this, "enqueue"));
|
|
@@ -20700,7 +20700,7 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
|
|
|
20700
20700
|
"use strict";
|
|
20701
20701
|
var Errors2 = require_errors();
|
|
20702
20702
|
var { Status } = require_connection_status();
|
|
20703
|
-
var
|
|
20703
|
+
var Query2 = require_query();
|
|
20704
20704
|
var ConnectionCallback = class _ConnectionCallback {
|
|
20705
20705
|
#conn;
|
|
20706
20706
|
constructor(conn) {
|
|
@@ -20817,7 +20817,7 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
|
|
|
20817
20817
|
let cmd;
|
|
20818
20818
|
if (cmdParam.callback) {
|
|
20819
20819
|
cmdParam.opts = cmdParam.opts ? Object.assign(cmdParam.opts, { metaAsArray: true }) : { metaAsArray: true };
|
|
20820
|
-
cmd = new
|
|
20820
|
+
cmd = new Query2(
|
|
20821
20821
|
([rows, meta]) => {
|
|
20822
20822
|
cmdParam.callback(null, rows, meta);
|
|
20823
20823
|
},
|
|
@@ -20826,7 +20826,7 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
|
|
|
20826
20826
|
cmdParam
|
|
20827
20827
|
);
|
|
20828
20828
|
} else {
|
|
20829
|
-
cmd = new
|
|
20829
|
+
cmd = new Query2(
|
|
20830
20830
|
() => {
|
|
20831
20831
|
},
|
|
20832
20832
|
() => {
|
|
@@ -21178,14 +21178,14 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
|
|
|
21178
21178
|
"../../node_modules/.pnpm/mariadb@3.4.5/node_modules/mariadb/lib/pool-callback.js"(exports22, module22) {
|
|
21179
21179
|
"use strict";
|
|
21180
21180
|
var { EventEmitter } = __require("events");
|
|
21181
|
-
var
|
|
21181
|
+
var Pool2 = require_pool();
|
|
21182
21182
|
var Errors2 = require_errors();
|
|
21183
21183
|
var ConnectionCallback = require_connection_callback();
|
|
21184
21184
|
var PoolCallback = class extends EventEmitter {
|
|
21185
21185
|
#pool;
|
|
21186
21186
|
constructor(options) {
|
|
21187
21187
|
super();
|
|
21188
|
-
this.#pool = new
|
|
21188
|
+
this.#pool = new Pool2(options);
|
|
21189
21189
|
this.#pool.on("acquire", this.emit.bind(this, "acquire"));
|
|
21190
21190
|
this.#pool.on("connection", this.emit.bind(this, "connection"));
|
|
21191
21191
|
this.#pool.on("enqueue", this.emit.bind(this, "enqueue"));
|
|
@@ -21976,7 +21976,7 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
|
|
|
21976
21976
|
"../../node_modules/.pnpm/mariadb@3.4.5/node_modules/mariadb/promise.js"(exports22, module22) {
|
|
21977
21977
|
"use strict";
|
|
21978
21978
|
require_check_node();
|
|
21979
|
-
var
|
|
21979
|
+
var Connection2 = require_connection();
|
|
21980
21980
|
var ConnectionPromise = require_connection_promise();
|
|
21981
21981
|
var PoolPromise = require_pool_promise();
|
|
21982
21982
|
var Cluster = require_cluster();
|
|
@@ -21998,7 +21998,7 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
|
|
|
21998
21998
|
module22.exports.createConnection = function createConnection(opts) {
|
|
21999
21999
|
try {
|
|
22000
22000
|
const options = new ConnOptions(opts);
|
|
22001
|
-
const conn = new
|
|
22001
|
+
const conn = new Connection2(options);
|
|
22002
22002
|
const connPromise = new ConnectionPromise(conn);
|
|
22003
22003
|
return conn.connect().then(() => Promise.resolve(connPromise));
|
|
22004
22004
|
} catch (err) {
|
|
@@ -22019,7 +22019,7 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
|
|
|
22019
22019
|
module22.exports.importFile = function importFile(opts) {
|
|
22020
22020
|
try {
|
|
22021
22021
|
const options = new ConnOptions(opts);
|
|
22022
|
-
const conn = new
|
|
22022
|
+
const conn = new Connection2(options);
|
|
22023
22023
|
return conn.connect().then(() => {
|
|
22024
22024
|
return new Promise(conn.importFile.bind(conn, Object.assign({ skipDbCheck: true }, opts)));
|
|
22025
22025
|
}).finally(() => {
|
|
@@ -22057,14 +22057,14 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
|
|
|
22057
22057
|
if (str.length > 100) {
|
|
22058
22058
|
return;
|
|
22059
22059
|
}
|
|
22060
|
-
var
|
|
22060
|
+
var match2 = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(
|
|
22061
22061
|
str
|
|
22062
22062
|
);
|
|
22063
|
-
if (!
|
|
22063
|
+
if (!match2) {
|
|
22064
22064
|
return;
|
|
22065
22065
|
}
|
|
22066
|
-
var n2 = parseFloat(
|
|
22067
|
-
var type2 = (
|
|
22066
|
+
var n2 = parseFloat(match2[1]);
|
|
22067
|
+
var type2 = (match2[2] || "ms").toLowerCase();
|
|
22068
22068
|
switch (type2) {
|
|
22069
22069
|
case "years":
|
|
22070
22070
|
case "year":
|
|
@@ -22147,9 +22147,9 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
|
|
|
22147
22147
|
}
|
|
22148
22148
|
});
|
|
22149
22149
|
var require_common = __commonJS2({
|
|
22150
|
-
"../../node_modules/.pnpm/debug@4.4.
|
|
22150
|
+
"../../node_modules/.pnpm/debug@4.4.0_supports-color@10.2.2/node_modules/debug/src/common.js"(exports22, module22) {
|
|
22151
22151
|
"use strict";
|
|
22152
|
-
function setup(
|
|
22152
|
+
function setup(env2) {
|
|
22153
22153
|
createDebug.debug = createDebug;
|
|
22154
22154
|
createDebug.default = createDebug;
|
|
22155
22155
|
createDebug.coerce = coerce;
|
|
@@ -22158,8 +22158,8 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
|
|
|
22158
22158
|
createDebug.enabled = enabled2;
|
|
22159
22159
|
createDebug.humanize = require_ms();
|
|
22160
22160
|
createDebug.destroy = destroy2;
|
|
22161
|
-
Object.keys(
|
|
22162
|
-
createDebug[key] =
|
|
22161
|
+
Object.keys(env2).forEach((key) => {
|
|
22162
|
+
createDebug[key] = env2[key];
|
|
22163
22163
|
});
|
|
22164
22164
|
createDebug.names = [];
|
|
22165
22165
|
createDebug.skips = [];
|
|
@@ -22194,19 +22194,19 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
|
|
|
22194
22194
|
args.unshift("%O");
|
|
22195
22195
|
}
|
|
22196
22196
|
let index = 0;
|
|
22197
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (
|
|
22198
|
-
if (
|
|
22197
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match2, format) => {
|
|
22198
|
+
if (match2 === "%%") {
|
|
22199
22199
|
return "%";
|
|
22200
22200
|
}
|
|
22201
22201
|
index++;
|
|
22202
22202
|
const formatter = createDebug.formatters[format];
|
|
22203
22203
|
if (typeof formatter === "function") {
|
|
22204
22204
|
const val = args[index];
|
|
22205
|
-
|
|
22205
|
+
match2 = formatter.call(self2, val);
|
|
22206
22206
|
args.splice(index, 1);
|
|
22207
22207
|
index--;
|
|
22208
22208
|
}
|
|
22209
|
-
return
|
|
22209
|
+
return match2;
|
|
22210
22210
|
});
|
|
22211
22211
|
createDebug.formatArgs.call(self2, args);
|
|
22212
22212
|
const logFn = self2.log || createDebug.log;
|
|
@@ -22323,7 +22323,7 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
|
|
|
22323
22323
|
}
|
|
22324
22324
|
});
|
|
22325
22325
|
var require_browser = __commonJS2({
|
|
22326
|
-
"../../node_modules/.pnpm/debug@4.4.
|
|
22326
|
+
"../../node_modules/.pnpm/debug@4.4.0_supports-color@10.2.2/node_modules/debug/src/browser.js"(exports22, module22) {
|
|
22327
22327
|
"use strict";
|
|
22328
22328
|
exports22.formatArgs = formatArgs;
|
|
22329
22329
|
exports22.save = save;
|
|
@@ -22440,12 +22440,12 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
|
|
|
22440
22440
|
args.splice(1, 0, c2, "color: inherit");
|
|
22441
22441
|
let index = 0;
|
|
22442
22442
|
let lastC = 0;
|
|
22443
|
-
args[0].replace(/%[a-zA-Z%]/g, (
|
|
22444
|
-
if (
|
|
22443
|
+
args[0].replace(/%[a-zA-Z%]/g, (match2) => {
|
|
22444
|
+
if (match2 === "%%") {
|
|
22445
22445
|
return;
|
|
22446
22446
|
}
|
|
22447
22447
|
index++;
|
|
22448
|
-
if (
|
|
22448
|
+
if (match2 === "%c") {
|
|
22449
22449
|
lastC = index;
|
|
22450
22450
|
}
|
|
22451
22451
|
});
|
|
@@ -22491,133 +22491,164 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
|
|
|
22491
22491
|
};
|
|
22492
22492
|
}
|
|
22493
22493
|
});
|
|
22494
|
-
var
|
|
22495
|
-
|
|
22496
|
-
|
|
22497
|
-
|
|
22498
|
-
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
22499
|
-
const position = argv.indexOf(prefix + flag);
|
|
22500
|
-
const terminatorPosition = argv.indexOf("--");
|
|
22501
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
22502
|
-
};
|
|
22503
|
-
}
|
|
22494
|
+
var supports_color_exports = {};
|
|
22495
|
+
__export(supports_color_exports, {
|
|
22496
|
+
createSupportsColor: () => createSupportsColor,
|
|
22497
|
+
default: () => supports_color_default
|
|
22504
22498
|
});
|
|
22505
|
-
|
|
22506
|
-
"
|
|
22507
|
-
|
|
22508
|
-
|
|
22509
|
-
|
|
22510
|
-
|
|
22511
|
-
|
|
22512
|
-
|
|
22513
|
-
|
|
22514
|
-
|
|
22515
|
-
|
|
22516
|
-
|
|
22499
|
+
function hasFlag(flag, argv = globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv) {
|
|
22500
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
22501
|
+
const position = argv.indexOf(prefix + flag);
|
|
22502
|
+
const terminatorPosition = argv.indexOf("--");
|
|
22503
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
22504
|
+
}
|
|
22505
|
+
function envForceColor() {
|
|
22506
|
+
if (!("FORCE_COLOR" in env)) {
|
|
22507
|
+
return;
|
|
22508
|
+
}
|
|
22509
|
+
if (env.FORCE_COLOR === "true") {
|
|
22510
|
+
return 1;
|
|
22511
|
+
}
|
|
22512
|
+
if (env.FORCE_COLOR === "false") {
|
|
22513
|
+
return 0;
|
|
22514
|
+
}
|
|
22515
|
+
if (env.FORCE_COLOR.length === 0) {
|
|
22516
|
+
return 1;
|
|
22517
|
+
}
|
|
22518
|
+
const level = Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
22519
|
+
if (![0, 1, 2, 3].includes(level)) {
|
|
22520
|
+
return;
|
|
22521
|
+
}
|
|
22522
|
+
return level;
|
|
22523
|
+
}
|
|
22524
|
+
function translateLevel(level) {
|
|
22525
|
+
if (level === 0) {
|
|
22526
|
+
return false;
|
|
22527
|
+
}
|
|
22528
|
+
return {
|
|
22529
|
+
level,
|
|
22530
|
+
hasBasic: true,
|
|
22531
|
+
has256: level >= 2,
|
|
22532
|
+
has16m: level >= 3
|
|
22533
|
+
};
|
|
22534
|
+
}
|
|
22535
|
+
function _supportsColor(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
22536
|
+
const noFlagForceColor = envForceColor();
|
|
22537
|
+
if (noFlagForceColor !== void 0) {
|
|
22538
|
+
flagForceColor = noFlagForceColor;
|
|
22539
|
+
}
|
|
22540
|
+
const forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
22541
|
+
if (forceColor === 0) {
|
|
22542
|
+
return 0;
|
|
22543
|
+
}
|
|
22544
|
+
if (sniffFlags) {
|
|
22545
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
22546
|
+
return 3;
|
|
22517
22547
|
}
|
|
22518
|
-
|
|
22519
|
-
|
|
22520
|
-
if (env.FORCE_COLOR === "true") {
|
|
22521
|
-
return 1;
|
|
22522
|
-
}
|
|
22523
|
-
if (env.FORCE_COLOR === "false") {
|
|
22524
|
-
return 0;
|
|
22525
|
-
}
|
|
22526
|
-
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
22527
|
-
}
|
|
22548
|
+
if (hasFlag("color=256")) {
|
|
22549
|
+
return 2;
|
|
22528
22550
|
}
|
|
22529
|
-
|
|
22530
|
-
|
|
22531
|
-
|
|
22532
|
-
|
|
22533
|
-
|
|
22534
|
-
|
|
22535
|
-
|
|
22536
|
-
|
|
22537
|
-
|
|
22538
|
-
|
|
22551
|
+
}
|
|
22552
|
+
if ("TF_BUILD" in env && "AGENT_NAME" in env) {
|
|
22553
|
+
return 1;
|
|
22554
|
+
}
|
|
22555
|
+
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
22556
|
+
return 0;
|
|
22557
|
+
}
|
|
22558
|
+
const min2 = forceColor || 0;
|
|
22559
|
+
if (env.TERM === "dumb") {
|
|
22560
|
+
return min2;
|
|
22561
|
+
}
|
|
22562
|
+
if (import_node_process.default.platform === "win32") {
|
|
22563
|
+
const osRelease = import_node_os.default.release().split(".");
|
|
22564
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
22565
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
22539
22566
|
}
|
|
22540
|
-
|
|
22541
|
-
|
|
22542
|
-
|
|
22543
|
-
|
|
22544
|
-
|
|
22545
|
-
|
|
22546
|
-
|
|
22547
|
-
|
|
22548
|
-
|
|
22549
|
-
|
|
22550
|
-
|
|
22551
|
-
|
|
22552
|
-
|
|
22553
|
-
|
|
22554
|
-
|
|
22555
|
-
|
|
22556
|
-
|
|
22557
|
-
|
|
22558
|
-
|
|
22559
|
-
|
|
22560
|
-
|
|
22561
|
-
|
|
22562
|
-
|
|
22563
|
-
|
|
22564
|
-
|
|
22565
|
-
|
|
22566
|
-
|
|
22567
|
-
|
|
22568
|
-
|
|
22569
|
-
|
|
22570
|
-
|
|
22571
|
-
if ("CI" in env) {
|
|
22572
|
-
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE", "DRONE"].some((sign2) => sign2 in env) || env.CI_NAME === "codeship") {
|
|
22573
|
-
return 1;
|
|
22574
|
-
}
|
|
22575
|
-
return min2;
|
|
22576
|
-
}
|
|
22577
|
-
if ("TEAMCITY_VERSION" in env) {
|
|
22578
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
22579
|
-
}
|
|
22580
|
-
if (env.COLORTERM === "truecolor") {
|
|
22581
|
-
return 3;
|
|
22582
|
-
}
|
|
22583
|
-
if ("TERM_PROGRAM" in env) {
|
|
22584
|
-
const version5 = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
22585
|
-
switch (env.TERM_PROGRAM) {
|
|
22586
|
-
case "iTerm.app":
|
|
22587
|
-
return version5 >= 3 ? 3 : 2;
|
|
22588
|
-
case "Apple_Terminal":
|
|
22589
|
-
return 2;
|
|
22590
|
-
}
|
|
22567
|
+
return 1;
|
|
22568
|
+
}
|
|
22569
|
+
if ("CI" in env) {
|
|
22570
|
+
if (["GITHUB_ACTIONS", "GITEA_ACTIONS", "CIRCLECI"].some((key) => key in env)) {
|
|
22571
|
+
return 3;
|
|
22572
|
+
}
|
|
22573
|
+
if (["TRAVIS", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign2) => sign2 in env) || env.CI_NAME === "codeship") {
|
|
22574
|
+
return 1;
|
|
22575
|
+
}
|
|
22576
|
+
return min2;
|
|
22577
|
+
}
|
|
22578
|
+
if ("TEAMCITY_VERSION" in env) {
|
|
22579
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
22580
|
+
}
|
|
22581
|
+
if (env.COLORTERM === "truecolor") {
|
|
22582
|
+
return 3;
|
|
22583
|
+
}
|
|
22584
|
+
if (env.TERM === "xterm-kitty") {
|
|
22585
|
+
return 3;
|
|
22586
|
+
}
|
|
22587
|
+
if (env.TERM === "xterm-ghostty") {
|
|
22588
|
+
return 3;
|
|
22589
|
+
}
|
|
22590
|
+
if (env.TERM === "wezterm") {
|
|
22591
|
+
return 3;
|
|
22592
|
+
}
|
|
22593
|
+
if ("TERM_PROGRAM" in env) {
|
|
22594
|
+
const version5 = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
22595
|
+
switch (env.TERM_PROGRAM) {
|
|
22596
|
+
case "iTerm.app": {
|
|
22597
|
+
return version5 >= 3 ? 3 : 2;
|
|
22591
22598
|
}
|
|
22592
|
-
|
|
22599
|
+
case "Apple_Terminal": {
|
|
22593
22600
|
return 2;
|
|
22594
22601
|
}
|
|
22595
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
22596
|
-
return 1;
|
|
22597
|
-
}
|
|
22598
|
-
if ("COLORTERM" in env) {
|
|
22599
|
-
return 1;
|
|
22600
|
-
}
|
|
22601
|
-
return min2;
|
|
22602
22602
|
}
|
|
22603
|
-
|
|
22604
|
-
|
|
22605
|
-
|
|
22606
|
-
|
|
22607
|
-
|
|
22608
|
-
|
|
22603
|
+
}
|
|
22604
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
|
22605
|
+
return 2;
|
|
22606
|
+
}
|
|
22607
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
22608
|
+
return 1;
|
|
22609
|
+
}
|
|
22610
|
+
if ("COLORTERM" in env) {
|
|
22611
|
+
return 1;
|
|
22612
|
+
}
|
|
22613
|
+
return min2;
|
|
22614
|
+
}
|
|
22615
|
+
function createSupportsColor(stream, options = {}) {
|
|
22616
|
+
const level = _supportsColor(stream, {
|
|
22617
|
+
streamIsTTY: stream && stream.isTTY,
|
|
22618
|
+
...options
|
|
22619
|
+
});
|
|
22620
|
+
return translateLevel(level);
|
|
22621
|
+
}
|
|
22622
|
+
var import_node_process;
|
|
22623
|
+
var import_node_os;
|
|
22624
|
+
var import_node_tty;
|
|
22625
|
+
var env;
|
|
22626
|
+
var flagForceColor;
|
|
22627
|
+
var supportsColor;
|
|
22628
|
+
var supports_color_default;
|
|
22629
|
+
var init_supports_color = __esm({
|
|
22630
|
+
"../../node_modules/.pnpm/supports-color@10.2.2/node_modules/supports-color/index.js"() {
|
|
22631
|
+
"use strict";
|
|
22632
|
+
import_node_process = __toESM2(__require("process"), 1);
|
|
22633
|
+
import_node_os = __toESM2(__require("os"), 1);
|
|
22634
|
+
import_node_tty = __toESM2(__require("tty"), 1);
|
|
22635
|
+
({ env } = import_node_process.default);
|
|
22636
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
22637
|
+
flagForceColor = 0;
|
|
22638
|
+
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
22639
|
+
flagForceColor = 1;
|
|
22609
22640
|
}
|
|
22610
|
-
|
|
22611
|
-
|
|
22612
|
-
|
|
22613
|
-
stderr: getSupportLevel({ isTTY: tty.isatty(2) })
|
|
22641
|
+
supportsColor = {
|
|
22642
|
+
stdout: createSupportsColor({ isTTY: import_node_tty.default.isatty(1) }),
|
|
22643
|
+
stderr: createSupportsColor({ isTTY: import_node_tty.default.isatty(2) })
|
|
22614
22644
|
};
|
|
22645
|
+
supports_color_default = supportsColor;
|
|
22615
22646
|
}
|
|
22616
22647
|
});
|
|
22617
22648
|
var require_node = __commonJS2({
|
|
22618
|
-
"../../node_modules/.pnpm/debug@4.4.
|
|
22649
|
+
"../../node_modules/.pnpm/debug@4.4.0_supports-color@10.2.2/node_modules/debug/src/node.js"(exports22, module22) {
|
|
22619
22650
|
"use strict";
|
|
22620
|
-
var
|
|
22651
|
+
var tty2 = __require("tty");
|
|
22621
22652
|
var util2 = __require("util");
|
|
22622
22653
|
exports22.init = init3;
|
|
22623
22654
|
exports22.log = log4;
|
|
@@ -22632,8 +22663,8 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
|
|
|
22632
22663
|
);
|
|
22633
22664
|
exports22.colors = [6, 2, 3, 4, 5, 1];
|
|
22634
22665
|
try {
|
|
22635
|
-
const
|
|
22636
|
-
if (
|
|
22666
|
+
const supportsColor2 = (init_supports_color(), __toCommonJS(supports_color_exports));
|
|
22667
|
+
if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
|
|
22637
22668
|
exports22.colors = [
|
|
22638
22669
|
20,
|
|
22639
22670
|
21,
|
|
@@ -22735,7 +22766,7 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
|
|
|
22735
22766
|
return obj;
|
|
22736
22767
|
}, {});
|
|
22737
22768
|
function useColors() {
|
|
22738
|
-
return "colors" in exports22.inspectOpts ? Boolean(exports22.inspectOpts.colors) :
|
|
22769
|
+
return "colors" in exports22.inspectOpts ? Boolean(exports22.inspectOpts.colors) : tty2.isatty(process.stderr.fd);
|
|
22739
22770
|
}
|
|
22740
22771
|
function formatArgs(args) {
|
|
22741
22772
|
const { namespace: name6, useColors: useColors2 } = this;
|
|
@@ -22788,7 +22819,7 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
|
|
|
22788
22819
|
}
|
|
22789
22820
|
});
|
|
22790
22821
|
var require_src2 = __commonJS2({
|
|
22791
|
-
"../../node_modules/.pnpm/debug@4.4.
|
|
22822
|
+
"../../node_modules/.pnpm/debug@4.4.0_supports-color@10.2.2/node_modules/debug/src/index.js"(exports22, module22) {
|
|
22792
22823
|
"use strict";
|
|
22793
22824
|
if (typeof process === "undefined" || process.type === "renderer" || process.browser === true || process.__nwjs) {
|
|
22794
22825
|
module22.exports = require_browser();
|
|
@@ -23478,7 +23509,7 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
|
|
|
23478
23509
|
var utils_1 = require_utils3();
|
|
23479
23510
|
var events_1 = __require("events");
|
|
23480
23511
|
var timers_1 = __require("timers");
|
|
23481
|
-
var
|
|
23512
|
+
var Pool2 = class {
|
|
23482
23513
|
constructor(opt) {
|
|
23483
23514
|
this.destroyed = false;
|
|
23484
23515
|
this.emitter = new events_1.EventEmitter();
|
|
@@ -23862,7 +23893,7 @@ ${Utils.log(this.opts, packet.buf, packet.pos, packet.end)}`,
|
|
|
23862
23893
|
});
|
|
23863
23894
|
}
|
|
23864
23895
|
};
|
|
23865
|
-
exports22.Pool =
|
|
23896
|
+
exports22.Pool = Pool2;
|
|
23866
23897
|
function remove(arr, item) {
|
|
23867
23898
|
const idx = arr.indexOf(item);
|
|
23868
23899
|
if (idx === -1) {
|
|
@@ -28820,13 +28851,13 @@ ${errorDetail}`);
|
|
|
28820
28851
|
}
|
|
28821
28852
|
function setPlatformSpecificData(map2) {
|
|
28822
28853
|
map2.set("Node", process.version);
|
|
28823
|
-
map2.set("OS", `(${
|
|
28854
|
+
map2.set("OS", `(${os3.arch()}-${os3.type()}-${os3.release()})`);
|
|
28824
28855
|
}
|
|
28825
|
-
var
|
|
28856
|
+
var os3;
|
|
28826
28857
|
var init_userAgentPlatform = __esm({
|
|
28827
28858
|
"../../node_modules/.pnpm/@azure+core-rest-pipeline@1.9.2/node_modules/@azure/core-rest-pipeline/dist-esm/src/util/userAgentPlatform.js"() {
|
|
28828
28859
|
"use strict";
|
|
28829
|
-
|
|
28860
|
+
os3 = __toESM2(__require("os"));
|
|
28830
28861
|
}
|
|
28831
28862
|
});
|
|
28832
28863
|
var SDK_VERSION2;
|
|
@@ -38125,12 +38156,12 @@ ${errorDetail}`);
|
|
|
38125
38156
|
if (!type2 || typeof type2 !== "string") {
|
|
38126
38157
|
return false;
|
|
38127
38158
|
}
|
|
38128
|
-
var
|
|
38129
|
-
var mime =
|
|
38159
|
+
var match2 = EXTRACT_TYPE_REGEXP.exec(type2);
|
|
38160
|
+
var mime = match2 && db[match2[1].toLowerCase()];
|
|
38130
38161
|
if (mime && mime.charset) {
|
|
38131
38162
|
return mime.charset;
|
|
38132
38163
|
}
|
|
38133
|
-
if (
|
|
38164
|
+
if (match2 && TEXT_TYPE_REGEXP.test(match2[1])) {
|
|
38134
38165
|
return "UTF-8";
|
|
38135
38166
|
}
|
|
38136
38167
|
return false;
|
|
@@ -38154,8 +38185,8 @@ ${errorDetail}`);
|
|
|
38154
38185
|
if (!type2 || typeof type2 !== "string") {
|
|
38155
38186
|
return false;
|
|
38156
38187
|
}
|
|
38157
|
-
var
|
|
38158
|
-
var exts =
|
|
38188
|
+
var match2 = EXTRACT_TYPE_REGEXP.exec(type2);
|
|
38189
|
+
var exts = match2 && exports22.extensions[match2[1].toLowerCase()];
|
|
38159
38190
|
if (!exts || !exts.length) {
|
|
38160
38191
|
return false;
|
|
38161
38192
|
}
|
|
@@ -39038,8 +39069,8 @@ ${errorDetail}`);
|
|
|
39038
39069
|
throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
|
|
39039
39070
|
}
|
|
39040
39071
|
var result = [];
|
|
39041
|
-
$replace(string4, rePropName, function(
|
|
39042
|
-
result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number4 ||
|
|
39072
|
+
$replace(string4, rePropName, function(match2, number4, quote, subString) {
|
|
39073
|
+
result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number4 || match2;
|
|
39043
39074
|
});
|
|
39044
39075
|
return result;
|
|
39045
39076
|
};
|
|
@@ -39169,7 +39200,7 @@ ${errorDetail}`);
|
|
|
39169
39200
|
}
|
|
39170
39201
|
});
|
|
39171
39202
|
var require_populate = __commonJS2({
|
|
39172
|
-
"../../node_modules/.pnpm/form-data@4.0.
|
|
39203
|
+
"../../node_modules/.pnpm/form-data@4.0.5/node_modules/form-data/lib/populate.js"(exports22, module22) {
|
|
39173
39204
|
"use strict";
|
|
39174
39205
|
module22.exports = function(dst, src) {
|
|
39175
39206
|
Object.keys(src).forEach(function(prop) {
|
|
@@ -39180,7 +39211,7 @@ ${errorDetail}`);
|
|
|
39180
39211
|
}
|
|
39181
39212
|
});
|
|
39182
39213
|
var require_form_data = __commonJS2({
|
|
39183
|
-
"../../node_modules/.pnpm/form-data@4.0.
|
|
39214
|
+
"../../node_modules/.pnpm/form-data@4.0.5/node_modules/form-data/lib/form_data.js"(exports22, module22) {
|
|
39184
39215
|
"use strict";
|
|
39185
39216
|
var CombinedStream = require_combined_stream();
|
|
39186
39217
|
var util2 = __require("util");
|
|
@@ -39190,12 +39221,12 @@ ${errorDetail}`);
|
|
|
39190
39221
|
var parseUrl = __require("url").parse;
|
|
39191
39222
|
var fs3 = __require("fs");
|
|
39192
39223
|
var Stream = __require("stream").Stream;
|
|
39224
|
+
var crypto7 = __require("crypto");
|
|
39193
39225
|
var mime = require_mime_types();
|
|
39194
39226
|
var asynckit = require_asynckit();
|
|
39195
39227
|
var setToStringTag = require_es_set_tostringtag();
|
|
39228
|
+
var hasOwn = require_hasown();
|
|
39196
39229
|
var populate = require_populate();
|
|
39197
|
-
module22.exports = FormData2;
|
|
39198
|
-
util2.inherits(FormData2, CombinedStream);
|
|
39199
39230
|
function FormData2(options) {
|
|
39200
39231
|
if (!(this instanceof FormData2)) {
|
|
39201
39232
|
return new FormData2(options);
|
|
@@ -39209,16 +39240,17 @@ ${errorDetail}`);
|
|
|
39209
39240
|
this[option] = options[option];
|
|
39210
39241
|
}
|
|
39211
39242
|
}
|
|
39243
|
+
util2.inherits(FormData2, CombinedStream);
|
|
39212
39244
|
FormData2.LINE_BREAK = "\r\n";
|
|
39213
39245
|
FormData2.DEFAULT_CONTENT_TYPE = "application/octet-stream";
|
|
39214
39246
|
FormData2.prototype.append = function(field, value, options) {
|
|
39215
39247
|
options = options || {};
|
|
39216
|
-
if (typeof options
|
|
39248
|
+
if (typeof options === "string") {
|
|
39217
39249
|
options = { filename: options };
|
|
39218
39250
|
}
|
|
39219
39251
|
var append = CombinedStream.prototype.append.bind(this);
|
|
39220
|
-
if (typeof value
|
|
39221
|
-
value =
|
|
39252
|
+
if (typeof value === "number" || value == null) {
|
|
39253
|
+
value = String(value);
|
|
39222
39254
|
}
|
|
39223
39255
|
if (Array.isArray(value)) {
|
|
39224
39256
|
this._error(new Error("Arrays are not supported."));
|
|
@@ -39234,7 +39266,7 @@ ${errorDetail}`);
|
|
|
39234
39266
|
FormData2.prototype._trackLength = function(header, value, options) {
|
|
39235
39267
|
var valueLength = 0;
|
|
39236
39268
|
if (options.knownLength != null) {
|
|
39237
|
-
valueLength +=
|
|
39269
|
+
valueLength += Number(options.knownLength);
|
|
39238
39270
|
} else if (Buffer.isBuffer(value)) {
|
|
39239
39271
|
valueLength = value.length;
|
|
39240
39272
|
} else if (typeof value === "string") {
|
|
@@ -39242,7 +39274,7 @@ ${errorDetail}`);
|
|
|
39242
39274
|
}
|
|
39243
39275
|
this._valueLength += valueLength;
|
|
39244
39276
|
this._overheadLength += Buffer.byteLength(header) + FormData2.LINE_BREAK.length;
|
|
39245
|
-
if (!value || !value.path && !(value.readable &&
|
|
39277
|
+
if (!value || !value.path && !(value.readable && hasOwn(value, "httpVersion")) && !(value instanceof Stream)) {
|
|
39246
39278
|
return;
|
|
39247
39279
|
}
|
|
39248
39280
|
if (!options.knownLength) {
|
|
@@ -39250,26 +39282,25 @@ ${errorDetail}`);
|
|
|
39250
39282
|
}
|
|
39251
39283
|
};
|
|
39252
39284
|
FormData2.prototype._lengthRetriever = function(value, callback) {
|
|
39253
|
-
if (
|
|
39285
|
+
if (hasOwn(value, "fd")) {
|
|
39254
39286
|
if (value.end != void 0 && value.end != Infinity && value.start != void 0) {
|
|
39255
39287
|
callback(null, value.end + 1 - (value.start ? value.start : 0));
|
|
39256
39288
|
} else {
|
|
39257
39289
|
fs3.stat(value.path, function(err, stat) {
|
|
39258
|
-
var fileSize;
|
|
39259
39290
|
if (err) {
|
|
39260
39291
|
callback(err);
|
|
39261
39292
|
return;
|
|
39262
39293
|
}
|
|
39263
|
-
fileSize = stat.size - (value.start ? value.start : 0);
|
|
39294
|
+
var fileSize = stat.size - (value.start ? value.start : 0);
|
|
39264
39295
|
callback(null, fileSize);
|
|
39265
39296
|
});
|
|
39266
39297
|
}
|
|
39267
|
-
} else if (
|
|
39268
|
-
callback(null,
|
|
39269
|
-
} else if (
|
|
39298
|
+
} else if (hasOwn(value, "httpVersion")) {
|
|
39299
|
+
callback(null, Number(value.headers["content-length"]));
|
|
39300
|
+
} else if (hasOwn(value, "httpModule")) {
|
|
39270
39301
|
value.on("response", function(response) {
|
|
39271
39302
|
value.pause();
|
|
39272
|
-
callback(null,
|
|
39303
|
+
callback(null, Number(response.headers["content-length"]));
|
|
39273
39304
|
});
|
|
39274
39305
|
value.resume();
|
|
39275
39306
|
} else {
|
|
@@ -39277,7 +39308,7 @@ ${errorDetail}`);
|
|
|
39277
39308
|
}
|
|
39278
39309
|
};
|
|
39279
39310
|
FormData2.prototype._multiPartHeader = function(field, value, options) {
|
|
39280
|
-
if (typeof options.header
|
|
39311
|
+
if (typeof options.header === "string") {
|
|
39281
39312
|
return options.header;
|
|
39282
39313
|
}
|
|
39283
39314
|
var contentDisposition = this._getContentDisposition(value, options);
|
|
@@ -39289,12 +39320,12 @@ ${errorDetail}`);
|
|
|
39289
39320
|
// if no content type. allow it to be empty array
|
|
39290
39321
|
"Content-Type": [].concat(contentType || [])
|
|
39291
39322
|
};
|
|
39292
|
-
if (typeof options.header
|
|
39323
|
+
if (typeof options.header === "object") {
|
|
39293
39324
|
populate(headers, options.header);
|
|
39294
39325
|
}
|
|
39295
39326
|
var header;
|
|
39296
39327
|
for (var prop in headers) {
|
|
39297
|
-
if (
|
|
39328
|
+
if (hasOwn(headers, prop)) {
|
|
39298
39329
|
header = headers[prop];
|
|
39299
39330
|
if (header == null) {
|
|
39300
39331
|
continue;
|
|
@@ -39310,34 +39341,33 @@ ${errorDetail}`);
|
|
|
39310
39341
|
return "--" + this.getBoundary() + FormData2.LINE_BREAK + contents + FormData2.LINE_BREAK;
|
|
39311
39342
|
};
|
|
39312
39343
|
FormData2.prototype._getContentDisposition = function(value, options) {
|
|
39313
|
-
var filename
|
|
39344
|
+
var filename;
|
|
39314
39345
|
if (typeof options.filepath === "string") {
|
|
39315
39346
|
filename = path3.normalize(options.filepath).replace(/\\/g, "/");
|
|
39316
|
-
} else if (options.filename || value.name || value.path) {
|
|
39317
|
-
filename = path3.basename(options.filename || value.name || value.path);
|
|
39318
|
-
} else if (value.readable &&
|
|
39347
|
+
} else if (options.filename || value && (value.name || value.path)) {
|
|
39348
|
+
filename = path3.basename(options.filename || value && (value.name || value.path));
|
|
39349
|
+
} else if (value && value.readable && hasOwn(value, "httpVersion")) {
|
|
39319
39350
|
filename = path3.basename(value.client._httpMessage.path || "");
|
|
39320
39351
|
}
|
|
39321
39352
|
if (filename) {
|
|
39322
|
-
|
|
39353
|
+
return 'filename="' + filename + '"';
|
|
39323
39354
|
}
|
|
39324
|
-
return contentDisposition;
|
|
39325
39355
|
};
|
|
39326
39356
|
FormData2.prototype._getContentType = function(value, options) {
|
|
39327
39357
|
var contentType = options.contentType;
|
|
39328
|
-
if (!contentType && value.name) {
|
|
39358
|
+
if (!contentType && value && value.name) {
|
|
39329
39359
|
contentType = mime.lookup(value.name);
|
|
39330
39360
|
}
|
|
39331
|
-
if (!contentType && value.path) {
|
|
39361
|
+
if (!contentType && value && value.path) {
|
|
39332
39362
|
contentType = mime.lookup(value.path);
|
|
39333
39363
|
}
|
|
39334
|
-
if (!contentType && value.readable &&
|
|
39364
|
+
if (!contentType && value && value.readable && hasOwn(value, "httpVersion")) {
|
|
39335
39365
|
contentType = value.headers["content-type"];
|
|
39336
39366
|
}
|
|
39337
39367
|
if (!contentType && (options.filepath || options.filename)) {
|
|
39338
39368
|
contentType = mime.lookup(options.filepath || options.filename);
|
|
39339
39369
|
}
|
|
39340
|
-
if (!contentType && typeof value
|
|
39370
|
+
if (!contentType && value && typeof value === "object") {
|
|
39341
39371
|
contentType = FormData2.DEFAULT_CONTENT_TYPE;
|
|
39342
39372
|
}
|
|
39343
39373
|
return contentType;
|
|
@@ -39361,13 +39391,16 @@ ${errorDetail}`);
|
|
|
39361
39391
|
"content-type": "multipart/form-data; boundary=" + this.getBoundary()
|
|
39362
39392
|
};
|
|
39363
39393
|
for (header in userHeaders) {
|
|
39364
|
-
if (
|
|
39394
|
+
if (hasOwn(userHeaders, header)) {
|
|
39365
39395
|
formHeaders[header.toLowerCase()] = userHeaders[header];
|
|
39366
39396
|
}
|
|
39367
39397
|
}
|
|
39368
39398
|
return formHeaders;
|
|
39369
39399
|
};
|
|
39370
39400
|
FormData2.prototype.setBoundary = function(boundary) {
|
|
39401
|
+
if (typeof boundary !== "string") {
|
|
39402
|
+
throw new TypeError("FormData boundary must be a string");
|
|
39403
|
+
}
|
|
39371
39404
|
this._boundary = boundary;
|
|
39372
39405
|
};
|
|
39373
39406
|
FormData2.prototype.getBoundary = function() {
|
|
@@ -39394,11 +39427,7 @@ ${errorDetail}`);
|
|
|
39394
39427
|
return Buffer.concat([dataBuffer, Buffer.from(this._lastBoundary())]);
|
|
39395
39428
|
};
|
|
39396
39429
|
FormData2.prototype._generateBoundary = function() {
|
|
39397
|
-
|
|
39398
|
-
for (var i2 = 0; i2 < 24; i2++) {
|
|
39399
|
-
boundary += Math.floor(Math.random() * 10).toString(16);
|
|
39400
|
-
}
|
|
39401
|
-
this._boundary = boundary;
|
|
39430
|
+
this._boundary = "--------------------------" + crypto7.randomBytes(12).toString("hex");
|
|
39402
39431
|
};
|
|
39403
39432
|
FormData2.prototype.getLengthSync = function() {
|
|
39404
39433
|
var knownLength = this._overheadLength + this._valueLength;
|
|
@@ -39438,23 +39467,25 @@ ${errorDetail}`);
|
|
|
39438
39467
|
});
|
|
39439
39468
|
};
|
|
39440
39469
|
FormData2.prototype.submit = function(params, cb) {
|
|
39441
|
-
var request3
|
|
39442
|
-
|
|
39470
|
+
var request3;
|
|
39471
|
+
var options;
|
|
39472
|
+
var defaults2 = { method: "post" };
|
|
39473
|
+
if (typeof params === "string") {
|
|
39443
39474
|
params = parseUrl(params);
|
|
39444
39475
|
options = populate({
|
|
39445
39476
|
port: params.port,
|
|
39446
39477
|
path: params.pathname,
|
|
39447
39478
|
host: params.hostname,
|
|
39448
39479
|
protocol: params.protocol
|
|
39449
|
-
},
|
|
39480
|
+
}, defaults2);
|
|
39450
39481
|
} else {
|
|
39451
|
-
options = populate(params,
|
|
39482
|
+
options = populate(params, defaults2);
|
|
39452
39483
|
if (!options.port) {
|
|
39453
|
-
options.port = options.protocol
|
|
39484
|
+
options.port = options.protocol === "https:" ? 443 : 80;
|
|
39454
39485
|
}
|
|
39455
39486
|
}
|
|
39456
39487
|
options.headers = this.getHeaders(params.headers);
|
|
39457
|
-
if (options.protocol
|
|
39488
|
+
if (options.protocol === "https:") {
|
|
39458
39489
|
request3 = https4.request(options);
|
|
39459
39490
|
} else {
|
|
39460
39491
|
request3 = http4.request(options);
|
|
@@ -39492,7 +39523,8 @@ ${errorDetail}`);
|
|
|
39492
39523
|
FormData2.prototype.toString = function() {
|
|
39493
39524
|
return "[object FormData]";
|
|
39494
39525
|
};
|
|
39495
|
-
setToStringTag(FormData2, "FormData");
|
|
39526
|
+
setToStringTag(FormData2.prototype, "FormData");
|
|
39527
|
+
module22.exports = FormData2;
|
|
39496
39528
|
}
|
|
39497
39529
|
});
|
|
39498
39530
|
function formDataPolicy() {
|
|
@@ -39569,7 +39601,7 @@ ${errorDetail}`);
|
|
|
39569
39601
|
var require_common2 = __commonJS2({
|
|
39570
39602
|
"../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/common.js"(exports22, module22) {
|
|
39571
39603
|
"use strict";
|
|
39572
|
-
function setup(
|
|
39604
|
+
function setup(env2) {
|
|
39573
39605
|
createDebug.debug = createDebug;
|
|
39574
39606
|
createDebug.default = createDebug;
|
|
39575
39607
|
createDebug.coerce = coerce;
|
|
@@ -39578,8 +39610,8 @@ ${errorDetail}`);
|
|
|
39578
39610
|
createDebug.enabled = enabled2;
|
|
39579
39611
|
createDebug.humanize = require_ms();
|
|
39580
39612
|
createDebug.destroy = destroy2;
|
|
39581
|
-
Object.keys(
|
|
39582
|
-
createDebug[key] =
|
|
39613
|
+
Object.keys(env2).forEach((key) => {
|
|
39614
|
+
createDebug[key] = env2[key];
|
|
39583
39615
|
});
|
|
39584
39616
|
createDebug.names = [];
|
|
39585
39617
|
createDebug.skips = [];
|
|
@@ -39614,19 +39646,19 @@ ${errorDetail}`);
|
|
|
39614
39646
|
args.unshift("%O");
|
|
39615
39647
|
}
|
|
39616
39648
|
let index = 0;
|
|
39617
|
-
args[0] = args[0].replace(/%([a-zA-Z%])/g, (
|
|
39618
|
-
if (
|
|
39649
|
+
args[0] = args[0].replace(/%([a-zA-Z%])/g, (match2, format) => {
|
|
39650
|
+
if (match2 === "%%") {
|
|
39619
39651
|
return "%";
|
|
39620
39652
|
}
|
|
39621
39653
|
index++;
|
|
39622
39654
|
const formatter = createDebug.formatters[format];
|
|
39623
39655
|
if (typeof formatter === "function") {
|
|
39624
39656
|
const val = args[index];
|
|
39625
|
-
|
|
39657
|
+
match2 = formatter.call(self2, val);
|
|
39626
39658
|
args.splice(index, 1);
|
|
39627
39659
|
index--;
|
|
39628
39660
|
}
|
|
39629
|
-
return
|
|
39661
|
+
return match2;
|
|
39630
39662
|
});
|
|
39631
39663
|
createDebug.formatArgs.call(self2, args);
|
|
39632
39664
|
const logFn = self2.log || createDebug.log;
|
|
@@ -39860,12 +39892,12 @@ ${errorDetail}`);
|
|
|
39860
39892
|
args.splice(1, 0, c2, "color: inherit");
|
|
39861
39893
|
let index = 0;
|
|
39862
39894
|
let lastC = 0;
|
|
39863
|
-
args[0].replace(/%[a-zA-Z%]/g, (
|
|
39864
|
-
if (
|
|
39895
|
+
args[0].replace(/%[a-zA-Z%]/g, (match2) => {
|
|
39896
|
+
if (match2 === "%%") {
|
|
39865
39897
|
return;
|
|
39866
39898
|
}
|
|
39867
39899
|
index++;
|
|
39868
|
-
if (
|
|
39900
|
+
if (match2 === "%c") {
|
|
39869
39901
|
lastC = index;
|
|
39870
39902
|
}
|
|
39871
39903
|
});
|
|
@@ -39914,7 +39946,7 @@ ${errorDetail}`);
|
|
|
39914
39946
|
var require_node2 = __commonJS2({
|
|
39915
39947
|
"../../node_modules/.pnpm/debug@4.4.1/node_modules/debug/src/node.js"(exports22, module22) {
|
|
39916
39948
|
"use strict";
|
|
39917
|
-
var
|
|
39949
|
+
var tty2 = __require("tty");
|
|
39918
39950
|
var util2 = __require("util");
|
|
39919
39951
|
exports22.init = init3;
|
|
39920
39952
|
exports22.log = log4;
|
|
@@ -39929,8 +39961,8 @@ ${errorDetail}`);
|
|
|
39929
39961
|
);
|
|
39930
39962
|
exports22.colors = [6, 2, 3, 4, 5, 1];
|
|
39931
39963
|
try {
|
|
39932
|
-
const
|
|
39933
|
-
if (
|
|
39964
|
+
const supportsColor2 = (init_supports_color(), __toCommonJS(supports_color_exports));
|
|
39965
|
+
if (supportsColor2 && (supportsColor2.stderr || supportsColor2).level >= 2) {
|
|
39934
39966
|
exports22.colors = [
|
|
39935
39967
|
20,
|
|
39936
39968
|
21,
|
|
@@ -40032,7 +40064,7 @@ ${errorDetail}`);
|
|
|
40032
40064
|
return obj;
|
|
40033
40065
|
}, {});
|
|
40034
40066
|
function useColors() {
|
|
40035
|
-
return "colors" in exports22.inspectOpts ? Boolean(exports22.inspectOpts.colors) :
|
|
40067
|
+
return "colors" in exports22.inspectOpts ? Boolean(exports22.inspectOpts.colors) : tty2.isatty(process.stderr.fd);
|
|
40036
40068
|
}
|
|
40037
40069
|
function formatArgs(args) {
|
|
40038
40070
|
const { namespace: name6, useColors: useColors2 } = this;
|
|
@@ -40538,7 +40570,7 @@ ${errorDetail}`);
|
|
|
40538
40570
|
"../../node_modules/.pnpm/@tootallnate+once@2.0.0/node_modules/@tootallnate/once/dist/index.js"(exports22) {
|
|
40539
40571
|
"use strict";
|
|
40540
40572
|
Object.defineProperty(exports22, "__esModule", { value: true });
|
|
40541
|
-
function
|
|
40573
|
+
function once2(emitter, name6, { signal } = {}) {
|
|
40542
40574
|
return new Promise((resolve, reject) => {
|
|
40543
40575
|
function cleanup() {
|
|
40544
40576
|
signal === null || signal === void 0 ? void 0 : signal.removeEventListener("abort", cleanup);
|
|
@@ -40558,7 +40590,7 @@ ${errorDetail}`);
|
|
|
40558
40590
|
emitter.on("error", onError);
|
|
40559
40591
|
});
|
|
40560
40592
|
}
|
|
40561
|
-
exports22.default =
|
|
40593
|
+
exports22.default = once2;
|
|
40562
40594
|
}
|
|
40563
40595
|
});
|
|
40564
40596
|
var require_agent2 = __commonJS2({
|
|
@@ -44627,15 +44659,15 @@ ${errorDetail}`);
|
|
|
44627
44659
|
*/
|
|
44628
44660
|
getUrlComponents() {
|
|
44629
44661
|
const regEx = RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?");
|
|
44630
|
-
const
|
|
44631
|
-
if (!
|
|
44662
|
+
const match2 = this.urlString.match(regEx);
|
|
44663
|
+
if (!match2) {
|
|
44632
44664
|
throw createClientConfigurationError(urlParseError);
|
|
44633
44665
|
}
|
|
44634
44666
|
const urlComponents = {
|
|
44635
|
-
Protocol:
|
|
44636
|
-
HostNameAndPort:
|
|
44637
|
-
AbsolutePath:
|
|
44638
|
-
QueryString:
|
|
44667
|
+
Protocol: match2[1],
|
|
44668
|
+
HostNameAndPort: match2[4],
|
|
44669
|
+
AbsolutePath: match2[5],
|
|
44670
|
+
QueryString: match2[7]
|
|
44639
44671
|
};
|
|
44640
44672
|
let pathSegments = urlComponents.AbsolutePath.split("/");
|
|
44641
44673
|
pathSegments = pathSegments.filter((val) => val && val.length > 0);
|
|
@@ -44647,11 +44679,11 @@ ${errorDetail}`);
|
|
|
44647
44679
|
}
|
|
44648
44680
|
static getDomainFromUrl(url2) {
|
|
44649
44681
|
const regEx = RegExp("^([^:/?#]+://)?([^/?#]*)");
|
|
44650
|
-
const
|
|
44651
|
-
if (!
|
|
44682
|
+
const match2 = url2.match(regEx);
|
|
44683
|
+
if (!match2) {
|
|
44652
44684
|
throw createClientConfigurationError(urlParseError);
|
|
44653
44685
|
}
|
|
44654
|
-
return
|
|
44686
|
+
return match2[2];
|
|
44655
44687
|
}
|
|
44656
44688
|
static getAbsoluteUrl(relativeUrl, baseUrl) {
|
|
44657
44689
|
if (relativeUrl[0] === Constants.FORWARD_SLASH) {
|
|
@@ -46248,7 +46280,7 @@ ${errorDetail}`);
|
|
|
46248
46280
|
this.performanceClient?.addQueueMeasurement(PerformanceEvents.AuthorityGetCloudDiscoveryMetadataFromNetwork, this.correlationId);
|
|
46249
46281
|
const instanceDiscoveryEndpoint = `${Constants.AAD_INSTANCE_DISCOVERY_ENDPT}${this.canonicalAuthority}oauth2/v2.0/authorize`;
|
|
46250
46282
|
const options = {};
|
|
46251
|
-
let
|
|
46283
|
+
let match2 = null;
|
|
46252
46284
|
try {
|
|
46253
46285
|
const response = await this.networkInterface.sendGetRequestAsync(instanceDiscoveryEndpoint, options);
|
|
46254
46286
|
let typedResponseBody;
|
|
@@ -46273,7 +46305,7 @@ ${errorDetail}`);
|
|
|
46273
46305
|
return null;
|
|
46274
46306
|
}
|
|
46275
46307
|
this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request.");
|
|
46276
|
-
|
|
46308
|
+
match2 = getCloudDiscoveryMetadataFromNetworkResponse(metadata, this.hostnameAndPort);
|
|
46277
46309
|
} catch (error44) {
|
|
46278
46310
|
if (error44 instanceof AuthError) {
|
|
46279
46311
|
this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
|
|
@@ -46287,12 +46319,12 @@ Error Description: ${typedError.message}`);
|
|
|
46287
46319
|
}
|
|
46288
46320
|
return null;
|
|
46289
46321
|
}
|
|
46290
|
-
if (!
|
|
46322
|
+
if (!match2) {
|
|
46291
46323
|
this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request.");
|
|
46292
46324
|
this.logger.verbose("Creating custom Authority for custom domain scenario.");
|
|
46293
|
-
|
|
46325
|
+
match2 = _Authority.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);
|
|
46294
46326
|
}
|
|
46295
|
-
return
|
|
46327
|
+
return match2;
|
|
46296
46328
|
}
|
|
46297
46329
|
/**
|
|
46298
46330
|
* Helper function to determine if this host is included in the knownAuthorities config option
|
|
@@ -47210,11 +47242,11 @@ Error Description: ${typedError.message}`);
|
|
|
47210
47242
|
account.clientInfo = accountDetails.clientInfo;
|
|
47211
47243
|
account.homeAccountId = accountDetails.homeAccountId;
|
|
47212
47244
|
account.nativeAccountId = accountDetails.nativeAccountId;
|
|
47213
|
-
const
|
|
47214
|
-
if (!
|
|
47245
|
+
const env2 = accountDetails.environment || authority && authority.getPreferredCache();
|
|
47246
|
+
if (!env2) {
|
|
47215
47247
|
throw createClientAuthError(invalidCacheEnvironment);
|
|
47216
47248
|
}
|
|
47217
|
-
account.environment =
|
|
47249
|
+
account.environment = env2;
|
|
47218
47250
|
account.realm = clientInfo?.utid || getTenantIdFromIdTokenClaims(accountDetails.idTokenClaims) || "";
|
|
47219
47251
|
account.localAccountId = clientInfo?.uid || accountDetails.idTokenClaims.oid || accountDetails.idTokenClaims.sub || "";
|
|
47220
47252
|
const preferredUsername = accountDetails.idTokenClaims.preferred_username || accountDetails.idTokenClaims.upn;
|
|
@@ -49725,15 +49757,15 @@ ${serverError}`);
|
|
|
49725
49757
|
* @param authority
|
|
49726
49758
|
*/
|
|
49727
49759
|
generateCacheRecord(serverTokenResponse, authority, reqTimestamp, request3, idTokenClaims, userAssertionHash, authCodePayload) {
|
|
49728
|
-
const
|
|
49729
|
-
if (!
|
|
49760
|
+
const env2 = authority.getPreferredCache();
|
|
49761
|
+
if (!env2) {
|
|
49730
49762
|
throw createClientAuthError(invalidCacheEnvironment);
|
|
49731
49763
|
}
|
|
49732
49764
|
const claimsTenantId = getTenantIdFromIdTokenClaims(idTokenClaims);
|
|
49733
49765
|
let cachedIdToken;
|
|
49734
49766
|
let cachedAccount;
|
|
49735
49767
|
if (serverTokenResponse.id_token && !!idTokenClaims) {
|
|
49736
|
-
cachedIdToken = createIdTokenEntity(this.homeAccountIdentifier,
|
|
49768
|
+
cachedIdToken = createIdTokenEntity(this.homeAccountIdentifier, env2, serverTokenResponse.id_token, this.clientId, claimsTenantId || "");
|
|
49737
49769
|
cachedAccount = buildAccountToCache(
|
|
49738
49770
|
this.cacheStorage,
|
|
49739
49771
|
authority,
|
|
@@ -49741,7 +49773,7 @@ ${serverError}`);
|
|
|
49741
49773
|
idTokenClaims,
|
|
49742
49774
|
this.cryptoObj.base64Decode,
|
|
49743
49775
|
serverTokenResponse.client_info,
|
|
49744
|
-
|
|
49776
|
+
env2,
|
|
49745
49777
|
claimsTenantId,
|
|
49746
49778
|
authCodePayload,
|
|
49747
49779
|
void 0,
|
|
@@ -49758,7 +49790,7 @@ ${serverError}`);
|
|
|
49758
49790
|
const tokenExpirationSeconds = reqTimestamp + expiresIn;
|
|
49759
49791
|
const extendedTokenExpirationSeconds = tokenExpirationSeconds + extExpiresIn;
|
|
49760
49792
|
const refreshOnSeconds = refreshIn && refreshIn > 0 ? reqTimestamp + refreshIn : void 0;
|
|
49761
|
-
cachedAccessToken = createAccessTokenEntity(this.homeAccountIdentifier,
|
|
49793
|
+
cachedAccessToken = createAccessTokenEntity(this.homeAccountIdentifier, env2, serverTokenResponse.access_token, this.clientId, claimsTenantId || authority.tenant || "", responseScopes.printScopes(), tokenExpirationSeconds, extendedTokenExpirationSeconds, this.cryptoObj.base64Decode, refreshOnSeconds, serverTokenResponse.token_type, userAssertionHash, serverTokenResponse.key_id, request3.claims, request3.requestedClaimsHash);
|
|
49762
49794
|
}
|
|
49763
49795
|
let cachedRefreshToken = null;
|
|
49764
49796
|
if (serverTokenResponse.refresh_token) {
|
|
@@ -49767,13 +49799,13 @@ ${serverError}`);
|
|
|
49767
49799
|
const rtExpiresIn = typeof serverTokenResponse.refresh_token_expires_in === "string" ? parseInt(serverTokenResponse.refresh_token_expires_in, 10) : serverTokenResponse.refresh_token_expires_in;
|
|
49768
49800
|
rtExpiresOn = reqTimestamp + rtExpiresIn;
|
|
49769
49801
|
}
|
|
49770
|
-
cachedRefreshToken = createRefreshTokenEntity(this.homeAccountIdentifier,
|
|
49802
|
+
cachedRefreshToken = createRefreshTokenEntity(this.homeAccountIdentifier, env2, serverTokenResponse.refresh_token, this.clientId, serverTokenResponse.foci, userAssertionHash, rtExpiresOn);
|
|
49771
49803
|
}
|
|
49772
49804
|
let cachedAppMetadata = null;
|
|
49773
49805
|
if (serverTokenResponse.foci) {
|
|
49774
49806
|
cachedAppMetadata = {
|
|
49775
49807
|
clientId: this.clientId,
|
|
49776
|
-
environment:
|
|
49808
|
+
environment: env2,
|
|
49777
49809
|
familyId: serverTokenResponse.foci
|
|
49778
49810
|
};
|
|
49779
49811
|
}
|
|
@@ -49799,11 +49831,11 @@ ${serverError}`);
|
|
|
49799
49831
|
if (cacheRecord.accessToken) {
|
|
49800
49832
|
if (cacheRecord.accessToken.tokenType === AuthenticationScheme.POP && !request3.popKid) {
|
|
49801
49833
|
const popTokenGenerator = new PopTokenGenerator(cryptoObj);
|
|
49802
|
-
const { secret, keyId } = cacheRecord.accessToken;
|
|
49834
|
+
const { secret: secret2, keyId } = cacheRecord.accessToken;
|
|
49803
49835
|
if (!keyId) {
|
|
49804
49836
|
throw createClientAuthError(keyIdMissing);
|
|
49805
49837
|
}
|
|
49806
|
-
accessToken = await popTokenGenerator.signPopToken(
|
|
49838
|
+
accessToken = await popTokenGenerator.signPopToken(secret2, keyId, request3);
|
|
49807
49839
|
} else {
|
|
49808
49840
|
accessToken = cacheRecord.accessToken.secret;
|
|
49809
49841
|
}
|
|
@@ -52885,17 +52917,17 @@ Headers: ${JSON.stringify(headers)}`
|
|
|
52885
52917
|
return thing;
|
|
52886
52918
|
}
|
|
52887
52919
|
function createHmacSigner(bits) {
|
|
52888
|
-
return function sign2(thing,
|
|
52889
|
-
checkIsSecretKey(
|
|
52920
|
+
return function sign2(thing, secret2) {
|
|
52921
|
+
checkIsSecretKey(secret2);
|
|
52890
52922
|
thing = normalizeInput(thing);
|
|
52891
|
-
var hmac = crypto7.createHmac("sha" + bits,
|
|
52923
|
+
var hmac = crypto7.createHmac("sha" + bits, secret2);
|
|
52892
52924
|
var sig = (hmac.update(thing), hmac.digest("base64"));
|
|
52893
52925
|
return fromBase64(sig);
|
|
52894
52926
|
};
|
|
52895
52927
|
}
|
|
52896
52928
|
function createHmacVerifier(bits) {
|
|
52897
|
-
return function verify(thing, signature,
|
|
52898
|
-
var computedSig = createHmacSigner(bits)(thing,
|
|
52929
|
+
return function verify(thing, signature, secret2) {
|
|
52930
|
+
var computedSig = createHmacSigner(bits)(thing, secret2);
|
|
52899
52931
|
return bufferEqual(Buffer22.from(signature), Buffer22.from(computedSig));
|
|
52900
52932
|
};
|
|
52901
52933
|
}
|
|
@@ -52986,11 +53018,11 @@ Headers: ${JSON.stringify(headers)}`
|
|
|
52986
53018
|
es: createECDSAVerifer,
|
|
52987
53019
|
none: createNoneVerifier
|
|
52988
53020
|
};
|
|
52989
|
-
var
|
|
52990
|
-
if (!
|
|
53021
|
+
var match2 = algorithm.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/i);
|
|
53022
|
+
if (!match2)
|
|
52991
53023
|
throw typeError(MSG_INVALID_ALGORITHM, algorithm);
|
|
52992
|
-
var algo = (
|
|
52993
|
-
var bits =
|
|
53024
|
+
var algo = (match2[1] || match2[3]).toLowerCase();
|
|
53025
|
+
var bits = match2[2];
|
|
52994
53026
|
return {
|
|
52995
53027
|
sign: signerFactories[algo](bits),
|
|
52996
53028
|
verify: verifierFactories[algo](bits)
|
|
@@ -53040,8 +53072,8 @@ Headers: ${JSON.stringify(headers)}`
|
|
|
53040
53072
|
return util2.format("%s.%s", securedInput, signature);
|
|
53041
53073
|
}
|
|
53042
53074
|
function SignStream(opts) {
|
|
53043
|
-
var
|
|
53044
|
-
var secretStream = new DataStream(
|
|
53075
|
+
var secret2 = opts.secret || opts.privateKey || opts.key;
|
|
53076
|
+
var secretStream = new DataStream(secret2);
|
|
53045
53077
|
this.readable = true;
|
|
53046
53078
|
this.header = opts.header;
|
|
53047
53079
|
this.encoding = opts.encoding;
|
|
@@ -53627,8 +53659,8 @@ Headers: ${JSON.stringify(headers)}`
|
|
|
53627
53659
|
throw new Error("invalid increment argument: identifier is empty");
|
|
53628
53660
|
}
|
|
53629
53661
|
if (identifier) {
|
|
53630
|
-
const
|
|
53631
|
-
if (!
|
|
53662
|
+
const match2 = `-${identifier}`.match(this.options.loose ? re3[t2.PRERELEASELOOSE] : re3[t2.PRERELEASE]);
|
|
53663
|
+
if (!match2 || match2[1] !== identifier) {
|
|
53632
53664
|
throw new Error(`invalid identifier: ${identifier}`);
|
|
53633
53665
|
}
|
|
53634
53666
|
}
|
|
@@ -54038,28 +54070,28 @@ Headers: ${JSON.stringify(headers)}`
|
|
|
54038
54070
|
return null;
|
|
54039
54071
|
}
|
|
54040
54072
|
options = options || {};
|
|
54041
|
-
let
|
|
54073
|
+
let match2 = null;
|
|
54042
54074
|
if (!options.rtl) {
|
|
54043
|
-
|
|
54075
|
+
match2 = version5.match(options.includePrerelease ? re3[t2.COERCEFULL] : re3[t2.COERCE]);
|
|
54044
54076
|
} else {
|
|
54045
54077
|
const coerceRtlRegex = options.includePrerelease ? re3[t2.COERCERTLFULL] : re3[t2.COERCERTL];
|
|
54046
54078
|
let next;
|
|
54047
|
-
while ((next = coerceRtlRegex.exec(version5)) && (!
|
|
54048
|
-
if (!
|
|
54049
|
-
|
|
54079
|
+
while ((next = coerceRtlRegex.exec(version5)) && (!match2 || match2.index + match2[0].length !== version5.length)) {
|
|
54080
|
+
if (!match2 || next.index + next[0].length !== match2.index + match2[0].length) {
|
|
54081
|
+
match2 = next;
|
|
54050
54082
|
}
|
|
54051
54083
|
coerceRtlRegex.lastIndex = next.index + next[1].length + next[2].length;
|
|
54052
54084
|
}
|
|
54053
54085
|
coerceRtlRegex.lastIndex = -1;
|
|
54054
54086
|
}
|
|
54055
|
-
if (
|
|
54087
|
+
if (match2 === null) {
|
|
54056
54088
|
return null;
|
|
54057
54089
|
}
|
|
54058
|
-
const major2 =
|
|
54059
|
-
const minor =
|
|
54060
|
-
const patch =
|
|
54061
|
-
const prerelease = options.includePrerelease &&
|
|
54062
|
-
const build = options.includePrerelease &&
|
|
54090
|
+
const major2 = match2[2];
|
|
54091
|
+
const minor = match2[3] || "0";
|
|
54092
|
+
const patch = match2[4] || "0";
|
|
54093
|
+
const prerelease = options.includePrerelease && match2[5] ? `-${match2[5]}` : "";
|
|
54094
|
+
const build = options.includePrerelease && match2[6] ? `+${match2[6]}` : "";
|
|
54063
54095
|
return parse5(`${major2}.${minor}.${patch}${prerelease}${build}`, options);
|
|
54064
54096
|
};
|
|
54065
54097
|
module22.exports = coerce;
|
|
@@ -55364,12 +55396,12 @@ Headers: ${JSON.stringify(headers)}`
|
|
|
55364
55396
|
if (options.audience) {
|
|
55365
55397
|
const audiences = Array.isArray(options.audience) ? options.audience : [options.audience];
|
|
55366
55398
|
const target = Array.isArray(payload.aud) ? payload.aud : [payload.aud];
|
|
55367
|
-
const
|
|
55399
|
+
const match2 = target.some(function(targetAudience) {
|
|
55368
55400
|
return audiences.some(function(audience) {
|
|
55369
55401
|
return audience instanceof RegExp ? audience.test(targetAudience) : audience === targetAudience;
|
|
55370
55402
|
});
|
|
55371
55403
|
});
|
|
55372
|
-
if (!
|
|
55404
|
+
if (!match2) {
|
|
55373
55405
|
return done(new JsonWebTokenError("jwt audience invalid. expected: " + audiences.join(" or ")));
|
|
55374
55406
|
}
|
|
55375
55407
|
}
|
|
@@ -55785,7 +55817,7 @@ Headers: ${JSON.stringify(headers)}`
|
|
|
55785
55817
|
return result;
|
|
55786
55818
|
};
|
|
55787
55819
|
}
|
|
55788
|
-
function
|
|
55820
|
+
function once2(func) {
|
|
55789
55821
|
return before(2, func);
|
|
55790
55822
|
}
|
|
55791
55823
|
function isObject3(value) {
|
|
@@ -55831,7 +55863,7 @@ Headers: ${JSON.stringify(headers)}`
|
|
|
55831
55863
|
var isBinary2 = reIsBinary.test(value);
|
|
55832
55864
|
return isBinary2 || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary2 ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
|
|
55833
55865
|
}
|
|
55834
|
-
module22.exports =
|
|
55866
|
+
module22.exports = once2;
|
|
55835
55867
|
}
|
|
55836
55868
|
});
|
|
55837
55869
|
var require_sign2 = __commonJS2({
|
|
@@ -55847,7 +55879,7 @@ Headers: ${JSON.stringify(headers)}`
|
|
|
55847
55879
|
var isNumber = require_lodash4();
|
|
55848
55880
|
var isPlainObject2 = require_lodash5();
|
|
55849
55881
|
var isString = require_lodash6();
|
|
55850
|
-
var
|
|
55882
|
+
var once2 = require_lodash7();
|
|
55851
55883
|
var { KeyObject, createSecretKey, createPrivateKey: createPrivateKey3 } = __require("crypto");
|
|
55852
55884
|
var SUPPORTED_ALGS = ["RS256", "RS384", "RS512", "ES256", "ES384", "ES512", "HS256", "HS384", "HS512", "none"];
|
|
55853
55885
|
if (PS_SUPPORTED) {
|
|
@@ -56036,7 +56068,7 @@ Headers: ${JSON.stringify(headers)}`
|
|
|
56036
56068
|
});
|
|
56037
56069
|
const encoding = options.encoding || "utf8";
|
|
56038
56070
|
if (typeof callback === "function") {
|
|
56039
|
-
callback = callback &&
|
|
56071
|
+
callback = callback && once2(callback);
|
|
56040
56072
|
jws.createSign({
|
|
56041
56073
|
header,
|
|
56042
56074
|
privateKey: secretOrPrivateKey,
|
|
@@ -57923,13 +57955,13 @@ Headers: ${JSON.stringify(headers)}`
|
|
|
57923
57955
|
if (secretFileSize > AZURE_ARC_SECRET_FILE_MAX_SIZE_BYTES) {
|
|
57924
57956
|
throw createManagedIdentityError(invalidSecret);
|
|
57925
57957
|
}
|
|
57926
|
-
let
|
|
57958
|
+
let secret2;
|
|
57927
57959
|
try {
|
|
57928
|
-
|
|
57960
|
+
secret2 = (0, import_fs2.readFileSync)(secretFilePath, "utf-8");
|
|
57929
57961
|
} catch (e2) {
|
|
57930
57962
|
throw createManagedIdentityError(unableToReadSecretFile);
|
|
57931
57963
|
}
|
|
57932
|
-
const authHeaderValue = `Basic ${
|
|
57964
|
+
const authHeaderValue = `Basic ${secret2}`;
|
|
57933
57965
|
this.logger.info(`[Managed Identity] Adding authorization header to the request.`);
|
|
57934
57966
|
networkRequest.headers[AUTHORIZATION_HEADER_NAME] = authHeaderValue;
|
|
57935
57967
|
try {
|
|
@@ -58359,8 +58391,8 @@ Headers: ${JSON.stringify(headers)}`
|
|
|
58359
58391
|
logger5.info(`${msiName}: Unavailable. Multiple scopes are not supported.`);
|
|
58360
58392
|
return false;
|
|
58361
58393
|
}
|
|
58362
|
-
const
|
|
58363
|
-
const result = Boolean(
|
|
58394
|
+
const env2 = process.env;
|
|
58395
|
+
const result = Boolean(env2.MSI_ENDPOINT && env2.MSI_SECRET);
|
|
58364
58396
|
if (!result) {
|
|
58365
58397
|
logger5.info(`${msiName}: Unavailable. The environment variables needed are: MSI_ENDPOINT and MSI_SECRET.`);
|
|
58366
58398
|
}
|
|
@@ -58432,8 +58464,8 @@ Headers: ${JSON.stringify(headers)}`
|
|
|
58432
58464
|
logger6.info(`${msiName2}: Unavailable. Multiple scopes are not supported.`);
|
|
58433
58465
|
return false;
|
|
58434
58466
|
}
|
|
58435
|
-
const
|
|
58436
|
-
const result = Boolean(
|
|
58467
|
+
const env2 = process.env;
|
|
58468
|
+
const result = Boolean(env2.IDENTITY_ENDPOINT && env2.IDENTITY_HEADER);
|
|
58437
58469
|
if (!result) {
|
|
58438
58470
|
logger6.info(`${msiName2}: Unavailable. The environment variables needed are: IDENTITY_ENDPOINT and IDENTITY_HEADER.`);
|
|
58439
58471
|
}
|
|
@@ -58706,8 +58738,8 @@ Headers: ${JSON.stringify(headers)}`
|
|
|
58706
58738
|
logger9.info(`${msiName5}: Unavailable. Multiple scopes are not supported.`);
|
|
58707
58739
|
return false;
|
|
58708
58740
|
}
|
|
58709
|
-
const
|
|
58710
|
-
const result = Boolean(
|
|
58741
|
+
const env2 = process.env;
|
|
58742
|
+
const result = Boolean(env2.IDENTITY_ENDPOINT && env2.IDENTITY_HEADER && env2.IDENTITY_SERVER_THUMBPRINT);
|
|
58711
58743
|
if (!result) {
|
|
58712
58744
|
logger9.info(`${msiName5}: Unavailable. The environment variables needed are: IDENTITY_ENDPOINT, IDENTITY_HEADER and IDENTITY_SERVER_THUMBPRINT`);
|
|
58713
58745
|
}
|
|
@@ -59500,8 +59532,8 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
59500
59532
|
return {
|
|
59501
59533
|
name: "tokenExchangeMsi",
|
|
59502
59534
|
async isAvailable({ clientId }) {
|
|
59503
|
-
const
|
|
59504
|
-
const result = Boolean((clientId ||
|
|
59535
|
+
const env2 = process.env;
|
|
59536
|
+
const result = Boolean((clientId || env2.AZURE_CLIENT_ID) && env2.AZURE_TENANT_ID && process.env.AZURE_FEDERATED_TOKEN_FILE);
|
|
59505
59537
|
if (!result) {
|
|
59506
59538
|
logger14.info(`${msiName7}: Unavailable. The environment variables needed are: AZURE_CLIENT_ID (or the client ID sent through the parameters), AZURE_TENANT_ID and AZURE_FEDERATED_TOKEN_FILE`);
|
|
59507
59539
|
}
|
|
@@ -60450,13 +60482,13 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
60450
60482
|
const x5c = this.sendCertificateChain ? certificateContents : void 0;
|
|
60451
60483
|
const certificatePattern = /(-+BEGIN CERTIFICATE-+)(\n\r?|\r\n?)([A-Za-z0-9+/\n\r]+=*)(\n\r?|\r\n?)(-+END CERTIFICATE-+)/g;
|
|
60452
60484
|
const publicKeys = [];
|
|
60453
|
-
let
|
|
60485
|
+
let match2;
|
|
60454
60486
|
do {
|
|
60455
|
-
|
|
60456
|
-
if (
|
|
60457
|
-
publicKeys.push(
|
|
60487
|
+
match2 = certificatePattern.exec(certificateContents);
|
|
60488
|
+
if (match2) {
|
|
60489
|
+
publicKeys.push(match2[3]);
|
|
60458
60490
|
}
|
|
60459
|
-
} while (
|
|
60491
|
+
} while (match2);
|
|
60460
60492
|
if (publicKeys.length === 0) {
|
|
60461
60493
|
throw new Error("The file at the specified path does not contain a PEM-encoded certificate.");
|
|
60462
60494
|
}
|
|
@@ -61104,14 +61136,14 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
61104
61136
|
var require_is_wsl = __commonJS2({
|
|
61105
61137
|
"../../node_modules/.pnpm/is-wsl@2.2.0/node_modules/is-wsl/index.js"(exports22, module22) {
|
|
61106
61138
|
"use strict";
|
|
61107
|
-
var
|
|
61139
|
+
var os5 = __require("os");
|
|
61108
61140
|
var fs3 = __require("fs");
|
|
61109
61141
|
var isDocker = require_is_docker();
|
|
61110
61142
|
var isWsl = () => {
|
|
61111
61143
|
if (process.platform !== "linux") {
|
|
61112
61144
|
return false;
|
|
61113
61145
|
}
|
|
61114
|
-
if (
|
|
61146
|
+
if (os5.release().toLowerCase().includes("microsoft")) {
|
|
61115
61147
|
if (isDocker()) {
|
|
61116
61148
|
return false;
|
|
61117
61149
|
}
|
|
@@ -61152,7 +61184,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
61152
61184
|
}
|
|
61153
61185
|
});
|
|
61154
61186
|
var require_open = __commonJS2({
|
|
61155
|
-
"../../node_modules/.pnpm/open@8.4.
|
|
61187
|
+
"../../node_modules/.pnpm/open@8.4.2/node_modules/open/index.js"(exports22, module22) {
|
|
61156
61188
|
"use strict";
|
|
61157
61189
|
var path3 = __require("path");
|
|
61158
61190
|
var childProcess2 = __require("child_process");
|
|
@@ -61162,6 +61194,21 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
61162
61194
|
var defineLazyProperty = require_define_lazy_prop();
|
|
61163
61195
|
var localXdgOpenPath = path3.join(__dirname, "xdg-open");
|
|
61164
61196
|
var { platform, arch: arch2 } = process;
|
|
61197
|
+
var hasContainerEnv = () => {
|
|
61198
|
+
try {
|
|
61199
|
+
fs3.statSync("/run/.containerenv");
|
|
61200
|
+
return true;
|
|
61201
|
+
} catch {
|
|
61202
|
+
return false;
|
|
61203
|
+
}
|
|
61204
|
+
};
|
|
61205
|
+
var cachedResult;
|
|
61206
|
+
function isInsideContainer() {
|
|
61207
|
+
if (cachedResult === void 0) {
|
|
61208
|
+
cachedResult = hasContainerEnv() || isDocker();
|
|
61209
|
+
}
|
|
61210
|
+
return cachedResult;
|
|
61211
|
+
}
|
|
61165
61212
|
var getWslDrivesMountPoint = /* @__PURE__ */ (() => {
|
|
61166
61213
|
const defaultMountPoint = "/mnt/";
|
|
61167
61214
|
let mountPoint;
|
|
@@ -61242,7 +61289,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
61242
61289
|
if (app) {
|
|
61243
61290
|
cliArguments.push("-a", app);
|
|
61244
61291
|
}
|
|
61245
|
-
} else if (platform === "win32" || isWsl && !
|
|
61292
|
+
} else if (platform === "win32" || isWsl && !isInsideContainer() && !app) {
|
|
61246
61293
|
const mountPoint = await getWslDrivesMountPoint();
|
|
61247
61294
|
command = isWsl ? `${mountPoint}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe` : `${process.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\powershell`;
|
|
61248
61295
|
cliArguments.push(
|
|
@@ -61305,7 +61352,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
61305
61352
|
return new Promise((resolve, reject) => {
|
|
61306
61353
|
subprocess.once("error", reject);
|
|
61307
61354
|
subprocess.once("close", (exitCode) => {
|
|
61308
|
-
if (options.allowNonzeroExitCode && exitCode > 0) {
|
|
61355
|
+
if (!options.allowNonzeroExitCode && exitCode > 0) {
|
|
61309
61356
|
reject(new Error(`Exited with code ${exitCode}`));
|
|
61310
61357
|
return;
|
|
61311
61358
|
}
|
|
@@ -61840,13 +61887,13 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
61840
61887
|
}
|
|
61841
61888
|
const certificatePattern = /(-+BEGIN CERTIFICATE-+)(\n\r?|\r\n?)([A-Za-z0-9+/\n\r]+=*)(\n\r?|\r\n?)(-+END CERTIFICATE-+)/g;
|
|
61842
61889
|
const publicKeys = [];
|
|
61843
|
-
let
|
|
61890
|
+
let match2;
|
|
61844
61891
|
do {
|
|
61845
|
-
|
|
61846
|
-
if (
|
|
61847
|
-
publicKeys.push(
|
|
61892
|
+
match2 = certificatePattern.exec(certificateParts.certificateContents);
|
|
61893
|
+
if (match2) {
|
|
61894
|
+
publicKeys.push(match2[3]);
|
|
61848
61895
|
}
|
|
61849
|
-
} while (
|
|
61896
|
+
} while (match2);
|
|
61850
61897
|
if (publicKeys.length === 0) {
|
|
61851
61898
|
throw new Error("The file at the specified path does not contain a PEM-encoded certificate.");
|
|
61852
61899
|
}
|
|
@@ -62553,16 +62600,16 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
62553
62600
|
if (sprintf_cache[fmt]) {
|
|
62554
62601
|
return sprintf_cache[fmt];
|
|
62555
62602
|
}
|
|
62556
|
-
var _fmt = fmt,
|
|
62603
|
+
var _fmt = fmt, match2, parse_tree = [], arg_names = 0;
|
|
62557
62604
|
while (_fmt) {
|
|
62558
|
-
if ((
|
|
62559
|
-
parse_tree.push(
|
|
62560
|
-
} else if ((
|
|
62605
|
+
if ((match2 = re3.text.exec(_fmt)) !== null) {
|
|
62606
|
+
parse_tree.push(match2[0]);
|
|
62607
|
+
} else if ((match2 = re3.modulo.exec(_fmt)) !== null) {
|
|
62561
62608
|
parse_tree.push("%");
|
|
62562
|
-
} else if ((
|
|
62563
|
-
if (
|
|
62609
|
+
} else if ((match2 = re3.placeholder.exec(_fmt)) !== null) {
|
|
62610
|
+
if (match2[2]) {
|
|
62564
62611
|
arg_names |= 1;
|
|
62565
|
-
var field_list = [], replacement_field =
|
|
62612
|
+
var field_list = [], replacement_field = match2[2], field_match = [];
|
|
62566
62613
|
if ((field_match = re3.key.exec(replacement_field)) !== null) {
|
|
62567
62614
|
field_list.push(field_match[1]);
|
|
62568
62615
|
while ((replacement_field = replacement_field.substring(field_match[0].length)) !== "") {
|
|
@@ -62577,7 +62624,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
62577
62624
|
} else {
|
|
62578
62625
|
throw new SyntaxError("[sprintf] failed to parse named argument key");
|
|
62579
62626
|
}
|
|
62580
|
-
|
|
62627
|
+
match2[2] = field_list;
|
|
62581
62628
|
} else {
|
|
62582
62629
|
arg_names |= 2;
|
|
62583
62630
|
}
|
|
@@ -62586,21 +62633,21 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
62586
62633
|
}
|
|
62587
62634
|
parse_tree.push(
|
|
62588
62635
|
{
|
|
62589
|
-
placeholder:
|
|
62590
|
-
param_no:
|
|
62591
|
-
keys:
|
|
62592
|
-
sign:
|
|
62593
|
-
pad_char:
|
|
62594
|
-
align:
|
|
62595
|
-
width:
|
|
62596
|
-
precision:
|
|
62597
|
-
type:
|
|
62636
|
+
placeholder: match2[0],
|
|
62637
|
+
param_no: match2[1],
|
|
62638
|
+
keys: match2[2],
|
|
62639
|
+
sign: match2[3],
|
|
62640
|
+
pad_char: match2[4],
|
|
62641
|
+
align: match2[5],
|
|
62642
|
+
width: match2[6],
|
|
62643
|
+
precision: match2[7],
|
|
62644
|
+
type: match2[8]
|
|
62598
62645
|
}
|
|
62599
62646
|
);
|
|
62600
62647
|
} else {
|
|
62601
62648
|
throw new SyntaxError("[sprintf] unexpected placeholder");
|
|
62602
62649
|
}
|
|
62603
|
-
_fmt = _fmt.substring(
|
|
62650
|
+
_fmt = _fmt.substring(match2[0].length);
|
|
62604
62651
|
}
|
|
62605
62652
|
return sprintf_cache[fmt] = parse_tree;
|
|
62606
62653
|
}
|
|
@@ -66212,10 +66259,10 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
66212
66259
|
var require_end_of_stream = __commonJS2({
|
|
66213
66260
|
"../../node_modules/.pnpm/readable-stream@4.4.2/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(exports22, module22) {
|
|
66214
66261
|
"use strict";
|
|
66215
|
-
var
|
|
66262
|
+
var process3 = require_process();
|
|
66216
66263
|
var { AbortError: AbortError3, codes } = require_errors3();
|
|
66217
66264
|
var { ERR_INVALID_ARG_TYPE, ERR_STREAM_PREMATURE_CLOSE } = codes;
|
|
66218
|
-
var { kEmptyObject, once } = require_util();
|
|
66265
|
+
var { kEmptyObject, once: once2 } = require_util();
|
|
66219
66266
|
var { validateAbortSignal, validateFunction, validateObject, validateBoolean } = require_validators();
|
|
66220
66267
|
var { Promise: Promise2, PromisePrototypeThen } = require_primordials();
|
|
66221
66268
|
var {
|
|
@@ -66251,7 +66298,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
66251
66298
|
}
|
|
66252
66299
|
validateFunction(callback, "callback");
|
|
66253
66300
|
validateAbortSignal(options.signal, "options.signal");
|
|
66254
|
-
callback =
|
|
66301
|
+
callback = once2(callback);
|
|
66255
66302
|
if (isReadableStream2(stream) || isWritableStream(stream)) {
|
|
66256
66303
|
return eosWeb(stream, options, callback);
|
|
66257
66304
|
}
|
|
@@ -66349,17 +66396,17 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
66349
66396
|
}
|
|
66350
66397
|
stream.on("close", onclose);
|
|
66351
66398
|
if (closed) {
|
|
66352
|
-
|
|
66399
|
+
process3.nextTick(onclose);
|
|
66353
66400
|
} else if (wState !== null && wState !== void 0 && wState.errorEmitted || rState !== null && rState !== void 0 && rState.errorEmitted) {
|
|
66354
66401
|
if (!willEmitClose) {
|
|
66355
|
-
|
|
66402
|
+
process3.nextTick(onclosed);
|
|
66356
66403
|
}
|
|
66357
66404
|
} else if (!readable && (!willEmitClose || isReadable(stream)) && (writableFinished || isWritable(stream) === false)) {
|
|
66358
|
-
|
|
66405
|
+
process3.nextTick(onclosed);
|
|
66359
66406
|
} else if (!writable && (!willEmitClose || isWritable(stream)) && (readableFinished || isReadable(stream) === false)) {
|
|
66360
|
-
|
|
66407
|
+
process3.nextTick(onclosed);
|
|
66361
66408
|
} else if (rState && stream.req && stream.aborted) {
|
|
66362
|
-
|
|
66409
|
+
process3.nextTick(onclosed);
|
|
66363
66410
|
}
|
|
66364
66411
|
const cleanup = () => {
|
|
66365
66412
|
callback = nop;
|
|
@@ -66388,10 +66435,10 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
66388
66435
|
);
|
|
66389
66436
|
};
|
|
66390
66437
|
if (options.signal.aborted) {
|
|
66391
|
-
|
|
66438
|
+
process3.nextTick(abort);
|
|
66392
66439
|
} else {
|
|
66393
66440
|
const originalCallback = callback;
|
|
66394
|
-
callback =
|
|
66441
|
+
callback = once2((...args) => {
|
|
66395
66442
|
options.signal.removeEventListener("abort", abort);
|
|
66396
66443
|
originalCallback.apply(stream, args);
|
|
66397
66444
|
});
|
|
@@ -66414,10 +66461,10 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
66414
66461
|
);
|
|
66415
66462
|
};
|
|
66416
66463
|
if (options.signal.aborted) {
|
|
66417
|
-
|
|
66464
|
+
process3.nextTick(abort);
|
|
66418
66465
|
} else {
|
|
66419
66466
|
const originalCallback = callback;
|
|
66420
|
-
callback =
|
|
66467
|
+
callback = once2((...args) => {
|
|
66421
66468
|
options.signal.removeEventListener("abort", abort);
|
|
66422
66469
|
originalCallback.apply(stream, args);
|
|
66423
66470
|
});
|
|
@@ -66426,7 +66473,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
66426
66473
|
}
|
|
66427
66474
|
const resolverFn = (...args) => {
|
|
66428
66475
|
if (!isAborted) {
|
|
66429
|
-
|
|
66476
|
+
process3.nextTick(() => callback.apply(stream, args));
|
|
66430
66477
|
}
|
|
66431
66478
|
};
|
|
66432
66479
|
PromisePrototypeThen(stream[kIsClosedPromise].promise, resolverFn, resolverFn);
|
|
@@ -66462,7 +66509,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
66462
66509
|
var require_destroy = __commonJS2({
|
|
66463
66510
|
"../../node_modules/.pnpm/readable-stream@4.4.2/node_modules/readable-stream/lib/internal/streams/destroy.js"(exports22, module22) {
|
|
66464
66511
|
"use strict";
|
|
66465
|
-
var
|
|
66512
|
+
var process3 = require_process();
|
|
66466
66513
|
var {
|
|
66467
66514
|
aggregateTwoErrors,
|
|
66468
66515
|
codes: { ERR_MULTIPLE_CALLBACK },
|
|
@@ -66529,9 +66576,9 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
66529
66576
|
cb(err2);
|
|
66530
66577
|
}
|
|
66531
66578
|
if (err2) {
|
|
66532
|
-
|
|
66579
|
+
process3.nextTick(emitErrorCloseNT, self2, err2);
|
|
66533
66580
|
} else {
|
|
66534
|
-
|
|
66581
|
+
process3.nextTick(emitCloseNT, self2);
|
|
66535
66582
|
}
|
|
66536
66583
|
}
|
|
66537
66584
|
try {
|
|
@@ -66616,7 +66663,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
66616
66663
|
r2.errored = err;
|
|
66617
66664
|
}
|
|
66618
66665
|
if (sync) {
|
|
66619
|
-
|
|
66666
|
+
process3.nextTick(emitErrorNT, stream, err);
|
|
66620
66667
|
} else {
|
|
66621
66668
|
emitErrorNT(stream, err);
|
|
66622
66669
|
}
|
|
@@ -66638,7 +66685,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
66638
66685
|
if (stream.listenerCount(kConstruct) > 1) {
|
|
66639
66686
|
return;
|
|
66640
66687
|
}
|
|
66641
|
-
|
|
66688
|
+
process3.nextTick(constructNT, stream);
|
|
66642
66689
|
}
|
|
66643
66690
|
function constructNT(stream) {
|
|
66644
66691
|
let called = false;
|
|
@@ -66662,15 +66709,15 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
66662
66709
|
} else if (err) {
|
|
66663
66710
|
errorOrDestroy(stream, err, true);
|
|
66664
66711
|
} else {
|
|
66665
|
-
|
|
66712
|
+
process3.nextTick(emitConstructNT, stream);
|
|
66666
66713
|
}
|
|
66667
66714
|
}
|
|
66668
66715
|
try {
|
|
66669
66716
|
stream._construct((err) => {
|
|
66670
|
-
|
|
66717
|
+
process3.nextTick(onConstruct, err);
|
|
66671
66718
|
});
|
|
66672
66719
|
} catch (err) {
|
|
66673
|
-
|
|
66720
|
+
process3.nextTick(onConstruct, err);
|
|
66674
66721
|
}
|
|
66675
66722
|
}
|
|
66676
66723
|
function emitConstructNT(stream) {
|
|
@@ -66684,7 +66731,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
66684
66731
|
}
|
|
66685
66732
|
function emitErrorCloseLegacy(stream, err) {
|
|
66686
66733
|
stream.emit("error", err);
|
|
66687
|
-
|
|
66734
|
+
process3.nextTick(emitCloseLegacy, stream);
|
|
66688
66735
|
}
|
|
66689
66736
|
function destroyer(stream, err) {
|
|
66690
66737
|
if (!stream || isDestroyed(stream)) {
|
|
@@ -66705,9 +66752,9 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
66705
66752
|
} else if (typeof stream.close === "function") {
|
|
66706
66753
|
stream.close();
|
|
66707
66754
|
} else if (err) {
|
|
66708
|
-
|
|
66755
|
+
process3.nextTick(emitErrorCloseLegacy, stream, err);
|
|
66709
66756
|
} else {
|
|
66710
|
-
|
|
66757
|
+
process3.nextTick(emitCloseLegacy, stream);
|
|
66711
66758
|
}
|
|
66712
66759
|
if (!stream.destroyed) {
|
|
66713
66760
|
stream[kDestroyed] = true;
|
|
@@ -67048,7 +67095,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
67048
67095
|
var require_from = __commonJS2({
|
|
67049
67096
|
"../../node_modules/.pnpm/readable-stream@4.4.2/node_modules/readable-stream/lib/internal/streams/from.js"(exports22, module22) {
|
|
67050
67097
|
"use strict";
|
|
67051
|
-
var
|
|
67098
|
+
var process3 = require_process();
|
|
67052
67099
|
var { PromisePrototypeThen, SymbolAsyncIterator, SymbolIterator } = require_primordials();
|
|
67053
67100
|
var { Buffer: Buffer22 } = __require("buffer");
|
|
67054
67101
|
var { ERR_INVALID_ARG_TYPE, ERR_STREAM_NULL_VALUES } = require_errors3().codes;
|
|
@@ -67090,9 +67137,9 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
67090
67137
|
readable._destroy = function(error44, cb) {
|
|
67091
67138
|
PromisePrototypeThen(
|
|
67092
67139
|
close(error44),
|
|
67093
|
-
() =>
|
|
67140
|
+
() => process3.nextTick(cb, error44),
|
|
67094
67141
|
// nextTick is here in case cb throws
|
|
67095
|
-
(e2) =>
|
|
67142
|
+
(e2) => process3.nextTick(cb, e2 || error44)
|
|
67096
67143
|
);
|
|
67097
67144
|
};
|
|
67098
67145
|
async function close(error44) {
|
|
@@ -67141,7 +67188,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
67141
67188
|
var require_readable = __commonJS2({
|
|
67142
67189
|
"../../node_modules/.pnpm/readable-stream@4.4.2/node_modules/readable-stream/lib/internal/streams/readable.js"(exports22, module22) {
|
|
67143
67190
|
"use strict";
|
|
67144
|
-
var
|
|
67191
|
+
var process3 = require_process();
|
|
67145
67192
|
var {
|
|
67146
67193
|
ArrayPrototypeIndexOf,
|
|
67147
67194
|
NumberIsInteger,
|
|
@@ -67496,7 +67543,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
67496
67543
|
if (!state2.emittedReadable) {
|
|
67497
67544
|
debug7("emitReadable", state2.flowing);
|
|
67498
67545
|
state2.emittedReadable = true;
|
|
67499
|
-
|
|
67546
|
+
process3.nextTick(emitReadable_, stream);
|
|
67500
67547
|
}
|
|
67501
67548
|
}
|
|
67502
67549
|
function emitReadable_(stream) {
|
|
@@ -67512,7 +67559,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
67512
67559
|
function maybeReadMore(stream, state2) {
|
|
67513
67560
|
if (!state2.readingMore && state2.constructed) {
|
|
67514
67561
|
state2.readingMore = true;
|
|
67515
|
-
|
|
67562
|
+
process3.nextTick(maybeReadMore_, stream, state2);
|
|
67516
67563
|
}
|
|
67517
67564
|
}
|
|
67518
67565
|
function maybeReadMore_(stream, state2) {
|
|
@@ -67539,10 +67586,10 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
67539
67586
|
}
|
|
67540
67587
|
state2.pipes.push(dest);
|
|
67541
67588
|
debug7("pipe count=%d opts=%j", state2.pipes.length, pipeOpts);
|
|
67542
|
-
const doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !==
|
|
67589
|
+
const doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process3.stdout && dest !== process3.stderr;
|
|
67543
67590
|
const endFn = doEnd ? onend : unpipe;
|
|
67544
67591
|
if (state2.endEmitted)
|
|
67545
|
-
|
|
67592
|
+
process3.nextTick(endFn);
|
|
67546
67593
|
else
|
|
67547
67594
|
src.once("end", endFn);
|
|
67548
67595
|
dest.on("unpipe", onunpipe);
|
|
@@ -67700,7 +67747,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
67700
67747
|
if (state2.length) {
|
|
67701
67748
|
emitReadable(this);
|
|
67702
67749
|
} else if (!state2.reading) {
|
|
67703
|
-
|
|
67750
|
+
process3.nextTick(nReadingNextTick, this);
|
|
67704
67751
|
}
|
|
67705
67752
|
}
|
|
67706
67753
|
}
|
|
@@ -67710,7 +67757,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
67710
67757
|
Readable.prototype.removeListener = function(ev, fn2) {
|
|
67711
67758
|
const res = Stream.prototype.removeListener.call(this, ev, fn2);
|
|
67712
67759
|
if (ev === "readable") {
|
|
67713
|
-
|
|
67760
|
+
process3.nextTick(updateReadableListening, this);
|
|
67714
67761
|
}
|
|
67715
67762
|
return res;
|
|
67716
67763
|
};
|
|
@@ -67718,7 +67765,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
67718
67765
|
Readable.prototype.removeAllListeners = function(ev) {
|
|
67719
67766
|
const res = Stream.prototype.removeAllListeners.apply(this, arguments);
|
|
67720
67767
|
if (ev === "readable" || ev === void 0) {
|
|
67721
|
-
|
|
67768
|
+
process3.nextTick(updateReadableListening, this);
|
|
67722
67769
|
}
|
|
67723
67770
|
return res;
|
|
67724
67771
|
};
|
|
@@ -67750,7 +67797,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
67750
67797
|
function resume(stream, state2) {
|
|
67751
67798
|
if (!state2.resumeScheduled) {
|
|
67752
67799
|
state2.resumeScheduled = true;
|
|
67753
|
-
|
|
67800
|
+
process3.nextTick(resume_, stream, state2);
|
|
67754
67801
|
}
|
|
67755
67802
|
}
|
|
67756
67803
|
function resume_(stream, state2) {
|
|
@@ -68034,7 +68081,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
68034
68081
|
debug7("endReadable", state2.endEmitted);
|
|
68035
68082
|
if (!state2.endEmitted) {
|
|
68036
68083
|
state2.ended = true;
|
|
68037
|
-
|
|
68084
|
+
process3.nextTick(endReadableNT, state2, stream);
|
|
68038
68085
|
}
|
|
68039
68086
|
}
|
|
68040
68087
|
function endReadableNT(state2, stream) {
|
|
@@ -68043,7 +68090,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
68043
68090
|
state2.endEmitted = true;
|
|
68044
68091
|
stream.emit("end");
|
|
68045
68092
|
if (stream.writable && stream.allowHalfOpen === false) {
|
|
68046
|
-
|
|
68093
|
+
process3.nextTick(endWritableNT, stream);
|
|
68047
68094
|
} else if (state2.autoDestroy) {
|
|
68048
68095
|
const wState = stream._writableState;
|
|
68049
68096
|
const autoDestroy = !wState || wState.autoDestroy && // We don't expect the writable to ever 'finish'
|
|
@@ -68092,7 +68139,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
68092
68139
|
var require_writable = __commonJS2({
|
|
68093
68140
|
"../../node_modules/.pnpm/readable-stream@4.4.2/node_modules/readable-stream/lib/internal/streams/writable.js"(exports22, module22) {
|
|
68094
68141
|
"use strict";
|
|
68095
|
-
var
|
|
68142
|
+
var process3 = require_process();
|
|
68096
68143
|
var {
|
|
68097
68144
|
ArrayPrototypeSlice,
|
|
68098
68145
|
Error: Error2,
|
|
@@ -68259,7 +68306,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
68259
68306
|
err = new ERR_STREAM_DESTROYED("write");
|
|
68260
68307
|
}
|
|
68261
68308
|
if (err) {
|
|
68262
|
-
|
|
68309
|
+
process3.nextTick(cb, err);
|
|
68263
68310
|
errorOrDestroy(stream, err, true);
|
|
68264
68311
|
return err;
|
|
68265
68312
|
}
|
|
@@ -68356,7 +68403,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
68356
68403
|
stream._readableState.errored = er2;
|
|
68357
68404
|
}
|
|
68358
68405
|
if (sync) {
|
|
68359
|
-
|
|
68406
|
+
process3.nextTick(onwriteError, stream, state2, er2, cb);
|
|
68360
68407
|
} else {
|
|
68361
68408
|
onwriteError(stream, state2, er2, cb);
|
|
68362
68409
|
}
|
|
@@ -68374,7 +68421,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
68374
68421
|
stream,
|
|
68375
68422
|
state: state2
|
|
68376
68423
|
};
|
|
68377
|
-
|
|
68424
|
+
process3.nextTick(afterWriteTick, state2.afterWriteTickInfo);
|
|
68378
68425
|
}
|
|
68379
68426
|
} else {
|
|
68380
68427
|
afterWrite(stream, state2, 1, cb);
|
|
@@ -68511,7 +68558,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
68511
68558
|
}
|
|
68512
68559
|
if (typeof cb === "function") {
|
|
68513
68560
|
if (err || state2.finished) {
|
|
68514
|
-
|
|
68561
|
+
process3.nextTick(cb, err);
|
|
68515
68562
|
} else {
|
|
68516
68563
|
state2[kOnFinished].push(cb);
|
|
68517
68564
|
}
|
|
@@ -68540,7 +68587,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
68540
68587
|
state2.prefinished = true;
|
|
68541
68588
|
stream.emit("prefinish");
|
|
68542
68589
|
state2.pendingcb++;
|
|
68543
|
-
|
|
68590
|
+
process3.nextTick(finish, stream, state2);
|
|
68544
68591
|
}
|
|
68545
68592
|
}
|
|
68546
68593
|
state2.sync = true;
|
|
@@ -68569,7 +68616,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
68569
68616
|
if (state2.pendingcb === 0) {
|
|
68570
68617
|
if (sync) {
|
|
68571
68618
|
state2.pendingcb++;
|
|
68572
|
-
|
|
68619
|
+
process3.nextTick(
|
|
68573
68620
|
(stream2, state3) => {
|
|
68574
68621
|
if (needFinish(state3)) {
|
|
68575
68622
|
finish(stream2, state3);
|
|
@@ -68705,7 +68752,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
68705
68752
|
Writable.prototype.destroy = function(err, cb) {
|
|
68706
68753
|
const state2 = this._writableState;
|
|
68707
68754
|
if (!state2.destroyed && (state2.bufferedIndex < state2.buffered.length || state2[kOnFinished].length)) {
|
|
68708
|
-
|
|
68755
|
+
process3.nextTick(errorBuffer, state2);
|
|
68709
68756
|
}
|
|
68710
68757
|
destroy2.call(this, err, cb);
|
|
68711
68758
|
return this;
|
|
@@ -68734,7 +68781,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
68734
68781
|
var require_duplexify = __commonJS2({
|
|
68735
68782
|
"../../node_modules/.pnpm/readable-stream@4.4.2/node_modules/readable-stream/lib/internal/streams/duplexify.js"(exports22, module22) {
|
|
68736
68783
|
"use strict";
|
|
68737
|
-
var
|
|
68784
|
+
var process3 = require_process();
|
|
68738
68785
|
var bufferModule = __require("buffer");
|
|
68739
68786
|
var {
|
|
68740
68787
|
isReadable,
|
|
@@ -68834,9 +68881,9 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
68834
68881
|
final(async () => {
|
|
68835
68882
|
try {
|
|
68836
68883
|
await promise2;
|
|
68837
|
-
|
|
68884
|
+
process3.nextTick(cb, null);
|
|
68838
68885
|
} catch (err) {
|
|
68839
|
-
|
|
68886
|
+
process3.nextTick(cb, err);
|
|
68840
68887
|
}
|
|
68841
68888
|
});
|
|
68842
68889
|
},
|
|
@@ -68912,7 +68959,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
68912
68959
|
const _promise2 = promise2;
|
|
68913
68960
|
promise2 = null;
|
|
68914
68961
|
const { chunk, done, cb } = await _promise2;
|
|
68915
|
-
|
|
68962
|
+
process3.nextTick(cb);
|
|
68916
68963
|
if (done)
|
|
68917
68964
|
return;
|
|
68918
68965
|
if (signal.aborted)
|
|
@@ -69304,10 +69351,10 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
69304
69351
|
var require_pipeline = __commonJS2({
|
|
69305
69352
|
"../../node_modules/.pnpm/readable-stream@4.4.2/node_modules/readable-stream/lib/internal/streams/pipeline.js"(exports22, module22) {
|
|
69306
69353
|
"use strict";
|
|
69307
|
-
var
|
|
69354
|
+
var process3 = require_process();
|
|
69308
69355
|
var { ArrayIsArray, Promise: Promise2, SymbolAsyncIterator } = require_primordials();
|
|
69309
69356
|
var eos = require_end_of_stream();
|
|
69310
|
-
var { once } = require_util();
|
|
69357
|
+
var { once: once2 } = require_util();
|
|
69311
69358
|
var destroyImpl = require_destroy();
|
|
69312
69359
|
var Duplex = require_duplex();
|
|
69313
69360
|
var {
|
|
@@ -69459,7 +69506,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
69459
69506
|
}
|
|
69460
69507
|
}
|
|
69461
69508
|
function pipeline(...streams) {
|
|
69462
|
-
return pipelineImpl(streams,
|
|
69509
|
+
return pipelineImpl(streams, once2(popCallback(streams)));
|
|
69463
69510
|
}
|
|
69464
69511
|
function pipelineImpl(streams, callback, opts) {
|
|
69465
69512
|
if (streams.length === 1 && ArrayIsArray(streams[0])) {
|
|
@@ -69500,7 +69547,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
69500
69547
|
if (!error44) {
|
|
69501
69548
|
lastStreamCleanup.forEach((fn2) => fn2());
|
|
69502
69549
|
}
|
|
69503
|
-
|
|
69550
|
+
process3.nextTick(callback, error44, value);
|
|
69504
69551
|
}
|
|
69505
69552
|
}
|
|
69506
69553
|
let ret;
|
|
@@ -69579,11 +69626,11 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
69579
69626
|
if (end) {
|
|
69580
69627
|
pt2.end();
|
|
69581
69628
|
}
|
|
69582
|
-
|
|
69629
|
+
process3.nextTick(finish);
|
|
69583
69630
|
},
|
|
69584
69631
|
(err) => {
|
|
69585
69632
|
pt2.destroy(err);
|
|
69586
|
-
|
|
69633
|
+
process3.nextTick(finish, err);
|
|
69587
69634
|
}
|
|
69588
69635
|
);
|
|
69589
69636
|
} else if (isIterable(ret, true)) {
|
|
@@ -69664,7 +69711,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
69664
69711
|
}
|
|
69665
69712
|
}
|
|
69666
69713
|
if (signal !== null && signal !== void 0 && signal.aborted || outerSignal !== null && outerSignal !== void 0 && outerSignal.aborted) {
|
|
69667
|
-
|
|
69714
|
+
process3.nextTick(abort);
|
|
69668
69715
|
}
|
|
69669
69716
|
return ret;
|
|
69670
69717
|
}
|
|
@@ -69685,7 +69732,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
69685
69732
|
};
|
|
69686
69733
|
var endFn = endFn2;
|
|
69687
69734
|
if (isReadableEnded(src)) {
|
|
69688
|
-
|
|
69735
|
+
process3.nextTick(endFn2);
|
|
69689
69736
|
} else {
|
|
69690
69737
|
src.once("end", endFn2);
|
|
69691
69738
|
}
|
|
@@ -84850,13 +84897,13 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
84850
84897
|
exports22.readUNumeric96LE = readUNumeric96LE;
|
|
84851
84898
|
exports22.readUsVarByte = readUsVarByte;
|
|
84852
84899
|
exports22.readUsVarChar = readUsVarChar;
|
|
84853
|
-
var
|
|
84900
|
+
var Result2 = class {
|
|
84854
84901
|
constructor(value, offset) {
|
|
84855
84902
|
this.value = value;
|
|
84856
84903
|
this.offset = offset;
|
|
84857
84904
|
}
|
|
84858
84905
|
};
|
|
84859
|
-
exports22.Result =
|
|
84906
|
+
exports22.Result = Result2;
|
|
84860
84907
|
var NotEnoughDataError = class extends Error {
|
|
84861
84908
|
byteCount;
|
|
84862
84909
|
constructor(byteCount) {
|
|
@@ -84870,84 +84917,84 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
84870
84917
|
if (buf.length < offset + 1) {
|
|
84871
84918
|
throw new NotEnoughDataError(offset + 1);
|
|
84872
84919
|
}
|
|
84873
|
-
return new
|
|
84920
|
+
return new Result2(buf.readUInt8(offset), offset + 1);
|
|
84874
84921
|
}
|
|
84875
84922
|
function readUInt16LE(buf, offset) {
|
|
84876
84923
|
offset = +offset;
|
|
84877
84924
|
if (buf.length < offset + 2) {
|
|
84878
84925
|
throw new NotEnoughDataError(offset + 2);
|
|
84879
84926
|
}
|
|
84880
|
-
return new
|
|
84927
|
+
return new Result2(buf.readUInt16LE(offset), offset + 2);
|
|
84881
84928
|
}
|
|
84882
84929
|
function readInt16LE(buf, offset) {
|
|
84883
84930
|
offset = +offset;
|
|
84884
84931
|
if (buf.length < offset + 2) {
|
|
84885
84932
|
throw new NotEnoughDataError(offset + 2);
|
|
84886
84933
|
}
|
|
84887
|
-
return new
|
|
84934
|
+
return new Result2(buf.readInt16LE(offset), offset + 2);
|
|
84888
84935
|
}
|
|
84889
84936
|
function readUInt24LE(buf, offset) {
|
|
84890
84937
|
offset = +offset;
|
|
84891
84938
|
if (buf.length < offset + 3) {
|
|
84892
84939
|
throw new NotEnoughDataError(offset + 3);
|
|
84893
84940
|
}
|
|
84894
|
-
return new
|
|
84941
|
+
return new Result2(buf.readUIntLE(offset, 3), offset + 3);
|
|
84895
84942
|
}
|
|
84896
84943
|
function readUInt32LE(buf, offset) {
|
|
84897
84944
|
offset = +offset;
|
|
84898
84945
|
if (buf.length < offset + 4) {
|
|
84899
84946
|
throw new NotEnoughDataError(offset + 4);
|
|
84900
84947
|
}
|
|
84901
|
-
return new
|
|
84948
|
+
return new Result2(buf.readUInt32LE(offset), offset + 4);
|
|
84902
84949
|
}
|
|
84903
84950
|
function readUInt32BE(buf, offset) {
|
|
84904
84951
|
offset = +offset;
|
|
84905
84952
|
if (buf.length < offset + 4) {
|
|
84906
84953
|
throw new NotEnoughDataError(offset + 4);
|
|
84907
84954
|
}
|
|
84908
|
-
return new
|
|
84955
|
+
return new Result2(buf.readUInt32BE(offset), offset + 4);
|
|
84909
84956
|
}
|
|
84910
84957
|
function readUInt40LE(buf, offset) {
|
|
84911
84958
|
offset = +offset;
|
|
84912
84959
|
if (buf.length < offset + 5) {
|
|
84913
84960
|
throw new NotEnoughDataError(offset + 5);
|
|
84914
84961
|
}
|
|
84915
|
-
return new
|
|
84962
|
+
return new Result2(buf.readUIntLE(offset, 5), offset + 5);
|
|
84916
84963
|
}
|
|
84917
84964
|
function readInt32LE(buf, offset) {
|
|
84918
84965
|
offset = +offset;
|
|
84919
84966
|
if (buf.length < offset + 4) {
|
|
84920
84967
|
throw new NotEnoughDataError(offset + 4);
|
|
84921
84968
|
}
|
|
84922
|
-
return new
|
|
84969
|
+
return new Result2(buf.readInt32LE(offset), offset + 4);
|
|
84923
84970
|
}
|
|
84924
84971
|
function readBigUInt64LE(buf, offset) {
|
|
84925
84972
|
offset = +offset;
|
|
84926
84973
|
if (buf.length < offset + 8) {
|
|
84927
84974
|
throw new NotEnoughDataError(offset + 8);
|
|
84928
84975
|
}
|
|
84929
|
-
return new
|
|
84976
|
+
return new Result2(buf.readBigUInt64LE(offset), offset + 8);
|
|
84930
84977
|
}
|
|
84931
84978
|
function readBigInt64LE(buf, offset) {
|
|
84932
84979
|
offset = +offset;
|
|
84933
84980
|
if (buf.length < offset + 8) {
|
|
84934
84981
|
throw new NotEnoughDataError(offset + 8);
|
|
84935
84982
|
}
|
|
84936
|
-
return new
|
|
84983
|
+
return new Result2(buf.readBigInt64LE(offset), offset + 8);
|
|
84937
84984
|
}
|
|
84938
84985
|
function readFloatLE(buf, offset) {
|
|
84939
84986
|
offset = +offset;
|
|
84940
84987
|
if (buf.length < offset + 4) {
|
|
84941
84988
|
throw new NotEnoughDataError(offset + 4);
|
|
84942
84989
|
}
|
|
84943
|
-
return new
|
|
84990
|
+
return new Result2(buf.readFloatLE(offset), offset + 4);
|
|
84944
84991
|
}
|
|
84945
84992
|
function readDoubleLE(buf, offset) {
|
|
84946
84993
|
offset = +offset;
|
|
84947
84994
|
if (buf.length < offset + 8) {
|
|
84948
84995
|
throw new NotEnoughDataError(offset + 8);
|
|
84949
84996
|
}
|
|
84950
|
-
return new
|
|
84997
|
+
return new Result2(buf.readDoubleLE(offset), offset + 8);
|
|
84951
84998
|
}
|
|
84952
84999
|
function readBVarChar(buf, offset) {
|
|
84953
85000
|
offset = +offset;
|
|
@@ -84960,7 +85007,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
84960
85007
|
if (buf.length < offset + byteLength) {
|
|
84961
85008
|
throw new NotEnoughDataError(offset + byteLength);
|
|
84962
85009
|
}
|
|
84963
|
-
return new
|
|
85010
|
+
return new Result2(buf.toString("ucs2", offset, offset + byteLength), offset + byteLength);
|
|
84964
85011
|
}
|
|
84965
85012
|
function readBVarByte(buf, offset) {
|
|
84966
85013
|
offset = +offset;
|
|
@@ -84972,7 +85019,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
84972
85019
|
if (buf.length < offset + byteLength) {
|
|
84973
85020
|
throw new NotEnoughDataError(offset + byteLength);
|
|
84974
85021
|
}
|
|
84975
|
-
return new
|
|
85022
|
+
return new Result2(buf.slice(offset, offset + byteLength), offset + byteLength);
|
|
84976
85023
|
}
|
|
84977
85024
|
function readUsVarChar(buf, offset) {
|
|
84978
85025
|
offset = +offset;
|
|
@@ -84985,7 +85032,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
84985
85032
|
if (buf.length < offset + byteLength) {
|
|
84986
85033
|
throw new NotEnoughDataError(offset + byteLength);
|
|
84987
85034
|
}
|
|
84988
|
-
return new
|
|
85035
|
+
return new Result2(buf.toString("ucs2", offset, offset + byteLength), offset + byteLength);
|
|
84989
85036
|
}
|
|
84990
85037
|
function readUsVarByte(buf, offset) {
|
|
84991
85038
|
offset = +offset;
|
|
@@ -84997,7 +85044,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
84997
85044
|
if (buf.length < offset + byteLength) {
|
|
84998
85045
|
throw new NotEnoughDataError(offset + byteLength);
|
|
84999
85046
|
}
|
|
85000
|
-
return new
|
|
85047
|
+
return new Result2(buf.slice(offset, offset + byteLength), offset + byteLength);
|
|
85001
85048
|
}
|
|
85002
85049
|
function readUNumeric64LE(buf, offset) {
|
|
85003
85050
|
offset = +offset;
|
|
@@ -85006,7 +85053,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
85006
85053
|
}
|
|
85007
85054
|
const low = buf.readUInt32LE(offset);
|
|
85008
85055
|
const high = buf.readUInt32LE(offset + 4);
|
|
85009
|
-
return new
|
|
85056
|
+
return new Result2(4294967296 * high + low, offset + 8);
|
|
85010
85057
|
}
|
|
85011
85058
|
function readUNumeric96LE(buf, offset) {
|
|
85012
85059
|
offset = +offset;
|
|
@@ -85016,7 +85063,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
85016
85063
|
const dword1 = buf.readUInt32LE(offset);
|
|
85017
85064
|
const dword2 = buf.readUInt32LE(offset + 4);
|
|
85018
85065
|
const dword3 = buf.readUInt32LE(offset + 8);
|
|
85019
|
-
return new
|
|
85066
|
+
return new Result2(dword1 + 4294967296 * dword2 + 4294967296 * 4294967296 * dword3, offset + 12);
|
|
85020
85067
|
}
|
|
85021
85068
|
function readUNumeric128LE(buf, offset) {
|
|
85022
85069
|
offset = +offset;
|
|
@@ -85027,7 +85074,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
85027
85074
|
const dword2 = buf.readUInt32LE(offset + 4);
|
|
85028
85075
|
const dword3 = buf.readUInt32LE(offset + 8);
|
|
85029
85076
|
const dword4 = buf.readUInt32LE(offset + 12);
|
|
85030
|
-
return new
|
|
85077
|
+
return new Result2(dword1 + 4294967296 * dword2 + 4294967296 * 4294967296 * dword3 + 4294967296 * 4294967296 * 4294967296 * dword4, offset + 16);
|
|
85031
85078
|
}
|
|
85032
85079
|
}
|
|
85033
85080
|
});
|
|
@@ -88673,7 +88720,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
88673
88720
|
REDIRECT: 1,
|
|
88674
88721
|
RETRY: 2
|
|
88675
88722
|
};
|
|
88676
|
-
var
|
|
88723
|
+
var Connection2 = class extends _events.EventEmitter {
|
|
88677
88724
|
/**
|
|
88678
88725
|
* @private
|
|
88679
88726
|
*/
|
|
@@ -90585,9 +90632,9 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
90585
90632
|
}
|
|
90586
90633
|
return error44 instanceof _errors.ConnectionError && !!error44.isTransient;
|
|
90587
90634
|
}
|
|
90588
|
-
var _default3 = exports22.default =
|
|
90589
|
-
module22.exports =
|
|
90590
|
-
|
|
90635
|
+
var _default3 = exports22.default = Connection2;
|
|
90636
|
+
module22.exports = Connection2;
|
|
90637
|
+
Connection2.prototype.STATE = {
|
|
90591
90638
|
INITIALIZED: {
|
|
90592
90639
|
name: "Initialized",
|
|
90593
90640
|
events: {}
|
|
@@ -92778,11 +92825,11 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
92778
92825
|
"use strict";
|
|
92779
92826
|
var extend3 = require_mutable();
|
|
92780
92827
|
module22.exports = PostgresInterval;
|
|
92781
|
-
function PostgresInterval(
|
|
92828
|
+
function PostgresInterval(raw3) {
|
|
92782
92829
|
if (!(this instanceof PostgresInterval)) {
|
|
92783
|
-
return new PostgresInterval(
|
|
92830
|
+
return new PostgresInterval(raw3);
|
|
92784
92831
|
}
|
|
92785
|
-
extend3(this, parse5(
|
|
92832
|
+
extend3(this, parse5(raw3));
|
|
92786
92833
|
}
|
|
92787
92834
|
var properties = ["seconds", "minutes", "hours", "days", "months", "years"];
|
|
92788
92835
|
PostgresInterval.prototype.toPostgres = function() {
|
|
@@ -93489,7 +93536,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
93489
93536
|
}
|
|
93490
93537
|
});
|
|
93491
93538
|
var require_defaults2 = __commonJS2({
|
|
93492
|
-
"../../node_modules/.pnpm/pg@8.
|
|
93539
|
+
"../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/defaults.js"(exports22, module22) {
|
|
93493
93540
|
"use strict";
|
|
93494
93541
|
module22.exports = {
|
|
93495
93542
|
// database host. defaults to localhost
|
|
@@ -93549,16 +93596,18 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
93549
93596
|
}
|
|
93550
93597
|
});
|
|
93551
93598
|
var require_utils6 = __commonJS2({
|
|
93552
|
-
"../../node_modules/.pnpm/pg@8.
|
|
93599
|
+
"../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/utils.js"(exports22, module22) {
|
|
93553
93600
|
"use strict";
|
|
93554
|
-
var
|
|
93601
|
+
var defaults2 = require_defaults2();
|
|
93602
|
+
var util2 = __require("util");
|
|
93603
|
+
var { isDate } = util2.types || util2;
|
|
93555
93604
|
function escapeElement(elementRepresentation) {
|
|
93556
|
-
|
|
93605
|
+
const escaped = elementRepresentation.replace(/\\/g, "\\\\").replace(/"/g, '\\"');
|
|
93557
93606
|
return '"' + escaped + '"';
|
|
93558
93607
|
}
|
|
93559
93608
|
function arrayString(val) {
|
|
93560
|
-
|
|
93561
|
-
for (
|
|
93609
|
+
let result = "{";
|
|
93610
|
+
for (let i2 = 0; i2 < val.length; i2++) {
|
|
93562
93611
|
if (i2 > 0) {
|
|
93563
93612
|
result = result + ",";
|
|
93564
93613
|
}
|
|
@@ -93567,9 +93616,9 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
93567
93616
|
} else if (Array.isArray(val[i2])) {
|
|
93568
93617
|
result = result + arrayString(val[i2]);
|
|
93569
93618
|
} else if (ArrayBuffer.isView(val[i2])) {
|
|
93570
|
-
|
|
93619
|
+
let item = val[i2];
|
|
93571
93620
|
if (!(item instanceof Buffer)) {
|
|
93572
|
-
|
|
93621
|
+
const buf = Buffer.from(item.buffer, item.byteOffset, item.byteLength);
|
|
93573
93622
|
if (buf.length === item.byteLength) {
|
|
93574
93623
|
item = buf;
|
|
93575
93624
|
} else {
|
|
@@ -93593,14 +93642,14 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
93593
93642
|
return val;
|
|
93594
93643
|
}
|
|
93595
93644
|
if (ArrayBuffer.isView(val)) {
|
|
93596
|
-
|
|
93645
|
+
const buf = Buffer.from(val.buffer, val.byteOffset, val.byteLength);
|
|
93597
93646
|
if (buf.length === val.byteLength) {
|
|
93598
93647
|
return buf;
|
|
93599
93648
|
}
|
|
93600
93649
|
return buf.slice(val.byteOffset, val.byteOffset + val.byteLength);
|
|
93601
93650
|
}
|
|
93602
|
-
if (val
|
|
93603
|
-
if (
|
|
93651
|
+
if (isDate(val)) {
|
|
93652
|
+
if (defaults2.parseInputDatesAsUTC) {
|
|
93604
93653
|
return dateToStringUTC(val);
|
|
93605
93654
|
} else {
|
|
93606
93655
|
return dateToString(val);
|
|
@@ -93625,12 +93674,12 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
93625
93674
|
return JSON.stringify(val);
|
|
93626
93675
|
}
|
|
93627
93676
|
function dateToString(date5) {
|
|
93628
|
-
|
|
93629
|
-
|
|
93630
|
-
|
|
93677
|
+
let offset = -date5.getTimezoneOffset();
|
|
93678
|
+
let year = date5.getFullYear();
|
|
93679
|
+
const isBCYear = year < 1;
|
|
93631
93680
|
if (isBCYear)
|
|
93632
93681
|
year = Math.abs(year) + 1;
|
|
93633
|
-
|
|
93682
|
+
let ret = String(year).padStart(4, "0") + "-" + String(date5.getMonth() + 1).padStart(2, "0") + "-" + String(date5.getDate()).padStart(2, "0") + "T" + String(date5.getHours()).padStart(2, "0") + ":" + String(date5.getMinutes()).padStart(2, "0") + ":" + String(date5.getSeconds()).padStart(2, "0") + "." + String(date5.getMilliseconds()).padStart(3, "0");
|
|
93634
93683
|
if (offset < 0) {
|
|
93635
93684
|
ret += "-";
|
|
93636
93685
|
offset *= -1;
|
|
@@ -93643,11 +93692,11 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
93643
93692
|
return ret;
|
|
93644
93693
|
}
|
|
93645
93694
|
function dateToStringUTC(date5) {
|
|
93646
|
-
|
|
93647
|
-
|
|
93695
|
+
let year = date5.getUTCFullYear();
|
|
93696
|
+
const isBCYear = year < 1;
|
|
93648
93697
|
if (isBCYear)
|
|
93649
93698
|
year = Math.abs(year) + 1;
|
|
93650
|
-
|
|
93699
|
+
let ret = String(year).padStart(4, "0") + "-" + String(date5.getUTCMonth() + 1).padStart(2, "0") + "-" + String(date5.getUTCDate()).padStart(2, "0") + "T" + String(date5.getUTCHours()).padStart(2, "0") + ":" + String(date5.getUTCMinutes()).padStart(2, "0") + ":" + String(date5.getUTCSeconds()).padStart(2, "0") + "." + String(date5.getUTCMilliseconds()).padStart(3, "0");
|
|
93651
93700
|
ret += "+00:00";
|
|
93652
93701
|
if (isBCYear)
|
|
93653
93702
|
ret += " BC";
|
|
@@ -93667,14 +93716,20 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
93667
93716
|
}
|
|
93668
93717
|
return config3;
|
|
93669
93718
|
}
|
|
93670
|
-
var
|
|
93719
|
+
var escapeIdentifier2 = function(str) {
|
|
93671
93720
|
return '"' + str.replace(/"/g, '""') + '"';
|
|
93672
93721
|
};
|
|
93673
|
-
var
|
|
93674
|
-
|
|
93675
|
-
|
|
93676
|
-
|
|
93677
|
-
|
|
93722
|
+
var escapeLiteral2 = function(str) {
|
|
93723
|
+
let hasBackslash = false;
|
|
93724
|
+
let escaped = "'";
|
|
93725
|
+
if (str == null) {
|
|
93726
|
+
return "''";
|
|
93727
|
+
}
|
|
93728
|
+
if (typeof str !== "string") {
|
|
93729
|
+
return "''";
|
|
93730
|
+
}
|
|
93731
|
+
for (let i2 = 0; i2 < str.length; i2++) {
|
|
93732
|
+
const c2 = str[i2];
|
|
93678
93733
|
if (c2 === "'") {
|
|
93679
93734
|
escaped += c2 + c2;
|
|
93680
93735
|
} else if (c2 === "\\") {
|
|
@@ -93695,21 +93750,21 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
93695
93750
|
return prepareValue(value);
|
|
93696
93751
|
},
|
|
93697
93752
|
normalizeQueryConfig,
|
|
93698
|
-
escapeIdentifier,
|
|
93699
|
-
escapeLiteral
|
|
93753
|
+
escapeIdentifier: escapeIdentifier2,
|
|
93754
|
+
escapeLiteral: escapeLiteral2
|
|
93700
93755
|
};
|
|
93701
93756
|
}
|
|
93702
93757
|
});
|
|
93703
93758
|
var require_utils_legacy = __commonJS2({
|
|
93704
|
-
"../../node_modules/.pnpm/pg@8.
|
|
93759
|
+
"../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/crypto/utils-legacy.js"(exports22, module22) {
|
|
93705
93760
|
"use strict";
|
|
93706
93761
|
var nodeCrypto = __require("crypto");
|
|
93707
93762
|
function md5(string4) {
|
|
93708
93763
|
return nodeCrypto.createHash("md5").update(string4, "utf-8").digest("hex");
|
|
93709
93764
|
}
|
|
93710
93765
|
function postgresMd5PasswordHash(user, password, salt) {
|
|
93711
|
-
|
|
93712
|
-
|
|
93766
|
+
const inner = md5(password + user);
|
|
93767
|
+
const outer = md5(Buffer.concat([Buffer.from(inner), salt]));
|
|
93713
93768
|
return "md5" + outer;
|
|
93714
93769
|
}
|
|
93715
93770
|
function sha2562(text) {
|
|
@@ -93737,7 +93792,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
93737
93792
|
}
|
|
93738
93793
|
});
|
|
93739
93794
|
var require_utils_webcrypto = __commonJS2({
|
|
93740
|
-
"../../node_modules/.pnpm/pg@8.
|
|
93795
|
+
"../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/crypto/utils-webcrypto.js"(exports22, module22) {
|
|
93741
93796
|
"use strict";
|
|
93742
93797
|
var nodeCrypto = __require("crypto");
|
|
93743
93798
|
module22.exports = {
|
|
@@ -93765,8 +93820,8 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
93765
93820
|
}
|
|
93766
93821
|
}
|
|
93767
93822
|
async function postgresMd5PasswordHash(user, password, salt) {
|
|
93768
|
-
|
|
93769
|
-
|
|
93823
|
+
const inner = await md5(password + user);
|
|
93824
|
+
const outer = await md5(Buffer.concat([Buffer.from(inner), salt]));
|
|
93770
93825
|
return "md5" + outer;
|
|
93771
93826
|
}
|
|
93772
93827
|
async function sha2562(text) {
|
|
@@ -93787,7 +93842,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
93787
93842
|
}
|
|
93788
93843
|
});
|
|
93789
93844
|
var require_utils7 = __commonJS2({
|
|
93790
|
-
"../../node_modules/.pnpm/pg@8.
|
|
93845
|
+
"../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/crypto/utils.js"(exports22, module22) {
|
|
93791
93846
|
"use strict";
|
|
93792
93847
|
var useLegacyCrypto = parseInt(process.versions && process.versions.node && process.versions.node.split(".")[0]) < 15;
|
|
93793
93848
|
if (useLegacyCrypto) {
|
|
@@ -93798,10 +93853,10 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
93798
93853
|
}
|
|
93799
93854
|
});
|
|
93800
93855
|
var require_cert_signatures = __commonJS2({
|
|
93801
|
-
"../../node_modules/.pnpm/pg@8.
|
|
93856
|
+
"../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/crypto/cert-signatures.js"(exports22, module22) {
|
|
93802
93857
|
"use strict";
|
|
93803
93858
|
function x509Error(msg, cert) {
|
|
93804
|
-
|
|
93859
|
+
return new Error("SASL channel binding: " + msg + " when parsing public certificate " + cert.toString("base64"));
|
|
93805
93860
|
}
|
|
93806
93861
|
function readASN1Length(data, index) {
|
|
93807
93862
|
let length2 = data[index++];
|
|
@@ -93809,7 +93864,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
93809
93864
|
return { length: length2, index };
|
|
93810
93865
|
const lengthBytes = length2 & 127;
|
|
93811
93866
|
if (lengthBytes > 4)
|
|
93812
|
-
x509Error("bad length", data);
|
|
93867
|
+
throw x509Error("bad length", data);
|
|
93813
93868
|
length2 = 0;
|
|
93814
93869
|
for (let i2 = 0; i2 < lengthBytes; i2++) {
|
|
93815
93870
|
length2 = length2 << 8 | data[index++];
|
|
@@ -93818,10 +93873,10 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
93818
93873
|
}
|
|
93819
93874
|
function readASN1OID(data, index) {
|
|
93820
93875
|
if (data[index++] !== 6)
|
|
93821
|
-
x509Error("non-OID data", data);
|
|
93876
|
+
throw x509Error("non-OID data", data);
|
|
93822
93877
|
const { length: OIDLength, index: indexAfterOIDLength } = readASN1Length(data, index);
|
|
93823
93878
|
index = indexAfterOIDLength;
|
|
93824
|
-
lastIndex = index + OIDLength;
|
|
93879
|
+
const lastIndex = index + OIDLength;
|
|
93825
93880
|
const byte1 = data[index++];
|
|
93826
93881
|
let oid = (byte1 / 40 >> 0) + "." + byte1 % 40;
|
|
93827
93882
|
while (index < lastIndex) {
|
|
@@ -93838,7 +93893,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
93838
93893
|
}
|
|
93839
93894
|
function expectASN1Seq(data, index) {
|
|
93840
93895
|
if (data[index++] !== 48)
|
|
93841
|
-
x509Error("non-sequence data", data);
|
|
93896
|
+
throw x509Error("non-sequence data", data);
|
|
93842
93897
|
return readASN1Length(data, index);
|
|
93843
93898
|
}
|
|
93844
93899
|
function signatureAlgorithmHashFromCertificate(data, index) {
|
|
@@ -93876,11 +93931,11 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
93876
93931
|
return "SHA-384";
|
|
93877
93932
|
case "1.2.840.10045.4.3.4":
|
|
93878
93933
|
return "SHA-512";
|
|
93879
|
-
case "1.2.840.113549.1.1.10":
|
|
93934
|
+
case "1.2.840.113549.1.1.10": {
|
|
93880
93935
|
index = indexAfterOID;
|
|
93881
93936
|
index = expectASN1Seq(data, index).index;
|
|
93882
93937
|
if (data[index++] !== 160)
|
|
93883
|
-
x509Error("non-tag data", data);
|
|
93938
|
+
throw x509Error("non-tag data", data);
|
|
93884
93939
|
index = readASN1Length(data, index).index;
|
|
93885
93940
|
index = expectASN1Seq(data, index).index;
|
|
93886
93941
|
const { oid: hashOID } = readASN1OID(data, index);
|
|
@@ -93896,21 +93951,22 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
93896
93951
|
case "2.16.840.1.101.3.4.2.3":
|
|
93897
93952
|
return "SHA-512";
|
|
93898
93953
|
}
|
|
93899
|
-
x509Error("unknown hash OID " + hashOID, data);
|
|
93954
|
+
throw x509Error("unknown hash OID " + hashOID, data);
|
|
93955
|
+
}
|
|
93900
93956
|
case "1.3.101.110":
|
|
93901
93957
|
case "1.3.101.112":
|
|
93902
93958
|
return "SHA-512";
|
|
93903
93959
|
case "1.3.101.111":
|
|
93904
93960
|
case "1.3.101.113":
|
|
93905
|
-
x509Error("Ed448 certificate channel binding is not currently supported by Postgres");
|
|
93961
|
+
throw x509Error("Ed448 certificate channel binding is not currently supported by Postgres");
|
|
93906
93962
|
}
|
|
93907
|
-
x509Error("unknown OID " + oid, data);
|
|
93963
|
+
throw x509Error("unknown OID " + oid, data);
|
|
93908
93964
|
}
|
|
93909
93965
|
module22.exports = { signatureAlgorithmHashFromCertificate };
|
|
93910
93966
|
}
|
|
93911
93967
|
});
|
|
93912
93968
|
var require_sasl = __commonJS2({
|
|
93913
|
-
"../../node_modules/.pnpm/pg@8.
|
|
93969
|
+
"../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/crypto/sasl.js"(exports22, module22) {
|
|
93914
93970
|
"use strict";
|
|
93915
93971
|
var crypto7 = require_utils7();
|
|
93916
93972
|
var { signatureAlgorithmHashFromCertificate } = require_cert_signatures();
|
|
@@ -93953,8 +94009,8 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
93953
94009
|
} else if (sv.nonce.length === session.clientNonce.length) {
|
|
93954
94010
|
throw new Error("SASL: SCRAM-SERVER-FIRST-MESSAGE: server nonce is too short");
|
|
93955
94011
|
}
|
|
93956
|
-
|
|
93957
|
-
|
|
94012
|
+
const clientFirstMessageBare = "n=*,r=" + session.clientNonce;
|
|
94013
|
+
const serverFirstMessage = "r=" + sv.nonce + ",s=" + sv.salt + ",i=" + sv.iteration;
|
|
93958
94014
|
let channelBinding = stream ? "eSws" : "biws";
|
|
93959
94015
|
if (session.mechanism === "SCRAM-SHA-256-PLUS") {
|
|
93960
94016
|
const peerCert = stream.getPeerCertificate().raw;
|
|
@@ -93965,16 +94021,16 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
93965
94021
|
const bindingData = Buffer.concat([Buffer.from("p=tls-server-end-point,,"), Buffer.from(certHash)]);
|
|
93966
94022
|
channelBinding = bindingData.toString("base64");
|
|
93967
94023
|
}
|
|
93968
|
-
|
|
93969
|
-
|
|
93970
|
-
|
|
93971
|
-
|
|
93972
|
-
|
|
93973
|
-
|
|
93974
|
-
|
|
93975
|
-
|
|
93976
|
-
|
|
93977
|
-
|
|
94024
|
+
const clientFinalMessageWithoutProof = "c=" + channelBinding + ",r=" + sv.nonce;
|
|
94025
|
+
const authMessage = clientFirstMessageBare + "," + serverFirstMessage + "," + clientFinalMessageWithoutProof;
|
|
94026
|
+
const saltBytes = Buffer.from(sv.salt, "base64");
|
|
94027
|
+
const saltedPassword = await crypto7.deriveKey(password, saltBytes, sv.iteration);
|
|
94028
|
+
const clientKey = await crypto7.hmacSha256(saltedPassword, "Client Key");
|
|
94029
|
+
const storedKey = await crypto7.sha256(clientKey);
|
|
94030
|
+
const clientSignature = await crypto7.hmacSha256(storedKey, authMessage);
|
|
94031
|
+
const clientProof = xorBuffers(Buffer.from(clientKey), Buffer.from(clientSignature)).toString("base64");
|
|
94032
|
+
const serverKey = await crypto7.hmacSha256(saltedPassword, "Server Key");
|
|
94033
|
+
const serverSignatureBytes = await crypto7.hmacSha256(serverKey, authMessage);
|
|
93978
94034
|
session.message = "SASLResponse";
|
|
93979
94035
|
session.serverSignature = Buffer.from(serverSignatureBytes).toString("base64");
|
|
93980
94036
|
session.response = clientFinalMessageWithoutProof + ",p=" + clientProof;
|
|
@@ -94077,15 +94133,15 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
94077
94133
|
}
|
|
94078
94134
|
});
|
|
94079
94135
|
var require_type_overrides = __commonJS2({
|
|
94080
|
-
"../../node_modules/.pnpm/pg@8.
|
|
94136
|
+
"../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/type-overrides.js"(exports22, module22) {
|
|
94081
94137
|
"use strict";
|
|
94082
94138
|
var types3 = require_pg_types();
|
|
94083
|
-
function
|
|
94139
|
+
function TypeOverrides2(userTypes) {
|
|
94084
94140
|
this._types = userTypes || types3;
|
|
94085
94141
|
this.text = {};
|
|
94086
94142
|
this.binary = {};
|
|
94087
94143
|
}
|
|
94088
|
-
|
|
94144
|
+
TypeOverrides2.prototype.getOverrides = function(format) {
|
|
94089
94145
|
switch (format) {
|
|
94090
94146
|
case "text":
|
|
94091
94147
|
return this.text;
|
|
@@ -94095,24 +94151,24 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
94095
94151
|
return {};
|
|
94096
94152
|
}
|
|
94097
94153
|
};
|
|
94098
|
-
|
|
94154
|
+
TypeOverrides2.prototype.setTypeParser = function(oid, format, parseFn) {
|
|
94099
94155
|
if (typeof format === "function") {
|
|
94100
94156
|
parseFn = format;
|
|
94101
94157
|
format = "text";
|
|
94102
94158
|
}
|
|
94103
94159
|
this.getOverrides(format)[oid] = parseFn;
|
|
94104
94160
|
};
|
|
94105
|
-
|
|
94161
|
+
TypeOverrides2.prototype.getTypeParser = function(oid, format) {
|
|
94106
94162
|
format = format || "text";
|
|
94107
94163
|
return this.getOverrides(format)[oid] || this._types.getTypeParser(oid, format);
|
|
94108
94164
|
};
|
|
94109
|
-
module22.exports =
|
|
94165
|
+
module22.exports = TypeOverrides2;
|
|
94110
94166
|
}
|
|
94111
94167
|
});
|
|
94112
94168
|
var require_pg_connection_string = __commonJS2({
|
|
94113
|
-
"../../node_modules/.pnpm/pg-connection-string@2.
|
|
94169
|
+
"../../node_modules/.pnpm/pg-connection-string@2.9.1/node_modules/pg-connection-string/index.js"(exports22, module22) {
|
|
94114
94170
|
"use strict";
|
|
94115
|
-
function parse5(str) {
|
|
94171
|
+
function parse5(str, options = {}) {
|
|
94116
94172
|
if (str.charAt(0) === "/") {
|
|
94117
94173
|
const config4 = str.split(" ");
|
|
94118
94174
|
return { host: config4[0], database: config4[1] };
|
|
@@ -94121,13 +94177,17 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
94121
94177
|
let result;
|
|
94122
94178
|
let dummyHost = false;
|
|
94123
94179
|
if (/ |%[^a-f0-9]|%[a-f0-9][^a-f0-9]/i.test(str)) {
|
|
94124
|
-
str = encodeURI(str).replace(
|
|
94180
|
+
str = encodeURI(str).replace(/%25(\d\d)/g, "%$1");
|
|
94125
94181
|
}
|
|
94126
94182
|
try {
|
|
94127
|
-
|
|
94128
|
-
|
|
94129
|
-
|
|
94130
|
-
|
|
94183
|
+
try {
|
|
94184
|
+
result = new URL(str, "postgres://base");
|
|
94185
|
+
} catch (e2) {
|
|
94186
|
+
result = new URL(str.replace("@/", "@___DUMMY___/"), "postgres://base");
|
|
94187
|
+
dummyHost = true;
|
|
94188
|
+
}
|
|
94189
|
+
} catch (err) {
|
|
94190
|
+
err.input && (err.input = "*****REDACTED*****");
|
|
94131
94191
|
}
|
|
94132
94192
|
for (const entry of result.searchParams.entries()) {
|
|
94133
94193
|
config3[entry[0]] = entry[1];
|
|
@@ -94170,33 +94230,112 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
94170
94230
|
if (config3.sslrootcert) {
|
|
94171
94231
|
config3.ssl.ca = fs3.readFileSync(config3.sslrootcert).toString();
|
|
94172
94232
|
}
|
|
94173
|
-
|
|
94174
|
-
|
|
94175
|
-
|
|
94176
|
-
|
|
94177
|
-
|
|
94178
|
-
|
|
94179
|
-
|
|
94180
|
-
|
|
94181
|
-
|
|
94182
|
-
|
|
94233
|
+
if (options.useLibpqCompat && config3.uselibpqcompat) {
|
|
94234
|
+
throw new Error("Both useLibpqCompat and uselibpqcompat are set. Please use only one of them.");
|
|
94235
|
+
}
|
|
94236
|
+
if (config3.uselibpqcompat === "true" || options.useLibpqCompat) {
|
|
94237
|
+
switch (config3.sslmode) {
|
|
94238
|
+
case "disable": {
|
|
94239
|
+
config3.ssl = false;
|
|
94240
|
+
break;
|
|
94241
|
+
}
|
|
94242
|
+
case "prefer": {
|
|
94243
|
+
config3.ssl.rejectUnauthorized = false;
|
|
94244
|
+
break;
|
|
94245
|
+
}
|
|
94246
|
+
case "require": {
|
|
94247
|
+
if (config3.sslrootcert) {
|
|
94248
|
+
config3.ssl.checkServerIdentity = function() {
|
|
94249
|
+
};
|
|
94250
|
+
} else {
|
|
94251
|
+
config3.ssl.rejectUnauthorized = false;
|
|
94252
|
+
}
|
|
94253
|
+
break;
|
|
94254
|
+
}
|
|
94255
|
+
case "verify-ca": {
|
|
94256
|
+
if (!config3.ssl.ca) {
|
|
94257
|
+
throw new Error(
|
|
94258
|
+
"SECURITY WARNING: Using sslmode=verify-ca requires specifying a CA with sslrootcert. If a public CA is used, verify-ca allows connections to a server that somebody else may have registered with the CA, making you vulnerable to Man-in-the-Middle attacks. Either specify a custom CA certificate with sslrootcert parameter or use sslmode=verify-full for proper security."
|
|
94259
|
+
);
|
|
94260
|
+
}
|
|
94261
|
+
config3.ssl.checkServerIdentity = function() {
|
|
94262
|
+
};
|
|
94263
|
+
break;
|
|
94264
|
+
}
|
|
94265
|
+
case "verify-full": {
|
|
94266
|
+
break;
|
|
94267
|
+
}
|
|
94183
94268
|
}
|
|
94184
|
-
|
|
94185
|
-
|
|
94186
|
-
|
|
94269
|
+
} else {
|
|
94270
|
+
switch (config3.sslmode) {
|
|
94271
|
+
case "disable": {
|
|
94272
|
+
config3.ssl = false;
|
|
94273
|
+
break;
|
|
94274
|
+
}
|
|
94275
|
+
case "prefer":
|
|
94276
|
+
case "require":
|
|
94277
|
+
case "verify-ca":
|
|
94278
|
+
case "verify-full": {
|
|
94279
|
+
break;
|
|
94280
|
+
}
|
|
94281
|
+
case "no-verify": {
|
|
94282
|
+
config3.ssl.rejectUnauthorized = false;
|
|
94283
|
+
break;
|
|
94284
|
+
}
|
|
94187
94285
|
}
|
|
94188
94286
|
}
|
|
94189
94287
|
return config3;
|
|
94190
94288
|
}
|
|
94289
|
+
function toConnectionOptions(sslConfig) {
|
|
94290
|
+
const connectionOptions = Object.entries(sslConfig).reduce((c2, [key, value]) => {
|
|
94291
|
+
if (value !== void 0 && value !== null) {
|
|
94292
|
+
c2[key] = value;
|
|
94293
|
+
}
|
|
94294
|
+
return c2;
|
|
94295
|
+
}, {});
|
|
94296
|
+
return connectionOptions;
|
|
94297
|
+
}
|
|
94298
|
+
function toClientConfig(config3) {
|
|
94299
|
+
const poolConfig = Object.entries(config3).reduce((c2, [key, value]) => {
|
|
94300
|
+
if (key === "ssl") {
|
|
94301
|
+
const sslConfig = value;
|
|
94302
|
+
if (typeof sslConfig === "boolean") {
|
|
94303
|
+
c2[key] = sslConfig;
|
|
94304
|
+
}
|
|
94305
|
+
if (typeof sslConfig === "object") {
|
|
94306
|
+
c2[key] = toConnectionOptions(sslConfig);
|
|
94307
|
+
}
|
|
94308
|
+
} else if (value !== void 0 && value !== null) {
|
|
94309
|
+
if (key === "port") {
|
|
94310
|
+
if (value !== "") {
|
|
94311
|
+
const v2 = parseInt(value, 10);
|
|
94312
|
+
if (isNaN(v2)) {
|
|
94313
|
+
throw new Error(`Invalid ${key}: ${value}`);
|
|
94314
|
+
}
|
|
94315
|
+
c2[key] = v2;
|
|
94316
|
+
}
|
|
94317
|
+
} else {
|
|
94318
|
+
c2[key] = value;
|
|
94319
|
+
}
|
|
94320
|
+
}
|
|
94321
|
+
return c2;
|
|
94322
|
+
}, {});
|
|
94323
|
+
return poolConfig;
|
|
94324
|
+
}
|
|
94325
|
+
function parseIntoClientConfig(str) {
|
|
94326
|
+
return toClientConfig(parse5(str));
|
|
94327
|
+
}
|
|
94191
94328
|
module22.exports = parse5;
|
|
94192
94329
|
parse5.parse = parse5;
|
|
94330
|
+
parse5.toClientConfig = toClientConfig;
|
|
94331
|
+
parse5.parseIntoClientConfig = parseIntoClientConfig;
|
|
94193
94332
|
}
|
|
94194
94333
|
});
|
|
94195
94334
|
var require_connection_parameters = __commonJS2({
|
|
94196
|
-
"../../node_modules/.pnpm/pg@8.
|
|
94335
|
+
"../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/connection-parameters.js"(exports22, module22) {
|
|
94197
94336
|
"use strict";
|
|
94198
94337
|
var dns = __require("dns");
|
|
94199
|
-
var
|
|
94338
|
+
var defaults2 = require_defaults2();
|
|
94200
94339
|
var parse5 = require_pg_connection_string().parse;
|
|
94201
94340
|
var val = function(key, config3, envVar) {
|
|
94202
94341
|
if (envVar === void 0) {
|
|
@@ -94205,7 +94344,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
94205
94344
|
} else {
|
|
94206
94345
|
envVar = process.env[envVar];
|
|
94207
94346
|
}
|
|
94208
|
-
return config3[key] || envVar ||
|
|
94347
|
+
return config3[key] || envVar || defaults2[key];
|
|
94209
94348
|
};
|
|
94210
94349
|
var readSSLConfigFromEnvironment = function() {
|
|
94211
94350
|
switch (process.env.PGSSLMODE) {
|
|
@@ -94219,13 +94358,13 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
94219
94358
|
case "no-verify":
|
|
94220
94359
|
return { rejectUnauthorized: false };
|
|
94221
94360
|
}
|
|
94222
|
-
return
|
|
94361
|
+
return defaults2.ssl;
|
|
94223
94362
|
};
|
|
94224
94363
|
var quoteParamValue = function(value) {
|
|
94225
94364
|
return "'" + ("" + value).replace(/\\/g, "\\\\").replace(/'/g, "\\'") + "'";
|
|
94226
94365
|
};
|
|
94227
94366
|
var add2 = function(params, config3, paramName) {
|
|
94228
|
-
|
|
94367
|
+
const value = config3[paramName];
|
|
94229
94368
|
if (value !== void 0 && value !== null) {
|
|
94230
94369
|
params.push(paramName + "=" + quoteParamValue(value));
|
|
94231
94370
|
}
|
|
@@ -94289,7 +94428,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
94289
94428
|
}
|
|
94290
94429
|
}
|
|
94291
94430
|
getLibpqConnectionString(cb) {
|
|
94292
|
-
|
|
94431
|
+
const params = [];
|
|
94293
94432
|
add2(params, this, "user");
|
|
94294
94433
|
add2(params, this, "password");
|
|
94295
94434
|
add2(params, this, "port");
|
|
@@ -94297,7 +94436,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
94297
94436
|
add2(params, this, "fallback_application_name");
|
|
94298
94437
|
add2(params, this, "connect_timeout");
|
|
94299
94438
|
add2(params, this, "options");
|
|
94300
|
-
|
|
94439
|
+
const ssl = typeof this.ssl === "object" ? this.ssl : this.ssl ? { sslmode: this.ssl } : {};
|
|
94301
94440
|
add2(params, ssl, "sslmode");
|
|
94302
94441
|
add2(params, ssl, "sslca");
|
|
94303
94442
|
add2(params, ssl, "sslkey");
|
|
@@ -94330,11 +94469,11 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
94330
94469
|
}
|
|
94331
94470
|
});
|
|
94332
94471
|
var require_result = __commonJS2({
|
|
94333
|
-
"../../node_modules/.pnpm/pg@8.
|
|
94472
|
+
"../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/result.js"(exports22, module22) {
|
|
94334
94473
|
"use strict";
|
|
94335
94474
|
var types3 = require_pg_types();
|
|
94336
94475
|
var matchRegexp = /^([A-Za-z]+)(?: (\d+))?(?: (\d+))?/;
|
|
94337
|
-
var
|
|
94476
|
+
var Result2 = class {
|
|
94338
94477
|
constructor(rowMode, types4) {
|
|
94339
94478
|
this.command = null;
|
|
94340
94479
|
this.rowCount = null;
|
|
@@ -94352,26 +94491,26 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
94352
94491
|
}
|
|
94353
94492
|
// adds a command complete message
|
|
94354
94493
|
addCommandComplete(msg) {
|
|
94355
|
-
|
|
94494
|
+
let match2;
|
|
94356
94495
|
if (msg.text) {
|
|
94357
|
-
|
|
94496
|
+
match2 = matchRegexp.exec(msg.text);
|
|
94358
94497
|
} else {
|
|
94359
|
-
|
|
94498
|
+
match2 = matchRegexp.exec(msg.command);
|
|
94360
94499
|
}
|
|
94361
|
-
if (
|
|
94362
|
-
this.command =
|
|
94363
|
-
if (
|
|
94364
|
-
this.oid = parseInt(
|
|
94365
|
-
this.rowCount = parseInt(
|
|
94366
|
-
} else if (
|
|
94367
|
-
this.rowCount = parseInt(
|
|
94500
|
+
if (match2) {
|
|
94501
|
+
this.command = match2[1];
|
|
94502
|
+
if (match2[3]) {
|
|
94503
|
+
this.oid = parseInt(match2[2], 10);
|
|
94504
|
+
this.rowCount = parseInt(match2[3], 10);
|
|
94505
|
+
} else if (match2[2]) {
|
|
94506
|
+
this.rowCount = parseInt(match2[2], 10);
|
|
94368
94507
|
}
|
|
94369
94508
|
}
|
|
94370
94509
|
}
|
|
94371
94510
|
_parseRowAsArray(rowData) {
|
|
94372
|
-
|
|
94373
|
-
for (
|
|
94374
|
-
|
|
94511
|
+
const row = new Array(rowData.length);
|
|
94512
|
+
for (let i2 = 0, len = rowData.length; i2 < len; i2++) {
|
|
94513
|
+
const rawValue = rowData[i2];
|
|
94375
94514
|
if (rawValue !== null) {
|
|
94376
94515
|
row[i2] = this._parsers[i2](rawValue);
|
|
94377
94516
|
} else {
|
|
@@ -94381,12 +94520,13 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
94381
94520
|
return row;
|
|
94382
94521
|
}
|
|
94383
94522
|
parseRow(rowData) {
|
|
94384
|
-
|
|
94385
|
-
for (
|
|
94386
|
-
|
|
94387
|
-
|
|
94523
|
+
const row = { ...this._prebuiltEmptyResultObject };
|
|
94524
|
+
for (let i2 = 0, len = rowData.length; i2 < len; i2++) {
|
|
94525
|
+
const rawValue = rowData[i2];
|
|
94526
|
+
const field = this.fields[i2].name;
|
|
94388
94527
|
if (rawValue !== null) {
|
|
94389
|
-
|
|
94528
|
+
const v2 = this.fields[i2].format === "binary" ? Buffer.from(rawValue) : rawValue;
|
|
94529
|
+
row[field] = this._parsers[i2](v2);
|
|
94390
94530
|
} else {
|
|
94391
94531
|
row[field] = null;
|
|
94392
94532
|
}
|
|
@@ -94401,9 +94541,9 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
94401
94541
|
if (this.fields.length) {
|
|
94402
94542
|
this._parsers = new Array(fieldDescriptions.length);
|
|
94403
94543
|
}
|
|
94404
|
-
|
|
94405
|
-
for (
|
|
94406
|
-
|
|
94544
|
+
const row = {};
|
|
94545
|
+
for (let i2 = 0; i2 < fieldDescriptions.length; i2++) {
|
|
94546
|
+
const desc = fieldDescriptions[i2];
|
|
94407
94547
|
row[desc.name] = null;
|
|
94408
94548
|
if (this._types) {
|
|
94409
94549
|
this._parsers[i2] = this._types.getTypeParser(desc.dataTypeID, desc.format || "text");
|
|
@@ -94414,16 +94554,16 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
94414
94554
|
this._prebuiltEmptyResultObject = { ...row };
|
|
94415
94555
|
}
|
|
94416
94556
|
};
|
|
94417
|
-
module22.exports =
|
|
94557
|
+
module22.exports = Result2;
|
|
94418
94558
|
}
|
|
94419
94559
|
});
|
|
94420
94560
|
var require_query2 = __commonJS2({
|
|
94421
|
-
"../../node_modules/.pnpm/pg@8.
|
|
94561
|
+
"../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/query.js"(exports22, module22) {
|
|
94422
94562
|
"use strict";
|
|
94423
94563
|
var { EventEmitter } = __require("events");
|
|
94424
|
-
var
|
|
94564
|
+
var Result2 = require_result();
|
|
94425
94565
|
var utils = require_utils6();
|
|
94426
|
-
var
|
|
94566
|
+
var Query2 = class extends EventEmitter {
|
|
94427
94567
|
constructor(config3, values, callback) {
|
|
94428
94568
|
super();
|
|
94429
94569
|
config3 = utils.normalizeQueryConfig(config3, values, callback);
|
|
@@ -94440,7 +94580,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
94440
94580
|
if (process.domain && config3.callback) {
|
|
94441
94581
|
this.callback = process.domain.bind(config3.callback);
|
|
94442
94582
|
}
|
|
94443
|
-
this._result = new
|
|
94583
|
+
this._result = new Result2(this._rowMode, this.types);
|
|
94444
94584
|
this._results = this._result;
|
|
94445
94585
|
this._canceledDueToError = false;
|
|
94446
94586
|
}
|
|
@@ -94467,7 +94607,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
94467
94607
|
if (!Array.isArray(this._results)) {
|
|
94468
94608
|
this._results = [this._result];
|
|
94469
94609
|
}
|
|
94470
|
-
this._result = new
|
|
94610
|
+
this._result = new Result2(this._rowMode, this._result._types);
|
|
94471
94611
|
this._results.push(this._result);
|
|
94472
94612
|
}
|
|
94473
94613
|
}
|
|
@@ -94505,7 +94645,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
94505
94645
|
// if a named prepared statement is created with empty query text
|
|
94506
94646
|
// the backend will send an emptyQuery message but *not* a command complete message
|
|
94507
94647
|
// since we pipeline sync immediately after execute we don't need to do anything here
|
|
94508
|
-
// unless we have rows specified, in which case we did not pipeline the
|
|
94648
|
+
// unless we have rows specified, in which case we did not pipeline the initial sync call
|
|
94509
94649
|
handleEmptyQuery(connection) {
|
|
94510
94650
|
if (this.rows) {
|
|
94511
94651
|
connection.sync();
|
|
@@ -94606,15 +94746,14 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
94606
94746
|
handleCopyInResponse(connection) {
|
|
94607
94747
|
connection.sendCopyFail("No source stream defined");
|
|
94608
94748
|
}
|
|
94609
|
-
// eslint-disable-next-line no-unused-vars
|
|
94610
94749
|
handleCopyData(msg, connection) {
|
|
94611
94750
|
}
|
|
94612
94751
|
};
|
|
94613
|
-
module22.exports =
|
|
94752
|
+
module22.exports = Query2;
|
|
94614
94753
|
}
|
|
94615
94754
|
});
|
|
94616
94755
|
var require_messages = __commonJS2({
|
|
94617
|
-
"../../node_modules/.pnpm/pg-protocol@1.
|
|
94756
|
+
"../../node_modules/.pnpm/pg-protocol@1.10.3/node_modules/pg-protocol/dist/messages.js"(exports22) {
|
|
94618
94757
|
"use strict";
|
|
94619
94758
|
Object.defineProperty(exports22, "__esModule", { value: true });
|
|
94620
94759
|
exports22.NoticeMessage = exports22.DataRowMessage = exports22.CommandCompleteMessage = exports22.ReadyForQueryMessage = exports22.NotificationResponseMessage = exports22.BackendKeyDataMessage = exports22.AuthenticationMD5Password = exports22.ParameterStatusMessage = exports22.ParameterDescriptionMessage = exports22.RowDescriptionMessage = exports22.Field = exports22.CopyResponse = exports22.CopyDataMessage = exports22.DatabaseError = exports22.copyDone = exports22.emptyQuery = exports22.replicationStart = exports22.portalSuspended = exports22.noData = exports22.closeComplete = exports22.bindComplete = exports22.parseComplete = void 0;
|
|
@@ -94650,14 +94789,14 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
94650
94789
|
name: "copyDone",
|
|
94651
94790
|
length: 4
|
|
94652
94791
|
};
|
|
94653
|
-
var
|
|
94792
|
+
var DatabaseError2 = class extends Error {
|
|
94654
94793
|
constructor(message, length2, name6) {
|
|
94655
94794
|
super(message);
|
|
94656
94795
|
this.length = length2;
|
|
94657
94796
|
this.name = name6;
|
|
94658
94797
|
}
|
|
94659
94798
|
};
|
|
94660
|
-
exports22.DatabaseError =
|
|
94799
|
+
exports22.DatabaseError = DatabaseError2;
|
|
94661
94800
|
var CopyDataMessage = class {
|
|
94662
94801
|
constructor(length2, chunk) {
|
|
94663
94802
|
this.length = length2;
|
|
@@ -94777,7 +94916,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
94777
94916
|
}
|
|
94778
94917
|
});
|
|
94779
94918
|
var require_buffer_writer = __commonJS2({
|
|
94780
|
-
"../../node_modules/.pnpm/pg-protocol@1.
|
|
94919
|
+
"../../node_modules/.pnpm/pg-protocol@1.10.3/node_modules/pg-protocol/dist/buffer-writer.js"(exports22) {
|
|
94781
94920
|
"use strict";
|
|
94782
94921
|
Object.defineProperty(exports22, "__esModule", { value: true });
|
|
94783
94922
|
exports22.Writer = void 0;
|
|
@@ -94789,10 +94928,10 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
94789
94928
|
this.buffer = Buffer.allocUnsafe(size);
|
|
94790
94929
|
}
|
|
94791
94930
|
ensure(size) {
|
|
94792
|
-
|
|
94931
|
+
const remaining = this.buffer.length - this.offset;
|
|
94793
94932
|
if (remaining < size) {
|
|
94794
|
-
|
|
94795
|
-
|
|
94933
|
+
const oldBuffer = this.buffer;
|
|
94934
|
+
const newSize = oldBuffer.length + (oldBuffer.length >> 1) + size;
|
|
94796
94935
|
this.buffer = Buffer.allocUnsafe(newSize);
|
|
94797
94936
|
oldBuffer.copy(this.buffer);
|
|
94798
94937
|
}
|
|
@@ -94815,7 +94954,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
94815
94954
|
if (!string4) {
|
|
94816
94955
|
this.ensure(1);
|
|
94817
94956
|
} else {
|
|
94818
|
-
|
|
94957
|
+
const len = Buffer.byteLength(string4);
|
|
94819
94958
|
this.ensure(len + 1);
|
|
94820
94959
|
this.buffer.write(string4, this.offset, "utf-8");
|
|
94821
94960
|
this.offset += len;
|
|
@@ -94824,7 +94963,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
94824
94963
|
return this;
|
|
94825
94964
|
}
|
|
94826
94965
|
addString(string4 = "") {
|
|
94827
|
-
|
|
94966
|
+
const len = Buffer.byteLength(string4);
|
|
94828
94967
|
this.ensure(len);
|
|
94829
94968
|
this.buffer.write(string4, this.offset);
|
|
94830
94969
|
this.offset += len;
|
|
@@ -94845,7 +94984,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
94845
94984
|
return this.buffer.slice(code ? 0 : 5, this.offset);
|
|
94846
94985
|
}
|
|
94847
94986
|
flush(code) {
|
|
94848
|
-
|
|
94987
|
+
const result = this.join(code);
|
|
94849
94988
|
this.offset = 5;
|
|
94850
94989
|
this.headerPosition = 0;
|
|
94851
94990
|
this.buffer = Buffer.allocUnsafe(this.size);
|
|
@@ -94856,7 +94995,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
94856
94995
|
}
|
|
94857
94996
|
});
|
|
94858
94997
|
var require_serializer = __commonJS2({
|
|
94859
|
-
"../../node_modules/.pnpm/pg-protocol@1.
|
|
94998
|
+
"../../node_modules/.pnpm/pg-protocol@1.10.3/node_modules/pg-protocol/dist/serializer.js"(exports22) {
|
|
94860
94999
|
"use strict";
|
|
94861
95000
|
Object.defineProperty(exports22, "__esModule", { value: true });
|
|
94862
95001
|
exports22.serialize = void 0;
|
|
@@ -94868,8 +95007,8 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
94868
95007
|
writer.addCString(key).addCString(opts[key]);
|
|
94869
95008
|
}
|
|
94870
95009
|
writer.addCString("client_encoding").addCString("UTF8");
|
|
94871
|
-
|
|
94872
|
-
|
|
95010
|
+
const bodyBuffer = writer.addCString("").flush();
|
|
95011
|
+
const length2 = bodyBuffer.length + 4;
|
|
94873
95012
|
return new buffer_writer_1.Writer().addInt32(length2).add(bodyBuffer).flush();
|
|
94874
95013
|
};
|
|
94875
95014
|
var requestSsl = () => {
|
|
@@ -94912,9 +95051,9 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
94912
95051
|
console.error("This can cause conflicts and silent errors executing queries");
|
|
94913
95052
|
}
|
|
94914
95053
|
const types3 = query3.types || emptyArray;
|
|
94915
|
-
|
|
94916
|
-
|
|
94917
|
-
for (
|
|
95054
|
+
const len = types3.length;
|
|
95055
|
+
const buffer = writer.addCString(name6).addCString(query3.text).addInt16(len);
|
|
95056
|
+
for (let i2 = 0; i2 < len; i2++) {
|
|
94918
95057
|
buffer.addInt32(types3[i2]);
|
|
94919
95058
|
}
|
|
94920
95059
|
return writer.flush(
|
|
@@ -94960,6 +95099,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
94960
95099
|
writeValues(values, config3.valueMapper);
|
|
94961
95100
|
writer.addInt16(len);
|
|
94962
95101
|
writer.add(paramWriter.flush());
|
|
95102
|
+
writer.addInt16(1);
|
|
94963
95103
|
writer.addInt16(
|
|
94964
95104
|
binary ? 1 : 0
|
|
94965
95105
|
/* ParamType.STRING */
|
|
@@ -95070,7 +95210,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
95070
95210
|
}
|
|
95071
95211
|
});
|
|
95072
95212
|
var require_buffer_reader = __commonJS2({
|
|
95073
|
-
"../../node_modules/.pnpm/pg-protocol@1.
|
|
95213
|
+
"../../node_modules/.pnpm/pg-protocol@1.10.3/node_modules/pg-protocol/dist/buffer-reader.js"(exports22) {
|
|
95074
95214
|
"use strict";
|
|
95075
95215
|
Object.defineProperty(exports22, "__esModule", { value: true });
|
|
95076
95216
|
exports22.BufferReader = void 0;
|
|
@@ -95128,7 +95268,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
95128
95268
|
}
|
|
95129
95269
|
});
|
|
95130
95270
|
var require_parser22 = __commonJS2({
|
|
95131
|
-
"../../node_modules/.pnpm/pg-protocol@1.
|
|
95271
|
+
"../../node_modules/.pnpm/pg-protocol@1.10.3/node_modules/pg-protocol/dist/parser.js"(exports22) {
|
|
95132
95272
|
"use strict";
|
|
95133
95273
|
Object.defineProperty(exports22, "__esModule", { value: true });
|
|
95134
95274
|
exports22.Parser = void 0;
|
|
@@ -95361,15 +95501,17 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
95361
95501
|
}
|
|
95362
95502
|
break;
|
|
95363
95503
|
case 10:
|
|
95364
|
-
|
|
95365
|
-
|
|
95366
|
-
|
|
95367
|
-
|
|
95368
|
-
|
|
95369
|
-
|
|
95370
|
-
|
|
95371
|
-
|
|
95372
|
-
|
|
95504
|
+
{
|
|
95505
|
+
message.name = "authenticationSASL";
|
|
95506
|
+
message.mechanisms = [];
|
|
95507
|
+
let mechanism;
|
|
95508
|
+
do {
|
|
95509
|
+
mechanism = this.reader.cstring();
|
|
95510
|
+
if (mechanism) {
|
|
95511
|
+
message.mechanisms.push(mechanism);
|
|
95512
|
+
}
|
|
95513
|
+
} while (mechanism);
|
|
95514
|
+
}
|
|
95373
95515
|
break;
|
|
95374
95516
|
case 11:
|
|
95375
95517
|
message.name = "authenticationSASLContinue";
|
|
@@ -95417,7 +95559,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
95417
95559
|
}
|
|
95418
95560
|
});
|
|
95419
95561
|
var require_dist4 = __commonJS2({
|
|
95420
|
-
"../../node_modules/.pnpm/pg-protocol@1.
|
|
95562
|
+
"../../node_modules/.pnpm/pg-protocol@1.10.3/node_modules/pg-protocol/dist/index.js"(exports22) {
|
|
95421
95563
|
"use strict";
|
|
95422
95564
|
Object.defineProperty(exports22, "__esModule", { value: true });
|
|
95423
95565
|
exports22.DatabaseError = exports22.serialize = exports22.parse = void 0;
|
|
@@ -95438,19 +95580,15 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
95438
95580
|
exports22.parse = parse5;
|
|
95439
95581
|
}
|
|
95440
95582
|
});
|
|
95441
|
-
var
|
|
95442
|
-
|
|
95443
|
-
default: () => empty_default
|
|
95444
|
-
});
|
|
95445
|
-
var empty_default;
|
|
95446
|
-
var init_empty = __esm({
|
|
95447
|
-
"../../node_modules/.pnpm/pg-cloudflare@1.1.1/node_modules/pg-cloudflare/dist/empty.js"() {
|
|
95583
|
+
var require_empty = __commonJS2({
|
|
95584
|
+
"../../node_modules/.pnpm/pg-cloudflare@1.2.7/node_modules/pg-cloudflare/dist/empty.js"(exports22) {
|
|
95448
95585
|
"use strict";
|
|
95449
|
-
|
|
95586
|
+
Object.defineProperty(exports22, "__esModule", { value: true });
|
|
95587
|
+
exports22.default = {};
|
|
95450
95588
|
}
|
|
95451
95589
|
});
|
|
95452
95590
|
var require_stream3 = __commonJS2({
|
|
95453
|
-
"../../node_modules/.pnpm/pg@8.
|
|
95591
|
+
"../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/stream.js"(exports22, module22) {
|
|
95454
95592
|
"use strict";
|
|
95455
95593
|
var { getStream, getSecureStream } = getStreamFuncs();
|
|
95456
95594
|
module22.exports = {
|
|
@@ -95472,7 +95610,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
95472
95610
|
return new net.Socket();
|
|
95473
95611
|
}
|
|
95474
95612
|
function getSecureStream2(options) {
|
|
95475
|
-
|
|
95613
|
+
const tls = __require("tls");
|
|
95476
95614
|
return tls.connect(options);
|
|
95477
95615
|
}
|
|
95478
95616
|
return {
|
|
@@ -95482,7 +95620,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
95482
95620
|
}
|
|
95483
95621
|
function getCloudflareStreamFuncs() {
|
|
95484
95622
|
function getStream2(ssl) {
|
|
95485
|
-
const { CloudflareSocket } = (
|
|
95623
|
+
const { CloudflareSocket } = require_empty();
|
|
95486
95624
|
return new CloudflareSocket(ssl);
|
|
95487
95625
|
}
|
|
95488
95626
|
function getSecureStream2(options) {
|
|
@@ -95515,7 +95653,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
95515
95653
|
}
|
|
95516
95654
|
});
|
|
95517
95655
|
var require_connection3 = __commonJS2({
|
|
95518
|
-
"../../node_modules/.pnpm/pg@8.
|
|
95656
|
+
"../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/connection.js"(exports22, module22) {
|
|
95519
95657
|
"use strict";
|
|
95520
95658
|
var EventEmitter = __require("events").EventEmitter;
|
|
95521
95659
|
var { parse: parse5, serialize: serialize2 } = require_dist4();
|
|
@@ -95523,7 +95661,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
95523
95661
|
var flushBuffer = serialize2.flush();
|
|
95524
95662
|
var syncBuffer = serialize2.sync();
|
|
95525
95663
|
var endBuffer = serialize2.end();
|
|
95526
|
-
var
|
|
95664
|
+
var Connection2 = class extends EventEmitter {
|
|
95527
95665
|
constructor(config3) {
|
|
95528
95666
|
super();
|
|
95529
95667
|
config3 = config3 || {};
|
|
@@ -95538,7 +95676,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
95538
95676
|
this.ssl = config3.ssl || false;
|
|
95539
95677
|
this._ending = false;
|
|
95540
95678
|
this._emitMessage = false;
|
|
95541
|
-
|
|
95679
|
+
const self2 = this;
|
|
95542
95680
|
this.on("newListener", function(eventName) {
|
|
95543
95681
|
if (eventName === "message") {
|
|
95544
95682
|
self2._emitMessage = true;
|
|
@@ -95546,7 +95684,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
95546
95684
|
});
|
|
95547
95685
|
}
|
|
95548
95686
|
connect(port, host) {
|
|
95549
|
-
|
|
95687
|
+
const self2 = this;
|
|
95550
95688
|
this._connecting = true;
|
|
95551
95689
|
this.stream.setNoDelay(true);
|
|
95552
95690
|
this.stream.connect(port, host);
|
|
@@ -95570,7 +95708,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
95570
95708
|
return this.attachListeners(this.stream);
|
|
95571
95709
|
}
|
|
95572
95710
|
this.stream.once("data", function(buffer) {
|
|
95573
|
-
|
|
95711
|
+
const responseCode = buffer.toString("utf8");
|
|
95574
95712
|
switch (responseCode) {
|
|
95575
95713
|
case "S":
|
|
95576
95714
|
break;
|
|
@@ -95590,7 +95728,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
95590
95728
|
options.key = self2.ssl.key;
|
|
95591
95729
|
}
|
|
95592
95730
|
}
|
|
95593
|
-
|
|
95731
|
+
const net = __require("net");
|
|
95594
95732
|
if (net.isIP && net.isIP(host) === 0) {
|
|
95595
95733
|
options.servername = host;
|
|
95596
95734
|
}
|
|
@@ -95606,7 +95744,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
95606
95744
|
}
|
|
95607
95745
|
attachListeners(stream) {
|
|
95608
95746
|
parse5(stream, (msg) => {
|
|
95609
|
-
|
|
95747
|
+
const eventName = msg.name === "error" ? "errorMessage" : msg.name;
|
|
95610
95748
|
if (this._emitMessage) {
|
|
95611
95749
|
this.emit("message", msg);
|
|
95612
95750
|
}
|
|
@@ -95693,7 +95831,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
95693
95831
|
this._send(serialize2.copyFail(msg));
|
|
95694
95832
|
}
|
|
95695
95833
|
};
|
|
95696
|
-
module22.exports =
|
|
95834
|
+
module22.exports = Connection2;
|
|
95697
95835
|
}
|
|
95698
95836
|
});
|
|
95699
95837
|
var require_split2 = __commonJS2({
|
|
@@ -95837,8 +95975,8 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
95837
95975
|
return old;
|
|
95838
95976
|
};
|
|
95839
95977
|
module22.exports.getFileName = function(rawEnv) {
|
|
95840
|
-
var
|
|
95841
|
-
var file2 =
|
|
95978
|
+
var env2 = rawEnv || process.env;
|
|
95979
|
+
var file2 = env2.PGPASSFILE || (isWin ? path3.join(env2.APPDATA || "./", "postgresql", "pgpass.conf") : path3.join(env2.HOME || "./", ".pgpass"));
|
|
95842
95980
|
return file2;
|
|
95843
95981
|
};
|
|
95844
95982
|
module22.exports.usePgPass = function(stats, fname) {
|
|
@@ -95985,18 +96123,18 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
95985
96123
|
}
|
|
95986
96124
|
});
|
|
95987
96125
|
var require_client = __commonJS2({
|
|
95988
|
-
"../../node_modules/.pnpm/pg@8.
|
|
96126
|
+
"../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/client.js"(exports22, module22) {
|
|
95989
96127
|
"use strict";
|
|
95990
96128
|
var EventEmitter = __require("events").EventEmitter;
|
|
95991
96129
|
var utils = require_utils6();
|
|
95992
96130
|
var sasl = require_sasl();
|
|
95993
|
-
var
|
|
96131
|
+
var TypeOverrides2 = require_type_overrides();
|
|
95994
96132
|
var ConnectionParameters = require_connection_parameters();
|
|
95995
|
-
var
|
|
95996
|
-
var
|
|
95997
|
-
var
|
|
96133
|
+
var Query2 = require_query2();
|
|
96134
|
+
var defaults2 = require_defaults2();
|
|
96135
|
+
var Connection2 = require_connection3();
|
|
95998
96136
|
var crypto7 = require_utils7();
|
|
95999
|
-
var
|
|
96137
|
+
var Client2 = class extends EventEmitter {
|
|
96000
96138
|
constructor(config3) {
|
|
96001
96139
|
super();
|
|
96002
96140
|
this.connectionParameters = new ConnectionParameters(config3);
|
|
@@ -96011,9 +96149,9 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
96011
96149
|
value: this.connectionParameters.password
|
|
96012
96150
|
});
|
|
96013
96151
|
this.replication = this.connectionParameters.replication;
|
|
96014
|
-
|
|
96152
|
+
const c2 = config3 || {};
|
|
96015
96153
|
this._Promise = c2.Promise || global.Promise;
|
|
96016
|
-
this._types = new
|
|
96154
|
+
this._types = new TypeOverrides2(c2.types);
|
|
96017
96155
|
this._ending = false;
|
|
96018
96156
|
this._ended = false;
|
|
96019
96157
|
this._connecting = false;
|
|
@@ -96021,7 +96159,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
96021
96159
|
this._connectionError = false;
|
|
96022
96160
|
this._queryable = true;
|
|
96023
96161
|
this.enableChannelBinding = Boolean(c2.enableChannelBinding);
|
|
96024
|
-
this.connection = c2.connection || new
|
|
96162
|
+
this.connection = c2.connection || new Connection2({
|
|
96025
96163
|
stream: c2.stream,
|
|
96026
96164
|
ssl: this.connectionParameters.ssl,
|
|
96027
96165
|
keepAlive: c2.keepAlive || false,
|
|
@@ -96029,7 +96167,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
96029
96167
|
encoding: this.connectionParameters.client_encoding || "utf8"
|
|
96030
96168
|
});
|
|
96031
96169
|
this.queryQueue = [];
|
|
96032
|
-
this.binary = c2.binary ||
|
|
96170
|
+
this.binary = c2.binary || defaults2.binary;
|
|
96033
96171
|
this.processID = null;
|
|
96034
96172
|
this.secretKey = null;
|
|
96035
96173
|
this.ssl = this.connectionParameters.ssl || false;
|
|
@@ -96054,8 +96192,8 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
96054
96192
|
this.queryQueue.length = 0;
|
|
96055
96193
|
}
|
|
96056
96194
|
_connect(callback) {
|
|
96057
|
-
|
|
96058
|
-
|
|
96195
|
+
const self2 = this;
|
|
96196
|
+
const con = this.connection;
|
|
96059
96197
|
this._connectionCallback = callback;
|
|
96060
96198
|
if (this._connecting || this._connected) {
|
|
96061
96199
|
const err = new Error("Client has already been connected. You cannot reuse a client.");
|
|
@@ -96251,7 +96389,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
96251
96389
|
}
|
|
96252
96390
|
this._pulseQueryQueue();
|
|
96253
96391
|
}
|
|
96254
|
-
// if we
|
|
96392
|
+
// if we receive an error event or error message
|
|
96255
96393
|
// during the connection process we handle it here
|
|
96256
96394
|
_handleErrorWhileConnecting(err) {
|
|
96257
96395
|
if (this._connectionError) {
|
|
@@ -96331,12 +96469,12 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
96331
96469
|
this.emit("notice", msg);
|
|
96332
96470
|
}
|
|
96333
96471
|
getStartupConf() {
|
|
96334
|
-
|
|
96335
|
-
|
|
96472
|
+
const params = this.connectionParameters;
|
|
96473
|
+
const data = {
|
|
96336
96474
|
user: params.user,
|
|
96337
96475
|
database: params.database
|
|
96338
96476
|
};
|
|
96339
|
-
|
|
96477
|
+
const appName = params.application_name || params.fallback_application_name;
|
|
96340
96478
|
if (appName) {
|
|
96341
96479
|
data.application_name = appName;
|
|
96342
96480
|
}
|
|
@@ -96359,7 +96497,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
96359
96497
|
}
|
|
96360
96498
|
cancel(client, query2) {
|
|
96361
96499
|
if (client.activeQuery === query2) {
|
|
96362
|
-
|
|
96500
|
+
const con = this.connection;
|
|
96363
96501
|
if (this.host && this.host.indexOf("/") === 0) {
|
|
96364
96502
|
con.connect(this.host + "/.s.PGSQL." + this.port);
|
|
96365
96503
|
} else {
|
|
@@ -96408,11 +96546,11 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
96408
96546
|
}
|
|
96409
96547
|
}
|
|
96410
96548
|
query(config3, values, callback) {
|
|
96411
|
-
|
|
96412
|
-
|
|
96413
|
-
|
|
96414
|
-
|
|
96415
|
-
|
|
96549
|
+
let query2;
|
|
96550
|
+
let result;
|
|
96551
|
+
let readTimeout;
|
|
96552
|
+
let readTimeoutTimer;
|
|
96553
|
+
let queryCallback;
|
|
96416
96554
|
if (config3 === null || config3 === void 0) {
|
|
96417
96555
|
throw new TypeError("Client was passed a null or undefined query");
|
|
96418
96556
|
} else if (typeof config3.submit === "function") {
|
|
@@ -96423,7 +96561,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
96423
96561
|
}
|
|
96424
96562
|
} else {
|
|
96425
96563
|
readTimeout = config3.query_timeout || this.connectionParameters.query_timeout;
|
|
96426
|
-
query2 = new
|
|
96564
|
+
query2 = new Query2(config3, values, callback);
|
|
96427
96565
|
if (!query2.callback) {
|
|
96428
96566
|
result = new this._Promise((resolve, reject) => {
|
|
96429
96567
|
query2.callback = (err, res) => err ? reject(err) : resolve(res);
|
|
@@ -96436,14 +96574,14 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
96436
96574
|
if (readTimeout) {
|
|
96437
96575
|
queryCallback = query2.callback;
|
|
96438
96576
|
readTimeoutTimer = setTimeout(() => {
|
|
96439
|
-
|
|
96577
|
+
const error44 = new Error("Query read timeout");
|
|
96440
96578
|
process.nextTick(() => {
|
|
96441
96579
|
query2.handleError(error44, this.connection);
|
|
96442
96580
|
});
|
|
96443
96581
|
queryCallback(error44);
|
|
96444
96582
|
query2.callback = () => {
|
|
96445
96583
|
};
|
|
96446
|
-
|
|
96584
|
+
const index = this.queryQueue.indexOf(query2);
|
|
96447
96585
|
if (index > -1) {
|
|
96448
96586
|
this.queryQueue.splice(index, 1);
|
|
96449
96587
|
}
|
|
@@ -96505,12 +96643,12 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
96505
96643
|
}
|
|
96506
96644
|
}
|
|
96507
96645
|
};
|
|
96508
|
-
|
|
96509
|
-
module22.exports =
|
|
96646
|
+
Client2.Query = Query2;
|
|
96647
|
+
module22.exports = Client2;
|
|
96510
96648
|
}
|
|
96511
96649
|
});
|
|
96512
96650
|
var require_pg_pool = __commonJS2({
|
|
96513
|
-
"../../node_modules/.pnpm/pg-pool@3.
|
|
96651
|
+
"../../node_modules/.pnpm/pg-pool@3.10.1_pg@8.16.3/node_modules/pg-pool/index.js"(exports22, module22) {
|
|
96514
96652
|
"use strict";
|
|
96515
96653
|
var EventEmitter = __require("events").EventEmitter;
|
|
96516
96654
|
var NOOP = function() {
|
|
@@ -96563,8 +96701,8 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
96563
96701
|
pool2.emit("error", err, client);
|
|
96564
96702
|
};
|
|
96565
96703
|
}
|
|
96566
|
-
var
|
|
96567
|
-
constructor(options,
|
|
96704
|
+
var Pool2 = class extends EventEmitter {
|
|
96705
|
+
constructor(options, Client2) {
|
|
96568
96706
|
super();
|
|
96569
96707
|
this.options = Object.assign({}, options);
|
|
96570
96708
|
if (options != null && "password" in options) {
|
|
@@ -96581,12 +96719,13 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
96581
96719
|
});
|
|
96582
96720
|
}
|
|
96583
96721
|
this.options.max = this.options.max || this.options.poolSize || 10;
|
|
96722
|
+
this.options.min = this.options.min || 0;
|
|
96584
96723
|
this.options.maxUses = this.options.maxUses || Infinity;
|
|
96585
96724
|
this.options.allowExitOnIdle = this.options.allowExitOnIdle || false;
|
|
96586
96725
|
this.options.maxLifetimeSeconds = this.options.maxLifetimeSeconds || 0;
|
|
96587
96726
|
this.log = this.options.log || function() {
|
|
96588
96727
|
};
|
|
96589
|
-
this.Client = this.options.Client ||
|
|
96728
|
+
this.Client = this.options.Client || Client2 || require_lib4().Client;
|
|
96590
96729
|
this.Promise = this.options.Promise || global.Promise;
|
|
96591
96730
|
if (typeof this.options.idleTimeoutMillis === "undefined") {
|
|
96592
96731
|
this.options.idleTimeoutMillis = 1e4;
|
|
@@ -96602,6 +96741,9 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
96602
96741
|
_isFull() {
|
|
96603
96742
|
return this._clients.length >= this.options.max;
|
|
96604
96743
|
}
|
|
96744
|
+
_isAboveMin() {
|
|
96745
|
+
return this._clients.length > this.options.min;
|
|
96746
|
+
}
|
|
96605
96747
|
_pulseQueue() {
|
|
96606
96748
|
this.log("pulse queue");
|
|
96607
96749
|
if (this.ended) {
|
|
@@ -96642,14 +96784,19 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
96642
96784
|
}
|
|
96643
96785
|
throw new Error("unexpected condition");
|
|
96644
96786
|
}
|
|
96645
|
-
_remove(client) {
|
|
96787
|
+
_remove(client, callback) {
|
|
96646
96788
|
const removed = removeWhere(this._idle, (item) => item.client === client);
|
|
96647
96789
|
if (removed !== void 0) {
|
|
96648
96790
|
clearTimeout(removed.timeoutId);
|
|
96649
96791
|
}
|
|
96650
96792
|
this._clients = this._clients.filter((c2) => c2 !== client);
|
|
96651
|
-
|
|
96652
|
-
|
|
96793
|
+
const context2 = this;
|
|
96794
|
+
client.end(() => {
|
|
96795
|
+
context2.emit("remove", client);
|
|
96796
|
+
if (typeof callback === "function") {
|
|
96797
|
+
callback();
|
|
96798
|
+
}
|
|
96799
|
+
});
|
|
96653
96800
|
}
|
|
96654
96801
|
connect(cb) {
|
|
96655
96802
|
if (this.ending) {
|
|
@@ -96787,23 +96934,19 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
96787
96934
|
if (client._poolUseCount >= this.options.maxUses) {
|
|
96788
96935
|
this.log("remove expended client");
|
|
96789
96936
|
}
|
|
96790
|
-
this._remove(client);
|
|
96791
|
-
this._pulseQueue();
|
|
96792
|
-
return;
|
|
96937
|
+
return this._remove(client, this._pulseQueue.bind(this));
|
|
96793
96938
|
}
|
|
96794
96939
|
const isExpired = this._expired.has(client);
|
|
96795
96940
|
if (isExpired) {
|
|
96796
96941
|
this.log("remove expired client");
|
|
96797
96942
|
this._expired.delete(client);
|
|
96798
|
-
this._remove(client);
|
|
96799
|
-
this._pulseQueue();
|
|
96800
|
-
return;
|
|
96943
|
+
return this._remove(client, this._pulseQueue.bind(this));
|
|
96801
96944
|
}
|
|
96802
96945
|
let tid;
|
|
96803
|
-
if (this.options.idleTimeoutMillis) {
|
|
96946
|
+
if (this.options.idleTimeoutMillis && this._isAboveMin()) {
|
|
96804
96947
|
tid = setTimeout(() => {
|
|
96805
96948
|
this.log("remove idle client");
|
|
96806
|
-
this._remove(client);
|
|
96949
|
+
this._remove(client, this._pulseQueue.bind(this));
|
|
96807
96950
|
}, this.options.idleTimeoutMillis);
|
|
96808
96951
|
if (this.options.allowExitOnIdle) {
|
|
96809
96952
|
tid.unref();
|
|
@@ -96890,11 +97033,11 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
96890
97033
|
return this._clients.length;
|
|
96891
97034
|
}
|
|
96892
97035
|
};
|
|
96893
|
-
module22.exports =
|
|
97036
|
+
module22.exports = Pool2;
|
|
96894
97037
|
}
|
|
96895
97038
|
});
|
|
96896
97039
|
var require_query3 = __commonJS2({
|
|
96897
|
-
"../../node_modules/.pnpm/pg@8.
|
|
97040
|
+
"../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/native/query.js"(exports22, module22) {
|
|
96898
97041
|
"use strict";
|
|
96899
97042
|
var EventEmitter = __require("events").EventEmitter;
|
|
96900
97043
|
var util2 = __require("util");
|
|
@@ -96920,7 +97063,6 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
96920
97063
|
};
|
|
96921
97064
|
util2.inherits(NativeQuery, EventEmitter);
|
|
96922
97065
|
var errorFieldMap = {
|
|
96923
|
-
/* eslint-disable quote-props */
|
|
96924
97066
|
sqlState: "code",
|
|
96925
97067
|
statementPosition: "position",
|
|
96926
97068
|
messagePrimary: "message",
|
|
@@ -96935,10 +97077,10 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
96935
97077
|
sourceFunction: "routine"
|
|
96936
97078
|
};
|
|
96937
97079
|
NativeQuery.prototype.handleError = function(err) {
|
|
96938
|
-
|
|
97080
|
+
const fields = this.native.pq.resultErrorFields();
|
|
96939
97081
|
if (fields) {
|
|
96940
|
-
for (
|
|
96941
|
-
|
|
97082
|
+
for (const key in fields) {
|
|
97083
|
+
const normalizedFieldName = errorFieldMap[key] || key;
|
|
96942
97084
|
err[normalizedFieldName] = fields[key];
|
|
96943
97085
|
}
|
|
96944
97086
|
}
|
|
@@ -96968,10 +97110,10 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
96968
97110
|
};
|
|
96969
97111
|
NativeQuery.prototype.submit = function(client) {
|
|
96970
97112
|
this.state = "running";
|
|
96971
|
-
|
|
97113
|
+
const self2 = this;
|
|
96972
97114
|
this.native = client.native;
|
|
96973
97115
|
client.native.arrayMode = this._arrayMode;
|
|
96974
|
-
|
|
97116
|
+
let after = function(err, rows, results) {
|
|
96975
97117
|
client.native.arrayMode = false;
|
|
96976
97118
|
setImmediate(function() {
|
|
96977
97119
|
self2.emit("_done");
|
|
@@ -97007,7 +97149,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
97007
97149
|
console.error("You supplied %s (%s)", this.name, this.name.length);
|
|
97008
97150
|
console.error("This can cause conflicts and silent errors executing queries");
|
|
97009
97151
|
}
|
|
97010
|
-
|
|
97152
|
+
const values = (this.values || []).map(utils.prepareValue);
|
|
97011
97153
|
if (client.namedQueries[this.name]) {
|
|
97012
97154
|
if (this.text && client.namedQueries[this.name] !== this.text) {
|
|
97013
97155
|
const err = new Error(`Prepared statements must be unique - '${this.name}' was used for a different statement`);
|
|
@@ -97026,7 +97168,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
97026
97168
|
const err = new Error("Query values must be an array");
|
|
97027
97169
|
return after(err);
|
|
97028
97170
|
}
|
|
97029
|
-
|
|
97171
|
+
const vals = this.values.map(utils.prepareValue);
|
|
97030
97172
|
client.native.query(this.text, vals, after);
|
|
97031
97173
|
} else if (this.queryMode === "extended") {
|
|
97032
97174
|
client.native.query(this.text, [], after);
|
|
@@ -97037,7 +97179,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
97037
97179
|
}
|
|
97038
97180
|
});
|
|
97039
97181
|
var require_client2 = __commonJS2({
|
|
97040
|
-
"../../node_modules/.pnpm/pg@8.
|
|
97182
|
+
"../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/native/client.js"(exports22, module22) {
|
|
97041
97183
|
"use strict";
|
|
97042
97184
|
var Native;
|
|
97043
97185
|
try {
|
|
@@ -97045,16 +97187,16 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
97045
97187
|
} catch (e2) {
|
|
97046
97188
|
throw e2;
|
|
97047
97189
|
}
|
|
97048
|
-
var
|
|
97190
|
+
var TypeOverrides2 = require_type_overrides();
|
|
97049
97191
|
var EventEmitter = __require("events").EventEmitter;
|
|
97050
97192
|
var util2 = __require("util");
|
|
97051
97193
|
var ConnectionParameters = require_connection_parameters();
|
|
97052
97194
|
var NativeQuery = require_query3();
|
|
97053
|
-
var
|
|
97195
|
+
var Client2 = module22.exports = function(config3) {
|
|
97054
97196
|
EventEmitter.call(this);
|
|
97055
97197
|
config3 = config3 || {};
|
|
97056
97198
|
this._Promise = config3.Promise || global.Promise;
|
|
97057
|
-
this._types = new
|
|
97199
|
+
this._types = new TypeOverrides2(config3.types);
|
|
97058
97200
|
this.native = new Native({
|
|
97059
97201
|
types: this._types
|
|
97060
97202
|
});
|
|
@@ -97063,7 +97205,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
97063
97205
|
this._connecting = false;
|
|
97064
97206
|
this._connected = false;
|
|
97065
97207
|
this._queryable = true;
|
|
97066
|
-
|
|
97208
|
+
const cp = this.connectionParameters = new ConnectionParameters(config3);
|
|
97067
97209
|
if (config3.nativeConnectionString)
|
|
97068
97210
|
cp.nativeConnectionString = config3.nativeConnectionString;
|
|
97069
97211
|
this.user = cp.user;
|
|
@@ -97078,9 +97220,9 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
97078
97220
|
this.port = cp.port;
|
|
97079
97221
|
this.namedQueries = {};
|
|
97080
97222
|
};
|
|
97081
|
-
|
|
97082
|
-
util2.inherits(
|
|
97083
|
-
|
|
97223
|
+
Client2.Query = NativeQuery;
|
|
97224
|
+
util2.inherits(Client2, EventEmitter);
|
|
97225
|
+
Client2.prototype._errorAllQueries = function(err) {
|
|
97084
97226
|
const enqueueError = (query2) => {
|
|
97085
97227
|
process.nextTick(() => {
|
|
97086
97228
|
query2.native = this.native;
|
|
@@ -97094,8 +97236,8 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
97094
97236
|
this._queryQueue.forEach(enqueueError);
|
|
97095
97237
|
this._queryQueue.length = 0;
|
|
97096
97238
|
};
|
|
97097
|
-
|
|
97098
|
-
|
|
97239
|
+
Client2.prototype._connect = function(cb) {
|
|
97240
|
+
const self2 = this;
|
|
97099
97241
|
if (this._connecting) {
|
|
97100
97242
|
process.nextTick(() => cb(new Error("Client has already been connected. You cannot reuse a client.")));
|
|
97101
97243
|
return;
|
|
@@ -97129,7 +97271,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
97129
97271
|
});
|
|
97130
97272
|
});
|
|
97131
97273
|
};
|
|
97132
|
-
|
|
97274
|
+
Client2.prototype.connect = function(callback) {
|
|
97133
97275
|
if (callback) {
|
|
97134
97276
|
this._connect(callback);
|
|
97135
97277
|
return;
|
|
@@ -97144,12 +97286,12 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
97144
97286
|
});
|
|
97145
97287
|
});
|
|
97146
97288
|
};
|
|
97147
|
-
|
|
97148
|
-
|
|
97149
|
-
|
|
97150
|
-
|
|
97151
|
-
|
|
97152
|
-
|
|
97289
|
+
Client2.prototype.query = function(config3, values, callback) {
|
|
97290
|
+
let query2;
|
|
97291
|
+
let result;
|
|
97292
|
+
let readTimeout;
|
|
97293
|
+
let readTimeoutTimer;
|
|
97294
|
+
let queryCallback;
|
|
97153
97295
|
if (config3 === null || config3 === void 0) {
|
|
97154
97296
|
throw new TypeError("Client was passed a null or undefined query");
|
|
97155
97297
|
} else if (typeof config3.submit === "function") {
|
|
@@ -97176,14 +97318,14 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
97176
97318
|
if (readTimeout) {
|
|
97177
97319
|
queryCallback = query2.callback;
|
|
97178
97320
|
readTimeoutTimer = setTimeout(() => {
|
|
97179
|
-
|
|
97321
|
+
const error44 = new Error("Query read timeout");
|
|
97180
97322
|
process.nextTick(() => {
|
|
97181
97323
|
query2.handleError(error44, this.connection);
|
|
97182
97324
|
});
|
|
97183
97325
|
queryCallback(error44);
|
|
97184
97326
|
query2.callback = () => {
|
|
97185
97327
|
};
|
|
97186
|
-
|
|
97328
|
+
const index = this._queryQueue.indexOf(query2);
|
|
97187
97329
|
if (index > -1) {
|
|
97188
97330
|
this._queryQueue.splice(index, 1);
|
|
97189
97331
|
}
|
|
@@ -97212,13 +97354,13 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
97212
97354
|
this._pulseQueryQueue();
|
|
97213
97355
|
return result;
|
|
97214
97356
|
};
|
|
97215
|
-
|
|
97216
|
-
|
|
97357
|
+
Client2.prototype.end = function(cb) {
|
|
97358
|
+
const self2 = this;
|
|
97217
97359
|
this._ending = true;
|
|
97218
97360
|
if (!this._connected) {
|
|
97219
97361
|
this.once("connect", this.end.bind(this, cb));
|
|
97220
97362
|
}
|
|
97221
|
-
|
|
97363
|
+
let result;
|
|
97222
97364
|
if (!cb) {
|
|
97223
97365
|
result = new this._Promise(function(resolve, reject) {
|
|
97224
97366
|
cb = (err) => err ? reject(err) : resolve();
|
|
@@ -97234,17 +97376,17 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
97234
97376
|
});
|
|
97235
97377
|
return result;
|
|
97236
97378
|
};
|
|
97237
|
-
|
|
97379
|
+
Client2.prototype._hasActiveQuery = function() {
|
|
97238
97380
|
return this._activeQuery && this._activeQuery.state !== "error" && this._activeQuery.state !== "end";
|
|
97239
97381
|
};
|
|
97240
|
-
|
|
97382
|
+
Client2.prototype._pulseQueryQueue = function(initialConnection) {
|
|
97241
97383
|
if (!this._connected) {
|
|
97242
97384
|
return;
|
|
97243
97385
|
}
|
|
97244
97386
|
if (this._hasActiveQuery()) {
|
|
97245
97387
|
return;
|
|
97246
97388
|
}
|
|
97247
|
-
|
|
97389
|
+
const query2 = this._queryQueue.shift();
|
|
97248
97390
|
if (!query2) {
|
|
97249
97391
|
if (!initialConnection) {
|
|
97250
97392
|
this.emit("drain");
|
|
@@ -97253,12 +97395,12 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
97253
97395
|
}
|
|
97254
97396
|
this._activeQuery = query2;
|
|
97255
97397
|
query2.submit(this);
|
|
97256
|
-
|
|
97398
|
+
const self2 = this;
|
|
97257
97399
|
query2.once("_done", function() {
|
|
97258
97400
|
self2._pulseQueryQueue();
|
|
97259
97401
|
});
|
|
97260
97402
|
};
|
|
97261
|
-
|
|
97403
|
+
Client2.prototype.cancel = function(query2) {
|
|
97262
97404
|
if (this._activeQuery === query2) {
|
|
97263
97405
|
this.native.cancel(function() {
|
|
97264
97406
|
});
|
|
@@ -97266,61 +97408,67 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
97266
97408
|
this._queryQueue.splice(this._queryQueue.indexOf(query2), 1);
|
|
97267
97409
|
}
|
|
97268
97410
|
};
|
|
97269
|
-
|
|
97411
|
+
Client2.prototype.ref = function() {
|
|
97270
97412
|
};
|
|
97271
|
-
|
|
97413
|
+
Client2.prototype.unref = function() {
|
|
97272
97414
|
};
|
|
97273
|
-
|
|
97415
|
+
Client2.prototype.setTypeParser = function(oid, format, parseFn) {
|
|
97274
97416
|
return this._types.setTypeParser(oid, format, parseFn);
|
|
97275
97417
|
};
|
|
97276
|
-
|
|
97418
|
+
Client2.prototype.getTypeParser = function(oid, format) {
|
|
97277
97419
|
return this._types.getTypeParser(oid, format);
|
|
97278
97420
|
};
|
|
97279
97421
|
}
|
|
97280
97422
|
});
|
|
97281
97423
|
var require_native = __commonJS2({
|
|
97282
|
-
"../../node_modules/.pnpm/pg@8.
|
|
97424
|
+
"../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/native/index.js"(exports22, module22) {
|
|
97283
97425
|
"use strict";
|
|
97284
97426
|
module22.exports = require_client2();
|
|
97285
97427
|
}
|
|
97286
97428
|
});
|
|
97287
97429
|
var require_lib4 = __commonJS2({
|
|
97288
|
-
"../../node_modules/.pnpm/pg@8.
|
|
97289
|
-
"use strict";
|
|
97290
|
-
var
|
|
97291
|
-
var
|
|
97292
|
-
var
|
|
97293
|
-
var
|
|
97294
|
-
var
|
|
97295
|
-
var
|
|
97296
|
-
var
|
|
97297
|
-
|
|
97430
|
+
"../../node_modules/.pnpm/pg@8.16.3/node_modules/pg/lib/index.js"(exports22, module22) {
|
|
97431
|
+
"use strict";
|
|
97432
|
+
var Client2 = require_client();
|
|
97433
|
+
var defaults2 = require_defaults2();
|
|
97434
|
+
var Connection2 = require_connection3();
|
|
97435
|
+
var Result2 = require_result();
|
|
97436
|
+
var utils = require_utils6();
|
|
97437
|
+
var Pool2 = require_pg_pool();
|
|
97438
|
+
var TypeOverrides2 = require_type_overrides();
|
|
97439
|
+
var { DatabaseError: DatabaseError2 } = require_dist4();
|
|
97440
|
+
var { escapeIdentifier: escapeIdentifier2, escapeLiteral: escapeLiteral2 } = require_utils6();
|
|
97441
|
+
var poolFactory = (Client3) => {
|
|
97442
|
+
return class BoundPool extends Pool2 {
|
|
97298
97443
|
constructor(options) {
|
|
97299
|
-
super(options,
|
|
97444
|
+
super(options, Client3);
|
|
97300
97445
|
}
|
|
97301
97446
|
};
|
|
97302
97447
|
};
|
|
97303
97448
|
var PG = function(clientConstructor) {
|
|
97304
|
-
this.defaults =
|
|
97449
|
+
this.defaults = defaults2;
|
|
97305
97450
|
this.Client = clientConstructor;
|
|
97306
97451
|
this.Query = this.Client.Query;
|
|
97307
97452
|
this.Pool = poolFactory(this.Client);
|
|
97308
97453
|
this._pools = [];
|
|
97309
|
-
this.Connection =
|
|
97454
|
+
this.Connection = Connection2;
|
|
97310
97455
|
this.types = require_pg_types();
|
|
97311
|
-
this.DatabaseError =
|
|
97312
|
-
this.
|
|
97313
|
-
this.
|
|
97456
|
+
this.DatabaseError = DatabaseError2;
|
|
97457
|
+
this.TypeOverrides = TypeOverrides2;
|
|
97458
|
+
this.escapeIdentifier = escapeIdentifier2;
|
|
97459
|
+
this.escapeLiteral = escapeLiteral2;
|
|
97460
|
+
this.Result = Result2;
|
|
97461
|
+
this.utils = utils;
|
|
97314
97462
|
};
|
|
97315
97463
|
if (typeof process.env.NODE_PG_FORCE_NATIVE !== "undefined") {
|
|
97316
97464
|
module22.exports = new PG(require_native());
|
|
97317
97465
|
} else {
|
|
97318
|
-
module22.exports = new PG(
|
|
97466
|
+
module22.exports = new PG(Client2);
|
|
97319
97467
|
Object.defineProperty(module22.exports, "native", {
|
|
97320
97468
|
configurable: true,
|
|
97321
97469
|
enumerable: false,
|
|
97322
97470
|
get() {
|
|
97323
|
-
|
|
97471
|
+
let native = null;
|
|
97324
97472
|
try {
|
|
97325
97473
|
native = new PG(require_native());
|
|
97326
97474
|
} catch (err) {
|
|
@@ -97445,7 +97593,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
97445
97593
|
withActiveLogger: () => withActiveLogger
|
|
97446
97594
|
});
|
|
97447
97595
|
module2.exports = __toCommonJS(index_exports);
|
|
97448
|
-
var version4 = "
|
|
97596
|
+
var version4 = "7.1.0";
|
|
97449
97597
|
function clampProp(e2, n2, t2, o2, r2) {
|
|
97450
97598
|
return clampEntity(n2, ((e3, n3) => {
|
|
97451
97599
|
const t3 = e3[n3];
|
|
@@ -101185,11 +101333,11 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
101185
101333
|
if (/^\d+$/.test(value)) {
|
|
101186
101334
|
return parseInteger(value);
|
|
101187
101335
|
}
|
|
101188
|
-
const
|
|
101189
|
-
if (!
|
|
101336
|
+
const match2 = value.match(/^([\d.]+)\s*([A-Za-z]+)$/);
|
|
101337
|
+
if (!match2) {
|
|
101190
101338
|
throw new Error(`Invalid size format: ${value}`);
|
|
101191
101339
|
}
|
|
101192
|
-
const [_3, numStr, unit] =
|
|
101340
|
+
const [_3, numStr, unit] = match2;
|
|
101193
101341
|
const num = parseFloat(numStr);
|
|
101194
101342
|
if (Number.isNaN(num)) {
|
|
101195
101343
|
throw new Error(`Invalid size value: ${numStr}`);
|
|
@@ -102266,9 +102414,9 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
102266
102414
|
};
|
|
102267
102415
|
var extractGroupsFromPath = (path3) => {
|
|
102268
102416
|
const groups = [];
|
|
102269
|
-
path3 = path3.replace(/\{[^}]+\}/g, (
|
|
102417
|
+
path3 = path3.replace(/\{[^}]+\}/g, (match2, index) => {
|
|
102270
102418
|
const mark = `@${index}`;
|
|
102271
|
-
groups.push([mark,
|
|
102419
|
+
groups.push([mark, match2]);
|
|
102272
102420
|
return mark;
|
|
102273
102421
|
});
|
|
102274
102422
|
return { groups, path: path3 };
|
|
@@ -102290,14 +102438,14 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
102290
102438
|
if (label === "*") {
|
|
102291
102439
|
return "*";
|
|
102292
102440
|
}
|
|
102293
|
-
const
|
|
102294
|
-
if (
|
|
102441
|
+
const match2 = label.match(/^\:([^\{\}]+)(?:\{(.+)\})?$/);
|
|
102442
|
+
if (match2) {
|
|
102295
102443
|
const cacheKey = `${label}#${next}`;
|
|
102296
102444
|
if (!patternCache[cacheKey]) {
|
|
102297
|
-
if (
|
|
102298
|
-
patternCache[cacheKey] = next && next[0] !== ":" && next[0] !== "*" ? [cacheKey,
|
|
102445
|
+
if (match2[2]) {
|
|
102446
|
+
patternCache[cacheKey] = next && next[0] !== ":" && next[0] !== "*" ? [cacheKey, match2[1], new RegExp(`^${match2[2]}(?=/${next})`)] : [label, match2[1], new RegExp(`^${match2[2]}$`)];
|
|
102299
102447
|
} else {
|
|
102300
|
-
patternCache[cacheKey] = [label,
|
|
102448
|
+
patternCache[cacheKey] = [label, match2[1], true];
|
|
102301
102449
|
}
|
|
102302
102450
|
}
|
|
102303
102451
|
return patternCache[cacheKey];
|
|
@@ -102308,11 +102456,11 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
102308
102456
|
try {
|
|
102309
102457
|
return decoder(str);
|
|
102310
102458
|
} catch {
|
|
102311
|
-
return str.replace(/(?:%[0-9A-Fa-f]{2})+/g, (
|
|
102459
|
+
return str.replace(/(?:%[0-9A-Fa-f]{2})+/g, (match2) => {
|
|
102312
102460
|
try {
|
|
102313
|
-
return decoder(
|
|
102461
|
+
return decoder(match2);
|
|
102314
102462
|
} catch {
|
|
102315
|
-
return
|
|
102463
|
+
return match2;
|
|
102316
102464
|
}
|
|
102317
102465
|
});
|
|
102318
102466
|
}
|
|
@@ -102320,10 +102468,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
102320
102468
|
var tryDecodeURI = (str) => tryDecode(str, decodeURI);
|
|
102321
102469
|
var getPath = (request3) => {
|
|
102322
102470
|
const url2 = request3.url;
|
|
102323
|
-
const start = url2.indexOf(
|
|
102324
|
-
"/",
|
|
102325
|
-
url2.charCodeAt(9) === 58 ? 13 : 8
|
|
102326
|
-
);
|
|
102471
|
+
const start = url2.indexOf("/", url2.indexOf(":") + 4);
|
|
102327
102472
|
let i2 = start;
|
|
102328
102473
|
for (; i2 < url2.length; i2++) {
|
|
102329
102474
|
const charCode = url2.charCodeAt(i2);
|
|
@@ -102386,9 +102531,12 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
102386
102531
|
var _getQueryParam = (url2, key, multiple) => {
|
|
102387
102532
|
let encoded;
|
|
102388
102533
|
if (!multiple && key && !/[%+]/.test(key)) {
|
|
102389
|
-
let keyIndex2 = url2.indexOf(
|
|
102534
|
+
let keyIndex2 = url2.indexOf("?", 8);
|
|
102390
102535
|
if (keyIndex2 === -1) {
|
|
102391
|
-
|
|
102536
|
+
return void 0;
|
|
102537
|
+
}
|
|
102538
|
+
if (!url2.startsWith(key, keyIndex2 + 1)) {
|
|
102539
|
+
keyIndex2 = url2.indexOf(`&${key}`, keyIndex2 + 1);
|
|
102392
102540
|
}
|
|
102393
102541
|
while (keyIndex2 !== -1) {
|
|
102394
102542
|
const trailingKeyCode = url2.charCodeAt(keyIndex2 + key.length + 1);
|
|
@@ -102609,7 +102757,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
102609
102757
|
return res;
|
|
102610
102758
|
}
|
|
102611
102759
|
c2.req.addValidatedData(target, res);
|
|
102612
|
-
await next();
|
|
102760
|
+
return await next();
|
|
102613
102761
|
};
|
|
102614
102762
|
};
|
|
102615
102763
|
var zValidator = (target, schema, hook, options) => (
|
|
@@ -102646,6 +102794,181 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
102646
102794
|
return result.data;
|
|
102647
102795
|
})
|
|
102648
102796
|
);
|
|
102797
|
+
function setClassName(classObject, name6) {
|
|
102798
|
+
Object.defineProperty(classObject, "name", {
|
|
102799
|
+
value: name6,
|
|
102800
|
+
configurable: true
|
|
102801
|
+
});
|
|
102802
|
+
}
|
|
102803
|
+
var PrismaClientInitializationError = class _PrismaClientInitializationError extends Error {
|
|
102804
|
+
clientVersion;
|
|
102805
|
+
errorCode;
|
|
102806
|
+
retryable;
|
|
102807
|
+
constructor(message, clientVersion, errorCode) {
|
|
102808
|
+
super(message);
|
|
102809
|
+
this.name = "PrismaClientInitializationError";
|
|
102810
|
+
this.clientVersion = clientVersion;
|
|
102811
|
+
this.errorCode = errorCode;
|
|
102812
|
+
Error.captureStackTrace(_PrismaClientInitializationError);
|
|
102813
|
+
}
|
|
102814
|
+
get [Symbol.toStringTag]() {
|
|
102815
|
+
return "PrismaClientInitializationError";
|
|
102816
|
+
}
|
|
102817
|
+
};
|
|
102818
|
+
setClassName(PrismaClientInitializationError, "PrismaClientInitializationError");
|
|
102819
|
+
var PrismaClientKnownRequestError = class extends Error {
|
|
102820
|
+
code;
|
|
102821
|
+
meta;
|
|
102822
|
+
clientVersion;
|
|
102823
|
+
batchRequestIdx;
|
|
102824
|
+
constructor(message, { code, clientVersion, meta, batchRequestIdx }) {
|
|
102825
|
+
super(message);
|
|
102826
|
+
this.name = "PrismaClientKnownRequestError";
|
|
102827
|
+
this.code = code;
|
|
102828
|
+
this.clientVersion = clientVersion;
|
|
102829
|
+
this.meta = meta;
|
|
102830
|
+
Object.defineProperty(this, "batchRequestIdx", {
|
|
102831
|
+
value: batchRequestIdx,
|
|
102832
|
+
enumerable: false,
|
|
102833
|
+
writable: true
|
|
102834
|
+
});
|
|
102835
|
+
}
|
|
102836
|
+
get [Symbol.toStringTag]() {
|
|
102837
|
+
return "PrismaClientKnownRequestError";
|
|
102838
|
+
}
|
|
102839
|
+
};
|
|
102840
|
+
setClassName(PrismaClientKnownRequestError, "PrismaClientKnownRequestError");
|
|
102841
|
+
function getBacktrace(log32) {
|
|
102842
|
+
if (log32.fields?.message) {
|
|
102843
|
+
let str = log32.fields?.message;
|
|
102844
|
+
if (log32.fields?.file) {
|
|
102845
|
+
str += ` in ${log32.fields.file}`;
|
|
102846
|
+
if (log32.fields?.line) {
|
|
102847
|
+
str += `:${log32.fields.line}`;
|
|
102848
|
+
}
|
|
102849
|
+
if (log32.fields?.column) {
|
|
102850
|
+
str += `:${log32.fields.column}`;
|
|
102851
|
+
}
|
|
102852
|
+
}
|
|
102853
|
+
if (log32.fields?.reason) {
|
|
102854
|
+
str += `
|
|
102855
|
+
${log32.fields?.reason}`;
|
|
102856
|
+
}
|
|
102857
|
+
return str;
|
|
102858
|
+
}
|
|
102859
|
+
return "Unknown error";
|
|
102860
|
+
}
|
|
102861
|
+
function isPanic(err) {
|
|
102862
|
+
return err.fields?.message === "PANIC";
|
|
102863
|
+
}
|
|
102864
|
+
var PrismaClientRustError = class extends Error {
|
|
102865
|
+
clientVersion;
|
|
102866
|
+
_isPanic;
|
|
102867
|
+
constructor({ clientVersion, error: error44 }) {
|
|
102868
|
+
const backtrace = getBacktrace(error44);
|
|
102869
|
+
super(backtrace ?? "Unknown error");
|
|
102870
|
+
this._isPanic = isPanic(error44);
|
|
102871
|
+
this.clientVersion = clientVersion;
|
|
102872
|
+
}
|
|
102873
|
+
get [Symbol.toStringTag]() {
|
|
102874
|
+
return "PrismaClientRustError";
|
|
102875
|
+
}
|
|
102876
|
+
isPanic() {
|
|
102877
|
+
return this._isPanic;
|
|
102878
|
+
}
|
|
102879
|
+
};
|
|
102880
|
+
setClassName(PrismaClientRustError, "PrismaClientRustError");
|
|
102881
|
+
var PrismaClientRustPanicError = class extends Error {
|
|
102882
|
+
clientVersion;
|
|
102883
|
+
constructor(message, clientVersion) {
|
|
102884
|
+
super(message);
|
|
102885
|
+
this.name = "PrismaClientRustPanicError";
|
|
102886
|
+
this.clientVersion = clientVersion;
|
|
102887
|
+
}
|
|
102888
|
+
get [Symbol.toStringTag]() {
|
|
102889
|
+
return "PrismaClientRustPanicError";
|
|
102890
|
+
}
|
|
102891
|
+
};
|
|
102892
|
+
setClassName(PrismaClientRustPanicError, "PrismaClientRustPanicError");
|
|
102893
|
+
var PrismaClientUnknownRequestError = class extends Error {
|
|
102894
|
+
clientVersion;
|
|
102895
|
+
batchRequestIdx;
|
|
102896
|
+
constructor(message, { clientVersion, batchRequestIdx }) {
|
|
102897
|
+
super(message);
|
|
102898
|
+
this.name = "PrismaClientUnknownRequestError";
|
|
102899
|
+
this.clientVersion = clientVersion;
|
|
102900
|
+
Object.defineProperty(this, "batchRequestIdx", {
|
|
102901
|
+
value: batchRequestIdx,
|
|
102902
|
+
writable: true,
|
|
102903
|
+
enumerable: false
|
|
102904
|
+
});
|
|
102905
|
+
}
|
|
102906
|
+
get [Symbol.toStringTag]() {
|
|
102907
|
+
return "PrismaClientUnknownRequestError";
|
|
102908
|
+
}
|
|
102909
|
+
};
|
|
102910
|
+
setClassName(PrismaClientUnknownRequestError, "PrismaClientUnknownRequestError");
|
|
102911
|
+
var PrismaClientValidationError = class extends Error {
|
|
102912
|
+
name = "PrismaClientValidationError";
|
|
102913
|
+
clientVersion;
|
|
102914
|
+
constructor(message, { clientVersion }) {
|
|
102915
|
+
super(message);
|
|
102916
|
+
this.clientVersion = clientVersion;
|
|
102917
|
+
}
|
|
102918
|
+
get [Symbol.toStringTag]() {
|
|
102919
|
+
return "PrismaClientValidationError";
|
|
102920
|
+
}
|
|
102921
|
+
};
|
|
102922
|
+
setClassName(PrismaClientValidationError, "PrismaClientValidationError");
|
|
102923
|
+
var secret = Symbol();
|
|
102924
|
+
var representations = /* @__PURE__ */ new WeakMap();
|
|
102925
|
+
var ObjectEnumValue = class {
|
|
102926
|
+
constructor(arg) {
|
|
102927
|
+
if (arg === secret) {
|
|
102928
|
+
representations.set(this, `Prisma.${this._getName()}`);
|
|
102929
|
+
} else {
|
|
102930
|
+
representations.set(this, `new Prisma.${this._getNamespace()}.${this._getName()}()`);
|
|
102931
|
+
}
|
|
102932
|
+
}
|
|
102933
|
+
_getName() {
|
|
102934
|
+
return this.constructor.name;
|
|
102935
|
+
}
|
|
102936
|
+
toString() {
|
|
102937
|
+
return representations.get(this);
|
|
102938
|
+
}
|
|
102939
|
+
};
|
|
102940
|
+
function setClassName2(classObject, name6) {
|
|
102941
|
+
Object.defineProperty(classObject, "name", {
|
|
102942
|
+
value: name6,
|
|
102943
|
+
configurable: true
|
|
102944
|
+
});
|
|
102945
|
+
}
|
|
102946
|
+
var NullTypesEnumValue = class extends ObjectEnumValue {
|
|
102947
|
+
_getNamespace() {
|
|
102948
|
+
return "NullTypes";
|
|
102949
|
+
}
|
|
102950
|
+
};
|
|
102951
|
+
var DbNullClass = class extends NullTypesEnumValue {
|
|
102952
|
+
// Phantom private property to prevent structural type equality
|
|
102953
|
+
// eslint-disable-next-line no-unused-private-class-members
|
|
102954
|
+
#_brand_DbNull;
|
|
102955
|
+
};
|
|
102956
|
+
setClassName2(DbNullClass, "DbNull");
|
|
102957
|
+
var JsonNullClass = class extends NullTypesEnumValue {
|
|
102958
|
+
// Phantom private property to prevent structural type equality
|
|
102959
|
+
// eslint-disable-next-line no-unused-private-class-members
|
|
102960
|
+
#_brand_JsonNull;
|
|
102961
|
+
};
|
|
102962
|
+
setClassName2(JsonNullClass, "JsonNull");
|
|
102963
|
+
var AnyNullClass = class extends NullTypesEnumValue {
|
|
102964
|
+
// Phantom private property to prevent structural type equality
|
|
102965
|
+
// eslint-disable-next-line no-unused-private-class-members
|
|
102966
|
+
#_brand_AnyNull;
|
|
102967
|
+
};
|
|
102968
|
+
setClassName2(AnyNullClass, "AnyNull");
|
|
102969
|
+
var DbNull = new DbNullClass(secret);
|
|
102970
|
+
var JsonNull = new JsonNullClass(secret);
|
|
102971
|
+
var AnyNull = new AnyNullClass(secret);
|
|
102649
102972
|
var EXP_LIMIT = 9e15;
|
|
102650
102973
|
var MAX_DIGITS = 1e9;
|
|
102651
102974
|
var NUMERALS = "0123456789abcdef";
|
|
@@ -104695,7 +105018,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
104695
105018
|
function clone(obj) {
|
|
104696
105019
|
var i2, p2, ps;
|
|
104697
105020
|
function Decimal2(v2) {
|
|
104698
|
-
var e2,
|
|
105021
|
+
var e2, i22, t2, x2 = this;
|
|
104699
105022
|
if (!(x2 instanceof Decimal2))
|
|
104700
105023
|
return new Decimal2(v2);
|
|
104701
105024
|
x2.constructor = Decimal2;
|
|
@@ -104733,7 +105056,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
104733
105056
|
x2.s = 1;
|
|
104734
105057
|
}
|
|
104735
105058
|
if (v2 === ~~v2 && v2 < 1e7) {
|
|
104736
|
-
for (e2 = 0,
|
|
105059
|
+
for (e2 = 0, i22 = v2; i22 >= 10; i22 /= 10)
|
|
104737
105060
|
e2++;
|
|
104738
105061
|
if (external) {
|
|
104739
105062
|
if (e2 > Decimal2.maxE) {
|
|
@@ -104762,11 +105085,11 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
104762
105085
|
return parseDecimal(x2, v2.toString());
|
|
104763
105086
|
}
|
|
104764
105087
|
if (t2 === "string") {
|
|
104765
|
-
if ((
|
|
105088
|
+
if ((i22 = v2.charCodeAt(0)) === 45) {
|
|
104766
105089
|
v2 = v2.slice(1);
|
|
104767
105090
|
x2.s = -1;
|
|
104768
105091
|
} else {
|
|
104769
|
-
if (
|
|
105092
|
+
if (i22 === 43)
|
|
104770
105093
|
v2 = v2.slice(1);
|
|
104771
105094
|
x2.s = 1;
|
|
104772
105095
|
}
|
|
@@ -105005,7 +105328,73 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
105005
105328
|
var Decimal = P2.constructor = clone(DEFAULTS);
|
|
105006
105329
|
LN10 = new Decimal(LN10);
|
|
105007
105330
|
PI = new Decimal(PI);
|
|
105008
|
-
var
|
|
105331
|
+
var Sql = class _Sql {
|
|
105332
|
+
constructor(rawStrings, rawValues) {
|
|
105333
|
+
if (rawStrings.length - 1 !== rawValues.length) {
|
|
105334
|
+
if (rawStrings.length === 0) {
|
|
105335
|
+
throw new TypeError("Expected at least 1 string");
|
|
105336
|
+
}
|
|
105337
|
+
throw new TypeError(`Expected ${rawStrings.length} strings to have ${rawStrings.length - 1} values`);
|
|
105338
|
+
}
|
|
105339
|
+
const valuesLength = rawValues.reduce((len, value) => len + (value instanceof _Sql ? value.values.length : 1), 0);
|
|
105340
|
+
this.values = new Array(valuesLength);
|
|
105341
|
+
this.strings = new Array(valuesLength + 1);
|
|
105342
|
+
this.strings[0] = rawStrings[0];
|
|
105343
|
+
let i2 = 0, pos = 0;
|
|
105344
|
+
while (i2 < rawValues.length) {
|
|
105345
|
+
const child = rawValues[i2++];
|
|
105346
|
+
const rawString = rawStrings[i2];
|
|
105347
|
+
if (child instanceof _Sql) {
|
|
105348
|
+
this.strings[pos] += child.strings[0];
|
|
105349
|
+
let childIndex = 0;
|
|
105350
|
+
while (childIndex < child.values.length) {
|
|
105351
|
+
this.values[pos++] = child.values[childIndex++];
|
|
105352
|
+
this.strings[pos] = child.strings[childIndex];
|
|
105353
|
+
}
|
|
105354
|
+
this.strings[pos] += rawString;
|
|
105355
|
+
} else {
|
|
105356
|
+
this.values[pos++] = child;
|
|
105357
|
+
this.strings[pos] = rawString;
|
|
105358
|
+
}
|
|
105359
|
+
}
|
|
105360
|
+
}
|
|
105361
|
+
get sql() {
|
|
105362
|
+
const len = this.strings.length;
|
|
105363
|
+
let i2 = 1;
|
|
105364
|
+
let value = this.strings[0];
|
|
105365
|
+
while (i2 < len)
|
|
105366
|
+
value += `?${this.strings[i2++]}`;
|
|
105367
|
+
return value;
|
|
105368
|
+
}
|
|
105369
|
+
get statement() {
|
|
105370
|
+
const len = this.strings.length;
|
|
105371
|
+
let i2 = 1;
|
|
105372
|
+
let value = this.strings[0];
|
|
105373
|
+
while (i2 < len)
|
|
105374
|
+
value += `:${i2}${this.strings[i2++]}`;
|
|
105375
|
+
return value;
|
|
105376
|
+
}
|
|
105377
|
+
get text() {
|
|
105378
|
+
const len = this.strings.length;
|
|
105379
|
+
let i2 = 1;
|
|
105380
|
+
let value = this.strings[0];
|
|
105381
|
+
while (i2 < len)
|
|
105382
|
+
value += `$${i2}${this.strings[i2++]}`;
|
|
105383
|
+
return value;
|
|
105384
|
+
}
|
|
105385
|
+
inspect() {
|
|
105386
|
+
return {
|
|
105387
|
+
sql: this.sql,
|
|
105388
|
+
statement: this.statement,
|
|
105389
|
+
text: this.text,
|
|
105390
|
+
values: this.values
|
|
105391
|
+
};
|
|
105392
|
+
}
|
|
105393
|
+
};
|
|
105394
|
+
function raw(value) {
|
|
105395
|
+
return new Sql([value], []);
|
|
105396
|
+
}
|
|
105397
|
+
var empty = raw("");
|
|
105009
105398
|
var __defProp2 = Object.defineProperty;
|
|
105010
105399
|
var __export2 = (target, all) => {
|
|
105011
105400
|
for (var name6 in all)
|
|
@@ -105536,7 +105925,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
105536
105925
|
if (typeof lhs[key] === typeof rhs[key] && typeof lhs[key] !== "object") {
|
|
105537
105926
|
return lhs[key] === rhs[key];
|
|
105538
105927
|
}
|
|
105539
|
-
if (
|
|
105928
|
+
if (Decimal.isDecimal(lhs[key]) || Decimal.isDecimal(rhs[key])) {
|
|
105540
105929
|
const lhsDecimal = asDecimal(lhs[key]);
|
|
105541
105930
|
const rhsDecimal = asDecimal(rhs[key]);
|
|
105542
105931
|
return lhsDecimal && rhsDecimal && lhsDecimal.equals(rhsDecimal);
|
|
@@ -105555,10 +105944,10 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
105555
105944
|
});
|
|
105556
105945
|
}
|
|
105557
105946
|
function asDecimal(value) {
|
|
105558
|
-
if (
|
|
105947
|
+
if (Decimal.isDecimal(value)) {
|
|
105559
105948
|
return value;
|
|
105560
105949
|
} else if (typeof value === "number" || typeof value === "string") {
|
|
105561
|
-
return new
|
|
105950
|
+
return new Decimal(value);
|
|
105562
105951
|
} else {
|
|
105563
105952
|
return;
|
|
105564
105953
|
}
|
|
@@ -106008,7 +106397,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
106008
106397
|
throw new DataMapperError(`Expected a boolean in column '${columnName}', got ${typeof value}: ${value}`);
|
|
106009
106398
|
}
|
|
106010
106399
|
case "decimal":
|
|
106011
|
-
if (typeof value !== "number" && typeof value !== "string" && !
|
|
106400
|
+
if (typeof value !== "number" && typeof value !== "string" && !Decimal.isDecimal(value)) {
|
|
106012
106401
|
throw new DataMapperError(`Expected a decimal in column '${columnName}', got ${typeof value}: ${value}`);
|
|
106013
106402
|
}
|
|
106014
106403
|
return { $type: "Decimal", value };
|
|
@@ -106093,6 +106482,41 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
106093
106482
|
}
|
|
106094
106483
|
return dtWithTz;
|
|
106095
106484
|
}
|
|
106485
|
+
function formatSqlComment(tags) {
|
|
106486
|
+
const entries = Object.entries(tags);
|
|
106487
|
+
if (entries.length === 0) {
|
|
106488
|
+
return "";
|
|
106489
|
+
}
|
|
106490
|
+
entries.sort(([a2], [b2]) => a2.localeCompare(b2));
|
|
106491
|
+
const parts = entries.map(([key, value]) => {
|
|
106492
|
+
const encodedKey = encodeURIComponent(key);
|
|
106493
|
+
const encodedValue = encodeURIComponent(value).replace(/'/g, "\\'");
|
|
106494
|
+
return `${encodedKey}='${encodedValue}'`;
|
|
106495
|
+
});
|
|
106496
|
+
return `/*${parts.join(",")}*/`;
|
|
106497
|
+
}
|
|
106498
|
+
function applySqlCommenters(plugins, context2) {
|
|
106499
|
+
const merged = {};
|
|
106500
|
+
for (const plugin of plugins) {
|
|
106501
|
+
const tags = plugin(context2);
|
|
106502
|
+
for (const [key, value] of Object.entries(tags)) {
|
|
106503
|
+
if (value !== void 0) {
|
|
106504
|
+
merged[key] = value;
|
|
106505
|
+
}
|
|
106506
|
+
}
|
|
106507
|
+
}
|
|
106508
|
+
return merged;
|
|
106509
|
+
}
|
|
106510
|
+
function buildSqlComment(plugins, context2) {
|
|
106511
|
+
const tags = applySqlCommenters(plugins, context2);
|
|
106512
|
+
return formatSqlComment(tags);
|
|
106513
|
+
}
|
|
106514
|
+
function appendSqlComment(sql4, comment) {
|
|
106515
|
+
if (!comment) {
|
|
106516
|
+
return sql4;
|
|
106517
|
+
}
|
|
106518
|
+
return `${sql4} ${comment}`;
|
|
106519
|
+
}
|
|
106096
106520
|
function providerToOtelSystem(provider) {
|
|
106097
106521
|
switch (provider) {
|
|
106098
106522
|
case "postgresql":
|
|
@@ -106813,7 +107237,8 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
106813
107237
|
#serializer;
|
|
106814
107238
|
#rawSerializer;
|
|
106815
107239
|
#provider;
|
|
106816
|
-
#
|
|
107240
|
+
#connectionInfo;
|
|
107241
|
+
#sqlCommenter;
|
|
106817
107242
|
constructor({
|
|
106818
107243
|
transactionManager,
|
|
106819
107244
|
placeholderValues,
|
|
@@ -106822,7 +107247,8 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
106822
107247
|
serializer,
|
|
106823
107248
|
rawSerializer,
|
|
106824
107249
|
provider,
|
|
106825
|
-
connectionInfo
|
|
107250
|
+
connectionInfo,
|
|
107251
|
+
sqlCommenter
|
|
106826
107252
|
}) {
|
|
106827
107253
|
this.#transactionManager = transactionManager;
|
|
106828
107254
|
this.#placeholderValues = placeholderValues;
|
|
@@ -106831,7 +107257,8 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
106831
107257
|
this.#serializer = serializer;
|
|
106832
107258
|
this.#rawSerializer = rawSerializer ?? serializer;
|
|
106833
107259
|
this.#provider = provider;
|
|
106834
|
-
this.#
|
|
107260
|
+
this.#connectionInfo = connectionInfo;
|
|
107261
|
+
this.#sqlCommenter = sqlCommenter;
|
|
106835
107262
|
}
|
|
106836
107263
|
static forSql(options) {
|
|
106837
107264
|
return new _QueryInterpreter({
|
|
@@ -106842,7 +107269,8 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
106842
107269
|
serializer: serializeSql,
|
|
106843
107270
|
rawSerializer: serializeRawSql,
|
|
106844
107271
|
provider: options.provider,
|
|
106845
|
-
connectionInfo: options.connectionInfo
|
|
107272
|
+
connectionInfo: options.connectionInfo,
|
|
107273
|
+
sqlCommenter: options.sqlCommenter
|
|
106846
107274
|
});
|
|
106847
107275
|
}
|
|
106848
107276
|
async run(queryPlan, queryable) {
|
|
@@ -106906,10 +107334,11 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
106906
107334
|
const queries = renderQuery(node.args, scope, generators, this.#maxChunkSize());
|
|
106907
107335
|
let sum2 = 0;
|
|
106908
107336
|
for (const query2 of queries) {
|
|
107337
|
+
const commentedQuery = this.#applyComments(query2);
|
|
106909
107338
|
sum2 += await this.#withQuerySpanAndEvent(
|
|
106910
|
-
|
|
107339
|
+
commentedQuery,
|
|
106911
107340
|
queryable,
|
|
106912
|
-
() => queryable.executeRaw(
|
|
107341
|
+
() => queryable.executeRaw(commentedQuery).catch(
|
|
106913
107342
|
(err) => node.args.type === "rawSql" ? rethrowAsUserFacingRawError(err) : rethrowAsUserFacing(err)
|
|
106914
107343
|
)
|
|
106915
107344
|
);
|
|
@@ -106920,10 +107349,11 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
106920
107349
|
const queries = renderQuery(node.args, scope, generators, this.#maxChunkSize());
|
|
106921
107350
|
let results;
|
|
106922
107351
|
for (const query2 of queries) {
|
|
107352
|
+
const commentedQuery = this.#applyComments(query2);
|
|
106923
107353
|
const result = await this.#withQuerySpanAndEvent(
|
|
106924
|
-
|
|
107354
|
+
commentedQuery,
|
|
106925
107355
|
queryable,
|
|
106926
|
-
() => queryable.queryRaw(
|
|
107356
|
+
() => queryable.queryRaw(commentedQuery).catch(
|
|
106927
107357
|
(err) => node.args.type === "rawSql" ? rethrowAsUserFacingRawError(err) : rethrowAsUserFacing(err)
|
|
106928
107358
|
)
|
|
106929
107359
|
);
|
|
@@ -107045,8 +107475,8 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
107045
107475
|
}
|
|
107046
107476
|
}
|
|
107047
107477
|
#maxChunkSize() {
|
|
107048
|
-
if (this.#
|
|
107049
|
-
return this.#
|
|
107478
|
+
if (this.#connectionInfo?.maxBindValues !== void 0) {
|
|
107479
|
+
return this.#connectionInfo.maxBindValues;
|
|
107050
107480
|
}
|
|
107051
107481
|
return this.#providerMaxChunkSize();
|
|
107052
107482
|
}
|
|
@@ -107081,6 +107511,22 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
107081
107511
|
onQuery: this.#onQuery
|
|
107082
107512
|
});
|
|
107083
107513
|
}
|
|
107514
|
+
#applyComments(query2) {
|
|
107515
|
+
if (!this.#sqlCommenter || this.#sqlCommenter.plugins.length === 0) {
|
|
107516
|
+
return query2;
|
|
107517
|
+
}
|
|
107518
|
+
const comment = buildSqlComment(this.#sqlCommenter.plugins, {
|
|
107519
|
+
query: this.#sqlCommenter.queryInfo,
|
|
107520
|
+
sql: query2.sql
|
|
107521
|
+
});
|
|
107522
|
+
if (!comment) {
|
|
107523
|
+
return query2;
|
|
107524
|
+
}
|
|
107525
|
+
return {
|
|
107526
|
+
...query2,
|
|
107527
|
+
sql: appendSqlComment(query2.sql, comment)
|
|
107528
|
+
};
|
|
107529
|
+
}
|
|
107084
107530
|
};
|
|
107085
107531
|
function isEmpty(value) {
|
|
107086
107532
|
if (Array.isArray(value)) {
|
|
@@ -107188,6 +107634,11 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
107188
107634
|
const crypto7 = await getCrypto();
|
|
107189
107635
|
return crypto7.randomUUID();
|
|
107190
107636
|
}
|
|
107637
|
+
async function once(target, event) {
|
|
107638
|
+
return new Promise((resolve) => {
|
|
107639
|
+
target.addEventListener(event, resolve, { once: true });
|
|
107640
|
+
});
|
|
107641
|
+
}
|
|
107191
107642
|
var TransactionManagerError = class extends UserFacingError {
|
|
107192
107643
|
name = "TransactionManagerError";
|
|
107193
107644
|
constructor(message, meta) {
|
|
@@ -107300,15 +107751,17 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
107300
107751
|
startedAt: Date.now(),
|
|
107301
107752
|
transaction: void 0
|
|
107302
107753
|
};
|
|
107303
|
-
|
|
107304
|
-
|
|
107305
|
-
const startTimer = createTimeoutIfDefined(() => hasTimedOut = true, options.maxWait);
|
|
107754
|
+
const abortController = new AbortController();
|
|
107755
|
+
const startTimer = createTimeoutIfDefined(() => abortController.abort(), options.maxWait);
|
|
107306
107756
|
startTimer?.unref?.();
|
|
107307
|
-
transaction.transaction = await
|
|
107308
|
-
|
|
107757
|
+
transaction.transaction = await Promise.race([
|
|
107758
|
+
this.driverAdapter.startTransaction(options.isolationLevel).catch(rethrowAsUserFacing).finally(() => clearTimeout(startTimer)),
|
|
107759
|
+
once(abortController.signal, "abort").then(() => void 0)
|
|
107760
|
+
]);
|
|
107761
|
+
this.transactions.set(transaction.id, transaction);
|
|
107309
107762
|
switch (transaction.status) {
|
|
107310
107763
|
case "waiting":
|
|
107311
|
-
if (
|
|
107764
|
+
if (abortController.signal.aborted) {
|
|
107312
107765
|
await this.#closeTransaction(transaction, "timed_out");
|
|
107313
107766
|
throw new TransactionStartTimeoutError();
|
|
107314
107767
|
}
|
|
@@ -107405,8 +107858,13 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
107405
107858
|
await this.#withQuerySpanAndEvent(PHANTOM_COMMIT_QUERY(), tx.transaction, () => tx.transaction.commit());
|
|
107406
107859
|
} else {
|
|
107407
107860
|
const query2 = COMMIT_QUERY();
|
|
107408
|
-
await this.#withQuerySpanAndEvent(query2, tx.transaction, () => tx.transaction.executeRaw(query2))
|
|
107409
|
-
|
|
107861
|
+
await this.#withQuerySpanAndEvent(query2, tx.transaction, () => tx.transaction.executeRaw(query2)).then(
|
|
107862
|
+
() => tx.transaction.commit(),
|
|
107863
|
+
(err) => {
|
|
107864
|
+
const fail = () => Promise.reject(err);
|
|
107865
|
+
return tx.transaction.rollback().then(fail, fail);
|
|
107866
|
+
}
|
|
107867
|
+
);
|
|
107410
107868
|
}
|
|
107411
107869
|
} else if (tx.transaction) {
|
|
107412
107870
|
if (tx.transaction.options.usePhantomQuery) {
|
|
@@ -107417,8 +107875,11 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
107417
107875
|
);
|
|
107418
107876
|
} else {
|
|
107419
107877
|
const query2 = ROLLBACK_QUERY();
|
|
107420
|
-
|
|
107421
|
-
|
|
107878
|
+
try {
|
|
107879
|
+
await this.#withQuerySpanAndEvent(query2, tx.transaction, () => tx.transaction.executeRaw(query2));
|
|
107880
|
+
} finally {
|
|
107881
|
+
await tx.transaction.rollback();
|
|
107882
|
+
}
|
|
107422
107883
|
}
|
|
107423
107884
|
}
|
|
107424
107885
|
} finally {
|
|
@@ -107599,14 +108060,14 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
107599
108060
|
#getDecodedParam(key) {
|
|
107600
108061
|
const paramKey = this.#matchResult[0][this.routeIndex][1][key];
|
|
107601
108062
|
const param = this.#getParamValue(paramKey);
|
|
107602
|
-
return param
|
|
108063
|
+
return param && /\%/.test(param) ? tryDecodeURIComponent(param) : param;
|
|
107603
108064
|
}
|
|
107604
108065
|
#getAllDecodedParams() {
|
|
107605
108066
|
const decoded = {};
|
|
107606
108067
|
const keys = Object.keys(this.#matchResult[0][this.routeIndex][1]);
|
|
107607
108068
|
for (const key of keys) {
|
|
107608
108069
|
const value = this.#getParamValue(this.#matchResult[0][this.routeIndex][1][key]);
|
|
107609
|
-
if (value
|
|
108070
|
+
if (value !== void 0) {
|
|
107610
108071
|
decoded[key] = /\%/.test(value) ? tryDecodeURIComponent(value) : value;
|
|
107611
108072
|
}
|
|
107612
108073
|
}
|
|
@@ -107635,7 +108096,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
107635
108096
|
return this.bodyCache.parsedBody ??= await parseBody(this, options);
|
|
107636
108097
|
}
|
|
107637
108098
|
#cachedBody = (key) => {
|
|
107638
|
-
const { bodyCache, raw:
|
|
108099
|
+
const { bodyCache, raw: raw3 } = this;
|
|
107639
108100
|
const cachedBody = bodyCache[key];
|
|
107640
108101
|
if (cachedBody) {
|
|
107641
108102
|
return cachedBody;
|
|
@@ -107649,7 +108110,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
107649
108110
|
return new Response(body)[key]();
|
|
107650
108111
|
});
|
|
107651
108112
|
}
|
|
107652
|
-
return bodyCache[key] =
|
|
108113
|
+
return bodyCache[key] = raw3[key]();
|
|
107653
108114
|
};
|
|
107654
108115
|
json() {
|
|
107655
108116
|
return this.#cachedBody("text").then((text) => JSON.parse(text));
|
|
@@ -107693,7 +108154,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
107693
108154
|
BeforeStream: 2,
|
|
107694
108155
|
Stream: 3
|
|
107695
108156
|
};
|
|
107696
|
-
var
|
|
108157
|
+
var raw2 = (value, callbacks) => {
|
|
107697
108158
|
const escapedString = new String(value);
|
|
107698
108159
|
escapedString.isEscaped = true;
|
|
107699
108160
|
escapedString.callbacks = callbacks;
|
|
@@ -107723,7 +108184,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
107723
108184
|
).then(() => buffer[0])
|
|
107724
108185
|
);
|
|
107725
108186
|
if (preserveCallbacks) {
|
|
107726
|
-
return
|
|
108187
|
+
return raw2(await resStr, callbacks);
|
|
107727
108188
|
} else {
|
|
107728
108189
|
return resStr;
|
|
107729
108190
|
}
|
|
@@ -108075,16 +108536,16 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
108075
108536
|
}
|
|
108076
108537
|
throw err;
|
|
108077
108538
|
}
|
|
108078
|
-
#dispatch(request3, executionCtx,
|
|
108539
|
+
#dispatch(request3, executionCtx, env2, method) {
|
|
108079
108540
|
if (method === "HEAD") {
|
|
108080
|
-
return (async () => new Response(null, await this.#dispatch(request3, executionCtx,
|
|
108541
|
+
return (async () => new Response(null, await this.#dispatch(request3, executionCtx, env2, "GET")))();
|
|
108081
108542
|
}
|
|
108082
|
-
const path3 = this.getPath(request3, { env });
|
|
108543
|
+
const path3 = this.getPath(request3, { env: env2 });
|
|
108083
108544
|
const matchResult = this.router.match(method, path3);
|
|
108084
108545
|
const c2 = new Context(request3, {
|
|
108085
108546
|
path: path3,
|
|
108086
108547
|
matchResult,
|
|
108087
|
-
env,
|
|
108548
|
+
env: env2,
|
|
108088
108549
|
executionCtx,
|
|
108089
108550
|
notFoundHandler: this.#notFoundHandler
|
|
108090
108551
|
});
|
|
@@ -108139,6 +108600,25 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
108139
108600
|
});
|
|
108140
108601
|
};
|
|
108141
108602
|
};
|
|
108603
|
+
var emptyParam = [];
|
|
108604
|
+
function match(method, path3) {
|
|
108605
|
+
const matchers = this.buildAllMatchers();
|
|
108606
|
+
const match2 = (method2, path22) => {
|
|
108607
|
+
const matcher = matchers[method2] || matchers[METHOD_NAME_ALL];
|
|
108608
|
+
const staticMatch = matcher[2][path22];
|
|
108609
|
+
if (staticMatch) {
|
|
108610
|
+
return staticMatch;
|
|
108611
|
+
}
|
|
108612
|
+
const match3 = path22.match(matcher[0]);
|
|
108613
|
+
if (!match3) {
|
|
108614
|
+
return [[], emptyParam];
|
|
108615
|
+
}
|
|
108616
|
+
const index = match3.indexOf("", 1);
|
|
108617
|
+
return [matcher[1][index], match3];
|
|
108618
|
+
};
|
|
108619
|
+
this.match = match2;
|
|
108620
|
+
return match2(method, path3);
|
|
108621
|
+
}
|
|
108142
108622
|
var LABEL_REG_EXP_STR = "[^/]+";
|
|
108143
108623
|
var ONLY_WILDCARD_REG_EXP_STR = ".*";
|
|
108144
108624
|
var TAIL_WILDCARD_REG_EXP_STR = "(?:|/.*)";
|
|
@@ -108299,7 +108779,6 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
108299
108779
|
return [new RegExp(`^${regexp}`), indexReplacementMap, paramReplacementMap];
|
|
108300
108780
|
}
|
|
108301
108781
|
};
|
|
108302
|
-
var emptyParam = [];
|
|
108303
108782
|
var nullMatcher = [/^$/, [], /* @__PURE__ */ Object.create(null)];
|
|
108304
108783
|
var wildcardRegExpCache = /* @__PURE__ */ Object.create(null);
|
|
108305
108784
|
function buildWildcardRegExp(path3) {
|
|
@@ -108446,30 +108925,14 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
108446
108925
|
});
|
|
108447
108926
|
}
|
|
108448
108927
|
}
|
|
108449
|
-
match
|
|
108450
|
-
|
|
108451
|
-
const matchers = this.#buildAllMatchers();
|
|
108452
|
-
this.match = (method2, path22) => {
|
|
108453
|
-
const matcher = matchers[method2] || matchers[METHOD_NAME_ALL];
|
|
108454
|
-
const staticMatch = matcher[2][path22];
|
|
108455
|
-
if (staticMatch) {
|
|
108456
|
-
return staticMatch;
|
|
108457
|
-
}
|
|
108458
|
-
const match = path22.match(matcher[0]);
|
|
108459
|
-
if (!match) {
|
|
108460
|
-
return [[], emptyParam];
|
|
108461
|
-
}
|
|
108462
|
-
const index = match.indexOf("", 1);
|
|
108463
|
-
return [matcher[1][index], match];
|
|
108464
|
-
};
|
|
108465
|
-
return this.match(method, path3);
|
|
108466
|
-
}
|
|
108467
|
-
#buildAllMatchers() {
|
|
108928
|
+
match = match;
|
|
108929
|
+
buildAllMatchers() {
|
|
108468
108930
|
const matchers = /* @__PURE__ */ Object.create(null);
|
|
108469
108931
|
Object.keys(this.#routes).concat(Object.keys(this.#middleware)).forEach((method) => {
|
|
108470
108932
|
matchers[method] ||= this.#buildMatcher(method);
|
|
108471
108933
|
});
|
|
108472
108934
|
this.#middleware = this.#routes = void 0;
|
|
108935
|
+
clearWildcardRegExpCache();
|
|
108473
108936
|
return matchers;
|
|
108474
108937
|
}
|
|
108475
108938
|
#buildMatcher(method) {
|
|
@@ -110379,13 +110842,27 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
110379
110842
|
return new PrismaMssqlAdapter(pool2, this.#options);
|
|
110380
110843
|
}
|
|
110381
110844
|
};
|
|
110382
|
-
var
|
|
110383
|
-
var
|
|
110845
|
+
var import_lib = __toESM2(require_lib4(), 1);
|
|
110846
|
+
var Client = import_lib.default.Client;
|
|
110847
|
+
var Pool = import_lib.default.Pool;
|
|
110848
|
+
var Connection = import_lib.default.Connection;
|
|
110849
|
+
var types = import_lib.default.types;
|
|
110850
|
+
var Query = import_lib.default.Query;
|
|
110851
|
+
var DatabaseError = import_lib.default.DatabaseError;
|
|
110852
|
+
var escapeIdentifier = import_lib.default.escapeIdentifier;
|
|
110853
|
+
var escapeLiteral = import_lib.default.escapeLiteral;
|
|
110854
|
+
var Result = import_lib.default.Result;
|
|
110855
|
+
var TypeOverrides = import_lib.default.TypeOverrides;
|
|
110856
|
+
var defaults = import_lib.default.defaults;
|
|
110857
|
+
var esm_default = import_lib.default;
|
|
110384
110858
|
var import_postgres_array = __toESM2(require_postgres_array2(), 1);
|
|
110385
110859
|
var name5 = "@prisma/adapter-pg";
|
|
110386
110860
|
var FIRST_NORMAL_OBJECT_ID = 16384;
|
|
110387
|
-
var { types } =
|
|
110388
|
-
var { builtins: ScalarColumnType, getTypeParser } =
|
|
110861
|
+
var { types: types2 } = esm_default;
|
|
110862
|
+
var { builtins: ScalarColumnType, getTypeParser } = types2;
|
|
110863
|
+
var AdditionalScalarColumnType = {
|
|
110864
|
+
NAME: 19
|
|
110865
|
+
};
|
|
110389
110866
|
var ArrayColumnType = {
|
|
110390
110867
|
BIT_ARRAY: 1561,
|
|
110391
110868
|
BOOL_ARRAY: 1e3,
|
|
@@ -110576,6 +111053,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
110576
111053
|
case ScalarColumnType.INET:
|
|
110577
111054
|
case ScalarColumnType.CIDR:
|
|
110578
111055
|
case ScalarColumnType.XML:
|
|
111056
|
+
case AdditionalScalarColumnType.NAME:
|
|
110579
111057
|
return ColumnTypeEnum.Text;
|
|
110580
111058
|
case ScalarColumnType.BYTEA:
|
|
110581
111059
|
return ColumnTypeEnum.Bytes;
|
|
@@ -110918,7 +111396,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
110918
111396
|
}
|
|
110919
111397
|
return false;
|
|
110920
111398
|
}
|
|
110921
|
-
var
|
|
111399
|
+
var types22 = esm_default.types;
|
|
110922
111400
|
var debug6 = Debug("prisma:driver-adapter:pg");
|
|
110923
111401
|
var PgQueryable = class {
|
|
110924
111402
|
constructor(client, pgOptions) {
|
|
@@ -111005,7 +111483,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
111005
111483
|
if (format === "text" && customParsers[oid]) {
|
|
111006
111484
|
return customParsers[oid];
|
|
111007
111485
|
}
|
|
111008
|
-
return
|
|
111486
|
+
return types22.getTypeParser(oid, format);
|
|
111009
111487
|
}
|
|
111010
111488
|
}
|
|
111011
111489
|
},
|
|
@@ -111103,7 +111581,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
111103
111581
|
var PrismaPgAdapterFactory = class {
|
|
111104
111582
|
constructor(poolOrConfig, options) {
|
|
111105
111583
|
this.options = options;
|
|
111106
|
-
if (poolOrConfig instanceof
|
|
111584
|
+
if (poolOrConfig instanceof esm_default.Pool) {
|
|
111107
111585
|
this.externalPool = poolOrConfig;
|
|
111108
111586
|
this.config = poolOrConfig.options;
|
|
111109
111587
|
} else {
|
|
@@ -111116,7 +111594,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
111116
111594
|
config;
|
|
111117
111595
|
externalPool;
|
|
111118
111596
|
async connect() {
|
|
111119
|
-
const client = this.externalPool ?? new
|
|
111597
|
+
const client = this.externalPool ?? new esm_default.Pool(this.config);
|
|
111120
111598
|
const onIdleClientError = (err) => {
|
|
111121
111599
|
debug6(`Error from idle pool client: ${err.message} %O`, err);
|
|
111122
111600
|
this.options?.onPoolError?.(err);
|
|
@@ -111139,7 +111617,7 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
111139
111617
|
const conn = await this.connect();
|
|
111140
111618
|
const database = `prisma_migrate_shadow_db_${globalThis.crypto.randomUUID()}`;
|
|
111141
111619
|
await conn.executeScript(`CREATE DATABASE "${database}"`);
|
|
111142
|
-
const client = new
|
|
111620
|
+
const client = new esm_default.Pool({ ...this.config, database });
|
|
111143
111621
|
return new PrismaPgAdapter(client, void 0, async () => {
|
|
111144
111622
|
await conn.executeScript(`DROP DATABASE "${database}"`);
|
|
111145
111623
|
await client.end();
|
|
@@ -111235,15 +111713,28 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
111235
111713
|
}
|
|
111236
111714
|
/**
|
|
111237
111715
|
* Executes a query plan and returns the result.
|
|
111716
|
+
*
|
|
111717
|
+
* @param queryPlan - The query plan to execute
|
|
111718
|
+
* @param placeholderValues - Placeholder values for the query
|
|
111719
|
+
* @param comments - Pre-computed SQL commenter tags from the client
|
|
111720
|
+
* @param resourceLimits - Resource limits for the query
|
|
111721
|
+
* @param transactionId - Transaction ID if running within a transaction
|
|
111238
111722
|
*/
|
|
111239
|
-
async query(queryPlan, placeholderValues, resourceLimits, transactionId) {
|
|
111723
|
+
async query(queryPlan, placeholderValues, comments, resourceLimits, transactionId) {
|
|
111240
111724
|
return await this.#tracingHandler.runInChildSpan("query", async () => {
|
|
111241
111725
|
const queryable = transactionId !== null ? await this.#transactionManager.getTransaction({ id: transactionId }, "query") : this.#db;
|
|
111726
|
+
const sqlCommenter = comments && Object.keys(comments).length > 0 ? {
|
|
111727
|
+
plugins: [() => comments],
|
|
111728
|
+
// For pre-computed comments, we use a placeholder queryInfo since the actual
|
|
111729
|
+
// query info was already used on the client side to compute the comments
|
|
111730
|
+
queryInfo: { type: "single", action: "queryRaw", query: {} }
|
|
111731
|
+
} : void 0;
|
|
111242
111732
|
const queryInterpreter = QueryInterpreter.forSql({
|
|
111243
111733
|
placeholderValues,
|
|
111244
111734
|
tracingHelper: this.#tracingHandler,
|
|
111245
111735
|
transactionManager: transactionId === null ? { enabled: true, manager: this.#transactionManager } : { enabled: false },
|
|
111246
|
-
onQuery: logQuery
|
|
111736
|
+
onQuery: logQuery,
|
|
111737
|
+
sqlCommenter
|
|
111247
111738
|
});
|
|
111248
111739
|
const result = await Promise.race([
|
|
111249
111740
|
queryInterpreter.run(queryPlan, queryable),
|
|
@@ -112114,9 +112605,9 @@ To work with multiple accounts for the same Client ID and Tenant ID, please prov
|
|
|
112114
112605
|
const stepString = step.toString();
|
|
112115
112606
|
let stepDecCount = (stepString.split(".")[1] || "").length;
|
|
112116
112607
|
if (stepDecCount === 0 && /\d?e-\d?/.test(stepString)) {
|
|
112117
|
-
const
|
|
112118
|
-
if (
|
|
112119
|
-
stepDecCount = Number.parseInt(
|
|
112608
|
+
const match2 = stepString.match(/\d?e-(\d?)/);
|
|
112609
|
+
if (match2?.[1]) {
|
|
112610
|
+
stepDecCount = Number.parseInt(match2[1]);
|
|
112120
112611
|
}
|
|
112121
112612
|
}
|
|
112122
112613
|
const decCount = valDecCount > stepDecCount ? valDecCount : stepDecCount;
|
|
@@ -123322,7 +123813,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
123322
123813
|
model: external_exports.string().min(1).optional(),
|
|
123323
123814
|
operation: external_exports.string().min(1),
|
|
123324
123815
|
plan: external_exports.record(external_exports.string(), external_exports.unknown()),
|
|
123325
|
-
params: external_exports.record(external_exports.string(), external_exports.unknown())
|
|
123816
|
+
params: external_exports.record(external_exports.string(), external_exports.unknown()),
|
|
123817
|
+
comments: external_exports.record(external_exports.string(), external_exports.string()).optional()
|
|
123326
123818
|
});
|
|
123327
123819
|
var TransactionStartRequestBody = external_exports.object({
|
|
123328
123820
|
timeout: external_exports.number().optional(),
|
|
@@ -123364,7 +123856,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
123364
123856
|
return c2.json(app.getConnectionInfo());
|
|
123365
123857
|
}).post("/query", zValidator("json", QueryRequestBody), async (c2) => {
|
|
123366
123858
|
const request3 = c2.req.valid("json");
|
|
123367
|
-
const data = await app.query(
|
|
123859
|
+
const data = await app.query(
|
|
123860
|
+
request3.plan,
|
|
123861
|
+
request3.params,
|
|
123862
|
+
request3.comments,
|
|
123863
|
+
c2.get("resourceLimits"),
|
|
123864
|
+
null
|
|
123865
|
+
);
|
|
123368
123866
|
return c2.json({ data });
|
|
123369
123867
|
}).post("/transaction/start", zValidator("json", TransactionStartRequestBody), async (c2) => {
|
|
123370
123868
|
const result = await app.startTransaction(c2.req.valid("json"), c2.get("resourceLimits"));
|
|
@@ -123375,6 +123873,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
123375
123873
|
const data = await app.query(
|
|
123376
123874
|
request3.plan,
|
|
123377
123875
|
request3.params,
|
|
123876
|
+
request3.comments,
|
|
123378
123877
|
c2.get("resourceLimits"),
|
|
123379
123878
|
c2.req.param("txId")
|
|
123380
123879
|
);
|
|
@@ -124120,8 +124619,8 @@ var require_listCacheDelete = __commonJS({
|
|
|
124120
124619
|
if (index < 0) {
|
|
124121
124620
|
return false;
|
|
124122
124621
|
}
|
|
124123
|
-
var
|
|
124124
|
-
if (index ==
|
|
124622
|
+
var lastIndex = data.length - 1;
|
|
124623
|
+
if (index == lastIndex) {
|
|
124125
124624
|
data.pop();
|
|
124126
124625
|
} else {
|
|
124127
124626
|
splice.call(data, index, 1);
|
|
@@ -126698,13 +127197,13 @@ var require_baseSet = __commonJS({
|
|
|
126698
127197
|
return object2;
|
|
126699
127198
|
}
|
|
126700
127199
|
path = castPath(path, object2);
|
|
126701
|
-
var index = -1, length = path.length,
|
|
127200
|
+
var index = -1, length = path.length, lastIndex = length - 1, nested = object2;
|
|
126702
127201
|
while (nested != null && ++index < length) {
|
|
126703
127202
|
var key = toKey(path[index]), newValue = value;
|
|
126704
127203
|
if (key === "__proto__" || key === "constructor" || key === "prototype") {
|
|
126705
127204
|
return object2;
|
|
126706
127205
|
}
|
|
126707
|
-
if (index !=
|
|
127206
|
+
if (index != lastIndex) {
|
|
126708
127207
|
var objValue = nested[key];
|
|
126709
127208
|
newValue = customizer ? customizer(objValue, key, nested) : void 0;
|
|
126710
127209
|
if (newValue === void 0) {
|
|
@@ -136702,7 +137201,7 @@ var tokenLabel = import_api.default.tokenLabel;
|
|
|
136702
137201
|
var tokenMatcher = import_api.default.tokenMatcher;
|
|
136703
137202
|
var tokenName = import_api.default.tokenName;
|
|
136704
137203
|
|
|
136705
|
-
// ../../node_modules/.pnpm/@mrleebo+prisma-ast@0.
|
|
137204
|
+
// ../../node_modules/.pnpm/@mrleebo+prisma-ast@0.13.1/node_modules/@mrleebo/prisma-ast/dist/prisma-ast.esm.js
|
|
136706
137205
|
var import_lilconfig = __toESM(require_dist2());
|
|
136707
137206
|
import { EOL } from "os";
|
|
136708
137207
|
function _inheritsLoose(subClass, superClass) {
|
|
@@ -138062,6 +138561,17 @@ export {
|
|
|
138062
138561
|
@prisma/query-plan-executor/dist/index.js:
|
|
138063
138562
|
(*! Bundled license information:
|
|
138064
138563
|
|
|
138564
|
+
decimal.js/decimal.mjs:
|
|
138565
|
+
(*!
|
|
138566
|
+
* decimal.js v10.5.0
|
|
138567
|
+
* An arbitrary-precision Decimal type for JavaScript.
|
|
138568
|
+
* https://github.com/MikeMcl/decimal.js
|
|
138569
|
+
* Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
|
|
138570
|
+
* MIT Licence
|
|
138571
|
+
*)
|
|
138572
|
+
*)
|
|
138573
|
+
(*! Bundled license information:
|
|
138574
|
+
|
|
138065
138575
|
@noble/hashes/utils.js:
|
|
138066
138576
|
(*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) *)
|
|
138067
138577
|
|
|
@@ -138234,14 +138744,5 @@ export {
|
|
|
138234
138744
|
* @copyright (c) 2015-present, Philipp Thürwächter, Pattrick Hüper & js-joda contributors
|
|
138235
138745
|
* @license BSD-3-Clause (see LICENSE in the root directory of this source tree)
|
|
138236
138746
|
*)
|
|
138237
|
-
|
|
138238
|
-
decimal.js/decimal.mjs:
|
|
138239
|
-
(*!
|
|
138240
|
-
* decimal.js v10.5.0
|
|
138241
|
-
* An arbitrary-precision Decimal type for JavaScript.
|
|
138242
|
-
* https://github.com/MikeMcl/decimal.js
|
|
138243
|
-
* Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
|
|
138244
|
-
* MIT Licence
|
|
138245
|
-
*)
|
|
138246
138747
|
*)
|
|
138247
138748
|
*/
|