wrangler 3.22.2 → 3.22.3
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/package.json +4 -4
- package/wrangler-dist/cli.js +219 -191
package/wrangler-dist/cli.js
CHANGED
|
@@ -118023,7 +118023,7 @@ var import_undici3 = __toESM(require_undici());
|
|
|
118023
118023
|
var import_undici4 = __toESM(require_undici());
|
|
118024
118024
|
|
|
118025
118025
|
// package.json
|
|
118026
|
-
var version = "3.22.
|
|
118026
|
+
var version = "3.22.3";
|
|
118027
118027
|
var package_default = {
|
|
118028
118028
|
name: "wrangler",
|
|
118029
118029
|
version,
|
|
@@ -119597,7 +119597,7 @@ function throwFetchError(resource, response) {
|
|
|
119597
119597
|
text: `A request to the Cloudflare API (${resource}) failed.`,
|
|
119598
119598
|
notes: [
|
|
119599
119599
|
...response.errors.map((err) => ({ text: renderError(err) })),
|
|
119600
|
-
...response.messages
|
|
119600
|
+
...response.messages?.map((text) => ({ text })) ?? []
|
|
119601
119601
|
]
|
|
119602
119602
|
});
|
|
119603
119603
|
const code = response.errors[0]?.code;
|
|
@@ -125908,6 +125908,7 @@ var import_signal_exit4 = __toESM(require_signal_exit());
|
|
|
125908
125908
|
// src/dev/miniflare.ts
|
|
125909
125909
|
init_import_meta_url();
|
|
125910
125910
|
var import_node_assert7 = __toESM(require("node:assert"));
|
|
125911
|
+
var import_node_crypto4 = require("node:crypto");
|
|
125911
125912
|
var import_node_fs11 = require("node:fs");
|
|
125912
125913
|
var import_node_path19 = __toESM(require("node:path"));
|
|
125913
125914
|
var import_miniflare4 = require("miniflare");
|
|
@@ -126434,7 +126435,7 @@ function handleRuntimeStdio(stdout, stderr) {
|
|
|
126434
126435
|
});
|
|
126435
126436
|
}
|
|
126436
126437
|
__name(handleRuntimeStdio, "handleRuntimeStdio");
|
|
126437
|
-
async function buildMiniflareOptions(log, config) {
|
|
126438
|
+
async function buildMiniflareOptions(log, config, proxyToUserWorkerAuthenticationSecret) {
|
|
126438
126439
|
if (config.crons.length > 0) {
|
|
126439
126440
|
logger.warn("Miniflare 3 does not support CRON triggers yet, ignoring...");
|
|
126440
126441
|
}
|
|
@@ -126467,6 +126468,7 @@ async function buildMiniflareOptions(log, config) {
|
|
|
126467
126468
|
inspectorPort: config.inspect ? config.inspectorPort : void 0,
|
|
126468
126469
|
liveReload: config.liveReload,
|
|
126469
126470
|
upstream,
|
|
126471
|
+
unsafeProxySharedSecret: proxyToUserWorkerAuthenticationSecret,
|
|
126470
126472
|
log,
|
|
126471
126473
|
verbose: logger.loggerLevel === "debug",
|
|
126472
126474
|
handleRuntimeStdio,
|
|
@@ -126490,10 +126492,12 @@ __name(buildMiniflareOptions, "buildMiniflareOptions");
|
|
|
126490
126492
|
var ReloadedEvent = class extends Event {
|
|
126491
126493
|
url;
|
|
126492
126494
|
internalDurableObjects;
|
|
126495
|
+
proxyToUserWorkerAuthenticationSecret;
|
|
126493
126496
|
constructor(type, options25) {
|
|
126494
126497
|
super(type);
|
|
126495
126498
|
this.url = options25.url;
|
|
126496
126499
|
this.internalDurableObjects = options25.internalDurableObjects;
|
|
126500
|
+
this.proxyToUserWorkerAuthenticationSecret = options25.proxyToUserWorkerAuthenticationSecret;
|
|
126497
126501
|
}
|
|
126498
126502
|
};
|
|
126499
126503
|
__name(ReloadedEvent, "ReloadedEvent");
|
|
@@ -126508,6 +126512,10 @@ __name(ErrorEvent, "ErrorEvent");
|
|
|
126508
126512
|
var MiniflareServer = class extends import_miniflare4.TypedEventTarget {
|
|
126509
126513
|
#log = buildLog();
|
|
126510
126514
|
#mf;
|
|
126515
|
+
// This is given as a shared secret to the Proxy and User workers
|
|
126516
|
+
// so that the User Worker can trust aspects of HTTP requests from the Proxy Worker
|
|
126517
|
+
// if it provides the secret in a `MF-Proxy-Shared-Secret` header.
|
|
126518
|
+
#proxyToUserWorkerAuthenticationSecret = (0, import_node_crypto4.randomUUID)();
|
|
126511
126519
|
// `buildMiniflareOptions()` is asynchronous, meaning if multiple bundle
|
|
126512
126520
|
// updates were submitted, the second may apply before the first. Therefore,
|
|
126513
126521
|
// wrap updates in a mutex, so they're always applied in invocation order.
|
|
@@ -126518,7 +126526,8 @@ var MiniflareServer = class extends import_miniflare4.TypedEventTarget {
|
|
|
126518
126526
|
try {
|
|
126519
126527
|
const { options: options25, internalObjects } = await buildMiniflareOptions(
|
|
126520
126528
|
this.#log,
|
|
126521
|
-
config
|
|
126529
|
+
config,
|
|
126530
|
+
this.#proxyToUserWorkerAuthenticationSecret
|
|
126522
126531
|
);
|
|
126523
126532
|
if (opts?.signal?.aborted)
|
|
126524
126533
|
return;
|
|
@@ -126532,7 +126541,8 @@ var MiniflareServer = class extends import_miniflare4.TypedEventTarget {
|
|
|
126532
126541
|
return;
|
|
126533
126542
|
const event = new ReloadedEvent("reloaded", {
|
|
126534
126543
|
url: url4,
|
|
126535
|
-
internalDurableObjects: internalObjects
|
|
126544
|
+
internalDurableObjects: internalObjects,
|
|
126545
|
+
proxyToUserWorkerAuthenticationSecret: this.#proxyToUserWorkerAuthenticationSecret
|
|
126536
126546
|
});
|
|
126537
126547
|
this.dispatchEvent(event);
|
|
126538
126548
|
} catch (error) {
|
|
@@ -126662,8 +126672,10 @@ function useLocalWorker(props) {
|
|
|
126662
126672
|
port: props.localUpstream ? "" : void 0
|
|
126663
126673
|
// `localUpstream` was essentially `host`, not `hostname`, so if it was set delete the `port`
|
|
126664
126674
|
},
|
|
126665
|
-
headers: {
|
|
126666
|
-
|
|
126675
|
+
headers: {
|
|
126676
|
+
// Passing this signature from Proxy Worker allows the User Worker to trust the request.
|
|
126677
|
+
"MF-Proxy-Shared-Secret": event.proxyToUserWorkerAuthenticationSecret
|
|
126678
|
+
},
|
|
126667
126679
|
liveReload: props.liveReload,
|
|
126668
126680
|
// in local mode, the logs are already being printed to the console by workerd but only for workers written in "module" format
|
|
126669
126681
|
// workers written in "service-worker" format still need to proxy logs to the ProxyController
|
|
@@ -136092,7 +136104,7 @@ var import_undici9 = __toESM(require_undici());
|
|
|
136092
136104
|
|
|
136093
136105
|
// src/metrics/metrics-config.ts
|
|
136094
136106
|
init_import_meta_url();
|
|
136095
|
-
var
|
|
136107
|
+
var import_node_crypto5 = require("node:crypto");
|
|
136096
136108
|
var import_node_fs22 = require("node:fs");
|
|
136097
136109
|
var import_node_path28 = __toESM(require("node:path"));
|
|
136098
136110
|
var CURRENT_METRICS_DATE = new Date(2022, 6, 4);
|
|
@@ -136184,7 +136196,7 @@ function getMetricsConfigPath() {
|
|
|
136184
136196
|
}
|
|
136185
136197
|
__name(getMetricsConfigPath, "getMetricsConfigPath");
|
|
136186
136198
|
function getDeviceId(config) {
|
|
136187
|
-
const deviceId = config.deviceId ?? (0,
|
|
136199
|
+
const deviceId = config.deviceId ?? (0, import_node_crypto5.randomUUID)();
|
|
136188
136200
|
if (config.deviceId === void 0) {
|
|
136189
136201
|
writeMetricsConfig({ ...config, deviceId });
|
|
136190
136202
|
}
|
|
@@ -145206,22 +145218,22 @@ var secretBulkHandler = /* @__PURE__ */ __name(async (secretBulkArgs) => {
|
|
|
145206
145218
|
// src/sentry/index.ts
|
|
145207
145219
|
init_import_meta_url();
|
|
145208
145220
|
|
|
145209
|
-
// ../../node_modules/.pnpm/@sentry+node@7.
|
|
145221
|
+
// ../../node_modules/.pnpm/@sentry+node@7.87.0_supports-color@9.2.2/node_modules/@sentry/node/esm/index.js
|
|
145210
145222
|
init_import_meta_url();
|
|
145211
145223
|
|
|
145212
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
145224
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/index.js
|
|
145213
145225
|
init_import_meta_url();
|
|
145214
145226
|
|
|
145215
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
145227
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/tracing/hubextensions.js
|
|
145216
145228
|
init_import_meta_url();
|
|
145217
145229
|
|
|
145218
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
145230
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/index.js
|
|
145219
145231
|
init_import_meta_url();
|
|
145220
145232
|
|
|
145221
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
145233
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/aggregate-errors.js
|
|
145222
145234
|
init_import_meta_url();
|
|
145223
145235
|
|
|
145224
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
145236
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/is.js
|
|
145225
145237
|
init_import_meta_url();
|
|
145226
145238
|
var objectToString = Object.prototype.toString;
|
|
145227
145239
|
function isError(wat) {
|
|
@@ -145288,7 +145300,7 @@ function isVueViewModel(wat) {
|
|
|
145288
145300
|
}
|
|
145289
145301
|
__name(isVueViewModel, "isVueViewModel");
|
|
145290
145302
|
|
|
145291
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
145303
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/string.js
|
|
145292
145304
|
init_import_meta_url();
|
|
145293
145305
|
function truncate3(str, max = 0) {
|
|
145294
145306
|
if (typeof str !== "string" || max === 0) {
|
|
@@ -145345,7 +145357,7 @@ function stringMatchesSomePattern(testString, patterns = [], requireExactStringM
|
|
|
145345
145357
|
}
|
|
145346
145358
|
__name(stringMatchesSomePattern, "stringMatchesSomePattern");
|
|
145347
145359
|
|
|
145348
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
145360
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/aggregate-errors.js
|
|
145349
145361
|
function applyAggregateErrorsToEvent(exceptionFromErrorImplementation, parser2, maxValueLimit = 250, key, limit, event, hint) {
|
|
145350
145362
|
if (!event.exception || !event.exception.values || !hint || !isInstanceOf(hint.originalException, Error)) {
|
|
145351
145363
|
return;
|
|
@@ -145442,10 +145454,10 @@ function truncateAggregateExceptions(exceptions, maxValueLength) {
|
|
|
145442
145454
|
}
|
|
145443
145455
|
__name(truncateAggregateExceptions, "truncateAggregateExceptions");
|
|
145444
145456
|
|
|
145445
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
145457
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/browser.js
|
|
145446
145458
|
init_import_meta_url();
|
|
145447
145459
|
|
|
145448
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
145460
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/worldwide.js
|
|
145449
145461
|
init_import_meta_url();
|
|
145450
145462
|
function isGlobalObj(obj) {
|
|
145451
145463
|
return obj && obj.Math == Math ? obj : void 0;
|
|
@@ -145467,7 +145479,7 @@ function getGlobalSingleton(name, creator, obj) {
|
|
|
145467
145479
|
}
|
|
145468
145480
|
__name(getGlobalSingleton, "getGlobalSingleton");
|
|
145469
145481
|
|
|
145470
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
145482
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/browser.js
|
|
145471
145483
|
var WINDOW = getGlobalObject();
|
|
145472
145484
|
var DEFAULT_MAX_STRING_LENGTH = 80;
|
|
145473
145485
|
function htmlTreeAsString(elem, options25 = {}) {
|
|
@@ -145541,14 +145553,14 @@ function _htmlElementAsString(el, keyAttrs) {
|
|
|
145541
145553
|
}
|
|
145542
145554
|
__name(_htmlElementAsString, "_htmlElementAsString");
|
|
145543
145555
|
|
|
145544
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
145556
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/dsn.js
|
|
145545
145557
|
init_import_meta_url();
|
|
145546
145558
|
|
|
145547
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
145559
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/debug-build.js
|
|
145548
145560
|
init_import_meta_url();
|
|
145549
145561
|
var DEBUG_BUILD = typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__;
|
|
145550
145562
|
|
|
145551
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
145563
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/logger.js
|
|
145552
145564
|
init_import_meta_url();
|
|
145553
145565
|
var PREFIX = "Sentry Logger ";
|
|
145554
145566
|
var CONSOLE_LEVELS = [
|
|
@@ -145613,7 +145625,7 @@ function makeLogger() {
|
|
|
145613
145625
|
__name(makeLogger, "makeLogger");
|
|
145614
145626
|
var logger2 = makeLogger();
|
|
145615
145627
|
|
|
145616
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
145628
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/dsn.js
|
|
145617
145629
|
var DSN_REGEX = /^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;
|
|
145618
145630
|
function isValidProtocol(protocol) {
|
|
145619
145631
|
return protocol === "http" || protocol === "https";
|
|
@@ -145701,7 +145713,7 @@ function makeDsn(from) {
|
|
|
145701
145713
|
}
|
|
145702
145714
|
__name(makeDsn, "makeDsn");
|
|
145703
145715
|
|
|
145704
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
145716
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/error.js
|
|
145705
145717
|
init_import_meta_url();
|
|
145706
145718
|
var SentryError = class extends Error {
|
|
145707
145719
|
/** Display name of this error instance. */
|
|
@@ -145715,10 +145727,10 @@ var SentryError = class extends Error {
|
|
|
145715
145727
|
};
|
|
145716
145728
|
__name(SentryError, "SentryError");
|
|
145717
145729
|
|
|
145718
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
145730
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/instrument/console.js
|
|
145719
145731
|
init_import_meta_url();
|
|
145720
145732
|
|
|
145721
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
145733
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/object.js
|
|
145722
145734
|
init_import_meta_url();
|
|
145723
145735
|
function fill(source, name, replacementFactory) {
|
|
145724
145736
|
if (!(name in source)) {
|
|
@@ -145866,13 +145878,13 @@ function _dropUndefinedKeys(inputValue, memoizationMap) {
|
|
|
145866
145878
|
}
|
|
145867
145879
|
__name(_dropUndefinedKeys, "_dropUndefinedKeys");
|
|
145868
145880
|
|
|
145869
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
145881
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/instrument/_handlers.js
|
|
145870
145882
|
init_import_meta_url();
|
|
145871
145883
|
|
|
145872
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
145884
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/stacktrace.js
|
|
145873
145885
|
init_import_meta_url();
|
|
145874
145886
|
|
|
145875
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
145887
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/node-stack-trace.js
|
|
145876
145888
|
init_import_meta_url();
|
|
145877
145889
|
function filenameIsInApp(filename, isNative = false) {
|
|
145878
145890
|
const isInternal = isNative || filename && // It's not internal if it's an absolute linux path
|
|
@@ -145947,7 +145959,7 @@ function node(getModule) {
|
|
|
145947
145959
|
}
|
|
145948
145960
|
__name(node, "node");
|
|
145949
145961
|
|
|
145950
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
145962
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/stacktrace.js
|
|
145951
145963
|
var STACKTRACE_FRAME_LIMIT = 50;
|
|
145952
145964
|
var WEBPACK_ERROR_REGEXP = /\(error: (.*)\)/;
|
|
145953
145965
|
var STRIP_FRAME_REGEXP = /captureMessage|captureException/;
|
|
@@ -146026,7 +146038,7 @@ function nodeStackLineParser(getModule) {
|
|
|
146026
146038
|
}
|
|
146027
146039
|
__name(nodeStackLineParser, "nodeStackLineParser");
|
|
146028
146040
|
|
|
146029
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
146041
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/instrument/_handlers.js
|
|
146030
146042
|
var handlers = {};
|
|
146031
146043
|
var instrumented = {};
|
|
146032
146044
|
function addHandler(type, handler26) {
|
|
@@ -146062,7 +146074,7 @@ Error:`,
|
|
|
146062
146074
|
}
|
|
146063
146075
|
__name(triggerHandlers, "triggerHandlers");
|
|
146064
146076
|
|
|
146065
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
146077
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/instrument/console.js
|
|
146066
146078
|
function addConsoleInstrumentationHandler(handler26) {
|
|
146067
146079
|
const type = "console";
|
|
146068
146080
|
addHandler(type, handler26);
|
|
@@ -146090,7 +146102,7 @@ function instrumentConsole() {
|
|
|
146090
146102
|
}
|
|
146091
146103
|
__name(instrumentConsole, "instrumentConsole");
|
|
146092
146104
|
|
|
146093
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
146105
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/misc.js
|
|
146094
146106
|
init_import_meta_url();
|
|
146095
146107
|
function uuid4() {
|
|
146096
146108
|
const gbl = GLOBAL_OBJ;
|
|
@@ -146201,7 +146213,7 @@ function arrayify(maybeArray) {
|
|
|
146201
146213
|
}
|
|
146202
146214
|
__name(arrayify, "arrayify");
|
|
146203
146215
|
|
|
146204
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
146216
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/instrument/globalError.js
|
|
146205
146217
|
init_import_meta_url();
|
|
146206
146218
|
var _oldOnErrorHandler = null;
|
|
146207
146219
|
function addGlobalErrorInstrumentationHandler(handler26) {
|
|
@@ -146230,7 +146242,7 @@ function instrumentError() {
|
|
|
146230
146242
|
}
|
|
146231
146243
|
__name(instrumentError, "instrumentError");
|
|
146232
146244
|
|
|
146233
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
146245
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/instrument/globalUnhandledRejection.js
|
|
146234
146246
|
init_import_meta_url();
|
|
146235
146247
|
var _oldOnUnhandledRejectionHandler = null;
|
|
146236
146248
|
function addGlobalUnhandledRejectionInstrumentationHandler(handler26) {
|
|
@@ -146253,17 +146265,17 @@ function instrumentUnhandledRejection() {
|
|
|
146253
146265
|
}
|
|
146254
146266
|
__name(instrumentUnhandledRejection, "instrumentUnhandledRejection");
|
|
146255
146267
|
|
|
146256
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
146268
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/node.js
|
|
146257
146269
|
init_import_meta_url();
|
|
146258
146270
|
|
|
146259
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
146271
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/env.js
|
|
146260
146272
|
init_import_meta_url();
|
|
146261
146273
|
function isBrowserBundle() {
|
|
146262
146274
|
return typeof __SENTRY_BROWSER_BUNDLE__ !== "undefined" && !!__SENTRY_BROWSER_BUNDLE__;
|
|
146263
146275
|
}
|
|
146264
146276
|
__name(isBrowserBundle, "isBrowserBundle");
|
|
146265
146277
|
|
|
146266
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
146278
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/node.js
|
|
146267
146279
|
function isNodeEnv() {
|
|
146268
146280
|
return !isBrowserBundle() && Object.prototype.toString.call(typeof process !== "undefined" ? process : 0) === "[object process]";
|
|
146269
146281
|
}
|
|
@@ -146287,7 +146299,7 @@ function loadModule(moduleName) {
|
|
|
146287
146299
|
}
|
|
146288
146300
|
__name(loadModule, "loadModule");
|
|
146289
146301
|
|
|
146290
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
146302
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/memo.js
|
|
146291
146303
|
init_import_meta_url();
|
|
146292
146304
|
function memoBuilder() {
|
|
146293
146305
|
const hasWeakSet = typeof WeakSet === "function";
|
|
@@ -146327,7 +146339,7 @@ function memoBuilder() {
|
|
|
146327
146339
|
}
|
|
146328
146340
|
__name(memoBuilder, "memoBuilder");
|
|
146329
146341
|
|
|
146330
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
146342
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/normalize.js
|
|
146331
146343
|
init_import_meta_url();
|
|
146332
146344
|
function normalize2(input, depth = 100, maxProperties = Infinity) {
|
|
146333
146345
|
try {
|
|
@@ -146451,10 +146463,10 @@ function jsonSize(value) {
|
|
|
146451
146463
|
}
|
|
146452
146464
|
__name(jsonSize, "jsonSize");
|
|
146453
146465
|
|
|
146454
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
146466
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/promisebuffer.js
|
|
146455
146467
|
init_import_meta_url();
|
|
146456
146468
|
|
|
146457
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
146469
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/syncpromise.js
|
|
146458
146470
|
init_import_meta_url();
|
|
146459
146471
|
var States;
|
|
146460
146472
|
(function(States2) {
|
|
@@ -146607,7 +146619,7 @@ var SyncPromise = class {
|
|
|
146607
146619
|
};
|
|
146608
146620
|
__name(SyncPromise, "SyncPromise");
|
|
146609
146621
|
|
|
146610
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
146622
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/promisebuffer.js
|
|
146611
146623
|
function makePromiseBuffer(limit) {
|
|
146612
146624
|
const buffer = [];
|
|
146613
146625
|
function isReady() {
|
|
@@ -146664,10 +146676,10 @@ function makePromiseBuffer(limit) {
|
|
|
146664
146676
|
}
|
|
146665
146677
|
__name(makePromiseBuffer, "makePromiseBuffer");
|
|
146666
146678
|
|
|
146667
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
146679
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/requestdata.js
|
|
146668
146680
|
init_import_meta_url();
|
|
146669
146681
|
|
|
146670
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
146682
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/cookie.js
|
|
146671
146683
|
init_import_meta_url();
|
|
146672
146684
|
function parseCookie(str) {
|
|
146673
146685
|
const obj = {};
|
|
@@ -146702,7 +146714,7 @@ function parseCookie(str) {
|
|
|
146702
146714
|
}
|
|
146703
146715
|
__name(parseCookie, "parseCookie");
|
|
146704
146716
|
|
|
146705
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
146717
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/url.js
|
|
146706
146718
|
init_import_meta_url();
|
|
146707
146719
|
function parseUrl(url4) {
|
|
146708
146720
|
if (!url4) {
|
|
@@ -146740,7 +146752,7 @@ function getSanitizedUrlString(url4) {
|
|
|
146740
146752
|
}
|
|
146741
146753
|
__name(getSanitizedUrlString, "getSanitizedUrlString");
|
|
146742
146754
|
|
|
146743
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
146755
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/requestdata.js
|
|
146744
146756
|
var DEFAULT_INCLUDES = {
|
|
146745
146757
|
ip: false,
|
|
146746
146758
|
request: true,
|
|
@@ -146907,7 +146919,7 @@ function extractQueryParams(req, deps) {
|
|
|
146907
146919
|
}
|
|
146908
146920
|
__name(extractQueryParams, "extractQueryParams");
|
|
146909
146921
|
|
|
146910
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
146922
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/severity.js
|
|
146911
146923
|
init_import_meta_url();
|
|
146912
146924
|
var validSeverityLevels = ["fatal", "error", "warning", "log", "info", "debug"];
|
|
146913
146925
|
function severityLevelFromString(level) {
|
|
@@ -146915,7 +146927,7 @@ function severityLevelFromString(level) {
|
|
|
146915
146927
|
}
|
|
146916
146928
|
__name(severityLevelFromString, "severityLevelFromString");
|
|
146917
146929
|
|
|
146918
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
146930
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/time.js
|
|
146919
146931
|
init_import_meta_url();
|
|
146920
146932
|
var WINDOW2 = getGlobalObject();
|
|
146921
146933
|
var dateTimestampSource = {
|
|
@@ -146977,10 +146989,10 @@ var browserPerformanceTimeOrigin = (() => {
|
|
|
146977
146989
|
return dateNow;
|
|
146978
146990
|
})();
|
|
146979
146991
|
|
|
146980
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
146992
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/tracing.js
|
|
146981
146993
|
init_import_meta_url();
|
|
146982
146994
|
|
|
146983
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
146995
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/baggage.js
|
|
146984
146996
|
init_import_meta_url();
|
|
146985
146997
|
var SENTRY_BAGGAGE_KEY_PREFIX = "sentry-";
|
|
146986
146998
|
var SENTRY_BAGGAGE_KEY_PREFIX_REGEX = /^sentry-/;
|
|
@@ -147060,7 +147072,7 @@ function objectToBaggageHeader(object) {
|
|
|
147060
147072
|
}
|
|
147061
147073
|
__name(objectToBaggageHeader, "objectToBaggageHeader");
|
|
147062
147074
|
|
|
147063
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
147075
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/tracing.js
|
|
147064
147076
|
var TRACEPARENT_REGEXP = new RegExp(
|
|
147065
147077
|
"^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$"
|
|
147066
147078
|
// whitespace
|
|
@@ -147117,7 +147129,7 @@ function generateSentryTraceHeader(traceId = uuid4(), spanId = uuid4().substring
|
|
|
147117
147129
|
}
|
|
147118
147130
|
__name(generateSentryTraceHeader, "generateSentryTraceHeader");
|
|
147119
147131
|
|
|
147120
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
147132
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/envelope.js
|
|
147121
147133
|
init_import_meta_url();
|
|
147122
147134
|
function createEnvelope(headers, items = []) {
|
|
147123
147135
|
return [headers, items];
|
|
@@ -147243,7 +147255,7 @@ function createEventEnvelopeHeaders(event, sdkInfo, tunnel, dsn) {
|
|
|
147243
147255
|
}
|
|
147244
147256
|
__name(createEventEnvelopeHeaders, "createEventEnvelopeHeaders");
|
|
147245
147257
|
|
|
147246
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
147258
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/ratelimit.js
|
|
147247
147259
|
init_import_meta_url();
|
|
147248
147260
|
var DEFAULT_RETRY_AFTER = 60 * 1e3;
|
|
147249
147261
|
function parseRetryAfterHeader(header, now = Date.now()) {
|
|
@@ -147294,7 +147306,7 @@ function updateRateLimits(limits, { statusCode, headers }, now = Date.now()) {
|
|
|
147294
147306
|
}
|
|
147295
147307
|
__name(updateRateLimits, "updateRateLimits");
|
|
147296
147308
|
|
|
147297
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
147309
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/eventbuilder.js
|
|
147298
147310
|
init_import_meta_url();
|
|
147299
147311
|
function parseStackFrames(stackParser, error) {
|
|
147300
147312
|
return stackParser(error.stack || "", 1);
|
|
@@ -147388,7 +147400,7 @@ function eventFromMessage(stackParser, message, level = "info", hint, attachStac
|
|
|
147388
147400
|
}
|
|
147389
147401
|
__name(eventFromMessage, "eventFromMessage");
|
|
147390
147402
|
|
|
147391
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
147403
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/lru.js
|
|
147392
147404
|
init_import_meta_url();
|
|
147393
147405
|
var LRUMap = class {
|
|
147394
147406
|
constructor(_maxSize) {
|
|
@@ -147441,14 +147453,14 @@ var LRUMap = class {
|
|
|
147441
147453
|
};
|
|
147442
147454
|
__name(LRUMap, "LRUMap");
|
|
147443
147455
|
|
|
147444
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
147456
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/buildPolyfills/_nullishCoalesce.js
|
|
147445
147457
|
init_import_meta_url();
|
|
147446
147458
|
function _nullishCoalesce(lhs, rhsFn) {
|
|
147447
147459
|
return lhs != null ? lhs : rhsFn();
|
|
147448
147460
|
}
|
|
147449
147461
|
__name(_nullishCoalesce, "_nullishCoalesce");
|
|
147450
147462
|
|
|
147451
|
-
// ../../node_modules/.pnpm/@sentry+utils@7.
|
|
147463
|
+
// ../../node_modules/.pnpm/@sentry+utils@7.87.0/node_modules/@sentry/utils/esm/buildPolyfills/_optionalChain.js
|
|
147452
147464
|
init_import_meta_url();
|
|
147453
147465
|
function _optionalChain(ops) {
|
|
147454
147466
|
let lastAccessLHS = void 0;
|
|
@@ -147473,21 +147485,21 @@ function _optionalChain(ops) {
|
|
|
147473
147485
|
}
|
|
147474
147486
|
__name(_optionalChain, "_optionalChain");
|
|
147475
147487
|
|
|
147476
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
147488
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/debug-build.js
|
|
147477
147489
|
init_import_meta_url();
|
|
147478
147490
|
var DEBUG_BUILD2 = typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__;
|
|
147479
147491
|
|
|
147480
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
147492
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/hub.js
|
|
147481
147493
|
init_import_meta_url();
|
|
147482
147494
|
|
|
147483
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
147495
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/constants.js
|
|
147484
147496
|
init_import_meta_url();
|
|
147485
147497
|
var DEFAULT_ENVIRONMENT = "production";
|
|
147486
147498
|
|
|
147487
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
147499
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/scope.js
|
|
147488
147500
|
init_import_meta_url();
|
|
147489
147501
|
|
|
147490
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
147502
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/eventProcessors.js
|
|
147491
147503
|
init_import_meta_url();
|
|
147492
147504
|
function getGlobalEventProcessors() {
|
|
147493
147505
|
return getGlobalSingleton("globalEventProcessors", () => []);
|
|
@@ -147515,7 +147527,7 @@ function notifyEventProcessors(processors, event, hint, index = 0) {
|
|
|
147515
147527
|
}
|
|
147516
147528
|
__name(notifyEventProcessors, "notifyEventProcessors");
|
|
147517
147529
|
|
|
147518
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
147530
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/session.js
|
|
147519
147531
|
init_import_meta_url();
|
|
147520
147532
|
function makeSession(context2) {
|
|
147521
147533
|
const startingTime = timestampInSeconds();
|
|
@@ -147624,7 +147636,7 @@ function sessionToJSON(session) {
|
|
|
147624
147636
|
}
|
|
147625
147637
|
__name(sessionToJSON, "sessionToJSON");
|
|
147626
147638
|
|
|
147627
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
147639
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/scope.js
|
|
147628
147640
|
var DEFAULT_MAX_BREADCRUMBS = 100;
|
|
147629
147641
|
var Scope = class {
|
|
147630
147642
|
/** Flag if notifying is happening. */
|
|
@@ -147664,27 +147676,31 @@ var Scope = class {
|
|
|
147664
147676
|
}
|
|
147665
147677
|
/**
|
|
147666
147678
|
* Inherit values from the parent scope.
|
|
147667
|
-
* @
|
|
147679
|
+
* @deprecated Use `scope.clone()` and `new Scope()` instead.
|
|
147668
147680
|
*/
|
|
147669
147681
|
static clone(scope) {
|
|
147682
|
+
return scope ? scope.clone() : new Scope();
|
|
147683
|
+
}
|
|
147684
|
+
/**
|
|
147685
|
+
* Clone this scope instance.
|
|
147686
|
+
*/
|
|
147687
|
+
clone() {
|
|
147670
147688
|
const newScope = new Scope();
|
|
147671
|
-
|
|
147672
|
-
|
|
147673
|
-
|
|
147674
|
-
|
|
147675
|
-
|
|
147676
|
-
|
|
147677
|
-
|
|
147678
|
-
|
|
147679
|
-
|
|
147680
|
-
|
|
147681
|
-
|
|
147682
|
-
|
|
147683
|
-
|
|
147684
|
-
|
|
147685
|
-
|
|
147686
|
-
newScope._propagationContext = { ...scope._propagationContext };
|
|
147687
|
-
}
|
|
147689
|
+
newScope._breadcrumbs = [...this._breadcrumbs];
|
|
147690
|
+
newScope._tags = { ...this._tags };
|
|
147691
|
+
newScope._extra = { ...this._extra };
|
|
147692
|
+
newScope._contexts = { ...this._contexts };
|
|
147693
|
+
newScope._user = this._user;
|
|
147694
|
+
newScope._level = this._level;
|
|
147695
|
+
newScope._span = this._span;
|
|
147696
|
+
newScope._session = this._session;
|
|
147697
|
+
newScope._transactionName = this._transactionName;
|
|
147698
|
+
newScope._fingerprint = this._fingerprint;
|
|
147699
|
+
newScope._eventProcessors = [...this._eventProcessors];
|
|
147700
|
+
newScope._requestSession = this._requestSession;
|
|
147701
|
+
newScope._attachments = [...this._attachments];
|
|
147702
|
+
newScope._sdkProcessingMetadata = { ...this._sdkProcessingMetadata };
|
|
147703
|
+
newScope._propagationContext = { ...this._propagationContext };
|
|
147688
147704
|
return newScope;
|
|
147689
147705
|
}
|
|
147690
147706
|
/**
|
|
@@ -148090,11 +148106,11 @@ function generatePropagationContext() {
|
|
|
148090
148106
|
}
|
|
148091
148107
|
__name(generatePropagationContext, "generatePropagationContext");
|
|
148092
148108
|
|
|
148093
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
148109
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/version.js
|
|
148094
148110
|
init_import_meta_url();
|
|
148095
|
-
var SDK_VERSION = "7.
|
|
148111
|
+
var SDK_VERSION = "7.87.0";
|
|
148096
148112
|
|
|
148097
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
148113
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/hub.js
|
|
148098
148114
|
var API_VERSION = parseFloat(SDK_VERSION);
|
|
148099
148115
|
var DEFAULT_BREADCRUMBS = 100;
|
|
148100
148116
|
var Hub = class {
|
|
@@ -148135,7 +148151,7 @@ var Hub = class {
|
|
|
148135
148151
|
* @inheritDoc
|
|
148136
148152
|
*/
|
|
148137
148153
|
pushScope() {
|
|
148138
|
-
const scope =
|
|
148154
|
+
const scope = this.getScope().clone();
|
|
148139
148155
|
this.getStack().push({
|
|
148140
148156
|
client: this.getClient(),
|
|
148141
148157
|
scope
|
|
@@ -148482,7 +148498,7 @@ __name(getGlobalHub, "getGlobalHub");
|
|
|
148482
148498
|
function ensureHubOnCarrier(carrier, parent = getGlobalHub()) {
|
|
148483
148499
|
if (!hasHubOnCarrier(carrier) || getHubFromCarrier(carrier).isOlderThan(API_VERSION)) {
|
|
148484
148500
|
const globalHubTopStack = parent.getStackTop();
|
|
148485
|
-
setHubOnCarrier(carrier, new Hub(globalHubTopStack.client,
|
|
148501
|
+
setHubOnCarrier(carrier, new Hub(globalHubTopStack.client, globalHubTopStack.scope.clone()));
|
|
148486
148502
|
}
|
|
148487
148503
|
}
|
|
148488
148504
|
__name(ensureHubOnCarrier, "ensureHubOnCarrier");
|
|
@@ -148509,10 +148525,10 @@ function setHubOnCarrier(carrier, hub) {
|
|
|
148509
148525
|
}
|
|
148510
148526
|
__name(setHubOnCarrier, "setHubOnCarrier");
|
|
148511
148527
|
|
|
148512
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
148528
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/tracing/errors.js
|
|
148513
148529
|
init_import_meta_url();
|
|
148514
148530
|
|
|
148515
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
148531
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/tracing/utils.js
|
|
148516
148532
|
init_import_meta_url();
|
|
148517
148533
|
function getActiveTransaction(maybeHub) {
|
|
148518
148534
|
const hub = maybeHub || getCurrentHub();
|
|
@@ -148521,7 +148537,7 @@ function getActiveTransaction(maybeHub) {
|
|
|
148521
148537
|
}
|
|
148522
148538
|
__name(getActiveTransaction, "getActiveTransaction");
|
|
148523
148539
|
|
|
148524
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
148540
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/tracing/errors.js
|
|
148525
148541
|
var errorsInstrumented = false;
|
|
148526
148542
|
function registerErrorInstrumentation() {
|
|
148527
148543
|
if (errorsInstrumented) {
|
|
@@ -148543,7 +148559,7 @@ function errorCallback() {
|
|
|
148543
148559
|
__name(errorCallback, "errorCallback");
|
|
148544
148560
|
errorCallback.tag = "sentry_tracingErrorCallback";
|
|
148545
148561
|
|
|
148546
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
148562
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/tracing/span.js
|
|
148547
148563
|
init_import_meta_url();
|
|
148548
148564
|
var SpanRecorder = class {
|
|
148549
148565
|
constructor(maxlen = 1e3) {
|
|
@@ -148856,10 +148872,10 @@ function spanStatusfromHttpCode(httpStatus) {
|
|
|
148856
148872
|
}
|
|
148857
148873
|
__name(spanStatusfromHttpCode, "spanStatusfromHttpCode");
|
|
148858
148874
|
|
|
148859
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
148875
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/tracing/transaction.js
|
|
148860
148876
|
init_import_meta_url();
|
|
148861
148877
|
|
|
148862
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
148878
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/tracing/dynamicSamplingContext.js
|
|
148863
148879
|
init_import_meta_url();
|
|
148864
148880
|
function getDynamicSamplingContextFromClient(trace_id, client, scope) {
|
|
148865
148881
|
const options25 = client.getOptions();
|
|
@@ -148877,7 +148893,7 @@ function getDynamicSamplingContextFromClient(trace_id, client, scope) {
|
|
|
148877
148893
|
}
|
|
148878
148894
|
__name(getDynamicSamplingContextFromClient, "getDynamicSamplingContextFromClient");
|
|
148879
148895
|
|
|
148880
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
148896
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/tracing/transaction.js
|
|
148881
148897
|
var Transaction = class extends Span {
|
|
148882
148898
|
/**
|
|
148883
148899
|
* The reference to the current hub.
|
|
@@ -149091,16 +149107,16 @@ var Transaction = class extends Span {
|
|
|
149091
149107
|
};
|
|
149092
149108
|
__name(Transaction, "Transaction");
|
|
149093
149109
|
|
|
149094
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
149110
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/tracing/sampling.js
|
|
149095
149111
|
init_import_meta_url();
|
|
149096
149112
|
|
|
149097
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
149113
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/utils/hasTracingEnabled.js
|
|
149098
149114
|
init_import_meta_url();
|
|
149099
149115
|
|
|
149100
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
149116
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/exports.js
|
|
149101
149117
|
init_import_meta_url();
|
|
149102
149118
|
|
|
149103
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
149119
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/utils/prepareEvent.js
|
|
149104
149120
|
init_import_meta_url();
|
|
149105
149121
|
function prepareEvent(options25, event, hint, scope, client) {
|
|
149106
149122
|
const { normalizeDepth = 3, normalizeMaxBreadth = 1e3 } = options25;
|
|
@@ -149115,10 +149131,7 @@ function prepareEvent(options25, event, hint, scope, client) {
|
|
|
149115
149131
|
if (event.type === void 0) {
|
|
149116
149132
|
applyDebugIds(prepared, options25.stackParser);
|
|
149117
149133
|
}
|
|
149118
|
-
|
|
149119
|
-
if (hint.captureContext) {
|
|
149120
|
-
finalScope = Scope.clone(finalScope).update(hint.captureContext);
|
|
149121
|
-
}
|
|
149134
|
+
const finalScope = getFinalScope(scope, hint.captureContext);
|
|
149122
149135
|
if (hint.mechanism) {
|
|
149123
149136
|
addExceptionMechanism(prepared, hint.mechanism);
|
|
149124
149137
|
}
|
|
@@ -149302,6 +149315,15 @@ function normalizeEvent(event, depth, maxBreadth) {
|
|
|
149302
149315
|
return normalized;
|
|
149303
149316
|
}
|
|
149304
149317
|
__name(normalizeEvent, "normalizeEvent");
|
|
149318
|
+
function getFinalScope(scope, captureContext) {
|
|
149319
|
+
if (!captureContext) {
|
|
149320
|
+
return scope;
|
|
149321
|
+
}
|
|
149322
|
+
const finalScope = scope ? scope.clone() : new Scope();
|
|
149323
|
+
finalScope.update(captureContext);
|
|
149324
|
+
return finalScope;
|
|
149325
|
+
}
|
|
149326
|
+
__name(getFinalScope, "getFinalScope");
|
|
149305
149327
|
function parseEventHintOrCaptureContext(hint) {
|
|
149306
149328
|
if (!hint) {
|
|
149307
149329
|
return void 0;
|
|
@@ -149336,7 +149358,7 @@ function hintIsScopeContext(hint) {
|
|
|
149336
149358
|
}
|
|
149337
149359
|
__name(hintIsScopeContext, "hintIsScopeContext");
|
|
149338
149360
|
|
|
149339
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
149361
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/exports.js
|
|
149340
149362
|
function captureException(exception, hint) {
|
|
149341
149363
|
return getCurrentHub().captureException(exception, parseEventHintOrCaptureContext(hint));
|
|
149342
149364
|
}
|
|
@@ -149359,7 +149381,7 @@ function getClient() {
|
|
|
149359
149381
|
}
|
|
149360
149382
|
__name(getClient, "getClient");
|
|
149361
149383
|
|
|
149362
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
149384
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/utils/hasTracingEnabled.js
|
|
149363
149385
|
function hasTracingEnabled(maybeOptions) {
|
|
149364
149386
|
if (typeof __SENTRY_TRACING__ === "boolean" && !__SENTRY_TRACING__) {
|
|
149365
149387
|
return false;
|
|
@@ -149370,7 +149392,7 @@ function hasTracingEnabled(maybeOptions) {
|
|
|
149370
149392
|
}
|
|
149371
149393
|
__name(hasTracingEnabled, "hasTracingEnabled");
|
|
149372
149394
|
|
|
149373
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
149395
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/tracing/sampling.js
|
|
149374
149396
|
function sampleTransaction(transaction, options25, samplingContext) {
|
|
149375
149397
|
if (!hasTracingEnabled(options25)) {
|
|
149376
149398
|
transaction.sampled = false;
|
|
@@ -149443,7 +149465,7 @@ function isValidSampleRate(rate) {
|
|
|
149443
149465
|
}
|
|
149444
149466
|
__name(isValidSampleRate, "isValidSampleRate");
|
|
149445
149467
|
|
|
149446
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
149468
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/tracing/hubextensions.js
|
|
149447
149469
|
function traceHeaders() {
|
|
149448
149470
|
const scope = this.getScope();
|
|
149449
149471
|
const span = scope.getSpan();
|
|
@@ -149495,7 +149517,7 @@ function addTracingExtensions() {
|
|
|
149495
149517
|
}
|
|
149496
149518
|
__name(addTracingExtensions, "addTracingExtensions");
|
|
149497
149519
|
|
|
149498
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
149520
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/tracing/trace.js
|
|
149499
149521
|
init_import_meta_url();
|
|
149500
149522
|
function trace(context2, callback, onError = () => {
|
|
149501
149523
|
}) {
|
|
@@ -149552,7 +149574,7 @@ function normalizeContext(context2) {
|
|
|
149552
149574
|
}
|
|
149553
149575
|
__name(normalizeContext, "normalizeContext");
|
|
149554
149576
|
|
|
149555
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
149577
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/envelope.js
|
|
149556
149578
|
init_import_meta_url();
|
|
149557
149579
|
function enhanceEventWithSdkInfo(event, sdkInfo) {
|
|
149558
149580
|
if (!sdkInfo) {
|
|
@@ -149588,7 +149610,7 @@ function createEventEnvelope(event, dsn, metadata, tunnel) {
|
|
|
149588
149610
|
}
|
|
149589
149611
|
__name(createEventEnvelope, "createEventEnvelope");
|
|
149590
149612
|
|
|
149591
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
149613
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/sessionflusher.js
|
|
149592
149614
|
init_import_meta_url();
|
|
149593
149615
|
var SessionFlusher = class {
|
|
149594
149616
|
constructor(client, attrs) {
|
|
@@ -149667,7 +149689,7 @@ var SessionFlusher = class {
|
|
|
149667
149689
|
};
|
|
149668
149690
|
__name(SessionFlusher, "SessionFlusher");
|
|
149669
149691
|
|
|
149670
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
149692
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/api.js
|
|
149671
149693
|
init_import_meta_url();
|
|
149672
149694
|
var SENTRY_API_VERSION = "7";
|
|
149673
149695
|
function getBaseApiEndpoint(dsn) {
|
|
@@ -149697,10 +149719,10 @@ function getEnvelopeEndpointWithUrlEncodedAuth(dsn, tunnelOrOptions = {}) {
|
|
|
149697
149719
|
}
|
|
149698
149720
|
__name(getEnvelopeEndpointWithUrlEncodedAuth, "getEnvelopeEndpointWithUrlEncodedAuth");
|
|
149699
149721
|
|
|
149700
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
149722
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/baseclient.js
|
|
149701
149723
|
init_import_meta_url();
|
|
149702
149724
|
|
|
149703
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
149725
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/integration.js
|
|
149704
149726
|
init_import_meta_url();
|
|
149705
149727
|
var installedIntegrations = [];
|
|
149706
149728
|
function filterDuplicates(integrations) {
|
|
@@ -149782,7 +149804,7 @@ function findIndex(arr, callback) {
|
|
|
149782
149804
|
}
|
|
149783
149805
|
__name(findIndex, "findIndex");
|
|
149784
149806
|
|
|
149785
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
149807
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/baseclient.js
|
|
149786
149808
|
var ALREADY_SEEN_ERROR = "Not capturing exception because it's already been captured.";
|
|
149787
149809
|
var BaseClient = class {
|
|
149788
149810
|
/** Options passed to the SDK. */
|
|
@@ -150314,10 +150336,10 @@ function isTransactionEvent(event) {
|
|
|
150314
150336
|
}
|
|
150315
150337
|
__name(isTransactionEvent, "isTransactionEvent");
|
|
150316
150338
|
|
|
150317
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
150339
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/server-runtime-client.js
|
|
150318
150340
|
init_import_meta_url();
|
|
150319
150341
|
|
|
150320
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
150342
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/checkin.js
|
|
150321
150343
|
init_import_meta_url();
|
|
150322
150344
|
function createCheckInEnvelope(checkIn, dynamicSamplingContext, metadata, tunnel, dsn) {
|
|
150323
150345
|
const headers = {
|
|
@@ -150347,7 +150369,7 @@ function createCheckInEnvelopeItem(checkIn) {
|
|
|
150347
150369
|
}
|
|
150348
150370
|
__name(createCheckInEnvelopeItem, "createCheckInEnvelopeItem");
|
|
150349
150371
|
|
|
150350
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
150372
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/server-runtime-client.js
|
|
150351
150373
|
var ServerRuntimeClient = class extends BaseClient {
|
|
150352
150374
|
/**
|
|
150353
150375
|
* Creates a new Edge SDK instance.
|
|
@@ -150525,7 +150547,7 @@ var ServerRuntimeClient = class extends BaseClient {
|
|
|
150525
150547
|
};
|
|
150526
150548
|
__name(ServerRuntimeClient, "ServerRuntimeClient");
|
|
150527
150549
|
|
|
150528
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
150550
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/sdk.js
|
|
150529
150551
|
init_import_meta_url();
|
|
150530
150552
|
function initAndBind(clientClass, options25) {
|
|
150531
150553
|
if (options25.debug === true) {
|
|
@@ -150545,7 +150567,7 @@ function initAndBind(clientClass, options25) {
|
|
|
150545
150567
|
}
|
|
150546
150568
|
__name(initAndBind, "initAndBind");
|
|
150547
150569
|
|
|
150548
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
150570
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/transports/base.js
|
|
150549
150571
|
init_import_meta_url();
|
|
150550
150572
|
var DEFAULT_TRANSPORT_BUFFER_SIZE = 30;
|
|
150551
150573
|
function createTransport(options25, makeRequest, buffer = makePromiseBuffer(
|
|
@@ -150616,7 +150638,7 @@ function getEventForEnvelopeItem(item, type) {
|
|
|
150616
150638
|
}
|
|
150617
150639
|
__name(getEventForEnvelopeItem, "getEventForEnvelopeItem");
|
|
150618
150640
|
|
|
150619
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
150641
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/integrations/index.js
|
|
150620
150642
|
var integrations_exports = {};
|
|
150621
150643
|
__export(integrations_exports, {
|
|
150622
150644
|
FunctionToString: () => FunctionToString,
|
|
@@ -150625,7 +150647,7 @@ __export(integrations_exports, {
|
|
|
150625
150647
|
});
|
|
150626
150648
|
init_import_meta_url();
|
|
150627
150649
|
|
|
150628
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
150650
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/integrations/functiontostring.js
|
|
150629
150651
|
init_import_meta_url();
|
|
150630
150652
|
var originalFunctionToString;
|
|
150631
150653
|
var FunctionToString = class {
|
|
@@ -150658,7 +150680,7 @@ var FunctionToString = class {
|
|
|
150658
150680
|
__name(FunctionToString, "FunctionToString");
|
|
150659
150681
|
FunctionToString.__initStatic();
|
|
150660
150682
|
|
|
150661
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
150683
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/integrations/inboundfilters.js
|
|
150662
150684
|
init_import_meta_url();
|
|
150663
150685
|
var DEFAULT_IGNORE_ERRORS = [/^Script error\.?$/, /^Javascript error: Script error\.? on line 0$/];
|
|
150664
150686
|
var DEFAULT_IGNORE_TRANSACTIONS = [
|
|
@@ -150847,7 +150869,7 @@ function _getEventFilterUrl(event) {
|
|
|
150847
150869
|
}
|
|
150848
150870
|
__name(_getEventFilterUrl, "_getEventFilterUrl");
|
|
150849
150871
|
|
|
150850
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
150872
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/integrations/linkederrors.js
|
|
150851
150873
|
init_import_meta_url();
|
|
150852
150874
|
var DEFAULT_KEY = "cause";
|
|
150853
150875
|
var DEFAULT_LIMIT = 5;
|
|
@@ -150897,7 +150919,7 @@ var LinkedErrors = class {
|
|
|
150897
150919
|
__name(LinkedErrors, "LinkedErrors");
|
|
150898
150920
|
LinkedErrors.__initStatic();
|
|
150899
150921
|
|
|
150900
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
150922
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/utils/isSentryRequestUrl.js
|
|
150901
150923
|
init_import_meta_url();
|
|
150902
150924
|
function isSentryRequestUrl(url4, hub) {
|
|
150903
150925
|
const client = hub.getClient();
|
|
@@ -150922,7 +150944,7 @@ function removeTrailingSlash(str) {
|
|
|
150922
150944
|
}
|
|
150923
150945
|
__name(removeTrailingSlash, "removeTrailingSlash");
|
|
150924
150946
|
|
|
150925
|
-
// ../../node_modules/.pnpm/@sentry+core@7.
|
|
150947
|
+
// ../../node_modules/.pnpm/@sentry+core@7.87.0/node_modules/@sentry/core/esm/integrations/requestdata.js
|
|
150926
150948
|
init_import_meta_url();
|
|
150927
150949
|
var DEFAULT_OPTIONS = {
|
|
150928
150950
|
include: {
|
|
@@ -151057,17 +151079,17 @@ function getSDKName(hub) {
|
|
|
151057
151079
|
}
|
|
151058
151080
|
__name(getSDKName, "getSDKName");
|
|
151059
151081
|
|
|
151060
|
-
// ../../node_modules/.pnpm/@sentry-internal+tracing@7.
|
|
151082
|
+
// ../../node_modules/.pnpm/@sentry-internal+tracing@7.87.0/node_modules/@sentry-internal/tracing/esm/index.js
|
|
151061
151083
|
init_import_meta_url();
|
|
151062
151084
|
|
|
151063
|
-
// ../../node_modules/.pnpm/@sentry-internal+tracing@7.
|
|
151085
|
+
// ../../node_modules/.pnpm/@sentry-internal+tracing@7.87.0/node_modules/@sentry-internal/tracing/esm/node/integrations/express.js
|
|
151064
151086
|
init_import_meta_url();
|
|
151065
151087
|
|
|
151066
|
-
// ../../node_modules/.pnpm/@sentry-internal+tracing@7.
|
|
151088
|
+
// ../../node_modules/.pnpm/@sentry-internal+tracing@7.87.0/node_modules/@sentry-internal/tracing/esm/common/debug-build.js
|
|
151067
151089
|
init_import_meta_url();
|
|
151068
151090
|
var DEBUG_BUILD3 = typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__;
|
|
151069
151091
|
|
|
151070
|
-
// ../../node_modules/.pnpm/@sentry-internal+tracing@7.
|
|
151092
|
+
// ../../node_modules/.pnpm/@sentry-internal+tracing@7.87.0/node_modules/@sentry-internal/tracing/esm/node/integrations/utils/node-utils.js
|
|
151071
151093
|
init_import_meta_url();
|
|
151072
151094
|
function shouldDisableAutoInstrumentation(getCurrentHub3) {
|
|
151073
151095
|
const clientOptions = _optionalChain([getCurrentHub3, "call", (_2) => _2(), "access", (_2) => _2.getClient, "call", (_3) => _3(), "optionalAccess", (_4) => _4.getOptions, "call", (_5) => _5()]);
|
|
@@ -151076,7 +151098,7 @@ function shouldDisableAutoInstrumentation(getCurrentHub3) {
|
|
|
151076
151098
|
}
|
|
151077
151099
|
__name(shouldDisableAutoInstrumentation, "shouldDisableAutoInstrumentation");
|
|
151078
151100
|
|
|
151079
|
-
// ../../node_modules/.pnpm/@sentry-internal+tracing@7.
|
|
151101
|
+
// ../../node_modules/.pnpm/@sentry-internal+tracing@7.87.0/node_modules/@sentry-internal/tracing/esm/node/integrations/express.js
|
|
151080
151102
|
var Express = class {
|
|
151081
151103
|
/**
|
|
151082
151104
|
* @inheritDoc
|
|
@@ -151336,7 +151358,7 @@ function preventDuplicateSegments(originalUrl, reconstructedRoute, layerPath) {
|
|
|
151336
151358
|
}
|
|
151337
151359
|
__name(preventDuplicateSegments, "preventDuplicateSegments");
|
|
151338
151360
|
|
|
151339
|
-
// ../../node_modules/.pnpm/@sentry-internal+tracing@7.
|
|
151361
|
+
// ../../node_modules/.pnpm/@sentry-internal+tracing@7.87.0/node_modules/@sentry-internal/tracing/esm/node/integrations/postgres.js
|
|
151340
151362
|
init_import_meta_url();
|
|
151341
151363
|
var Postgres = class {
|
|
151342
151364
|
/**
|
|
@@ -151431,7 +151453,7 @@ var Postgres = class {
|
|
|
151431
151453
|
__name(Postgres, "Postgres");
|
|
151432
151454
|
Postgres.__initStatic();
|
|
151433
151455
|
|
|
151434
|
-
// ../../node_modules/.pnpm/@sentry-internal+tracing@7.
|
|
151456
|
+
// ../../node_modules/.pnpm/@sentry-internal+tracing@7.87.0/node_modules/@sentry-internal/tracing/esm/node/integrations/mysql.js
|
|
151435
151457
|
init_import_meta_url();
|
|
151436
151458
|
var Mysql = class {
|
|
151437
151459
|
/**
|
|
@@ -151534,7 +151556,7 @@ var Mysql = class {
|
|
|
151534
151556
|
__name(Mysql, "Mysql");
|
|
151535
151557
|
Mysql.__initStatic();
|
|
151536
151558
|
|
|
151537
|
-
// ../../node_modules/.pnpm/@sentry-internal+tracing@7.
|
|
151559
|
+
// ../../node_modules/.pnpm/@sentry-internal+tracing@7.87.0/node_modules/@sentry-internal/tracing/esm/node/integrations/mongo.js
|
|
151538
151560
|
init_import_meta_url();
|
|
151539
151561
|
var OPERATIONS = [
|
|
151540
151562
|
"aggregate",
|
|
@@ -151760,7 +151782,7 @@ var Mongo = class {
|
|
|
151760
151782
|
__name(Mongo, "Mongo");
|
|
151761
151783
|
Mongo.__initStatic();
|
|
151762
151784
|
|
|
151763
|
-
// ../../node_modules/.pnpm/@sentry-internal+tracing@7.
|
|
151785
|
+
// ../../node_modules/.pnpm/@sentry-internal+tracing@7.87.0/node_modules/@sentry-internal/tracing/esm/node/integrations/prisma.js
|
|
151764
151786
|
init_import_meta_url();
|
|
151765
151787
|
function isValidPrismaClient(possibleClient) {
|
|
151766
151788
|
return !!possibleClient && !!possibleClient["$use"];
|
|
@@ -151826,7 +151848,7 @@ var Prisma = class {
|
|
|
151826
151848
|
__name(Prisma, "Prisma");
|
|
151827
151849
|
Prisma.__initStatic();
|
|
151828
151850
|
|
|
151829
|
-
// ../../node_modules/.pnpm/@sentry-internal+tracing@7.
|
|
151851
|
+
// ../../node_modules/.pnpm/@sentry-internal+tracing@7.87.0/node_modules/@sentry-internal/tracing/esm/node/integrations/graphql.js
|
|
151830
151852
|
init_import_meta_url();
|
|
151831
151853
|
var GraphQL = class {
|
|
151832
151854
|
/**
|
|
@@ -151886,7 +151908,7 @@ var GraphQL = class {
|
|
|
151886
151908
|
__name(GraphQL, "GraphQL");
|
|
151887
151909
|
GraphQL.__initStatic();
|
|
151888
151910
|
|
|
151889
|
-
// ../../node_modules/.pnpm/@sentry-internal+tracing@7.
|
|
151911
|
+
// ../../node_modules/.pnpm/@sentry-internal+tracing@7.87.0/node_modules/@sentry-internal/tracing/esm/node/integrations/apollo.js
|
|
151890
151912
|
init_import_meta_url();
|
|
151891
151913
|
var Apollo = class {
|
|
151892
151914
|
/**
|
|
@@ -152018,7 +152040,7 @@ function wrapResolver(model, resolverGroupName, resolverName, getCurrentHub3) {
|
|
|
152018
152040
|
}
|
|
152019
152041
|
__name(wrapResolver, "wrapResolver");
|
|
152020
152042
|
|
|
152021
|
-
// ../../node_modules/.pnpm/@sentry+node@7.
|
|
152043
|
+
// ../../node_modules/.pnpm/@sentry+node@7.87.0_supports-color@9.2.2/node_modules/@sentry/node/esm/client.js
|
|
152022
152044
|
init_import_meta_url();
|
|
152023
152045
|
var os7 = __toESM(require("os"));
|
|
152024
152046
|
var import_util4 = require("util");
|
|
@@ -152054,7 +152076,7 @@ var NodeClient = class extends ServerRuntimeClient {
|
|
|
152054
152076
|
};
|
|
152055
152077
|
__name(NodeClient, "NodeClient");
|
|
152056
152078
|
|
|
152057
|
-
// ../../node_modules/.pnpm/@sentry+node@7.
|
|
152079
|
+
// ../../node_modules/.pnpm/@sentry+node@7.87.0_supports-color@9.2.2/node_modules/@sentry/node/esm/transports/http.js
|
|
152058
152080
|
init_import_meta_url();
|
|
152059
152081
|
var http2 = __toESM(require("http"));
|
|
152060
152082
|
var https = __toESM(require("https"));
|
|
@@ -152153,13 +152175,13 @@ function createRequestExecutor(options25, httpModule, agent) {
|
|
|
152153
152175
|
}
|
|
152154
152176
|
__name(createRequestExecutor, "createRequestExecutor");
|
|
152155
152177
|
|
|
152156
|
-
// ../../node_modules/.pnpm/@sentry+node@7.
|
|
152178
|
+
// ../../node_modules/.pnpm/@sentry+node@7.87.0_supports-color@9.2.2/node_modules/@sentry/node/esm/sdk.js
|
|
152157
152179
|
init_import_meta_url();
|
|
152158
152180
|
|
|
152159
|
-
// ../../node_modules/.pnpm/@sentry+node@7.
|
|
152181
|
+
// ../../node_modules/.pnpm/@sentry+node@7.87.0_supports-color@9.2.2/node_modules/@sentry/node/esm/anr/index.js
|
|
152160
152182
|
init_import_meta_url();
|
|
152161
152183
|
|
|
152162
|
-
// ../../node_modules/.pnpm/@sentry+node@7.
|
|
152184
|
+
// ../../node_modules/.pnpm/@sentry+node@7.87.0_supports-color@9.2.2/node_modules/@sentry/node/esm/module.js
|
|
152163
152185
|
init_import_meta_url();
|
|
152164
152186
|
var import_path11 = require("path");
|
|
152165
152187
|
var isWindowsPlatform = import_path11.sep === "\\";
|
|
@@ -152199,20 +152221,20 @@ function getModuleFromFilename(filename, normalizeWindowsPathSeparator = isWindo
|
|
|
152199
152221
|
}
|
|
152200
152222
|
__name(getModuleFromFilename, "getModuleFromFilename");
|
|
152201
152223
|
|
|
152202
|
-
// ../../node_modules/.pnpm/@sentry+node@7.
|
|
152224
|
+
// ../../node_modules/.pnpm/@sentry+node@7.87.0_supports-color@9.2.2/node_modules/@sentry/node/esm/anr/index.js
|
|
152203
152225
|
function isAnrChildProcess() {
|
|
152204
152226
|
return !!process.send && !!process.env.SENTRY_ANR_CHILD_PROCESS;
|
|
152205
152227
|
}
|
|
152206
152228
|
__name(isAnrChildProcess, "isAnrChildProcess");
|
|
152207
152229
|
|
|
152208
|
-
// ../../node_modules/.pnpm/@sentry+node@7.
|
|
152230
|
+
// ../../node_modules/.pnpm/@sentry+node@7.87.0_supports-color@9.2.2/node_modules/@sentry/node/esm/async/index.js
|
|
152209
152231
|
init_import_meta_url();
|
|
152210
152232
|
|
|
152211
|
-
// ../../node_modules/.pnpm/@sentry+node@7.
|
|
152233
|
+
// ../../node_modules/.pnpm/@sentry+node@7.87.0_supports-color@9.2.2/node_modules/@sentry/node/esm/nodeVersion.js
|
|
152212
152234
|
init_import_meta_url();
|
|
152213
152235
|
var NODE_VERSION = parseSemver(process.versions.node);
|
|
152214
152236
|
|
|
152215
|
-
// ../../node_modules/.pnpm/@sentry+node@7.
|
|
152237
|
+
// ../../node_modules/.pnpm/@sentry+node@7.87.0_supports-color@9.2.2/node_modules/@sentry/node/esm/async/domain.js
|
|
152216
152238
|
init_import_meta_url();
|
|
152217
152239
|
var domain = __toESM(require("domain"));
|
|
152218
152240
|
function getActiveDomain() {
|
|
@@ -152253,7 +152275,7 @@ function setDomainAsyncContextStrategy() {
|
|
|
152253
152275
|
}
|
|
152254
152276
|
__name(setDomainAsyncContextStrategy, "setDomainAsyncContextStrategy");
|
|
152255
152277
|
|
|
152256
|
-
// ../../node_modules/.pnpm/@sentry+node@7.
|
|
152278
|
+
// ../../node_modules/.pnpm/@sentry+node@7.87.0_supports-color@9.2.2/node_modules/@sentry/node/esm/async/hooks.js
|
|
152257
152279
|
init_import_meta_url();
|
|
152258
152280
|
var async_hooks = __toESM(require("async_hooks"));
|
|
152259
152281
|
var asyncStorage;
|
|
@@ -152286,7 +152308,7 @@ function setHooksAsyncContextStrategy() {
|
|
|
152286
152308
|
}
|
|
152287
152309
|
__name(setHooksAsyncContextStrategy, "setHooksAsyncContextStrategy");
|
|
152288
152310
|
|
|
152289
|
-
// ../../node_modules/.pnpm/@sentry+node@7.
|
|
152311
|
+
// ../../node_modules/.pnpm/@sentry+node@7.87.0_supports-color@9.2.2/node_modules/@sentry/node/esm/async/index.js
|
|
152290
152312
|
function setNodeAsyncContextStrategy() {
|
|
152291
152313
|
if (NODE_VERSION.major && NODE_VERSION.major >= 14) {
|
|
152292
152314
|
setHooksAsyncContextStrategy();
|
|
@@ -152296,7 +152318,7 @@ function setNodeAsyncContextStrategy() {
|
|
|
152296
152318
|
}
|
|
152297
152319
|
__name(setNodeAsyncContextStrategy, "setNodeAsyncContextStrategy");
|
|
152298
152320
|
|
|
152299
|
-
// ../../node_modules/.pnpm/@sentry+node@7.
|
|
152321
|
+
// ../../node_modules/.pnpm/@sentry+node@7.87.0_supports-color@9.2.2/node_modules/@sentry/node/esm/integrations/console.js
|
|
152300
152322
|
init_import_meta_url();
|
|
152301
152323
|
var util = __toESM(require("util"));
|
|
152302
152324
|
var Console = class {
|
|
@@ -152341,14 +152363,14 @@ var Console = class {
|
|
|
152341
152363
|
__name(Console, "Console");
|
|
152342
152364
|
Console.__initStatic();
|
|
152343
152365
|
|
|
152344
|
-
// ../../node_modules/.pnpm/@sentry+node@7.
|
|
152366
|
+
// ../../node_modules/.pnpm/@sentry+node@7.87.0_supports-color@9.2.2/node_modules/@sentry/node/esm/integrations/http.js
|
|
152345
152367
|
init_import_meta_url();
|
|
152346
152368
|
|
|
152347
|
-
// ../../node_modules/.pnpm/@sentry+node@7.
|
|
152369
|
+
// ../../node_modules/.pnpm/@sentry+node@7.87.0_supports-color@9.2.2/node_modules/@sentry/node/esm/debug-build.js
|
|
152348
152370
|
init_import_meta_url();
|
|
152349
152371
|
var DEBUG_BUILD4 = typeof __SENTRY_DEBUG__ === "undefined" || __SENTRY_DEBUG__;
|
|
152350
152372
|
|
|
152351
|
-
// ../../node_modules/.pnpm/@sentry+node@7.
|
|
152373
|
+
// ../../node_modules/.pnpm/@sentry+node@7.87.0_supports-color@9.2.2/node_modules/@sentry/node/esm/integrations/utils/http.js
|
|
152352
152374
|
init_import_meta_url();
|
|
152353
152375
|
var import_url6 = require("url");
|
|
152354
152376
|
function extractRawUrl(requestOptions) {
|
|
@@ -152453,7 +152475,7 @@ function parseRequestOptions(requestOptions) {
|
|
|
152453
152475
|
}
|
|
152454
152476
|
__name(parseRequestOptions, "parseRequestOptions");
|
|
152455
152477
|
|
|
152456
|
-
// ../../node_modules/.pnpm/@sentry+node@7.
|
|
152478
|
+
// ../../node_modules/.pnpm/@sentry+node@7.87.0_supports-color@9.2.2/node_modules/@sentry/node/esm/integrations/http.js
|
|
152457
152479
|
var Http = class {
|
|
152458
152480
|
/**
|
|
152459
152481
|
* @inheritDoc
|
|
@@ -152670,10 +152692,10 @@ function normalizeBaggageHeader(requestOptions, sentryBaggageHeader) {
|
|
|
152670
152692
|
}
|
|
152671
152693
|
__name(normalizeBaggageHeader, "normalizeBaggageHeader");
|
|
152672
152694
|
|
|
152673
|
-
// ../../node_modules/.pnpm/@sentry+node@7.
|
|
152695
|
+
// ../../node_modules/.pnpm/@sentry+node@7.87.0_supports-color@9.2.2/node_modules/@sentry/node/esm/integrations/onuncaughtexception.js
|
|
152674
152696
|
init_import_meta_url();
|
|
152675
152697
|
|
|
152676
|
-
// ../../node_modules/.pnpm/@sentry+node@7.
|
|
152698
|
+
// ../../node_modules/.pnpm/@sentry+node@7.87.0_supports-color@9.2.2/node_modules/@sentry/node/esm/integrations/utils/errorhandling.js
|
|
152677
152699
|
init_import_meta_url();
|
|
152678
152700
|
var DEFAULT_SHUTDOWN_TIMEOUT = 2e3;
|
|
152679
152701
|
function logAndExitProcess(error) {
|
|
@@ -152701,7 +152723,7 @@ function logAndExitProcess(error) {
|
|
|
152701
152723
|
}
|
|
152702
152724
|
__name(logAndExitProcess, "logAndExitProcess");
|
|
152703
152725
|
|
|
152704
|
-
// ../../node_modules/.pnpm/@sentry+node@7.
|
|
152726
|
+
// ../../node_modules/.pnpm/@sentry+node@7.87.0_supports-color@9.2.2/node_modules/@sentry/node/esm/integrations/onuncaughtexception.js
|
|
152705
152727
|
var OnUncaughtException = class {
|
|
152706
152728
|
/**
|
|
152707
152729
|
* @inheritDoc
|
|
@@ -152816,7 +152838,7 @@ var OnUncaughtException = class {
|
|
|
152816
152838
|
__name(OnUncaughtException, "OnUncaughtException");
|
|
152817
152839
|
OnUncaughtException.__initStatic();
|
|
152818
152840
|
|
|
152819
|
-
// ../../node_modules/.pnpm/@sentry+node@7.
|
|
152841
|
+
// ../../node_modules/.pnpm/@sentry+node@7.87.0_supports-color@9.2.2/node_modules/@sentry/node/esm/integrations/onunhandledrejection.js
|
|
152820
152842
|
init_import_meta_url();
|
|
152821
152843
|
var OnUnhandledRejection = class {
|
|
152822
152844
|
/**
|
|
@@ -152884,7 +152906,7 @@ var OnUnhandledRejection = class {
|
|
|
152884
152906
|
__name(OnUnhandledRejection, "OnUnhandledRejection");
|
|
152885
152907
|
OnUnhandledRejection.__initStatic();
|
|
152886
152908
|
|
|
152887
|
-
// ../../node_modules/.pnpm/@sentry+node@7.
|
|
152909
|
+
// ../../node_modules/.pnpm/@sentry+node@7.87.0_supports-color@9.2.2/node_modules/@sentry/node/esm/integrations/modules.js
|
|
152888
152910
|
init_import_meta_url();
|
|
152889
152911
|
var import_fs7 = require("fs");
|
|
152890
152912
|
var import_path12 = require("path");
|
|
@@ -152973,7 +152995,7 @@ var Modules = class {
|
|
|
152973
152995
|
__name(Modules, "Modules");
|
|
152974
152996
|
Modules.__initStatic();
|
|
152975
152997
|
|
|
152976
|
-
// ../../node_modules/.pnpm/@sentry+node@7.
|
|
152998
|
+
// ../../node_modules/.pnpm/@sentry+node@7.87.0_supports-color@9.2.2/node_modules/@sentry/node/esm/integrations/contextlines.js
|
|
152977
152999
|
init_import_meta_url();
|
|
152978
153000
|
var import_fs8 = require("fs");
|
|
152979
153001
|
var FILE_CONTENT_CACHE = new LRUMap(100);
|
|
@@ -153088,7 +153110,7 @@ async function _readSourceFile(filename) {
|
|
|
153088
153110
|
}
|
|
153089
153111
|
__name(_readSourceFile, "_readSourceFile");
|
|
153090
153112
|
|
|
153091
|
-
// ../../node_modules/.pnpm/@sentry+node@7.
|
|
153113
|
+
// ../../node_modules/.pnpm/@sentry+node@7.87.0_supports-color@9.2.2/node_modules/@sentry/node/esm/integrations/context.js
|
|
153092
153114
|
init_import_meta_url();
|
|
153093
153115
|
var import_child_process2 = require("child_process");
|
|
153094
153116
|
var import_fs9 = require("fs");
|
|
@@ -153395,7 +153417,7 @@ function getCloudResourceContext() {
|
|
|
153395
153417
|
}
|
|
153396
153418
|
__name(getCloudResourceContext, "getCloudResourceContext");
|
|
153397
153419
|
|
|
153398
|
-
// ../../node_modules/.pnpm/@sentry+node@7.
|
|
153420
|
+
// ../../node_modules/.pnpm/@sentry+node@7.87.0_supports-color@9.2.2/node_modules/@sentry/node/esm/integrations/localvariables.js
|
|
153399
153421
|
init_import_meta_url();
|
|
153400
153422
|
function createRateLimiter(maxPerSecond, enable, disable) {
|
|
153401
153423
|
let count = 0;
|
|
@@ -153709,7 +153731,7 @@ var LocalVariables = class {
|
|
|
153709
153731
|
__name(LocalVariables, "LocalVariables");
|
|
153710
153732
|
LocalVariables.__initStatic();
|
|
153711
153733
|
|
|
153712
|
-
// ../../node_modules/.pnpm/@sentry+node@7.
|
|
153734
|
+
// ../../node_modules/.pnpm/@sentry+node@7.87.0_supports-color@9.2.2/node_modules/@sentry/node/esm/integrations/undici/index.js
|
|
153713
153735
|
init_import_meta_url();
|
|
153714
153736
|
var ChannelName;
|
|
153715
153737
|
(function(ChannelName2) {
|
|
@@ -153939,7 +153961,7 @@ function createRequestSpan(activeSpan, request2, stringUrl) {
|
|
|
153939
153961
|
}
|
|
153940
153962
|
__name(createRequestSpan, "createRequestSpan");
|
|
153941
153963
|
|
|
153942
|
-
// ../../node_modules/.pnpm/@sentry+node@7.
|
|
153964
|
+
// ../../node_modules/.pnpm/@sentry+node@7.87.0_supports-color@9.2.2/node_modules/@sentry/node/esm/integrations/spotlight.js
|
|
153943
153965
|
init_import_meta_url();
|
|
153944
153966
|
var http3 = __toESM(require("http"));
|
|
153945
153967
|
var import_url7 = require("url");
|
|
@@ -154026,7 +154048,7 @@ function parseSidecarUrl(url4) {
|
|
|
154026
154048
|
}
|
|
154027
154049
|
__name(parseSidecarUrl, "parseSidecarUrl");
|
|
154028
154050
|
|
|
154029
|
-
// ../../node_modules/.pnpm/@sentry+node@7.
|
|
154051
|
+
// ../../node_modules/.pnpm/@sentry+node@7.87.0_supports-color@9.2.2/node_modules/@sentry/node/esm/sdk.js
|
|
154030
154052
|
var defaultIntegrations = [
|
|
154031
154053
|
// Common
|
|
154032
154054
|
new integrations_exports.InboundFilters(),
|
|
@@ -154147,7 +154169,7 @@ function updateScopeFromEnvVariables() {
|
|
|
154147
154169
|
}
|
|
154148
154170
|
__name(updateScopeFromEnvVariables, "updateScopeFromEnvVariables");
|
|
154149
154171
|
|
|
154150
|
-
// ../../node_modules/.pnpm/@sentry+node@7.
|
|
154172
|
+
// ../../node_modules/.pnpm/@sentry+node@7.87.0_supports-color@9.2.2/node_modules/@sentry/node/esm/integrations/index.js
|
|
154151
154173
|
var integrations_exports2 = {};
|
|
154152
154174
|
__export(integrations_exports2, {
|
|
154153
154175
|
Console: () => Console,
|
|
@@ -154164,7 +154186,7 @@ __export(integrations_exports2, {
|
|
|
154164
154186
|
});
|
|
154165
154187
|
init_import_meta_url();
|
|
154166
154188
|
|
|
154167
|
-
// ../../node_modules/.pnpm/@sentry+node@7.
|
|
154189
|
+
// ../../node_modules/.pnpm/@sentry+node@7.87.0_supports-color@9.2.2/node_modules/@sentry/node/esm/tracing/integrations.js
|
|
154168
154190
|
var integrations_exports3 = {};
|
|
154169
154191
|
__export(integrations_exports3, {
|
|
154170
154192
|
Apollo: () => Apollo,
|
|
@@ -154177,7 +154199,7 @@ __export(integrations_exports3, {
|
|
|
154177
154199
|
});
|
|
154178
154200
|
init_import_meta_url();
|
|
154179
154201
|
|
|
154180
|
-
// ../../node_modules/.pnpm/@sentry+node@7.
|
|
154202
|
+
// ../../node_modules/.pnpm/@sentry+node@7.87.0_supports-color@9.2.2/node_modules/@sentry/node/esm/index.js
|
|
154181
154203
|
var INTEGRATIONS = {
|
|
154182
154204
|
...integrations_exports,
|
|
154183
154205
|
...integrations_exports2,
|
|
@@ -154245,17 +154267,17 @@ var makeSentry10Transport = /* @__PURE__ */ __name((options25) => {
|
|
|
154245
154267
|
return createTransport(options25, transportSentry10);
|
|
154246
154268
|
}, "makeSentry10Transport");
|
|
154247
154269
|
function setupSentry() {
|
|
154248
|
-
if (
|
|
154270
|
+
if (typeof SENTRY_DSN !== "undefined") {
|
|
154249
154271
|
init({
|
|
154250
154272
|
release: `wrangler@${version}`,
|
|
154251
|
-
dsn:
|
|
154273
|
+
dsn: SENTRY_DSN,
|
|
154252
154274
|
transport: makeSentry10Transport
|
|
154253
154275
|
});
|
|
154254
154276
|
}
|
|
154255
154277
|
}
|
|
154256
154278
|
__name(setupSentry, "setupSentry");
|
|
154257
154279
|
function addBreadcrumb2(message, level = "log") {
|
|
154258
|
-
if (
|
|
154280
|
+
if (typeof SENTRY_DSN !== "undefined") {
|
|
154259
154281
|
addBreadcrumb({
|
|
154260
154282
|
message,
|
|
154261
154283
|
level
|
|
@@ -154264,7 +154286,7 @@ function addBreadcrumb2(message, level = "log") {
|
|
|
154264
154286
|
}
|
|
154265
154287
|
__name(addBreadcrumb2, "addBreadcrumb");
|
|
154266
154288
|
async function captureGlobalException(e3) {
|
|
154267
|
-
if (
|
|
154289
|
+
if (typeof SENTRY_DSN !== "undefined") {
|
|
154268
154290
|
sentryReportingAllowed = await confirm(
|
|
154269
154291
|
"Would you like to report this error to Cloudflare?",
|
|
154270
154292
|
{ fallbackValue: false }
|
|
@@ -154279,7 +154301,7 @@ async function captureGlobalException(e3) {
|
|
|
154279
154301
|
}
|
|
154280
154302
|
__name(captureGlobalException, "captureGlobalException");
|
|
154281
154303
|
async function closeSentry() {
|
|
154282
|
-
if (
|
|
154304
|
+
if (typeof SENTRY_DSN !== "undefined") {
|
|
154283
154305
|
await close();
|
|
154284
154306
|
}
|
|
154285
154307
|
}
|
|
@@ -155640,9 +155662,11 @@ async function main(argv) {
|
|
|
155640
155662
|
setupSentry();
|
|
155641
155663
|
addBreadcrumb2(`wrangler ${argv.join(" ")}`);
|
|
155642
155664
|
const wrangler = createCLIParser(argv);
|
|
155665
|
+
let cliHandlerThrew = false;
|
|
155643
155666
|
try {
|
|
155644
155667
|
await wrangler.parse();
|
|
155645
155668
|
} catch (e3) {
|
|
155669
|
+
cliHandlerThrew = true;
|
|
155646
155670
|
logger.log("");
|
|
155647
155671
|
if (e3 instanceof CommandLineArgsError) {
|
|
155648
155672
|
logger.error(e3.message);
|
|
@@ -155684,9 +155708,15 @@ ${tryRunningItIn}${oneOfThese}`
|
|
|
155684
155708
|
}
|
|
155685
155709
|
throw e3;
|
|
155686
155710
|
} finally {
|
|
155687
|
-
|
|
155688
|
-
|
|
155689
|
-
|
|
155711
|
+
try {
|
|
155712
|
+
if (typeof jest === "undefined")
|
|
155713
|
+
process.disconnect?.();
|
|
155714
|
+
await closeSentry();
|
|
155715
|
+
} catch (e3) {
|
|
155716
|
+
logger.error(e3);
|
|
155717
|
+
if (!cliHandlerThrew)
|
|
155718
|
+
throw e3;
|
|
155719
|
+
}
|
|
155690
155720
|
}
|
|
155691
155721
|
}
|
|
155692
155722
|
__name(main, "main");
|
|
@@ -157321,6 +157351,11 @@ See https://developers.cloudflare.com/workers/platform/compatibility-dates for m
|
|
|
157321
157351
|
projectRoot: props.projectRoot
|
|
157322
157352
|
}
|
|
157323
157353
|
);
|
|
157354
|
+
for (const module3 of modules) {
|
|
157355
|
+
const modulePath = module3.filePath === void 0 ? module3.name : import_node_path47.default.relative("", module3.filePath);
|
|
157356
|
+
const bytesInOutput = typeof module3.content === "string" ? Buffer.byteLength(module3.content) : module3.content.byteLength;
|
|
157357
|
+
dependencies[modulePath] = { bytesInOutput };
|
|
157358
|
+
}
|
|
157324
157359
|
const content = (0, import_node_fs31.readFileSync)(resolvedEntryPointPath, {
|
|
157325
157360
|
encoding: "utf-8"
|
|
157326
157361
|
});
|
|
@@ -159083,13 +159118,9 @@ function InteractiveDevSession(props) {
|
|
|
159083
159118
|
port = props.initialPort;
|
|
159084
159119
|
useTunnel(toggles.tunnel);
|
|
159085
159120
|
const onReady = /* @__PURE__ */ __name((newIp, newPort, proxyData) => {
|
|
159086
|
-
|
|
159087
|
-
|
|
159088
|
-
|
|
159089
|
-
if (props.onReady) {
|
|
159090
|
-
props.onReady(newIp, newPort, proxyData);
|
|
159091
|
-
}
|
|
159092
|
-
}
|
|
159121
|
+
ip = newIp;
|
|
159122
|
+
port = newPort;
|
|
159123
|
+
props.onReady?.(newIp, newPort, proxyData);
|
|
159093
159124
|
}, "onReady");
|
|
159094
159125
|
return /* @__PURE__ */ import_react19.default.createElement(import_react19.default.Fragment, null, /* @__PURE__ */ import_react19.default.createElement(DevSession, { ...props, local: toggles.local, onReady }), /* @__PURE__ */ import_react19.default.createElement(import_ink13.Box, { borderStyle: "round", paddingLeft: 1, paddingRight: 1 }, /* @__PURE__ */ import_react19.default.createElement(import_ink13.Text, { bold: true }, "[b]"), /* @__PURE__ */ import_react19.default.createElement(import_ink13.Text, null, " open a browser, "), props.inspect ? /* @__PURE__ */ import_react19.default.createElement(import_react19.default.Fragment, null, /* @__PURE__ */ import_react19.default.createElement(import_ink13.Text, { bold: true }, "[d]"), /* @__PURE__ */ import_react19.default.createElement(import_ink13.Text, null, " open Devtools, ")) : null, !props.forceLocal ? /* @__PURE__ */ import_react19.default.createElement(import_react19.default.Fragment, null, /* @__PURE__ */ import_react19.default.createElement(import_ink13.Text, { bold: true }, "[l]"), /* @__PURE__ */ import_react19.default.createElement(import_ink13.Text, null, " ", toggles.local ? "turn off" : "turn on", " local mode, ")) : null, /* @__PURE__ */ import_react19.default.createElement(import_ink13.Text, { bold: true }, "[c]"), /* @__PURE__ */ import_react19.default.createElement(import_ink13.Text, null, " clear console, "), /* @__PURE__ */ import_react19.default.createElement(import_ink13.Text, { bold: true }, "[x]"), /* @__PURE__ */ import_react19.default.createElement(import_ink13.Text, null, " to exit")));
|
|
159095
159126
|
}
|
|
@@ -159797,7 +159828,10 @@ async function startLocalServer(props) {
|
|
|
159797
159828
|
port: props.localUpstream ? "" : void 0
|
|
159798
159829
|
// `localUpstream` was essentially `host`, not `hostname`, so if it was set delete the `port`
|
|
159799
159830
|
},
|
|
159800
|
-
headers: {
|
|
159831
|
+
headers: {
|
|
159832
|
+
// Passing this signature from Proxy Worker allows the User Worker to trust the request.
|
|
159833
|
+
"MF-Proxy-Shared-Secret": event.proxyToUserWorkerAuthenticationSecret
|
|
159834
|
+
},
|
|
159801
159835
|
liveReload: props.liveReload,
|
|
159802
159836
|
// in local mode, the logs are already being printed to the console by workerd but only for workers written in "module" format
|
|
159803
159837
|
// workers written in "service-worker" format still need to proxy logs to the ProxyController
|
|
@@ -160154,17 +160188,11 @@ async function startDev(args) {
|
|
|
160154
160188
|
}
|
|
160155
160189
|
__name(getDevReactElement, "getDevReactElement");
|
|
160156
160190
|
const devReactElement = (0, import_ink14.render)(await getDevReactElement(config));
|
|
160157
|
-
let apiStopped = false;
|
|
160158
|
-
void devReactElement.waitUntilExit().then(() => {
|
|
160159
|
-
if (!apiStopped && typeof jest === "undefined")
|
|
160160
|
-
process.disconnect?.();
|
|
160161
|
-
});
|
|
160162
160191
|
rerender = devReactElement.rerender;
|
|
160163
160192
|
return {
|
|
160164
160193
|
devReactElement,
|
|
160165
160194
|
watcher,
|
|
160166
160195
|
stop: async () => {
|
|
160167
|
-
apiStopped = true;
|
|
160168
160196
|
devReactElement.unmount();
|
|
160169
160197
|
await watcher?.close();
|
|
160170
160198
|
}
|
|
@@ -160862,7 +160890,7 @@ __name(LocalRuntimeController, "LocalRuntimeController");
|
|
|
160862
160890
|
// src/api/startDevWorker/ProxyController.ts
|
|
160863
160891
|
init_import_meta_url();
|
|
160864
160892
|
var import_node_assert18 = __toESM(require("node:assert"));
|
|
160865
|
-
var
|
|
160893
|
+
var import_node_crypto6 = require("node:crypto");
|
|
160866
160894
|
var import_node_events3 = require("node:events");
|
|
160867
160895
|
var import_node_path53 = __toESM(require("node:path"));
|
|
160868
160896
|
var import_miniflare15 = require("miniflare");
|
|
@@ -160926,7 +160954,7 @@ var ProxyController = class extends import_node_events3.EventEmitter {
|
|
|
160926
160954
|
inspectorProxyWorkerWebSocket;
|
|
160927
160955
|
latestConfig;
|
|
160928
160956
|
latestBundle;
|
|
160929
|
-
secret = (0,
|
|
160957
|
+
secret = (0, import_node_crypto6.randomUUID)();
|
|
160930
160958
|
createProxyWorker() {
|
|
160931
160959
|
if (this._torndown)
|
|
160932
160960
|
return;
|