@oxagen/cli 2.1.4-481 → 2.1.4-489
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/oxagen.mjs +509 -259
- package/package.json +1 -1
package/oxagen.mjs
CHANGED
|
@@ -23363,7 +23363,7 @@ import { readFileSync as readFileSync11 } from "node:fs";
|
|
|
23363
23363
|
import { dirname as dirname8, resolve as resolve2 } from "node:path";
|
|
23364
23364
|
import { fileURLToPath } from "node:url";
|
|
23365
23365
|
function readVersion() {
|
|
23366
|
-
if (true) return "2.1.4-
|
|
23366
|
+
if (true) return "2.1.4-489";
|
|
23367
23367
|
try {
|
|
23368
23368
|
const here = dirname8(fileURLToPath(import.meta.url));
|
|
23369
23369
|
const pkg = JSON.parse(
|
|
@@ -52035,7 +52035,7 @@ var init_package = __esm({
|
|
|
52035
52035
|
"package.json"() {
|
|
52036
52036
|
package_default = {
|
|
52037
52037
|
name: "@oxagen/cli",
|
|
52038
|
-
version: "2.1.4-
|
|
52038
|
+
version: "2.1.4-489",
|
|
52039
52039
|
description: "Oxagen governance CLI \u2014 spend, lineage, grounding, credentials, and audit (agentic coding lives in the stella CLI)",
|
|
52040
52040
|
type: "module",
|
|
52041
52041
|
main: "./dist/index.js",
|
|
@@ -93759,9 +93759,9 @@ var init_graphql2 = __esm({
|
|
|
93759
93759
|
}
|
|
93760
93760
|
});
|
|
93761
93761
|
|
|
93762
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
93762
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/constants.js
|
|
93763
93763
|
var require_constants = __commonJS({
|
|
93764
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
93764
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/constants.js"(exports) {
|
|
93765
93765
|
"use strict";
|
|
93766
93766
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
93767
93767
|
exports.DEFAULT_MAX_RECEIVE_MESSAGE_LENGTH = exports.DEFAULT_MAX_SEND_MESSAGE_LENGTH = exports.Propagate = exports.LogVerbosity = exports.Status = void 0;
|
|
@@ -93805,12 +93805,12 @@ var require_constants = __commonJS({
|
|
|
93805
93805
|
}
|
|
93806
93806
|
});
|
|
93807
93807
|
|
|
93808
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
93808
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/package.json
|
|
93809
93809
|
var require_package = __commonJS({
|
|
93810
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
93810
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/package.json"(exports, module) {
|
|
93811
93811
|
module.exports = {
|
|
93812
93812
|
name: "@grpc/grpc-js",
|
|
93813
|
-
version: "1.14.
|
|
93813
|
+
version: "1.14.5",
|
|
93814
93814
|
description: "gRPC Library for Node - pure JS implementation",
|
|
93815
93815
|
homepage: "https://grpc.io/",
|
|
93816
93816
|
repository: "https://github.com/grpc/grpc-node/tree/master/packages/grpc-js",
|
|
@@ -93900,9 +93900,9 @@ var require_package = __commonJS({
|
|
|
93900
93900
|
}
|
|
93901
93901
|
});
|
|
93902
93902
|
|
|
93903
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
93903
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/logging.js
|
|
93904
93904
|
var require_logging = __commonJS({
|
|
93905
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
93905
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/logging.js"(exports) {
|
|
93906
93906
|
"use strict";
|
|
93907
93907
|
var _a2;
|
|
93908
93908
|
var _b2;
|
|
@@ -93983,6 +93983,9 @@ var require_logging = __commonJS({
|
|
|
93983
93983
|
var enabledTracers = /* @__PURE__ */ new Set();
|
|
93984
93984
|
var disabledTracers = /* @__PURE__ */ new Set();
|
|
93985
93985
|
for (const tracerName of tracersString.split(",")) {
|
|
93986
|
+
if (tracerName.length === 0) {
|
|
93987
|
+
continue;
|
|
93988
|
+
}
|
|
93986
93989
|
if (tracerName.startsWith("-")) {
|
|
93987
93990
|
disabledTracers.add(tracerName.substring(1));
|
|
93988
93991
|
} else {
|
|
@@ -93990,20 +93993,24 @@ var require_logging = __commonJS({
|
|
|
93990
93993
|
}
|
|
93991
93994
|
}
|
|
93992
93995
|
var allEnabled = enabledTracers.has("all");
|
|
93996
|
+
var anyTracerEnabled = allEnabled || enabledTracers.size > 0;
|
|
93993
93997
|
function trace(severity, tracer, text4) {
|
|
93994
93998
|
if (isTracerEnabled(tracer)) {
|
|
93995
93999
|
(0, exports.log)(severity, (/* @__PURE__ */ new Date()).toISOString() + " | v" + clientVersion + " " + process_1.pid + " | " + tracer + " | " + text4);
|
|
93996
94000
|
}
|
|
93997
94001
|
}
|
|
93998
94002
|
function isTracerEnabled(tracer) {
|
|
94003
|
+
if (!anyTracerEnabled) {
|
|
94004
|
+
return false;
|
|
94005
|
+
}
|
|
93999
94006
|
return !disabledTracers.has(tracer) && (allEnabled || enabledTracers.has(tracer));
|
|
94000
94007
|
}
|
|
94001
94008
|
}
|
|
94002
94009
|
});
|
|
94003
94010
|
|
|
94004
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
94011
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/error.js
|
|
94005
94012
|
var require_error2 = __commonJS({
|
|
94006
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
94013
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/error.js"(exports) {
|
|
94007
94014
|
"use strict";
|
|
94008
94015
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
94009
94016
|
exports.getErrorMessage = getErrorMessage;
|
|
@@ -94025,9 +94032,9 @@ var require_error2 = __commonJS({
|
|
|
94025
94032
|
}
|
|
94026
94033
|
});
|
|
94027
94034
|
|
|
94028
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
94035
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/metadata.js
|
|
94029
94036
|
var require_metadata = __commonJS({
|
|
94030
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
94037
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/metadata.js"(exports) {
|
|
94031
94038
|
"use strict";
|
|
94032
94039
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
94033
94040
|
exports.Metadata = void 0;
|
|
@@ -94269,9 +94276,9 @@ var require_metadata = __commonJS({
|
|
|
94269
94276
|
}
|
|
94270
94277
|
});
|
|
94271
94278
|
|
|
94272
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
94279
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/call-credentials.js
|
|
94273
94280
|
var require_call_credentials = __commonJS({
|
|
94274
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
94281
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/call-credentials.js"(exports) {
|
|
94275
94282
|
"use strict";
|
|
94276
94283
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
94277
94284
|
exports.CallCredentials = void 0;
|
|
@@ -94402,9 +94409,9 @@ var require_call_credentials = __commonJS({
|
|
|
94402
94409
|
}
|
|
94403
94410
|
});
|
|
94404
94411
|
|
|
94405
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
94412
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/tls-helpers.js
|
|
94406
94413
|
var require_tls_helpers = __commonJS({
|
|
94407
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
94414
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/tls-helpers.js"(exports) {
|
|
94408
94415
|
"use strict";
|
|
94409
94416
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
94410
94417
|
exports.CIPHER_SUITES = void 0;
|
|
@@ -94425,9 +94432,9 @@ var require_tls_helpers = __commonJS({
|
|
|
94425
94432
|
}
|
|
94426
94433
|
});
|
|
94427
94434
|
|
|
94428
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
94435
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/uri-parser.js
|
|
94429
94436
|
var require_uri_parser = __commonJS({
|
|
94430
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
94437
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/uri-parser.js"(exports) {
|
|
94431
94438
|
"use strict";
|
|
94432
94439
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
94433
94440
|
exports.parseUri = parseUri;
|
|
@@ -94519,9 +94526,9 @@ var require_uri_parser = __commonJS({
|
|
|
94519
94526
|
}
|
|
94520
94527
|
});
|
|
94521
94528
|
|
|
94522
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
94529
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/resolver.js
|
|
94523
94530
|
var require_resolver = __commonJS({
|
|
94524
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
94531
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/resolver.js"(exports) {
|
|
94525
94532
|
"use strict";
|
|
94526
94533
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
94527
94534
|
exports.CHANNEL_ARGS_CONFIG_SELECTOR_KEY = void 0;
|
|
@@ -94571,9 +94578,9 @@ var require_resolver = __commonJS({
|
|
|
94571
94578
|
}
|
|
94572
94579
|
});
|
|
94573
94580
|
|
|
94574
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
94581
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/channel-credentials.js
|
|
94575
94582
|
var require_channel_credentials = __commonJS({
|
|
94576
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
94583
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/channel-credentials.js"(exports) {
|
|
94577
94584
|
"use strict";
|
|
94578
94585
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
94579
94586
|
exports.ChannelCredentials = void 0;
|
|
@@ -94967,9 +94974,9 @@ var require_channel_credentials = __commonJS({
|
|
|
94967
94974
|
}
|
|
94968
94975
|
});
|
|
94969
94976
|
|
|
94970
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
94977
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancer.js
|
|
94971
94978
|
var require_load_balancer = __commonJS({
|
|
94972
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
94979
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancer.js"(exports) {
|
|
94973
94980
|
"use strict";
|
|
94974
94981
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
94975
94982
|
exports.createChildChannelControlHelper = createChildChannelControlHelper;
|
|
@@ -95058,9 +95065,9 @@ var require_load_balancer = __commonJS({
|
|
|
95058
95065
|
}
|
|
95059
95066
|
});
|
|
95060
95067
|
|
|
95061
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
95068
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/service-config.js
|
|
95062
95069
|
var require_service_config = __commonJS({
|
|
95063
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
95070
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/service-config.js"(exports) {
|
|
95064
95071
|
"use strict";
|
|
95065
95072
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
95066
95073
|
exports.validateRetryThrottling = validateRetryThrottling;
|
|
@@ -95401,9 +95408,9 @@ var require_service_config = __commonJS({
|
|
|
95401
95408
|
}
|
|
95402
95409
|
});
|
|
95403
95410
|
|
|
95404
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
95411
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/connectivity-state.js
|
|
95405
95412
|
var require_connectivity_state = __commonJS({
|
|
95406
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
95413
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/connectivity-state.js"(exports) {
|
|
95407
95414
|
"use strict";
|
|
95408
95415
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
95409
95416
|
exports.ConnectivityState = void 0;
|
|
@@ -95418,9 +95425,9 @@ var require_connectivity_state = __commonJS({
|
|
|
95418
95425
|
}
|
|
95419
95426
|
});
|
|
95420
95427
|
|
|
95421
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
95428
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/picker.js
|
|
95422
95429
|
var require_picker = __commonJS({
|
|
95423
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
95430
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/picker.js"(exports) {
|
|
95424
95431
|
"use strict";
|
|
95425
95432
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
95426
95433
|
exports.QueuePicker = exports.UnavailablePicker = exports.PickResultType = void 0;
|
|
@@ -95479,9 +95486,9 @@ var require_picker = __commonJS({
|
|
|
95479
95486
|
}
|
|
95480
95487
|
});
|
|
95481
95488
|
|
|
95482
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
95489
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/backoff-timeout.js
|
|
95483
95490
|
var require_backoff_timeout = __commonJS({
|
|
95484
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
95491
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/backoff-timeout.js"(exports) {
|
|
95485
95492
|
"use strict";
|
|
95486
95493
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
95487
95494
|
exports.BackoffTimeout = void 0;
|
|
@@ -95521,7 +95528,9 @@ var require_backoff_timeout = __commonJS({
|
|
|
95521
95528
|
this.maxDelay = options.maxDelay;
|
|
95522
95529
|
}
|
|
95523
95530
|
}
|
|
95524
|
-
|
|
95531
|
+
if (this.traceEnabled) {
|
|
95532
|
+
this.trace("constructed initialDelay=" + this.initialDelay + " multiplier=" + this.multiplier + " jitter=" + this.jitter + " maxDelay=" + this.maxDelay);
|
|
95533
|
+
}
|
|
95525
95534
|
this.nextDelay = this.initialDelay;
|
|
95526
95535
|
this.timerId = setTimeout(() => {
|
|
95527
95536
|
}, 0);
|
|
@@ -95530,12 +95539,19 @@ var require_backoff_timeout = __commonJS({
|
|
|
95530
95539
|
static getNextId() {
|
|
95531
95540
|
return this.nextId++;
|
|
95532
95541
|
}
|
|
95542
|
+
get traceEnabled() {
|
|
95543
|
+
return logging.isTracerEnabled(TRACER_NAME);
|
|
95544
|
+
}
|
|
95533
95545
|
trace(text4) {
|
|
95534
|
-
|
|
95546
|
+
if (this.traceEnabled) {
|
|
95547
|
+
logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, "{" + this.id + "} " + text4);
|
|
95548
|
+
}
|
|
95535
95549
|
}
|
|
95536
95550
|
runTimer(delay) {
|
|
95537
95551
|
var _a2, _b2;
|
|
95538
|
-
this.
|
|
95552
|
+
if (this.traceEnabled) {
|
|
95553
|
+
this.trace("runTimer(delay=" + delay + ")");
|
|
95554
|
+
}
|
|
95539
95555
|
this.endTime = this.startTime;
|
|
95540
95556
|
this.endTime.setMilliseconds(this.endTime.getMilliseconds() + delay);
|
|
95541
95557
|
clearTimeout(this.timerId);
|
|
@@ -95574,7 +95590,9 @@ var require_backoff_timeout = __commonJS({
|
|
|
95574
95590
|
* retroactively apply that reset to the current timer.
|
|
95575
95591
|
*/
|
|
95576
95592
|
reset() {
|
|
95577
|
-
this.
|
|
95593
|
+
if (this.traceEnabled) {
|
|
95594
|
+
this.trace("reset() running=" + this.running);
|
|
95595
|
+
}
|
|
95578
95596
|
this.nextDelay = this.initialDelay;
|
|
95579
95597
|
if (this.running) {
|
|
95580
95598
|
const now = /* @__PURE__ */ new Date();
|
|
@@ -95625,9 +95643,9 @@ var require_backoff_timeout = __commonJS({
|
|
|
95625
95643
|
}
|
|
95626
95644
|
});
|
|
95627
95645
|
|
|
95628
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
95646
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancer-child-handler.js
|
|
95629
95647
|
var require_load_balancer_child_handler = __commonJS({
|
|
95630
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
95648
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancer-child-handler.js"(exports) {
|
|
95631
95649
|
"use strict";
|
|
95632
95650
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
95633
95651
|
exports.ChildLoadBalancerHandler = void 0;
|
|
@@ -95755,9 +95773,9 @@ var require_load_balancer_child_handler = __commonJS({
|
|
|
95755
95773
|
}
|
|
95756
95774
|
});
|
|
95757
95775
|
|
|
95758
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
95776
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/resolving-load-balancer.js
|
|
95759
95777
|
var require_resolving_load_balancer = __commonJS({
|
|
95760
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
95778
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/resolving-load-balancer.js"(exports) {
|
|
95761
95779
|
"use strict";
|
|
95762
95780
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
95763
95781
|
exports.ResolvingLoadBalancer = void 0;
|
|
@@ -96004,9 +96022,9 @@ var require_resolving_load_balancer = __commonJS({
|
|
|
96004
96022
|
}
|
|
96005
96023
|
});
|
|
96006
96024
|
|
|
96007
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
96025
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/channel-options.js
|
|
96008
96026
|
var require_channel_options = __commonJS({
|
|
96009
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
96027
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/channel-options.js"(exports) {
|
|
96010
96028
|
"use strict";
|
|
96011
96029
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
96012
96030
|
exports.recognizedOptions = void 0;
|
|
@@ -96062,9 +96080,9 @@ var require_channel_options = __commonJS({
|
|
|
96062
96080
|
}
|
|
96063
96081
|
});
|
|
96064
96082
|
|
|
96065
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
96083
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/subchannel-address.js
|
|
96066
96084
|
var require_subchannel_address = __commonJS({
|
|
96067
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
96085
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/subchannel-address.js"(exports) {
|
|
96068
96086
|
"use strict";
|
|
96069
96087
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
96070
96088
|
exports.EndpointMap = void 0;
|
|
@@ -97041,9 +97059,9 @@ var require_cjs = __commonJS({
|
|
|
97041
97059
|
}
|
|
97042
97060
|
});
|
|
97043
97061
|
|
|
97044
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
97062
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/admin.js
|
|
97045
97063
|
var require_admin = __commonJS({
|
|
97046
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
97064
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/admin.js"(exports) {
|
|
97047
97065
|
"use strict";
|
|
97048
97066
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
97049
97067
|
exports.registerAdminService = registerAdminService;
|
|
@@ -97060,9 +97078,9 @@ var require_admin = __commonJS({
|
|
|
97060
97078
|
}
|
|
97061
97079
|
});
|
|
97062
97080
|
|
|
97063
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
97081
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/call.js
|
|
97064
97082
|
var require_call = __commonJS({
|
|
97065
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
97083
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/call.js"(exports) {
|
|
97066
97084
|
"use strict";
|
|
97067
97085
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
97068
97086
|
exports.ClientDuplexStreamImpl = exports.ClientWritableStreamImpl = exports.ClientReadableStreamImpl = exports.ClientUnaryCallImpl = void 0;
|
|
@@ -97197,9 +97215,9 @@ ${callerStack}`;
|
|
|
97197
97215
|
}
|
|
97198
97216
|
});
|
|
97199
97217
|
|
|
97200
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
97218
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/call-interface.js
|
|
97201
97219
|
var require_call_interface = __commonJS({
|
|
97202
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
97220
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/call-interface.js"(exports) {
|
|
97203
97221
|
"use strict";
|
|
97204
97222
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
97205
97223
|
exports.InterceptingListenerImpl = void 0;
|
|
@@ -97281,9 +97299,9 @@ var require_call_interface = __commonJS({
|
|
|
97281
97299
|
}
|
|
97282
97300
|
});
|
|
97283
97301
|
|
|
97284
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
97302
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/client-interceptors.js
|
|
97285
97303
|
var require_client_interceptors = __commonJS({
|
|
97286
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
97304
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/client-interceptors.js"(exports) {
|
|
97287
97305
|
"use strict";
|
|
97288
97306
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
97289
97307
|
exports.InterceptingCall = exports.RequesterBuilder = exports.ListenerBuilder = exports.InterceptorConfigurationError = void 0;
|
|
@@ -97634,9 +97652,9 @@ var require_client_interceptors = __commonJS({
|
|
|
97634
97652
|
}
|
|
97635
97653
|
});
|
|
97636
97654
|
|
|
97637
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
97655
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/client.js
|
|
97638
97656
|
var require_client = __commonJS({
|
|
97639
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
97657
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/client.js"(exports) {
|
|
97640
97658
|
"use strict";
|
|
97641
97659
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
97642
97660
|
exports.Client = void 0;
|
|
@@ -98008,9 +98026,9 @@ var require_client = __commonJS({
|
|
|
98008
98026
|
}
|
|
98009
98027
|
});
|
|
98010
98028
|
|
|
98011
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
98029
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/make-client.js
|
|
98012
98030
|
var require_make_client = __commonJS({
|
|
98013
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
98031
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/make-client.js"(exports) {
|
|
98014
98032
|
"use strict";
|
|
98015
98033
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
98016
98034
|
exports.makeClientConstructor = makeClientConstructor;
|
|
@@ -101075,9 +101093,9 @@ var require_src2 = __commonJS({
|
|
|
101075
101093
|
}
|
|
101076
101094
|
});
|
|
101077
101095
|
|
|
101078
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
101096
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/channelz.js
|
|
101079
101097
|
var require_channelz = __commonJS({
|
|
101080
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
101098
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/channelz.js"(exports) {
|
|
101081
101099
|
"use strict";
|
|
101082
101100
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
101083
101101
|
exports.registerChannelzSocket = exports.registerChannelzServer = exports.registerChannelzSubchannel = exports.registerChannelzChannel = exports.ChannelzCallTrackerStub = exports.ChannelzCallTracker = exports.ChannelzChildrenTrackerStub = exports.ChannelzChildrenTracker = exports.ChannelzTrace = exports.ChannelzTraceStub = void 0;
|
|
@@ -101659,9 +101677,9 @@ var require_channelz = __commonJS({
|
|
|
101659
101677
|
}
|
|
101660
101678
|
});
|
|
101661
101679
|
|
|
101662
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
101680
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/call-number.js
|
|
101663
101681
|
var require_call_number = __commonJS({
|
|
101664
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
101682
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/call-number.js"(exports) {
|
|
101665
101683
|
"use strict";
|
|
101666
101684
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
101667
101685
|
exports.getNextCallNumber = getNextCallNumber;
|
|
@@ -101672,9 +101690,9 @@ var require_call_number = __commonJS({
|
|
|
101672
101690
|
}
|
|
101673
101691
|
});
|
|
101674
101692
|
|
|
101675
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
101693
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/compression-algorithms.js
|
|
101676
101694
|
var require_compression_algorithms = __commonJS({
|
|
101677
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
101695
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/compression-algorithms.js"(exports) {
|
|
101678
101696
|
"use strict";
|
|
101679
101697
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
101680
101698
|
exports.CompressionAlgorithms = void 0;
|
|
@@ -101687,9 +101705,9 @@ var require_compression_algorithms = __commonJS({
|
|
|
101687
101705
|
}
|
|
101688
101706
|
});
|
|
101689
101707
|
|
|
101690
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
101708
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/filter.js
|
|
101691
101709
|
var require_filter = __commonJS({
|
|
101692
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
101710
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/filter.js"(exports) {
|
|
101693
101711
|
"use strict";
|
|
101694
101712
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
101695
101713
|
exports.BaseFilter = void 0;
|
|
@@ -101714,9 +101732,9 @@ var require_filter = __commonJS({
|
|
|
101714
101732
|
}
|
|
101715
101733
|
});
|
|
101716
101734
|
|
|
101717
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
101735
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/compression-filter.js
|
|
101718
101736
|
var require_compression_filter = __commonJS({
|
|
101719
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
101737
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/compression-filter.js"(exports) {
|
|
101720
101738
|
"use strict";
|
|
101721
101739
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
101722
101740
|
exports.CompressionFilterFactory = exports.CompressionFilter = void 0;
|
|
@@ -101983,9 +102001,9 @@ var require_compression_filter = __commonJS({
|
|
|
101983
102001
|
}
|
|
101984
102002
|
});
|
|
101985
102003
|
|
|
101986
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
102004
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/control-plane-status.js
|
|
101987
102005
|
var require_control_plane_status = __commonJS({
|
|
101988
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
102006
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/control-plane-status.js"(exports) {
|
|
101989
102007
|
"use strict";
|
|
101990
102008
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
101991
102009
|
exports.restrictControlPlaneStatusCode = restrictControlPlaneStatusCode;
|
|
@@ -102013,9 +102031,9 @@ var require_control_plane_status = __commonJS({
|
|
|
102013
102031
|
}
|
|
102014
102032
|
});
|
|
102015
102033
|
|
|
102016
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
102034
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/deadline.js
|
|
102017
102035
|
var require_deadline = __commonJS({
|
|
102018
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
102036
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/deadline.js"(exports) {
|
|
102019
102037
|
"use strict";
|
|
102020
102038
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
102021
102039
|
exports.minDeadline = minDeadline;
|
|
@@ -102084,9 +102102,9 @@ var require_deadline = __commonJS({
|
|
|
102084
102102
|
}
|
|
102085
102103
|
});
|
|
102086
102104
|
|
|
102087
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
102105
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/filter-stack.js
|
|
102088
102106
|
var require_filter_stack = __commonJS({
|
|
102089
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
102107
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/filter-stack.js"(exports) {
|
|
102090
102108
|
"use strict";
|
|
102091
102109
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
102092
102110
|
exports.FilterStackFactory = exports.FilterStack = void 0;
|
|
@@ -102155,9 +102173,9 @@ var require_filter_stack = __commonJS({
|
|
|
102155
102173
|
}
|
|
102156
102174
|
});
|
|
102157
102175
|
|
|
102158
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
102176
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/single-subchannel-channel.js
|
|
102159
102177
|
var require_single_subchannel_channel = __commonJS({
|
|
102160
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
102178
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/single-subchannel-channel.js"(exports) {
|
|
102161
102179
|
"use strict";
|
|
102162
102180
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
102163
102181
|
exports.SingleSubchannelChannel = void 0;
|
|
@@ -102270,7 +102288,7 @@ var require_single_subchannel_channel = __commonJS({
|
|
|
102270
102288
|
}
|
|
102271
102289
|
}
|
|
102272
102290
|
};
|
|
102273
|
-
this.childCall = this.subchannel.createCall(credsMetadata, this.options.host, this.method, childListener);
|
|
102291
|
+
this.childCall = this.subchannel.createCall(credsMetadata, this.options.host, this.method, childListener, this.callNumber);
|
|
102274
102292
|
if (this.readPending) {
|
|
102275
102293
|
this.childCall.startRead();
|
|
102276
102294
|
}
|
|
@@ -102375,9 +102393,9 @@ var require_single_subchannel_channel = __commonJS({
|
|
|
102375
102393
|
}
|
|
102376
102394
|
});
|
|
102377
102395
|
|
|
102378
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
102396
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/subchannel.js
|
|
102379
102397
|
var require_subchannel = __commonJS({
|
|
102380
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
102398
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/subchannel.js"(exports) {
|
|
102381
102399
|
"use strict";
|
|
102382
102400
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
102383
102401
|
exports.Subchannel = void 0;
|
|
@@ -102440,7 +102458,9 @@ var require_subchannel = __commonJS({
|
|
|
102440
102458
|
}
|
|
102441
102459
|
this.channelzRef = (0, channelz_1.registerChannelzSubchannel)(this.subchannelAddressString, () => this.getChannelzInfo(), this.channelzEnabled);
|
|
102442
102460
|
this.channelzTrace.addTrace("CT_INFO", "Subchannel created");
|
|
102443
|
-
this.
|
|
102461
|
+
if (this.traceEnabled) {
|
|
102462
|
+
this.trace("Subchannel constructed with options " + JSON.stringify(options, void 0, 2));
|
|
102463
|
+
}
|
|
102444
102464
|
this.secureConnector = credentials2._createSecureConnector(channelTarget, options);
|
|
102445
102465
|
}
|
|
102446
102466
|
getChannelzInfo() {
|
|
@@ -102452,11 +102472,21 @@ var require_subchannel = __commonJS({
|
|
|
102452
102472
|
target: this.subchannelAddressString
|
|
102453
102473
|
};
|
|
102454
102474
|
}
|
|
102475
|
+
get traceEnabled() {
|
|
102476
|
+
return logging.isTracerEnabled(TRACER_NAME);
|
|
102477
|
+
}
|
|
102478
|
+
get refTraceEnabled() {
|
|
102479
|
+
return logging.isTracerEnabled("subchannel_refcount");
|
|
102480
|
+
}
|
|
102455
102481
|
trace(text4) {
|
|
102456
|
-
|
|
102482
|
+
if (this.traceEnabled) {
|
|
102483
|
+
logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, "(" + this.channelzRef.id + ") " + this.subchannelAddressString + " " + text4);
|
|
102484
|
+
}
|
|
102457
102485
|
}
|
|
102458
102486
|
refTrace(text4) {
|
|
102459
|
-
|
|
102487
|
+
if (this.refTraceEnabled) {
|
|
102488
|
+
logging.trace(constants_1.LogVerbosity.DEBUG, "subchannel_refcount", "(" + this.channelzRef.id + ") " + this.subchannelAddressString + " " + text4);
|
|
102489
|
+
}
|
|
102460
102490
|
}
|
|
102461
102491
|
handleBackoffTimer() {
|
|
102462
102492
|
if (this.continueConnecting) {
|
|
@@ -102513,10 +102543,12 @@ var require_subchannel = __commonJS({
|
|
|
102513
102543
|
if (oldStates.indexOf(this.connectivityState) === -1) {
|
|
102514
102544
|
return false;
|
|
102515
102545
|
}
|
|
102516
|
-
if (
|
|
102517
|
-
|
|
102518
|
-
|
|
102519
|
-
|
|
102546
|
+
if (this.traceEnabled) {
|
|
102547
|
+
if (errorMessage2) {
|
|
102548
|
+
this.trace(connectivity_state_1.ConnectivityState[this.connectivityState] + " -> " + connectivity_state_1.ConnectivityState[newState] + ' with error "' + errorMessage2 + '"');
|
|
102549
|
+
} else {
|
|
102550
|
+
this.trace(connectivity_state_1.ConnectivityState[this.connectivityState] + " -> " + connectivity_state_1.ConnectivityState[newState]);
|
|
102551
|
+
}
|
|
102520
102552
|
}
|
|
102521
102553
|
if (this.channelzEnabled) {
|
|
102522
102554
|
this.channelzTrace.addTrace("CT_INFO", "Connectivity state change to " + connectivity_state_1.ConnectivityState[newState]);
|
|
@@ -102560,11 +102592,15 @@ var require_subchannel = __commonJS({
|
|
|
102560
102592
|
return true;
|
|
102561
102593
|
}
|
|
102562
102594
|
ref() {
|
|
102563
|
-
|
|
102595
|
+
if (this.refTraceEnabled) {
|
|
102596
|
+
this.refTrace("refcount " + this.refcount + " -> " + (this.refcount + 1));
|
|
102597
|
+
}
|
|
102564
102598
|
this.refcount += 1;
|
|
102565
102599
|
}
|
|
102566
102600
|
unref() {
|
|
102567
|
-
|
|
102601
|
+
if (this.refTraceEnabled) {
|
|
102602
|
+
this.refTrace("refcount " + this.refcount + " -> " + (this.refcount - 1));
|
|
102603
|
+
}
|
|
102568
102604
|
this.refcount -= 1;
|
|
102569
102605
|
if (this.refcount === 0) {
|
|
102570
102606
|
this.channelzTrace.addTrace("CT_INFO", "Shutting down");
|
|
@@ -102582,7 +102618,7 @@ var require_subchannel = __commonJS({
|
|
|
102582
102618
|
}
|
|
102583
102619
|
return false;
|
|
102584
102620
|
}
|
|
102585
|
-
createCall(metadata, host, method, listener) {
|
|
102621
|
+
createCall(metadata, host, method, listener, callId) {
|
|
102586
102622
|
if (!this.transport) {
|
|
102587
102623
|
throw new Error("Cannot create call, subchannel not READY");
|
|
102588
102624
|
}
|
|
@@ -102602,7 +102638,7 @@ var require_subchannel = __commonJS({
|
|
|
102602
102638
|
} else {
|
|
102603
102639
|
statsTracker = {};
|
|
102604
102640
|
}
|
|
102605
|
-
return this.transport.createCall(metadata, host, method, listener, statsTracker);
|
|
102641
|
+
return this.transport.createCall(metadata, host, method, listener, statsTracker, callId);
|
|
102606
102642
|
}
|
|
102607
102643
|
/**
|
|
102608
102644
|
* If the subchannel is currently IDLE, start connecting and switch to the
|
|
@@ -102703,20 +102739,22 @@ var require_subchannel = __commonJS({
|
|
|
102703
102739
|
}
|
|
102704
102740
|
});
|
|
102705
102741
|
|
|
102706
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
102742
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/environment.js
|
|
102707
102743
|
var require_environment = __commonJS({
|
|
102708
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
102744
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/environment.js"(exports) {
|
|
102709
102745
|
"use strict";
|
|
102710
102746
|
var _a2;
|
|
102747
|
+
var _b2;
|
|
102711
102748
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
102712
|
-
exports.GRPC_NODE_USE_ALTERNATIVE_RESOLVER = void 0;
|
|
102749
|
+
exports.GRPC_NODE_DEBUG_SEND_ERROR_DETAILS = exports.GRPC_NODE_USE_ALTERNATIVE_RESOLVER = void 0;
|
|
102713
102750
|
exports.GRPC_NODE_USE_ALTERNATIVE_RESOLVER = ((_a2 = process.env.GRPC_NODE_USE_ALTERNATIVE_RESOLVER) !== null && _a2 !== void 0 ? _a2 : "false") === "true";
|
|
102751
|
+
exports.GRPC_NODE_DEBUG_SEND_ERROR_DETAILS = ((_b2 = process.env.GRPC_NODE_DEBUG_SEND_ERROR_DETAILS) !== null && _b2 !== void 0 ? _b2 : "false") === "true";
|
|
102714
102752
|
}
|
|
102715
102753
|
});
|
|
102716
102754
|
|
|
102717
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
102755
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/resolver-dns.js
|
|
102718
102756
|
var require_resolver_dns = __commonJS({
|
|
102719
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
102757
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/resolver-dns.js"(exports) {
|
|
102720
102758
|
"use strict";
|
|
102721
102759
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
102722
102760
|
exports.DEFAULT_PORT = void 0;
|
|
@@ -103002,9 +103040,9 @@ var require_resolver_dns = __commonJS({
|
|
|
103002
103040
|
}
|
|
103003
103041
|
});
|
|
103004
103042
|
|
|
103005
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
103043
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/http_proxy.js
|
|
103006
103044
|
var require_http_proxy = __commonJS({
|
|
103007
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
103045
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/http_proxy.js"(exports) {
|
|
103008
103046
|
"use strict";
|
|
103009
103047
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
103010
103048
|
exports.parseCIDR = parseCIDR;
|
|
@@ -103221,9 +103259,9 @@ var require_http_proxy = __commonJS({
|
|
|
103221
103259
|
}
|
|
103222
103260
|
});
|
|
103223
103261
|
|
|
103224
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
103262
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/stream-decoder.js
|
|
103225
103263
|
var require_stream_decoder = __commonJS({
|
|
103226
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
103264
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/stream-decoder.js"(exports) {
|
|
103227
103265
|
"use strict";
|
|
103228
103266
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
103229
103267
|
exports.StreamDecoder = void 0;
|
|
@@ -103306,9 +103344,9 @@ var require_stream_decoder = __commonJS({
|
|
|
103306
103344
|
}
|
|
103307
103345
|
});
|
|
103308
103346
|
|
|
103309
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
103347
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/subchannel-call.js
|
|
103310
103348
|
var require_subchannel_call = __commonJS({
|
|
103311
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
103349
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/subchannel-call.js"(exports) {
|
|
103312
103350
|
"use strict";
|
|
103313
103351
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
103314
103352
|
exports.Http2SubchannelCall = void 0;
|
|
@@ -103381,11 +103419,13 @@ var require_subchannel_call = __commonJS({
|
|
|
103381
103419
|
const maxReceiveMessageLength = (_a2 = transport.getOptions()["grpc.max_receive_message_length"]) !== null && _a2 !== void 0 ? _a2 : constants_1.DEFAULT_MAX_RECEIVE_MESSAGE_LENGTH;
|
|
103382
103420
|
this.decoder = new stream_decoder_1.StreamDecoder(maxReceiveMessageLength);
|
|
103383
103421
|
http2Stream.on("response", (headers, flags) => {
|
|
103384
|
-
|
|
103385
|
-
|
|
103386
|
-
|
|
103422
|
+
if (this.traceEnabled) {
|
|
103423
|
+
let headersString = "";
|
|
103424
|
+
for (const header2 of Object.keys(headers)) {
|
|
103425
|
+
headersString += " " + header2 + ": " + headers[header2] + "\n";
|
|
103426
|
+
}
|
|
103427
|
+
this.trace("Received server headers:\n" + headersString);
|
|
103387
103428
|
}
|
|
103388
|
-
this.trace("Received server headers:\n" + headersString);
|
|
103389
103429
|
this.httpStatusCode = headers[":status"];
|
|
103390
103430
|
if (flags & http2.constants.NGHTTP2_FLAG_END_STREAM) {
|
|
103391
103431
|
this.handleTrailers(headers);
|
|
@@ -103411,7 +103451,9 @@ var require_subchannel_call = __commonJS({
|
|
|
103411
103451
|
if (this.statusOutput) {
|
|
103412
103452
|
return;
|
|
103413
103453
|
}
|
|
103414
|
-
this.
|
|
103454
|
+
if (this.traceEnabled) {
|
|
103455
|
+
this.trace("receive HTTP/2 data frame of length " + data.length);
|
|
103456
|
+
}
|
|
103415
103457
|
let messages;
|
|
103416
103458
|
try {
|
|
103417
103459
|
messages = this.decoder.write(data);
|
|
@@ -103425,7 +103467,9 @@ var require_subchannel_call = __commonJS({
|
|
|
103425
103467
|
return;
|
|
103426
103468
|
}
|
|
103427
103469
|
for (const message of messages) {
|
|
103428
|
-
this.
|
|
103470
|
+
if (this.traceEnabled) {
|
|
103471
|
+
this.trace("parsed message of length " + message.length);
|
|
103472
|
+
}
|
|
103429
103473
|
this.callEventTracker.addMessageReceived();
|
|
103430
103474
|
this.tryPush(message);
|
|
103431
103475
|
}
|
|
@@ -103438,7 +103482,9 @@ var require_subchannel_call = __commonJS({
|
|
|
103438
103482
|
this.serverEndedCall = true;
|
|
103439
103483
|
process.nextTick(() => {
|
|
103440
103484
|
var _a3;
|
|
103441
|
-
this.
|
|
103485
|
+
if (this.traceEnabled) {
|
|
103486
|
+
this.trace("HTTP/2 stream closed with code " + http2Stream.rstCode);
|
|
103487
|
+
}
|
|
103442
103488
|
if (((_a3 = this.finalStatus) === null || _a3 === void 0 ? void 0 : _a3.code) === constants_1.Status.OK) {
|
|
103443
103489
|
return;
|
|
103444
103490
|
}
|
|
@@ -103506,7 +103552,9 @@ var require_subchannel_call = __commonJS({
|
|
|
103506
103552
|
});
|
|
103507
103553
|
http2Stream.on("error", (err2) => {
|
|
103508
103554
|
if (err2.code !== "ERR_HTTP2_STREAM_ERROR") {
|
|
103509
|
-
|
|
103555
|
+
if (this.traceEnabled) {
|
|
103556
|
+
this.trace("Node error event: message=" + err2.message + " code=" + err2.code + " errno=" + getSystemErrorName(err2.errno) + " syscall=" + err2.syscall);
|
|
103557
|
+
}
|
|
103510
103558
|
this.internalError = err2;
|
|
103511
103559
|
}
|
|
103512
103560
|
this.callEventTracker.onStreamEnd(false);
|
|
@@ -103528,7 +103576,9 @@ var require_subchannel_call = __commonJS({
|
|
|
103528
103576
|
outputStatus() {
|
|
103529
103577
|
if (!this.statusOutput) {
|
|
103530
103578
|
this.statusOutput = true;
|
|
103531
|
-
|
|
103579
|
+
if (this.traceEnabled) {
|
|
103580
|
+
this.trace("ended with status: code=" + this.finalStatus.code + ' details="' + this.finalStatus.details + '"');
|
|
103581
|
+
}
|
|
103532
103582
|
this.callEventTracker.onCallEnd(this.finalStatus);
|
|
103533
103583
|
process.nextTick(() => {
|
|
103534
103584
|
this.listener.onReceiveStatus(this.finalStatus);
|
|
@@ -103536,8 +103586,13 @@ var require_subchannel_call = __commonJS({
|
|
|
103536
103586
|
this.http2Stream.resume();
|
|
103537
103587
|
}
|
|
103538
103588
|
}
|
|
103589
|
+
get traceEnabled() {
|
|
103590
|
+
return logging.isTracerEnabled(TRACER_NAME);
|
|
103591
|
+
}
|
|
103539
103592
|
trace(text4) {
|
|
103540
|
-
|
|
103593
|
+
if (this.traceEnabled) {
|
|
103594
|
+
logging.trace(constants_2.LogVerbosity.DEBUG, TRACER_NAME, "[" + this.callId + "] " + text4);
|
|
103595
|
+
}
|
|
103541
103596
|
}
|
|
103542
103597
|
/**
|
|
103543
103598
|
* On first call, emits a 'status' event with the given StatusObject.
|
|
@@ -103559,7 +103614,9 @@ var require_subchannel_call = __commonJS({
|
|
|
103559
103614
|
}
|
|
103560
103615
|
}
|
|
103561
103616
|
push(message) {
|
|
103562
|
-
|
|
103617
|
+
if (this.traceEnabled) {
|
|
103618
|
+
this.trace("pushing to reader message of length " + (message instanceof Buffer ? message.length : null));
|
|
103619
|
+
}
|
|
103563
103620
|
this.canPush = false;
|
|
103564
103621
|
this.isPushPending = true;
|
|
103565
103622
|
process.nextTick(() => {
|
|
@@ -103576,18 +103633,22 @@ var require_subchannel_call = __commonJS({
|
|
|
103576
103633
|
this.http2Stream.pause();
|
|
103577
103634
|
this.push(messageBytes);
|
|
103578
103635
|
} else {
|
|
103579
|
-
this.
|
|
103636
|
+
if (this.traceEnabled) {
|
|
103637
|
+
this.trace("unpushedReadMessages.push message of length " + messageBytes.length);
|
|
103638
|
+
}
|
|
103580
103639
|
this.unpushedReadMessages.push(messageBytes);
|
|
103581
103640
|
}
|
|
103582
103641
|
}
|
|
103583
103642
|
handleTrailers(headers) {
|
|
103584
103643
|
this.serverEndedCall = true;
|
|
103585
103644
|
this.callEventTracker.onStreamEnd(true);
|
|
103586
|
-
|
|
103587
|
-
|
|
103588
|
-
|
|
103645
|
+
if (this.traceEnabled) {
|
|
103646
|
+
let headersString = "";
|
|
103647
|
+
for (const header2 of Object.keys(headers)) {
|
|
103648
|
+
headersString += " " + header2 + ": " + headers[header2] + "\n";
|
|
103649
|
+
}
|
|
103650
|
+
this.trace("Received server trailers:\n" + headersString);
|
|
103589
103651
|
}
|
|
103590
|
-
this.trace("Received server trailers:\n" + headersString);
|
|
103591
103652
|
let metadata;
|
|
103592
103653
|
try {
|
|
103593
103654
|
metadata = metadata_1.Metadata.fromHttp2Headers(headers);
|
|
@@ -103598,7 +103659,9 @@ var require_subchannel_call = __commonJS({
|
|
|
103598
103659
|
let status2;
|
|
103599
103660
|
if (typeof metadataMap["grpc-status"] === "string") {
|
|
103600
103661
|
const receivedStatus = Number(metadataMap["grpc-status"]);
|
|
103601
|
-
this.
|
|
103662
|
+
if (this.traceEnabled) {
|
|
103663
|
+
this.trace("received status code " + receivedStatus + " from server");
|
|
103664
|
+
}
|
|
103602
103665
|
metadata.remove("grpc-status");
|
|
103603
103666
|
let details = "";
|
|
103604
103667
|
if (typeof metadataMap["grpc-message"] === "string") {
|
|
@@ -103608,7 +103671,9 @@ var require_subchannel_call = __commonJS({
|
|
|
103608
103671
|
details = metadataMap["grpc-message"];
|
|
103609
103672
|
}
|
|
103610
103673
|
metadata.remove("grpc-message");
|
|
103611
|
-
this.
|
|
103674
|
+
if (this.traceEnabled) {
|
|
103675
|
+
this.trace('received status details string "' + details + '" from server');
|
|
103676
|
+
}
|
|
103612
103677
|
}
|
|
103613
103678
|
status2 = {
|
|
103614
103679
|
code: receivedStatus,
|
|
@@ -103633,7 +103698,9 @@ var require_subchannel_call = __commonJS({
|
|
|
103633
103698
|
return;
|
|
103634
103699
|
}
|
|
103635
103700
|
if (this.serverEndedCall) {
|
|
103636
|
-
this.http2Stream.
|
|
103701
|
+
if (!this.http2Stream.writableEnded) {
|
|
103702
|
+
this.http2Stream.end();
|
|
103703
|
+
}
|
|
103637
103704
|
} else {
|
|
103638
103705
|
let code;
|
|
103639
103706
|
if (((_a2 = this.finalStatus) === null || _a2 === void 0 ? void 0 : _a2.code) === constants_1.Status.OK) {
|
|
@@ -103641,12 +103708,16 @@ var require_subchannel_call = __commonJS({
|
|
|
103641
103708
|
} else {
|
|
103642
103709
|
code = http2.constants.NGHTTP2_CANCEL;
|
|
103643
103710
|
}
|
|
103644
|
-
this.
|
|
103711
|
+
if (this.traceEnabled) {
|
|
103712
|
+
this.trace("close http2 stream with code " + code);
|
|
103713
|
+
}
|
|
103645
103714
|
this.http2Stream.close(code);
|
|
103646
103715
|
}
|
|
103647
103716
|
}
|
|
103648
103717
|
cancelWithStatus(status2, details) {
|
|
103649
|
-
this.
|
|
103718
|
+
if (this.traceEnabled) {
|
|
103719
|
+
this.trace("cancelWithStatus code: " + status2 + ' details: "' + details + '"');
|
|
103720
|
+
}
|
|
103650
103721
|
this.endCall({ code: status2, details, metadata: new metadata_1.Metadata() });
|
|
103651
103722
|
}
|
|
103652
103723
|
getStatus() {
|
|
@@ -103676,7 +103747,9 @@ var require_subchannel_call = __commonJS({
|
|
|
103676
103747
|
this.http2Stream.resume();
|
|
103677
103748
|
}
|
|
103678
103749
|
sendMessageWithContext(context, message) {
|
|
103679
|
-
this.
|
|
103750
|
+
if (this.traceEnabled) {
|
|
103751
|
+
this.trace("write() called with message of length " + message.length);
|
|
103752
|
+
}
|
|
103680
103753
|
const cb = (error) => {
|
|
103681
103754
|
process.nextTick(() => {
|
|
103682
103755
|
var _a2;
|
|
@@ -103690,7 +103763,9 @@ var require_subchannel_call = __commonJS({
|
|
|
103690
103763
|
(_a2 = context.callback) === null || _a2 === void 0 ? void 0 : _a2.call(context);
|
|
103691
103764
|
});
|
|
103692
103765
|
};
|
|
103693
|
-
this.
|
|
103766
|
+
if (this.traceEnabled) {
|
|
103767
|
+
this.trace("sending data chunk of length " + message.length);
|
|
103768
|
+
}
|
|
103694
103769
|
this.callEventTracker.addMessageSent();
|
|
103695
103770
|
try {
|
|
103696
103771
|
this.http2Stream.write(message, cb);
|
|
@@ -103704,6 +103779,9 @@ var require_subchannel_call = __commonJS({
|
|
|
103704
103779
|
}
|
|
103705
103780
|
halfClose() {
|
|
103706
103781
|
this.trace("end() called");
|
|
103782
|
+
if (this.http2Stream.destroyed || this.http2Stream.writableEnded) {
|
|
103783
|
+
return;
|
|
103784
|
+
}
|
|
103707
103785
|
this.trace("calling end() on HTTP/2 stream");
|
|
103708
103786
|
this.http2Stream.end();
|
|
103709
103787
|
}
|
|
@@ -103712,9 +103790,9 @@ var require_subchannel_call = __commonJS({
|
|
|
103712
103790
|
}
|
|
103713
103791
|
});
|
|
103714
103792
|
|
|
103715
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
103793
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/transport.js
|
|
103716
103794
|
var require_transport = __commonJS({
|
|
103717
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
103795
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/transport.js"(exports) {
|
|
103718
103796
|
"use strict";
|
|
103719
103797
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
103720
103798
|
exports.Http2SubchannelConnector = void 0;
|
|
@@ -103789,18 +103867,24 @@ var require_transport = __commonJS({
|
|
|
103789
103867
|
if (errorCode2 === http2.constants.NGHTTP2_ENHANCE_YOUR_CALM && opaqueData && opaqueData.equals(tooManyPingsData)) {
|
|
103790
103868
|
tooManyPings = true;
|
|
103791
103869
|
}
|
|
103792
|
-
|
|
103870
|
+
if (this.traceEnabled) {
|
|
103871
|
+
this.trace("connection closed by GOAWAY with code " + errorCode2 + " and data " + (opaqueData === null || opaqueData === void 0 ? void 0 : opaqueData.toString()));
|
|
103872
|
+
}
|
|
103793
103873
|
this.reportDisconnectToOwner(tooManyPings);
|
|
103794
103874
|
});
|
|
103795
103875
|
session.once("error", (error) => {
|
|
103796
|
-
this.
|
|
103876
|
+
if (this.traceEnabled) {
|
|
103877
|
+
this.trace("connection closed with error " + error.message);
|
|
103878
|
+
}
|
|
103797
103879
|
this.handleDisconnect();
|
|
103798
103880
|
});
|
|
103799
103881
|
session.socket.once("close", (hadError) => {
|
|
103800
|
-
this.
|
|
103882
|
+
if (this.traceEnabled) {
|
|
103883
|
+
this.trace("connection closed. hadError=" + hadError);
|
|
103884
|
+
}
|
|
103801
103885
|
this.handleDisconnect();
|
|
103802
103886
|
});
|
|
103803
|
-
if (
|
|
103887
|
+
if (this.traceEnabled) {
|
|
103804
103888
|
session.on("remoteSettings", (settings) => {
|
|
103805
103889
|
this.trace("new settings received" + (this.session !== session ? " on the old connection" : "") + ": " + JSON.stringify(settings));
|
|
103806
103890
|
});
|
|
@@ -103811,7 +103895,7 @@ var require_transport = __commonJS({
|
|
|
103811
103895
|
if (this.keepaliveWithoutCalls) {
|
|
103812
103896
|
this.maybeStartKeepalivePingTimer();
|
|
103813
103897
|
}
|
|
103814
|
-
if (session.socket instanceof tls_1.TLSSocket) {
|
|
103898
|
+
if (session.socket instanceof tls_1.TLSSocket && session.socket.authorized) {
|
|
103815
103899
|
this.authContext = {
|
|
103816
103900
|
transportSecurityType: "ssl",
|
|
103817
103901
|
sslPeerCertificate: session.socket.getPeerCertificate()
|
|
@@ -103860,17 +103944,37 @@ var require_transport = __commonJS({
|
|
|
103860
103944
|
};
|
|
103861
103945
|
return socketInfo;
|
|
103862
103946
|
}
|
|
103947
|
+
get traceEnabled() {
|
|
103948
|
+
return logging.isTracerEnabled(TRACER_NAME);
|
|
103949
|
+
}
|
|
103950
|
+
get keepaliveTraceEnabled() {
|
|
103951
|
+
return logging.isTracerEnabled("keepalive");
|
|
103952
|
+
}
|
|
103953
|
+
get flowControlTraceEnabled() {
|
|
103954
|
+
return logging.isTracerEnabled(FLOW_CONTROL_TRACER_NAME);
|
|
103955
|
+
}
|
|
103956
|
+
get internalsTraceEnabled() {
|
|
103957
|
+
return logging.isTracerEnabled("transport_internals");
|
|
103958
|
+
}
|
|
103863
103959
|
trace(text4) {
|
|
103864
|
-
|
|
103960
|
+
if (this.traceEnabled) {
|
|
103961
|
+
logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, "(" + this.channelzRef.id + ") " + this.subchannelAddressString + " " + text4);
|
|
103962
|
+
}
|
|
103865
103963
|
}
|
|
103866
103964
|
keepaliveTrace(text4) {
|
|
103867
|
-
|
|
103965
|
+
if (this.keepaliveTraceEnabled) {
|
|
103966
|
+
logging.trace(constants_1.LogVerbosity.DEBUG, "keepalive", "(" + this.channelzRef.id + ") " + this.subchannelAddressString + " " + text4);
|
|
103967
|
+
}
|
|
103868
103968
|
}
|
|
103869
103969
|
flowControlTrace(text4) {
|
|
103870
|
-
|
|
103970
|
+
if (this.flowControlTraceEnabled) {
|
|
103971
|
+
logging.trace(constants_1.LogVerbosity.DEBUG, FLOW_CONTROL_TRACER_NAME, "(" + this.channelzRef.id + ") " + this.subchannelAddressString + " " + text4);
|
|
103972
|
+
}
|
|
103871
103973
|
}
|
|
103872
103974
|
internalsTrace(text4) {
|
|
103873
|
-
|
|
103975
|
+
if (this.internalsTraceEnabled) {
|
|
103976
|
+
logging.trace(constants_1.LogVerbosity.DEBUG, "transport_internals", "(" + this.channelzRef.id + ") " + this.subchannelAddressString + " " + text4);
|
|
103977
|
+
}
|
|
103874
103978
|
}
|
|
103875
103979
|
/**
|
|
103876
103980
|
* Indicate to the owner of this object that this transport should no longer
|
|
@@ -103920,7 +104024,9 @@ var require_transport = __commonJS({
|
|
|
103920
104024
|
if (this.channelzEnabled) {
|
|
103921
104025
|
this.keepalivesSent += 1;
|
|
103922
104026
|
}
|
|
103923
|
-
|
|
104027
|
+
if (this.keepaliveTraceEnabled) {
|
|
104028
|
+
this.keepaliveTrace("Sending ping with timeout " + this.keepaliveTimeoutMs + "ms");
|
|
104029
|
+
}
|
|
103924
104030
|
this.keepaliveTimer = setTimeout(() => {
|
|
103925
104031
|
this.keepaliveTimer = null;
|
|
103926
104032
|
this.keepaliveTrace("Ping timeout passed without response");
|
|
@@ -103932,7 +104038,9 @@ var require_transport = __commonJS({
|
|
|
103932
104038
|
const pingSentSuccessfully = this.session.ping((err2, duration, payload) => {
|
|
103933
104039
|
this.clearKeepaliveTimeout();
|
|
103934
104040
|
if (err2) {
|
|
103935
|
-
this.
|
|
104041
|
+
if (this.keepaliveTraceEnabled) {
|
|
104042
|
+
this.keepaliveTrace("Ping failed with error " + err2.message);
|
|
104043
|
+
}
|
|
103936
104044
|
this.handleDisconnect();
|
|
103937
104045
|
} else {
|
|
103938
104046
|
this.keepaliveTrace("Received ping response");
|
|
@@ -103946,7 +104054,9 @@ var require_transport = __commonJS({
|
|
|
103946
104054
|
pingSendError = (e instanceof Error ? e.message : "") || "Unknown error";
|
|
103947
104055
|
}
|
|
103948
104056
|
if (pingSendError) {
|
|
103949
|
-
this.
|
|
104057
|
+
if (this.keepaliveTraceEnabled) {
|
|
104058
|
+
this.keepaliveTrace("Ping send failed: " + pingSendError);
|
|
104059
|
+
}
|
|
103950
104060
|
this.handleDisconnect();
|
|
103951
104061
|
}
|
|
103952
104062
|
}
|
|
@@ -103997,7 +104107,7 @@ var require_transport = __commonJS({
|
|
|
103997
104107
|
}
|
|
103998
104108
|
}
|
|
103999
104109
|
}
|
|
104000
|
-
createCall(metadata, host, method, listener, subchannelCallStatsTracker) {
|
|
104110
|
+
createCall(metadata, host, method, listener, subchannelCallStatsTracker, callId) {
|
|
104001
104111
|
const headers = metadata.toHttp2Headers();
|
|
104002
104112
|
headers[HTTP2_HEADER_AUTHORITY] = host;
|
|
104003
104113
|
headers[HTTP2_HEADER_USER_AGENT] = this.userAgent;
|
|
@@ -104012,8 +104122,12 @@ var require_transport = __commonJS({
|
|
|
104012
104122
|
this.handleDisconnect();
|
|
104013
104123
|
throw e;
|
|
104014
104124
|
}
|
|
104015
|
-
|
|
104016
|
-
|
|
104125
|
+
if (this.flowControlTraceEnabled) {
|
|
104126
|
+
this.flowControlTrace("local window size: " + this.session.state.localWindowSize + " remote window size: " + this.session.state.remoteWindowSize);
|
|
104127
|
+
}
|
|
104128
|
+
if (this.internalsTraceEnabled) {
|
|
104129
|
+
this.internalsTrace("session.closed=" + this.session.closed + " session.destroyed=" + this.session.destroyed + " session.socket.destroyed=" + this.session.socket.destroyed);
|
|
104130
|
+
}
|
|
104017
104131
|
let eventTracker;
|
|
104018
104132
|
let call;
|
|
104019
104133
|
if (this.channelzEnabled) {
|
|
@@ -104067,7 +104181,7 @@ var require_transport = __commonJS({
|
|
|
104067
104181
|
}
|
|
104068
104182
|
};
|
|
104069
104183
|
}
|
|
104070
|
-
call = new subchannel_call_1.Http2SubchannelCall(http2Stream, eventTracker, listener, this, (0, call_number_1.getNextCallNumber)());
|
|
104184
|
+
call = new subchannel_call_1.Http2SubchannelCall(http2Stream, eventTracker, listener, this, callId !== null && callId !== void 0 ? callId : (0, call_number_1.getNextCallNumber)());
|
|
104071
104185
|
this.addActiveCall(call);
|
|
104072
104186
|
return call;
|
|
104073
104187
|
}
|
|
@@ -104094,8 +104208,13 @@ var require_transport = __commonJS({
|
|
|
104094
104208
|
this.session = null;
|
|
104095
104209
|
this.isShutdown = false;
|
|
104096
104210
|
}
|
|
104211
|
+
get traceEnabled() {
|
|
104212
|
+
return logging.isTracerEnabled(TRACER_NAME);
|
|
104213
|
+
}
|
|
104097
104214
|
trace(text4) {
|
|
104098
|
-
|
|
104215
|
+
if (this.traceEnabled) {
|
|
104216
|
+
logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, (0, uri_parser_1.uriToString)(this.channelTarget) + " " + text4);
|
|
104217
|
+
}
|
|
104099
104218
|
}
|
|
104100
104219
|
createSession(secureConnectResult, address, options) {
|
|
104101
104220
|
if (this.isShutdown) {
|
|
@@ -104132,7 +104251,9 @@ var require_transport = __commonJS({
|
|
|
104132
104251
|
var _a3;
|
|
104133
104252
|
(_a3 = this.session) === null || _a3 === void 0 ? void 0 : _a3.destroy();
|
|
104134
104253
|
errorMessage2 = error.message;
|
|
104135
|
-
this.
|
|
104254
|
+
if (this.traceEnabled) {
|
|
104255
|
+
this.trace("connection failed with error " + errorMessage2);
|
|
104256
|
+
}
|
|
104136
104257
|
if (!reportedError) {
|
|
104137
104258
|
reportedError = true;
|
|
104138
104259
|
reject(`${errorMessage2} (${(/* @__PURE__ */ new Date()).toISOString()})`);
|
|
@@ -104213,14 +104334,22 @@ var require_transport = __commonJS({
|
|
|
104213
104334
|
let secureConnectResult = null;
|
|
104214
104335
|
const addressString = (0, subchannel_address_1.subchannelAddressToString)(address);
|
|
104215
104336
|
try {
|
|
104216
|
-
this.
|
|
104337
|
+
if (this.traceEnabled) {
|
|
104338
|
+
this.trace(addressString + " Waiting for secureConnector to be ready");
|
|
104339
|
+
}
|
|
104217
104340
|
await secureConnector.waitForReady();
|
|
104218
|
-
this.
|
|
104341
|
+
if (this.traceEnabled) {
|
|
104342
|
+
this.trace(addressString + " secureConnector is ready");
|
|
104343
|
+
}
|
|
104219
104344
|
tcpConnection = await this.tcpConnect(address, options);
|
|
104220
104345
|
tcpConnection.setNoDelay();
|
|
104221
|
-
this.
|
|
104346
|
+
if (this.traceEnabled) {
|
|
104347
|
+
this.trace(addressString + " Established TCP connection");
|
|
104348
|
+
}
|
|
104222
104349
|
secureConnectResult = await secureConnector.connect(tcpConnection);
|
|
104223
|
-
this.
|
|
104350
|
+
if (this.traceEnabled) {
|
|
104351
|
+
this.trace(addressString + " Established secure connection");
|
|
104352
|
+
}
|
|
104224
104353
|
return this.createSession(secureConnectResult, address, options);
|
|
104225
104354
|
} catch (e) {
|
|
104226
104355
|
tcpConnection === null || tcpConnection === void 0 ? void 0 : tcpConnection.destroy();
|
|
@@ -104239,9 +104368,9 @@ var require_transport = __commonJS({
|
|
|
104239
104368
|
}
|
|
104240
104369
|
});
|
|
104241
104370
|
|
|
104242
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
104371
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/subchannel-pool.js
|
|
104243
104372
|
var require_subchannel_pool = __commonJS({
|
|
104244
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
104373
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/subchannel-pool.js"(exports) {
|
|
104245
104374
|
"use strict";
|
|
104246
104375
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
104247
104376
|
exports.SubchannelPool = void 0;
|
|
@@ -104337,9 +104466,9 @@ var require_subchannel_pool = __commonJS({
|
|
|
104337
104466
|
}
|
|
104338
104467
|
});
|
|
104339
104468
|
|
|
104340
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
104469
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancing-call.js
|
|
104341
104470
|
var require_load_balancing_call = __commonJS({
|
|
104342
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
104471
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancing-call.js"(exports) {
|
|
104343
104472
|
"use strict";
|
|
104344
104473
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
104345
104474
|
exports.LoadBalancingCall = void 0;
|
|
@@ -104401,17 +104530,28 @@ var require_load_balancing_call = __commonJS({
|
|
|
104401
104530
|
}
|
|
104402
104531
|
return deadlineInfo;
|
|
104403
104532
|
}
|
|
104533
|
+
get traceEnabled() {
|
|
104534
|
+
return logging.isTracerEnabled(TRACER_NAME);
|
|
104535
|
+
}
|
|
104404
104536
|
trace(text4) {
|
|
104405
|
-
|
|
104537
|
+
if (this.traceEnabled) {
|
|
104538
|
+
logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, "[" + this.callNumber + "] " + text4);
|
|
104539
|
+
}
|
|
104540
|
+
}
|
|
104541
|
+
getSubchannelString(subchannel) {
|
|
104542
|
+
return subchannel ? "(" + subchannel.getChannelzRef().id + ") " + subchannel.getAddress() : "" + subchannel;
|
|
104406
104543
|
}
|
|
104407
104544
|
outputStatus(status2, progress) {
|
|
104408
104545
|
var _a2, _b2;
|
|
104409
104546
|
if (!this.ended) {
|
|
104410
104547
|
this.ended = true;
|
|
104411
|
-
|
|
104548
|
+
if (this.traceEnabled) {
|
|
104549
|
+
this.trace("ended with status: code=" + status2.code + ' details="' + status2.details + '" start time=' + this.startTime.toISOString());
|
|
104550
|
+
}
|
|
104412
104551
|
const finalStatus = Object.assign(Object.assign({}, status2), { progress });
|
|
104413
104552
|
(_a2 = this.listener) === null || _a2 === void 0 ? void 0 : _a2.onReceiveStatus(finalStatus);
|
|
104414
104553
|
(_b2 = this.onCallEnded) === null || _b2 === void 0 ? void 0 : _b2.call(this, finalStatus.code, finalStatus.details, finalStatus.metadata);
|
|
104554
|
+
this.channel.removeCallFromPickQueue(this);
|
|
104415
104555
|
}
|
|
104416
104556
|
}
|
|
104417
104557
|
doPick() {
|
|
@@ -104425,8 +104565,9 @@ var require_load_balancing_call = __commonJS({
|
|
|
104425
104565
|
this.trace("Pick called");
|
|
104426
104566
|
const finalMetadata = this.metadata.clone();
|
|
104427
104567
|
const pickResult = this.channel.doPick(finalMetadata, this.callConfig.pickInformation);
|
|
104428
|
-
|
|
104429
|
-
|
|
104568
|
+
if (this.traceEnabled) {
|
|
104569
|
+
this.trace("Pick result: " + picker_1.PickResultType[pickResult.pickResultType] + " subchannel: " + this.getSubchannelString(pickResult.subchannel) + " status: " + ((_a2 = pickResult.status) === null || _a2 === void 0 ? void 0 : _a2.code) + " " + ((_b2 = pickResult.status) === null || _b2 === void 0 ? void 0 : _b2.details));
|
|
104570
|
+
}
|
|
104430
104571
|
switch (pickResult.pickResultType) {
|
|
104431
104572
|
case picker_1.PickResultType.COMPLETE:
|
|
104432
104573
|
const combinedCallCredentials = this.credentials.compose(pickResult.subchannel.getCallCredentials());
|
|
@@ -104445,7 +104586,9 @@ var require_load_balancing_call = __commonJS({
|
|
|
104445
104586
|
}, "PROCESSED");
|
|
104446
104587
|
}
|
|
104447
104588
|
if (pickResult.subchannel.getConnectivityState() !== connectivity_state_1.ConnectivityState.READY) {
|
|
104448
|
-
this.
|
|
104589
|
+
if (this.traceEnabled) {
|
|
104590
|
+
this.trace("Picked subchannel " + this.getSubchannelString(pickResult.subchannel) + " has state " + connectivity_state_1.ConnectivityState[pickResult.subchannel.getConnectivityState()] + " after getting credentials metadata. Retrying pick");
|
|
104591
|
+
}
|
|
104449
104592
|
this.doPick();
|
|
104450
104593
|
return;
|
|
104451
104594
|
}
|
|
@@ -104470,10 +104613,12 @@ var require_load_balancing_call = __commonJS({
|
|
|
104470
104613
|
this.outputStatus(status2, "PROCESSED");
|
|
104471
104614
|
}
|
|
104472
104615
|
}
|
|
104473
|
-
});
|
|
104616
|
+
}, this.callNumber);
|
|
104474
104617
|
this.childStartTime = /* @__PURE__ */ new Date();
|
|
104475
104618
|
} catch (error) {
|
|
104476
|
-
this.
|
|
104619
|
+
if (this.traceEnabled) {
|
|
104620
|
+
this.trace("Failed to start call on picked subchannel " + this.getSubchannelString(pickResult.subchannel) + " with error " + error.message);
|
|
104621
|
+
}
|
|
104477
104622
|
this.outputStatus({
|
|
104478
104623
|
code: constants_1.Status.INTERNAL,
|
|
104479
104624
|
details: "Failed to start HTTP/2 stream with error " + error.message,
|
|
@@ -104483,7 +104628,9 @@ var require_load_balancing_call = __commonJS({
|
|
|
104483
104628
|
}
|
|
104484
104629
|
(_a3 = pickResult.onCallStarted) === null || _a3 === void 0 ? void 0 : _a3.call(pickResult);
|
|
104485
104630
|
this.onCallEnded = pickResult.onCallEnded;
|
|
104486
|
-
|
|
104631
|
+
if (this.traceEnabled) {
|
|
104632
|
+
this.trace("Created child call [" + this.child.getCallNumber() + "]");
|
|
104633
|
+
}
|
|
104487
104634
|
if (this.readPending) {
|
|
104488
104635
|
this.child.startRead();
|
|
104489
104636
|
}
|
|
@@ -104524,7 +104671,9 @@ var require_load_balancing_call = __commonJS({
|
|
|
104524
104671
|
}
|
|
104525
104672
|
cancelWithStatus(status2, details) {
|
|
104526
104673
|
var _a2;
|
|
104527
|
-
this.
|
|
104674
|
+
if (this.traceEnabled) {
|
|
104675
|
+
this.trace("cancelWithStatus code: " + status2 + ' details: "' + details + '"');
|
|
104676
|
+
}
|
|
104528
104677
|
(_a2 = this.child) === null || _a2 === void 0 ? void 0 : _a2.cancelWithStatus(status2, details);
|
|
104529
104678
|
this.outputStatus({ code: status2, details, metadata: new metadata_1.Metadata() }, "PROCESSED");
|
|
104530
104679
|
}
|
|
@@ -104539,7 +104688,9 @@ var require_load_balancing_call = __commonJS({
|
|
|
104539
104688
|
this.doPick();
|
|
104540
104689
|
}
|
|
104541
104690
|
sendMessageWithContext(context, message) {
|
|
104542
|
-
this.
|
|
104691
|
+
if (this.traceEnabled) {
|
|
104692
|
+
this.trace("write() called with message of length " + message.length);
|
|
104693
|
+
}
|
|
104543
104694
|
if (this.child) {
|
|
104544
104695
|
this.child.sendMessageWithContext(context, message);
|
|
104545
104696
|
} else {
|
|
@@ -104580,9 +104731,9 @@ var require_load_balancing_call = __commonJS({
|
|
|
104580
104731
|
}
|
|
104581
104732
|
});
|
|
104582
104733
|
|
|
104583
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
104734
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/resolving-call.js
|
|
104584
104735
|
var require_resolving_call = __commonJS({
|
|
104585
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
104736
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/resolving-call.js"(exports) {
|
|
104586
104737
|
"use strict";
|
|
104587
104738
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
104588
104739
|
exports.ResolvingCall = void 0;
|
|
@@ -104626,23 +104777,34 @@ var require_resolving_call = __commonJS({
|
|
|
104626
104777
|
});
|
|
104627
104778
|
}
|
|
104628
104779
|
if (options.flags & constants_1.Propagate.DEADLINE) {
|
|
104629
|
-
this.
|
|
104780
|
+
if (this.traceEnabled) {
|
|
104781
|
+
this.trace("Propagating deadline from parent: " + options.parentCall.getDeadline());
|
|
104782
|
+
}
|
|
104630
104783
|
this.deadline = (0, deadline_1.minDeadline)(this.deadline, options.parentCall.getDeadline());
|
|
104631
104784
|
}
|
|
104632
104785
|
}
|
|
104633
104786
|
this.trace("Created");
|
|
104634
104787
|
this.runDeadlineTimer();
|
|
104635
104788
|
}
|
|
104789
|
+
get traceEnabled() {
|
|
104790
|
+
return logging.isTracerEnabled(TRACER_NAME);
|
|
104791
|
+
}
|
|
104636
104792
|
trace(text4) {
|
|
104637
|
-
|
|
104793
|
+
if (this.traceEnabled) {
|
|
104794
|
+
logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, "[" + this.callNumber + "] " + text4);
|
|
104795
|
+
}
|
|
104638
104796
|
}
|
|
104639
104797
|
runDeadlineTimer() {
|
|
104640
104798
|
clearTimeout(this.deadlineTimer);
|
|
104641
104799
|
this.deadlineStartTime = /* @__PURE__ */ new Date();
|
|
104642
|
-
|
|
104800
|
+
if (this.traceEnabled) {
|
|
104801
|
+
this.trace("Deadline: " + (0, deadline_1.deadlineToString)(this.deadline));
|
|
104802
|
+
}
|
|
104643
104803
|
const timeout = (0, deadline_1.getRelativeTimeout)(this.deadline);
|
|
104644
104804
|
if (timeout !== Infinity) {
|
|
104645
|
-
this.
|
|
104805
|
+
if (this.traceEnabled) {
|
|
104806
|
+
this.trace("Deadline will be reached in " + timeout + "ms");
|
|
104807
|
+
}
|
|
104646
104808
|
const handleDeadline = () => {
|
|
104647
104809
|
if (!this.deadlineStartTime) {
|
|
104648
104810
|
this.cancelWithStatus(constants_1.Status.DEADLINE_EXCEEDED, "Deadline exceeded");
|
|
@@ -104685,7 +104847,9 @@ var require_resolving_call = __commonJS({
|
|
|
104685
104847
|
}
|
|
104686
104848
|
clearTimeout(this.deadlineTimer);
|
|
104687
104849
|
const filteredStatus = this.filterStack.receiveTrailers(status2);
|
|
104688
|
-
this.
|
|
104850
|
+
if (this.traceEnabled) {
|
|
104851
|
+
this.trace("ended with status: code=" + filteredStatus.code + ' details="' + filteredStatus.details + '"');
|
|
104852
|
+
}
|
|
104689
104853
|
this.statusWatchers.forEach((watcher) => watcher(filteredStatus));
|
|
104690
104854
|
process.nextTick(() => {
|
|
104691
104855
|
var _a2;
|
|
@@ -104706,7 +104870,8 @@ var require_resolving_call = __commonJS({
|
|
|
104706
104870
|
child.halfClose();
|
|
104707
104871
|
}
|
|
104708
104872
|
}, (status2) => {
|
|
104709
|
-
|
|
104873
|
+
var _a2, _b2;
|
|
104874
|
+
this.cancelWithStatus((_a2 = status2.code) !== null && _a2 !== void 0 ? _a2 : constants_1.Status.INTERNAL, (_b2 = status2.details) !== null && _b2 !== void 0 ? _b2 : "Failed to write message");
|
|
104710
104875
|
});
|
|
104711
104876
|
}
|
|
104712
104877
|
getConfig() {
|
|
@@ -104749,8 +104914,10 @@ var require_resolving_call = __commonJS({
|
|
|
104749
104914
|
this.filterStackFactory.push(config.dynamicFilterFactories);
|
|
104750
104915
|
this.filterStack = this.filterStackFactory.createFilter();
|
|
104751
104916
|
this.filterStack.sendMetadata(Promise.resolve(this.metadata)).then((filteredMetadata) => {
|
|
104752
|
-
this.child = this.channel.createRetryingCall(config, this.method, this.host, this.credentials, this.deadline);
|
|
104753
|
-
|
|
104917
|
+
this.child = this.channel.createRetryingCall(config, this.method, this.host, this.credentials, this.deadline, this.callNumber);
|
|
104918
|
+
if (this.traceEnabled) {
|
|
104919
|
+
this.trace("Created child [" + this.child.getCallNumber() + "]");
|
|
104920
|
+
}
|
|
104754
104921
|
this.childStartTime = /* @__PURE__ */ new Date();
|
|
104755
104922
|
this.child.start(filteredMetadata, {
|
|
104756
104923
|
onReceiveMetadata: (metadata) => {
|
|
@@ -104802,7 +104969,9 @@ var require_resolving_call = __commonJS({
|
|
|
104802
104969
|
}
|
|
104803
104970
|
cancelWithStatus(status2, details) {
|
|
104804
104971
|
var _a2;
|
|
104805
|
-
this.
|
|
104972
|
+
if (this.traceEnabled) {
|
|
104973
|
+
this.trace("cancelWithStatus code: " + status2 + ' details: "' + details + '"');
|
|
104974
|
+
}
|
|
104806
104975
|
(_a2 = this.child) === null || _a2 === void 0 ? void 0 : _a2.cancelWithStatus(status2, details);
|
|
104807
104976
|
this.outputStatus({
|
|
104808
104977
|
code: status2,
|
|
@@ -104821,7 +104990,9 @@ var require_resolving_call = __commonJS({
|
|
|
104821
104990
|
this.getConfig();
|
|
104822
104991
|
}
|
|
104823
104992
|
sendMessageWithContext(context, message) {
|
|
104824
|
-
this.
|
|
104993
|
+
if (this.traceEnabled) {
|
|
104994
|
+
this.trace("write() called with message of length " + message.length);
|
|
104995
|
+
}
|
|
104825
104996
|
if (this.child) {
|
|
104826
104997
|
this.sendMessageOnChild(context, message);
|
|
104827
104998
|
} else {
|
|
@@ -104865,9 +105036,9 @@ var require_resolving_call = __commonJS({
|
|
|
104865
105036
|
}
|
|
104866
105037
|
});
|
|
104867
105038
|
|
|
104868
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
105039
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/retrying-call.js
|
|
104869
105040
|
var require_retrying_call = __commonJS({
|
|
104870
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
105041
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/retrying-call.js"(exports) {
|
|
104871
105042
|
"use strict";
|
|
104872
105043
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
104873
105044
|
exports.RetryingCall = exports.MessageBufferTracker = exports.RetryThrottler = void 0;
|
|
@@ -104875,6 +105046,7 @@ var require_retrying_call = __commonJS({
|
|
|
104875
105046
|
var deadline_1 = require_deadline();
|
|
104876
105047
|
var metadata_1 = require_metadata();
|
|
104877
105048
|
var logging = require_logging();
|
|
105049
|
+
var call_number_1 = require_call_number();
|
|
104878
105050
|
var TRACER_NAME = "retrying_call";
|
|
104879
105051
|
var RetryThrottler = class {
|
|
104880
105052
|
constructor(maxTokens, tokenRatio, previousRetryThrottler) {
|
|
@@ -104999,11 +105171,18 @@ var require_retrying_call = __commonJS({
|
|
|
104999
105171
|
getCallNumber() {
|
|
105000
105172
|
return this.callNumber;
|
|
105001
105173
|
}
|
|
105174
|
+
get traceEnabled() {
|
|
105175
|
+
return logging.isTracerEnabled(TRACER_NAME);
|
|
105176
|
+
}
|
|
105002
105177
|
trace(text4) {
|
|
105003
|
-
|
|
105178
|
+
if (this.traceEnabled) {
|
|
105179
|
+
logging.trace(constants_1.LogVerbosity.DEBUG, TRACER_NAME, "[" + this.callNumber + "] " + text4);
|
|
105180
|
+
}
|
|
105004
105181
|
}
|
|
105005
105182
|
reportStatus(statusObject) {
|
|
105006
|
-
|
|
105183
|
+
if (this.traceEnabled) {
|
|
105184
|
+
this.trace("ended with status: code=" + statusObject.code + ' details="' + statusObject.details + '" start time=' + this.startTime.toISOString());
|
|
105185
|
+
}
|
|
105007
105186
|
this.bufferTracker.freeAll(this.callNumber);
|
|
105008
105187
|
this.writeBufferOffset = this.writeBufferOffset + this.writeBuffer.length;
|
|
105009
105188
|
this.writeBuffer = [];
|
|
@@ -105017,7 +105196,9 @@ var require_retrying_call = __commonJS({
|
|
|
105017
105196
|
});
|
|
105018
105197
|
}
|
|
105019
105198
|
cancelWithStatus(status2, details) {
|
|
105020
|
-
this.
|
|
105199
|
+
if (this.traceEnabled) {
|
|
105200
|
+
this.trace("cancelWithStatus code: " + status2 + ' details: "' + details + '"');
|
|
105201
|
+
}
|
|
105021
105202
|
this.reportStatus({ code: status2, details, metadata: new metadata_1.Metadata() });
|
|
105022
105203
|
for (const { call } of this.underlyingCalls) {
|
|
105023
105204
|
call.cancelWithStatus(status2, details);
|
|
@@ -105064,7 +105245,9 @@ var require_retrying_call = __commonJS({
|
|
|
105064
105245
|
if (this.state === "COMMITTED") {
|
|
105065
105246
|
return;
|
|
105066
105247
|
}
|
|
105067
|
-
|
|
105248
|
+
if (this.traceEnabled) {
|
|
105249
|
+
this.trace("Committing call [" + this.underlyingCalls[index].call.getCallNumber() + "] at index " + index);
|
|
105250
|
+
}
|
|
105068
105251
|
this.state = "COMMITTED";
|
|
105069
105252
|
(_b2 = (_a2 = this.callConfig).onCommitted) === null || _b2 === void 0 ? void 0 : _b2.call(_a2);
|
|
105070
105253
|
this.committedCallIndex = index;
|
|
@@ -105231,7 +105414,9 @@ var require_retrying_call = __commonJS({
|
|
|
105231
105414
|
if (this.underlyingCalls[callIndex].state === "COMPLETED") {
|
|
105232
105415
|
return;
|
|
105233
105416
|
}
|
|
105234
|
-
|
|
105417
|
+
if (this.traceEnabled) {
|
|
105418
|
+
this.trace("state=" + this.state + " handling status with progress " + status2.progress + " from child [" + this.underlyingCalls[callIndex].call.getCallNumber() + "] in state " + this.underlyingCalls[callIndex].state);
|
|
105419
|
+
}
|
|
105235
105420
|
this.underlyingCalls[callIndex].state = "COMPLETED";
|
|
105236
105421
|
if (status2.code === constants_1.Status.OK) {
|
|
105237
105422
|
(_a2 = this.retryThrottler) === null || _a2 === void 0 ? void 0 : _a2.addCallSucceeded();
|
|
@@ -105307,8 +105492,11 @@ var require_retrying_call = __commonJS({
|
|
|
105307
105492
|
(_c = (_b2 = this.hedgingTimer).unref) === null || _c === void 0 ? void 0 : _c.call(_b2);
|
|
105308
105493
|
}
|
|
105309
105494
|
startNewAttempt() {
|
|
105310
|
-
const
|
|
105311
|
-
|
|
105495
|
+
const childCallNumber = this.underlyingCalls.length > 0 ? (0, call_number_1.getNextCallNumber)() : this.callNumber;
|
|
105496
|
+
const child = this.channel.createLoadBalancingCall(this.callConfig, this.methodName, this.host, this.credentials, this.deadline, childCallNumber);
|
|
105497
|
+
if (this.traceEnabled) {
|
|
105498
|
+
this.trace("Created child call [" + child.getCallNumber() + "] for attempt " + this.attempts);
|
|
105499
|
+
}
|
|
105312
105500
|
const index = this.underlyingCalls.length;
|
|
105313
105501
|
this.underlyingCalls.push({
|
|
105314
105502
|
state: "ACTIVE",
|
|
@@ -105324,7 +105512,9 @@ var require_retrying_call = __commonJS({
|
|
|
105324
105512
|
let receivedMetadata = false;
|
|
105325
105513
|
child.start(initialMetadata, {
|
|
105326
105514
|
onReceiveMetadata: (metadata) => {
|
|
105327
|
-
this.
|
|
105515
|
+
if (this.traceEnabled) {
|
|
105516
|
+
this.trace("Received metadata from child [" + child.getCallNumber() + "]");
|
|
105517
|
+
}
|
|
105328
105518
|
this.commitCall(index);
|
|
105329
105519
|
receivedMetadata = true;
|
|
105330
105520
|
if (previousAttempts > 0) {
|
|
@@ -105335,14 +105525,18 @@ var require_retrying_call = __commonJS({
|
|
|
105335
105525
|
}
|
|
105336
105526
|
},
|
|
105337
105527
|
onReceiveMessage: (message) => {
|
|
105338
|
-
this.
|
|
105528
|
+
if (this.traceEnabled) {
|
|
105529
|
+
this.trace("Received message from child [" + child.getCallNumber() + "]");
|
|
105530
|
+
}
|
|
105339
105531
|
this.commitCall(index);
|
|
105340
105532
|
if (this.underlyingCalls[index].state === "ACTIVE") {
|
|
105341
105533
|
this.listener.onReceiveMessage(message);
|
|
105342
105534
|
}
|
|
105343
105535
|
},
|
|
105344
105536
|
onReceiveStatus: (status2) => {
|
|
105345
|
-
this.
|
|
105537
|
+
if (this.traceEnabled) {
|
|
105538
|
+
this.trace("Received status from child [" + child.getCallNumber() + "]");
|
|
105539
|
+
}
|
|
105346
105540
|
if (!receivedMetadata && previousAttempts > 0) {
|
|
105347
105541
|
status2.metadata.set(PREVIONS_RPC_ATTEMPTS_METADATA_KEY, `${previousAttempts}`);
|
|
105348
105542
|
}
|
|
@@ -105387,7 +105581,9 @@ var require_retrying_call = __commonJS({
|
|
|
105387
105581
|
}, bufferEntry.message.message);
|
|
105388
105582
|
const nextEntry = this.getBufferEntry(messageIndex + 1);
|
|
105389
105583
|
if (nextEntry.entryType === "HALF_CLOSE") {
|
|
105390
|
-
this.
|
|
105584
|
+
if (this.traceEnabled) {
|
|
105585
|
+
this.trace("Sending halfClose immediately after message to child [" + childCall.call.getCallNumber() + "] - optimizing for unary/final message");
|
|
105586
|
+
}
|
|
105391
105587
|
childCall.nextMessageToSend += 1;
|
|
105392
105588
|
childCall.call.halfClose();
|
|
105393
105589
|
}
|
|
@@ -105402,7 +105598,9 @@ var require_retrying_call = __commonJS({
|
|
|
105402
105598
|
}
|
|
105403
105599
|
}
|
|
105404
105600
|
sendMessageWithContext(context, message) {
|
|
105405
|
-
this.
|
|
105601
|
+
if (this.traceEnabled) {
|
|
105602
|
+
this.trace("write() called with message of length " + message.length);
|
|
105603
|
+
}
|
|
105406
105604
|
const writeObj = {
|
|
105407
105605
|
message,
|
|
105408
105606
|
flags: context.flags
|
|
@@ -105463,7 +105661,9 @@ var require_retrying_call = __commonJS({
|
|
|
105463
105661
|
for (const call of this.underlyingCalls) {
|
|
105464
105662
|
if ((call === null || call === void 0 ? void 0 : call.state) === "ACTIVE") {
|
|
105465
105663
|
if (call.nextMessageToSend === halfCloseIndex || call.nextMessageToSend === halfCloseIndex - 1) {
|
|
105466
|
-
this.
|
|
105664
|
+
if (this.traceEnabled) {
|
|
105665
|
+
this.trace("Sending halfClose immediately to child [" + call.call.getCallNumber() + "] - all messages already sent");
|
|
105666
|
+
}
|
|
105467
105667
|
call.nextMessageToSend += 1;
|
|
105468
105668
|
call.call.halfClose();
|
|
105469
105669
|
}
|
|
@@ -105491,9 +105691,9 @@ var require_retrying_call = __commonJS({
|
|
|
105491
105691
|
}
|
|
105492
105692
|
});
|
|
105493
105693
|
|
|
105494
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
105694
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/subchannel-interface.js
|
|
105495
105695
|
var require_subchannel_interface = __commonJS({
|
|
105496
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
105696
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/subchannel-interface.js"(exports) {
|
|
105497
105697
|
"use strict";
|
|
105498
105698
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
105499
105699
|
exports.BaseSubchannelWrapper = void 0;
|
|
@@ -105590,9 +105790,9 @@ var require_subchannel_interface = __commonJS({
|
|
|
105590
105790
|
}
|
|
105591
105791
|
});
|
|
105592
105792
|
|
|
105593
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
105793
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/internal-channel.js
|
|
105594
105794
|
var require_internal_channel = __commonJS({
|
|
105595
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
105795
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/internal-channel.js"(exports) {
|
|
105596
105796
|
"use strict";
|
|
105597
105797
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
105598
105798
|
exports.InternalChannel = exports.SUBCHANNEL_ARGS_EXCLUDE_KEY_PREFIX = void 0;
|
|
@@ -105693,7 +105893,7 @@ var require_internal_channel = __commonJS({
|
|
|
105693
105893
|
this.connectivityState = connectivity_state_1.ConnectivityState.IDLE;
|
|
105694
105894
|
this.currentPicker = new picker_1.UnavailablePicker();
|
|
105695
105895
|
this.configSelectionQueue = [];
|
|
105696
|
-
this.pickQueue =
|
|
105896
|
+
this.pickQueue = /* @__PURE__ */ new Set();
|
|
105697
105897
|
this.connectivityStateWatchers = [];
|
|
105698
105898
|
this.callRefTimer = null;
|
|
105699
105899
|
this.configSelector = null;
|
|
@@ -105760,9 +105960,9 @@ var require_internal_channel = __commonJS({
|
|
|
105760
105960
|
},
|
|
105761
105961
|
updateState: (connectivityState, picker) => {
|
|
105762
105962
|
this.currentPicker = picker;
|
|
105763
|
-
const queueCopy = this.pickQueue
|
|
105764
|
-
this.pickQueue =
|
|
105765
|
-
if (queueCopy.
|
|
105963
|
+
const queueCopy = this.pickQueue;
|
|
105964
|
+
this.pickQueue = /* @__PURE__ */ new Set();
|
|
105965
|
+
if (queueCopy.size > 0) {
|
|
105766
105966
|
this.callRefTimerUnref();
|
|
105767
105967
|
}
|
|
105768
105968
|
for (const call of queueCopy) {
|
|
@@ -105829,15 +106029,22 @@ var require_internal_channel = __commonJS({
|
|
|
105829
106029
|
this.filterStackFactory = new filter_stack_1.FilterStackFactory([
|
|
105830
106030
|
new compression_filter_1.CompressionFilterFactory(this, this.options)
|
|
105831
106031
|
]);
|
|
105832
|
-
this.
|
|
105833
|
-
|
|
106032
|
+
if (this.traceEnabled) {
|
|
106033
|
+
this.trace("Channel constructed with options " + JSON.stringify(options, void 0, 2));
|
|
106034
|
+
}
|
|
105834
106035
|
if ((0, logging_1.isTracerEnabled)("channel_stacktrace")) {
|
|
106036
|
+
const error = new Error();
|
|
105835
106037
|
(0, logging_1.trace)(constants_1.LogVerbosity.DEBUG, "channel_stacktrace", "(" + this.channelzRef.id + ") Channel constructed \n" + ((_f = error.stack) === null || _f === void 0 ? void 0 : _f.substring(error.stack.indexOf("\n") + 1)));
|
|
105836
106038
|
}
|
|
105837
106039
|
this.lastActivityTimestamp = /* @__PURE__ */ new Date();
|
|
105838
106040
|
}
|
|
106041
|
+
get traceEnabled() {
|
|
106042
|
+
return (0, logging_1.isTracerEnabled)("channel");
|
|
106043
|
+
}
|
|
105839
106044
|
trace(text4, verbosityOverride) {
|
|
105840
|
-
|
|
106045
|
+
if (this.traceEnabled) {
|
|
106046
|
+
(0, logging_1.trace)(verbosityOverride !== null && verbosityOverride !== void 0 ? verbosityOverride : constants_1.LogVerbosity.DEBUG, "channel", "(" + this.channelzRef.id + ") " + (0, uri_parser_1.uriToString)(this.target) + " " + text4);
|
|
106047
|
+
}
|
|
105841
106048
|
}
|
|
105842
106049
|
callRefTimerRef() {
|
|
105843
106050
|
var _a2, _b2, _c, _d;
|
|
@@ -105846,14 +106053,18 @@ var require_internal_channel = __commonJS({
|
|
|
105846
106053
|
}, MAX_TIMEOUT_TIME);
|
|
105847
106054
|
}
|
|
105848
106055
|
if (!((_b2 = (_a2 = this.callRefTimer).hasRef) === null || _b2 === void 0 ? void 0 : _b2.call(_a2))) {
|
|
105849
|
-
|
|
106056
|
+
if (this.traceEnabled) {
|
|
106057
|
+
this.trace("callRefTimer.ref | configSelectionQueue.length=" + this.configSelectionQueue.length + " pickQueue.length=" + this.pickQueue.size);
|
|
106058
|
+
}
|
|
105850
106059
|
(_d = (_c = this.callRefTimer).ref) === null || _d === void 0 ? void 0 : _d.call(_c);
|
|
105851
106060
|
}
|
|
105852
106061
|
}
|
|
105853
106062
|
callRefTimerUnref() {
|
|
105854
106063
|
var _a2, _b2, _c;
|
|
105855
106064
|
if (!((_a2 = this.callRefTimer) === null || _a2 === void 0 ? void 0 : _a2.hasRef) || this.callRefTimer.hasRef()) {
|
|
105856
|
-
|
|
106065
|
+
if (this.traceEnabled) {
|
|
106066
|
+
this.trace("callRefTimer.unref | configSelectionQueue.length=" + this.configSelectionQueue.length + " pickQueue.length=" + this.pickQueue.size);
|
|
106067
|
+
}
|
|
105857
106068
|
(_c = (_b2 = this.callRefTimer) === null || _b2 === void 0 ? void 0 : _b2.unref) === null || _c === void 0 ? void 0 : _c.call(_b2);
|
|
105858
106069
|
}
|
|
105859
106070
|
}
|
|
@@ -105905,9 +106116,15 @@ var require_internal_channel = __commonJS({
|
|
|
105905
106116
|
});
|
|
105906
106117
|
}
|
|
105907
106118
|
queueCallForPick(call) {
|
|
105908
|
-
this.pickQueue.
|
|
106119
|
+
this.pickQueue.add(call);
|
|
105909
106120
|
this.callRefTimerRef();
|
|
105910
106121
|
}
|
|
106122
|
+
removeCallFromPickQueue(call) {
|
|
106123
|
+
this.pickQueue.delete(call);
|
|
106124
|
+
if (this.pickQueue.size === 0) {
|
|
106125
|
+
this.callRefTimerUnref();
|
|
106126
|
+
}
|
|
106127
|
+
}
|
|
105911
106128
|
getConfig(method, metadata) {
|
|
105912
106129
|
if (this.connectivityState !== connectivity_state_1.ConnectivityState.SHUTDOWN) {
|
|
105913
106130
|
this.resolvingLoadBalancer.exitIdle();
|
|
@@ -105988,19 +106205,25 @@ var require_internal_channel = __commonJS({
|
|
|
105988
106205
|
this.lastActivityTimestamp = /* @__PURE__ */ new Date();
|
|
105989
106206
|
this.maybeStartIdleTimer();
|
|
105990
106207
|
}
|
|
105991
|
-
createLoadBalancingCall(callConfig, method, host, credentials2, deadline) {
|
|
105992
|
-
const
|
|
105993
|
-
this.
|
|
105994
|
-
|
|
106208
|
+
createLoadBalancingCall(callConfig, method, host, credentials2, deadline, callNumber) {
|
|
106209
|
+
const finalCallNumber = callNumber !== null && callNumber !== void 0 ? callNumber : (0, call_number_1.getNextCallNumber)();
|
|
106210
|
+
if (this.traceEnabled) {
|
|
106211
|
+
this.trace("createLoadBalancingCall [" + finalCallNumber + '] method="' + method + '"');
|
|
106212
|
+
}
|
|
106213
|
+
return new load_balancing_call_1.LoadBalancingCall(this, callConfig, method, host, credentials2, deadline, finalCallNumber);
|
|
105995
106214
|
}
|
|
105996
|
-
createRetryingCall(callConfig, method, host, credentials2, deadline) {
|
|
105997
|
-
const
|
|
105998
|
-
this.
|
|
105999
|
-
|
|
106215
|
+
createRetryingCall(callConfig, method, host, credentials2, deadline, callNumber) {
|
|
106216
|
+
const finalCallNumber = callNumber !== null && callNumber !== void 0 ? callNumber : (0, call_number_1.getNextCallNumber)();
|
|
106217
|
+
if (this.traceEnabled) {
|
|
106218
|
+
this.trace("createRetryingCall [" + finalCallNumber + '] method="' + method + '"');
|
|
106219
|
+
}
|
|
106220
|
+
return new retrying_call_1.RetryingCall(this, callConfig, method, host, credentials2, deadline, finalCallNumber, this.retryBufferTracker, RETRY_THROTTLER_MAP.get(this.getTarget()));
|
|
106000
106221
|
}
|
|
106001
106222
|
createResolvingCall(method, deadline, host, parentCall, propagateFlags) {
|
|
106002
106223
|
const callNumber = (0, call_number_1.getNextCallNumber)();
|
|
106003
|
-
|
|
106224
|
+
if (this.traceEnabled) {
|
|
106225
|
+
this.trace("createResolvingCall [" + callNumber + '] method="' + method + '", deadline=' + (0, deadline_1.deadlineToString)(deadline));
|
|
106226
|
+
}
|
|
106004
106227
|
const finalOptions = {
|
|
106005
106228
|
deadline,
|
|
106006
106229
|
flags: propagateFlags !== null && propagateFlags !== void 0 ? propagateFlags : constants_1.Propagate.DEFAULTS,
|
|
@@ -106026,7 +106249,7 @@ var require_internal_channel = __commonJS({
|
|
|
106026
106249
|
for (const call of this.pickQueue) {
|
|
106027
106250
|
call.cancelWithStatus(constants_1.Status.UNAVAILABLE, "Channel closed before call started");
|
|
106028
106251
|
}
|
|
106029
|
-
this.pickQueue
|
|
106252
|
+
this.pickQueue.clear();
|
|
106030
106253
|
if (this.callRefTimer) {
|
|
106031
106254
|
clearInterval(this.callRefTimer);
|
|
106032
106255
|
}
|
|
@@ -106104,9 +106327,9 @@ var require_internal_channel = __commonJS({
|
|
|
106104
106327
|
}
|
|
106105
106328
|
});
|
|
106106
106329
|
|
|
106107
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
106330
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/channel.js
|
|
106108
106331
|
var require_channel = __commonJS({
|
|
106109
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
106332
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/channel.js"(exports) {
|
|
106110
106333
|
"use strict";
|
|
106111
106334
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
106112
106335
|
exports.ChannelImplementation = void 0;
|
|
@@ -106161,9 +106384,9 @@ var require_channel = __commonJS({
|
|
|
106161
106384
|
}
|
|
106162
106385
|
});
|
|
106163
106386
|
|
|
106164
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
106387
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/server-call.js
|
|
106165
106388
|
var require_server_call = __commonJS({
|
|
106166
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
106389
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/server-call.js"(exports) {
|
|
106167
106390
|
"use strict";
|
|
106168
106391
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
106169
106392
|
exports.ServerDuplexStreamImpl = exports.ServerWritableStreamImpl = exports.ServerReadableStreamImpl = exports.ServerUnaryCallImpl = void 0;
|
|
@@ -106370,9 +106593,9 @@ var require_server_call = __commonJS({
|
|
|
106370
106593
|
}
|
|
106371
106594
|
});
|
|
106372
106595
|
|
|
106373
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
106596
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/server-credentials.js
|
|
106374
106597
|
var require_server_credentials = __commonJS({
|
|
106375
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
106598
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/server-credentials.js"(exports) {
|
|
106376
106599
|
"use strict";
|
|
106377
106600
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
106378
106601
|
exports.ServerCredentials = void 0;
|
|
@@ -106660,9 +106883,9 @@ var require_server_credentials = __commonJS({
|
|
|
106660
106883
|
}
|
|
106661
106884
|
});
|
|
106662
106885
|
|
|
106663
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
106886
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/duration.js
|
|
106664
106887
|
var require_duration = __commonJS({
|
|
106665
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
106888
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/duration.js"(exports) {
|
|
106666
106889
|
"use strict";
|
|
106667
106890
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
106668
106891
|
exports.durationMessageToDuration = durationMessageToDuration;
|
|
@@ -106721,9 +106944,9 @@ var require_duration = __commonJS({
|
|
|
106721
106944
|
}
|
|
106722
106945
|
});
|
|
106723
106946
|
|
|
106724
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
106947
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/orca.js
|
|
106725
106948
|
var require_orca = __commonJS({
|
|
106726
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
106949
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/orca.js"(exports) {
|
|
106727
106950
|
"use strict";
|
|
106728
106951
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
106729
106952
|
exports.OrcaOobMetricsSubchannelWrapper = exports.GRPC_METRICS_HEADER = exports.ServerMetricRecorder = exports.PerRequestMetricRecorder = void 0;
|
|
@@ -107016,9 +107239,9 @@ var require_orca = __commonJS({
|
|
|
107016
107239
|
}
|
|
107017
107240
|
});
|
|
107018
107241
|
|
|
107019
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
107242
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/server-interceptors.js
|
|
107020
107243
|
var require_server_interceptors = __commonJS({
|
|
107021
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
107244
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/server-interceptors.js"(exports) {
|
|
107022
107245
|
"use strict";
|
|
107023
107246
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
107024
107247
|
exports.BaseServerInterceptingCall = exports.ServerInterceptingCall = exports.ResponderBuilder = exports.ServerListenerBuilder = void 0;
|
|
@@ -107734,15 +107957,17 @@ var require_server_interceptors = __commonJS({
|
|
|
107734
107957
|
}
|
|
107735
107958
|
getAuthContext() {
|
|
107736
107959
|
var _a2;
|
|
107737
|
-
if (((_a2 = this.stream.session) === null || _a2 === void 0 ? void 0 : _a2.socket) instanceof tls_1.TLSSocket) {
|
|
107738
|
-
const peerCertificate = this.stream.session.socket.getPeerCertificate();
|
|
107739
|
-
return {
|
|
107740
|
-
transportSecurityType: "ssl",
|
|
107741
|
-
sslPeerCertificate: peerCertificate.raw ? peerCertificate : void 0
|
|
107742
|
-
};
|
|
107743
|
-
} else {
|
|
107960
|
+
if (!(((_a2 = this.stream.session) === null || _a2 === void 0 ? void 0 : _a2.socket) instanceof tls_1.TLSSocket)) {
|
|
107744
107961
|
return {};
|
|
107745
107962
|
}
|
|
107963
|
+
if (!this.stream.session.socket.authorized) {
|
|
107964
|
+
return {};
|
|
107965
|
+
}
|
|
107966
|
+
const peerCertificate = this.stream.session.socket.getPeerCertificate();
|
|
107967
|
+
return {
|
|
107968
|
+
transportSecurityType: "ssl",
|
|
107969
|
+
sslPeerCertificate: peerCertificate.raw ? peerCertificate : void 0
|
|
107970
|
+
};
|
|
107746
107971
|
}
|
|
107747
107972
|
getConnectionInfo() {
|
|
107748
107973
|
return this.connectionInfo;
|
|
@@ -107768,9 +107993,9 @@ var require_server_interceptors = __commonJS({
|
|
|
107768
107993
|
}
|
|
107769
107994
|
});
|
|
107770
107995
|
|
|
107771
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
107996
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/server.js
|
|
107772
107997
|
var require_server = __commonJS({
|
|
107773
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
107998
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/server.js"(exports) {
|
|
107774
107999
|
"use strict";
|
|
107775
108000
|
var __runInitializers = exports && exports.__runInitializers || function(thisArg, initializers, value) {
|
|
107776
108001
|
var useValue = arguments.length > 2;
|
|
@@ -107824,6 +108049,7 @@ var require_server = __commonJS({
|
|
|
107824
108049
|
var uri_parser_1 = require_uri_parser();
|
|
107825
108050
|
var channelz_1 = require_channelz();
|
|
107826
108051
|
var server_interceptors_1 = require_server_interceptors();
|
|
108052
|
+
var environment_1 = require_environment();
|
|
107827
108053
|
var UNLIMITED_CONNECTION_AGE_MS = ~(1 << 31);
|
|
107828
108054
|
var KEEPALIVE_MAX_TIME_MS = ~(1 << 31);
|
|
107829
108055
|
var KEEPALIVE_TIMEOUT_MS = 2e4;
|
|
@@ -109077,9 +109303,15 @@ var require_server = __commonJS({
|
|
|
109077
109303
|
try {
|
|
109078
109304
|
handler.func(stream, respond);
|
|
109079
109305
|
} catch (err2) {
|
|
109306
|
+
let details;
|
|
109307
|
+
if (environment_1.GRPC_NODE_DEBUG_SEND_ERROR_DETAILS) {
|
|
109308
|
+
details = `Server method handler threw error ${err2.message}`;
|
|
109309
|
+
} else {
|
|
109310
|
+
details = "Unknown error";
|
|
109311
|
+
}
|
|
109080
109312
|
call.sendStatus({
|
|
109081
109313
|
code: constants_1.Status.UNKNOWN,
|
|
109082
|
-
details
|
|
109314
|
+
details,
|
|
109083
109315
|
metadata: null
|
|
109084
109316
|
});
|
|
109085
109317
|
}
|
|
@@ -109113,9 +109345,15 @@ var require_server = __commonJS({
|
|
|
109113
109345
|
try {
|
|
109114
109346
|
handler.func(stream, respond);
|
|
109115
109347
|
} catch (err2) {
|
|
109348
|
+
let details;
|
|
109349
|
+
if (environment_1.GRPC_NODE_DEBUG_SEND_ERROR_DETAILS) {
|
|
109350
|
+
details = `Server method handler threw error ${err2.message}`;
|
|
109351
|
+
} else {
|
|
109352
|
+
details = "Unknown error";
|
|
109353
|
+
}
|
|
109116
109354
|
call.sendStatus({
|
|
109117
109355
|
code: constants_1.Status.UNKNOWN,
|
|
109118
|
-
details
|
|
109356
|
+
details,
|
|
109119
109357
|
metadata: null
|
|
109120
109358
|
});
|
|
109121
109359
|
}
|
|
@@ -109169,9 +109407,15 @@ var require_server = __commonJS({
|
|
|
109169
109407
|
try {
|
|
109170
109408
|
handler.func(stream);
|
|
109171
109409
|
} catch (err2) {
|
|
109410
|
+
let details;
|
|
109411
|
+
if (environment_1.GRPC_NODE_DEBUG_SEND_ERROR_DETAILS) {
|
|
109412
|
+
details = `Server method handler threw error ${err2.message}`;
|
|
109413
|
+
} else {
|
|
109414
|
+
details = "Unknown error";
|
|
109415
|
+
}
|
|
109172
109416
|
call.sendStatus({
|
|
109173
109417
|
code: constants_1.Status.UNKNOWN,
|
|
109174
|
-
details
|
|
109418
|
+
details,
|
|
109175
109419
|
metadata: null
|
|
109176
109420
|
});
|
|
109177
109421
|
}
|
|
@@ -109193,9 +109437,15 @@ var require_server = __commonJS({
|
|
|
109193
109437
|
try {
|
|
109194
109438
|
handler.func(stream);
|
|
109195
109439
|
} catch (err2) {
|
|
109440
|
+
let details;
|
|
109441
|
+
if (environment_1.GRPC_NODE_DEBUG_SEND_ERROR_DETAILS) {
|
|
109442
|
+
details = `Server method handler threw error ${err2.message}`;
|
|
109443
|
+
} else {
|
|
109444
|
+
details = "Unknown error";
|
|
109445
|
+
}
|
|
109196
109446
|
call.sendStatus({
|
|
109197
109447
|
code: constants_1.Status.UNKNOWN,
|
|
109198
|
-
details
|
|
109448
|
+
details,
|
|
109199
109449
|
metadata: null
|
|
109200
109450
|
});
|
|
109201
109451
|
}
|
|
@@ -109218,9 +109468,9 @@ var require_server = __commonJS({
|
|
|
109218
109468
|
}
|
|
109219
109469
|
});
|
|
109220
109470
|
|
|
109221
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
109471
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/status-builder.js
|
|
109222
109472
|
var require_status_builder = __commonJS({
|
|
109223
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
109473
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/status-builder.js"(exports) {
|
|
109224
109474
|
"use strict";
|
|
109225
109475
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
109226
109476
|
exports.StatusBuilder = void 0;
|
|
@@ -109272,9 +109522,9 @@ var require_status_builder = __commonJS({
|
|
|
109272
109522
|
}
|
|
109273
109523
|
});
|
|
109274
109524
|
|
|
109275
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
109525
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancer-pick-first.js
|
|
109276
109526
|
var require_load_balancer_pick_first = __commonJS({
|
|
109277
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
109527
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancer-pick-first.js"(exports) {
|
|
109278
109528
|
"use strict";
|
|
109279
109529
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
109280
109530
|
exports.LeafLoadBalancer = exports.PickFirstLoadBalancer = exports.PickFirstLoadBalancingConfig = void 0;
|
|
@@ -109691,9 +109941,9 @@ var require_load_balancer_pick_first = __commonJS({
|
|
|
109691
109941
|
}
|
|
109692
109942
|
});
|
|
109693
109943
|
|
|
109694
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
109944
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/certificate-provider.js
|
|
109695
109945
|
var require_certificate_provider = __commonJS({
|
|
109696
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
109946
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/certificate-provider.js"(exports) {
|
|
109697
109947
|
"use strict";
|
|
109698
109948
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
109699
109949
|
exports.FileWatcherCertificateProvider = void 0;
|
|
@@ -109814,9 +110064,9 @@ var require_certificate_provider = __commonJS({
|
|
|
109814
110064
|
}
|
|
109815
110065
|
});
|
|
109816
110066
|
|
|
109817
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
110067
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/experimental.js
|
|
109818
110068
|
var require_experimental = __commonJS({
|
|
109819
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
110069
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/experimental.js"(exports) {
|
|
109820
110070
|
"use strict";
|
|
109821
110071
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
109822
110072
|
exports.SUBCHANNEL_ARGS_EXCLUDE_KEY_PREFIX = exports.createCertificateProviderChannelCredentials = exports.FileWatcherCertificateProvider = exports.createCertificateProviderServerCredentials = exports.createServerCredentialsWithInterceptors = exports.BaseSubchannelWrapper = exports.registerAdminService = exports.FilterStackFactory = exports.BaseFilter = exports.statusOrFromError = exports.statusOrFromValue = exports.PickResultType = exports.QueuePicker = exports.UnavailablePicker = exports.ChildLoadBalancerHandler = exports.EndpointMap = exports.endpointHasAddress = exports.endpointToString = exports.subchannelAddressToString = exports.LeafLoadBalancer = exports.isLoadBalancerNameRegistered = exports.parseLoadBalancingConfig = exports.selectLbConfigFromList = exports.registerLoadBalancerType = exports.createChildChannelControlHelper = exports.BackoffTimeout = exports.parseDuration = exports.durationToMs = exports.splitHostPort = exports.uriToString = exports.CHANNEL_ARGS_CONFIG_SELECTOR_KEY = exports.createResolver = exports.registerResolver = exports.log = exports.trace = void 0;
|
|
@@ -109947,9 +110197,9 @@ var require_experimental = __commonJS({
|
|
|
109947
110197
|
}
|
|
109948
110198
|
});
|
|
109949
110199
|
|
|
109950
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
110200
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/resolver-uds.js
|
|
109951
110201
|
var require_resolver_uds = __commonJS({
|
|
109952
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
110202
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/resolver-uds.js"(exports) {
|
|
109953
110203
|
"use strict";
|
|
109954
110204
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
109955
110205
|
exports.setup = setup;
|
|
@@ -109987,9 +110237,9 @@ var require_resolver_uds = __commonJS({
|
|
|
109987
110237
|
}
|
|
109988
110238
|
});
|
|
109989
110239
|
|
|
109990
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
110240
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/resolver-ip.js
|
|
109991
110241
|
var require_resolver_ip = __commonJS({
|
|
109992
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
110242
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/resolver-ip.js"(exports) {
|
|
109993
110243
|
"use strict";
|
|
109994
110244
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
109995
110245
|
exports.setup = setup;
|
|
@@ -110078,9 +110328,9 @@ var require_resolver_ip = __commonJS({
|
|
|
110078
110328
|
}
|
|
110079
110329
|
});
|
|
110080
110330
|
|
|
110081
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
110331
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancer-round-robin.js
|
|
110082
110332
|
var require_load_balancer_round_robin = __commonJS({
|
|
110083
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
110333
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancer-round-robin.js"(exports) {
|
|
110084
110334
|
"use strict";
|
|
110085
110335
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
110086
110336
|
exports.RoundRobinLoadBalancer = void 0;
|
|
@@ -110253,9 +110503,9 @@ var require_load_balancer_round_robin = __commonJS({
|
|
|
110253
110503
|
}
|
|
110254
110504
|
});
|
|
110255
110505
|
|
|
110256
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
110506
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancer-outlier-detection.js
|
|
110257
110507
|
var require_load_balancer_outlier_detection = __commonJS({
|
|
110258
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
110508
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancer-outlier-detection.js"(exports) {
|
|
110259
110509
|
"use strict";
|
|
110260
110510
|
var _a2;
|
|
110261
110511
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -110750,9 +111000,9 @@ var require_load_balancer_outlier_detection = __commonJS({
|
|
|
110750
111000
|
}
|
|
110751
111001
|
});
|
|
110752
111002
|
|
|
110753
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
111003
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/priority-queue.js
|
|
110754
111004
|
var require_priority_queue = __commonJS({
|
|
110755
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
111005
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/priority-queue.js"(exports) {
|
|
110756
111006
|
"use strict";
|
|
110757
111007
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
110758
111008
|
exports.PriorityQueue = void 0;
|
|
@@ -110854,9 +111104,9 @@ var require_priority_queue = __commonJS({
|
|
|
110854
111104
|
}
|
|
110855
111105
|
});
|
|
110856
111106
|
|
|
110857
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
111107
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancer-weighted-round-robin.js
|
|
110858
111108
|
var require_load_balancer_weighted_round_robin = __commonJS({
|
|
110859
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
111109
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/load-balancer-weighted-round-robin.js"(exports) {
|
|
110860
111110
|
"use strict";
|
|
110861
111111
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
110862
111112
|
exports.WeightedRoundRobinLoadBalancingConfig = void 0;
|
|
@@ -111206,9 +111456,9 @@ var require_load_balancer_weighted_round_robin = __commonJS({
|
|
|
111206
111456
|
}
|
|
111207
111457
|
});
|
|
111208
111458
|
|
|
111209
|
-
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
111459
|
+
// ../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/index.js
|
|
111210
111460
|
var require_src3 = __commonJS({
|
|
111211
|
-
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.
|
|
111461
|
+
"../../node_modules/.pnpm/@grpc+grpc-js@1.14.5/node_modules/@grpc/grpc-js/build/src/index.js"(exports) {
|
|
111212
111462
|
"use strict";
|
|
111213
111463
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
111214
111464
|
exports.experimental = exports.ServerMetricRecorder = exports.ServerInterceptingCall = exports.ResponderBuilder = exports.ServerListenerBuilder = exports.addAdminServicesToServer = exports.getChannelzHandlers = exports.getChannelzServiceDefinition = exports.InterceptorConfigurationError = exports.InterceptingCall = exports.RequesterBuilder = exports.ListenerBuilder = exports.StatusBuilder = exports.getClientChannel = exports.ServerCredentials = exports.Server = exports.setLogVerbosity = exports.setLogger = exports.load = exports.loadObject = exports.CallCredentials = exports.ChannelCredentials = exports.waitForClientReady = exports.closeClient = exports.Channel = exports.makeGenericClientConstructor = exports.makeClientConstructor = exports.loadPackageDefinition = exports.Client = exports.compressionAlgorithms = exports.propagate = exports.connectivityState = exports.status = exports.logVerbosity = exports.Metadata = exports.credentials = void 0;
|