slnodejs 6.1.319 → 6.1.321
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.
|
@@ -33823,7 +33823,7 @@ module.exports={
|
|
|
33823
33823
|
"_resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz",
|
|
33824
33824
|
"_shasum": "da37cebd31e79a1367e941b592ed1fbebd58abbb",
|
|
33825
33825
|
"_spec": "elliptic@^6.5.3",
|
|
33826
|
-
"_where": "/var/lib/jenkins/workspace/.OnPremise.Agent.JavaScript_main
|
|
33826
|
+
"_where": "/var/lib/jenkins/workspace/.OnPremise.Agent.JavaScript_main/browser-agent/node_modules/browserify-sign",
|
|
33827
33827
|
"author": {
|
|
33828
33828
|
"name": "Fedor Indutny",
|
|
33829
33829
|
"email": "fedor@indutny.com"
|
|
@@ -53910,7 +53910,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
53910
53910
|
"use strict";
|
|
53911
53911
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
53912
53912
|
exports.SL_AGENT_TYPE = exports.SL_AGENT_VERSION = void 0;
|
|
53913
|
-
exports.SL_AGENT_VERSION = '6.1.
|
|
53913
|
+
exports.SL_AGENT_VERSION = '6.1.321';
|
|
53914
53914
|
exports.SL_AGENT_TYPE = 'browser';
|
|
53915
53915
|
});
|
|
53916
53916
|
|
|
@@ -54260,7 +54260,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
54260
54260
|
})(function (require, exports) {
|
|
54261
54261
|
"use strict";
|
|
54262
54262
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54263
|
-
exports.EVENTS = exports.SL_TEST_NAME = exports.SL_SESSION_ID = exports.SL_CONTEXT_KEY = exports.SL_BAGGAGE_HEADER = void 0;
|
|
54263
|
+
exports.relativePathRegex = exports.EVENTS = exports.SL_TEST_NAME = exports.SL_SESSION_ID = exports.SL_CONTEXT_KEY = exports.SL_BAGGAGE_HEADER = void 0;
|
|
54264
54264
|
exports.SL_BAGGAGE_HEADER = 'baggage';
|
|
54265
54265
|
exports.SL_CONTEXT_KEY = 'sl-context';
|
|
54266
54266
|
exports.SL_SESSION_ID = 'x-sl-test-session-id';
|
|
@@ -54273,6 +54273,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
54273
54273
|
REQUEST_AGENT_CONTEXT: 'request:sl-context',
|
|
54274
54274
|
RESPONSE_AGENT_CONTEXT: 'response:sl-context',
|
|
54275
54275
|
};
|
|
54276
|
+
exports.relativePathRegex = new RegExp('^(?!www\\.|(?:http|ftp)s?://|[A-Za-z]:\\\\|//).*');
|
|
54276
54277
|
});
|
|
54277
54278
|
|
|
54278
54279
|
},{}],424:[function(require,module,exports){
|
|
@@ -54350,7 +54351,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
54350
54351
|
if (v !== undefined) module.exports = v;
|
|
54351
54352
|
}
|
|
54352
54353
|
else if (typeof define === "function" && define.amd) {
|
|
54353
|
-
define(["require", "exports", "@opentelemetry/instrumentation-fetch", "../utils"], factory);
|
|
54354
|
+
define(["require", "exports", "@opentelemetry/instrumentation-fetch", "../utils", "../const"], factory);
|
|
54354
54355
|
}
|
|
54355
54356
|
})(function (require, exports) {
|
|
54356
54357
|
"use strict";
|
|
@@ -54358,6 +54359,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
54358
54359
|
exports.CustomFetchInstrumentation = exports.handleAddHeaders = void 0;
|
|
54359
54360
|
const instrumentation_fetch_1 = require("@opentelemetry/instrumentation-fetch");
|
|
54360
54361
|
const utils_1 = require("../utils");
|
|
54362
|
+
const const_1 = require("../const");
|
|
54361
54363
|
const setPropagationHeaders = (options, contextPropagationHeaders) => {
|
|
54362
54364
|
for (const [key, value] of Object.entries(contextPropagationHeaders)) {
|
|
54363
54365
|
if (value) {
|
|
@@ -54367,8 +54369,9 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
54367
54369
|
};
|
|
54368
54370
|
function handleAddHeaders(options, spanUrl) {
|
|
54369
54371
|
const origin = window.location.origin;
|
|
54370
|
-
const
|
|
54371
|
-
|
|
54372
|
+
const startsWithOrigin = spanUrl === null || spanUrl === void 0 ? void 0 : spanUrl.startsWith(origin);
|
|
54373
|
+
const isRelativeUrl = const_1.relativePathRegex.test(spanUrl);
|
|
54374
|
+
if (!startsWithOrigin && !isRelativeUrl) {
|
|
54372
54375
|
return;
|
|
54373
54376
|
}
|
|
54374
54377
|
const contextPropagationHeaders = (0, utils_1.constructBaggageHeader)();
|
|
@@ -54398,14 +54401,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
54398
54401
|
exports.CustomFetchInstrumentation = CustomFetchInstrumentation;
|
|
54399
54402
|
});
|
|
54400
54403
|
|
|
54401
|
-
},{"../utils":429,"@opentelemetry/instrumentation-fetch":89}],426:[function(require,module,exports){
|
|
54404
|
+
},{"../const":423,"../utils":429,"@opentelemetry/instrumentation-fetch":89}],426:[function(require,module,exports){
|
|
54402
54405
|
(function (factory) {
|
|
54403
54406
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
54404
54407
|
var v = factory(require, exports);
|
|
54405
54408
|
if (v !== undefined) module.exports = v;
|
|
54406
54409
|
}
|
|
54407
54410
|
else if (typeof define === "function" && define.amd) {
|
|
54408
|
-
define(["require", "exports", "@opentelemetry/instrumentation-xml-http-request", "../utils"], factory);
|
|
54411
|
+
define(["require", "exports", "@opentelemetry/instrumentation-xml-http-request", "../utils", "../const"], factory);
|
|
54409
54412
|
}
|
|
54410
54413
|
})(function (require, exports) {
|
|
54411
54414
|
"use strict";
|
|
@@ -54413,11 +54416,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
54413
54416
|
exports.CustomXMLHttpRequestInstrumentation = exports.handleAddHeaders = void 0;
|
|
54414
54417
|
const instrumentation_xml_http_request_1 = require("@opentelemetry/instrumentation-xml-http-request");
|
|
54415
54418
|
const utils_1 = require("../utils");
|
|
54419
|
+
const const_1 = require("../const");
|
|
54416
54420
|
function handleAddHeaders(xhr, spanUrl) {
|
|
54417
54421
|
var _a;
|
|
54418
54422
|
const origin = window.location.origin;
|
|
54419
|
-
const
|
|
54420
|
-
|
|
54423
|
+
const startsWithOrigin = spanUrl === null || spanUrl === void 0 ? void 0 : spanUrl.startsWith(origin);
|
|
54424
|
+
const isRelativeUrl = const_1.relativePathRegex.test(spanUrl);
|
|
54425
|
+
if (!startsWithOrigin && !isRelativeUrl) {
|
|
54421
54426
|
return;
|
|
54422
54427
|
}
|
|
54423
54428
|
const headers = (0, utils_1.constructBaggageHeader)();
|
|
@@ -54434,7 +54439,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
54434
54439
|
exports.CustomXMLHttpRequestInstrumentation = CustomXMLHttpRequestInstrumentation;
|
|
54435
54440
|
});
|
|
54436
54441
|
|
|
54437
|
-
},{"../utils":429,"@opentelemetry/instrumentation-xml-http-request":93}],427:[function(require,module,exports){
|
|
54442
|
+
},{"../const":423,"../utils":429,"@opentelemetry/instrumentation-xml-http-request":93}],427:[function(require,module,exports){
|
|
54438
54443
|
(function (factory) {
|
|
54439
54444
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
54440
54445
|
var v = factory(require, exports);
|