slnodejs 6.0.29 → 6.1.56
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/browser-agent/dist/browser-agent-all.js +311 -110
- package/browser-agent/dist/browser-agent-all.min.js +28 -28
- package/browser-agent/package.json +2 -2
- package/package.json +7 -5
- package/tsOutputs/api.d.ts +2 -0
- package/tsOutputs/api.js +2 -1
- package/tsOutputs/build-scanner/ast-utils.js +39 -0
- package/tsOutputs/build-scanner/ast-utils.js.map +1 -0
- package/tsOutputs/build-scanner/build-diff-process.js +15 -9
- package/tsOutputs/build-scanner/build-diff-process.js.map +1 -1
- package/tsOutputs/build-scanner/file-system/actual-file.js +38 -18
- package/tsOutputs/build-scanner/file-system/actual-file.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/browser-instrumenter.js +2 -2
- package/tsOutputs/build-scanner/instrumentation/browser-instrumenter.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/file-instrumenter.js +262 -171
- package/tsOutputs/build-scanner/instrumentation/file-instrumenter.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/markup-file-instrumenter.js +166 -116
- package/tsOutputs/build-scanner/instrumentation/markup-file-instrumenter.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/dry-run-files-mapping.js +1 -1
- package/tsOutputs/build-scanner/js_diff/dry-run-files-mapping.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/file-signature.js +9 -19
- package/tsOutputs/build-scanner/js_diff/file-signature.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/files-mapping.js +6 -23
- package/tsOutputs/build-scanner/js_diff/files-mapping.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/generated-file-signature.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/guess-method-location.js +3 -0
- package/tsOutputs/build-scanner/js_diff/guess-method-location.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/method-signature.js +3 -1
- package/tsOutputs/build-scanner/js_diff/method-signature.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/sl-mapper.js +61 -0
- package/tsOutputs/build-scanner/js_diff/sl-mapper.js.map +1 -1
- package/tsOutputs/build-scanner/js_diff/source-data-enricher.js +1 -1
- package/tsOutputs/build-scanner/js_diff/source-data-enricher.js.map +1 -1
- package/tsOutputs/build-scanner/mappings/contracts.js +3 -0
- package/tsOutputs/build-scanner/mappings/contracts.js.map +1 -0
- package/tsOutputs/build-scanner/mappings/ensure-files-handler.service.js +214 -0
- package/tsOutputs/build-scanner/mappings/ensure-files-handler.service.js.map +1 -0
- package/tsOutputs/build-scanner/mappings/file-element-utils.js +47 -0
- package/tsOutputs/build-scanner/mappings/file-element-utils.js.map +1 -0
- package/tsOutputs/build-scanner/mappings/file-enricher.js +207 -0
- package/tsOutputs/build-scanner/mappings/file-enricher.js.map +1 -0
- package/tsOutputs/build-scanner/mappings/files-data-container.js +52 -0
- package/tsOutputs/build-scanner/mappings/files-data-container.js.map +1 -0
- package/tsOutputs/build-scanner/mappings/scm-file-fixer.js +80 -0
- package/tsOutputs/build-scanner/mappings/scm-file-fixer.js.map +1 -0
- package/tsOutputs/cli-parse/child-process-wrapper.js +3 -3
- package/tsOutputs/cli-parse/child-process-wrapper.js.map +1 -1
- package/tsOutputs/cli-parse/cli.js +12 -9
- package/tsOutputs/cli-parse/cli.js.map +1 -1
- package/tsOutputs/cli-parse/constants/constants.js +9 -9
- package/tsOutputs/cli-parse/constants/constants.js.map +1 -1
- package/tsOutputs/cli-parse/custom-commander.js +13 -0
- package/tsOutputs/cli-parse/custom-commander.js.map +1 -1
- package/tsOutputs/cli-parse/executors/base-executor.js +35 -26
- package/tsOutputs/cli-parse/executors/base-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/build-end-executor.js +1 -1
- package/tsOutputs/cli-parse/executors/build-end-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/build-executor.js +2 -2
- package/tsOutputs/cli-parse/executors/build-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/config-executor.js +5 -2
- package/tsOutputs/cli-parse/executors/config-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/dry-run/base-data.js +4 -4
- package/tsOutputs/cli-parse/executors/dry-run/base-data.js.map +1 -1
- package/tsOutputs/cli-parse/executors/dry-run/build-mapping-data.js +21 -21
- package/tsOutputs/cli-parse/executors/dry-run/build-mapping-data.js.map +1 -1
- package/tsOutputs/cli-parse/executors/dry-run/dry-run-executor.js +25 -23
- package/tsOutputs/cli-parse/executors/dry-run/dry-run-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/dry-run/dry-run-validation.js +1 -1
- package/tsOutputs/cli-parse/executors/dry-run/dry-run-validation.js.map +1 -1
- package/tsOutputs/cli-parse/executors/dry-run/footprints-data.js +79 -19
- package/tsOutputs/cli-parse/executors/dry-run/footprints-data.js.map +1 -1
- package/tsOutputs/cli-parse/executors/dry-run/helper-methods.js +15 -10
- package/tsOutputs/cli-parse/executors/dry-run/helper-methods.js.map +1 -1
- package/tsOutputs/cli-parse/executors/end-execution-executor.js +1 -1
- package/tsOutputs/cli-parse/executors/end-execution-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/integration-build-components-executor.js +1 -1
- package/tsOutputs/cli-parse/executors/integration-build-components-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/mocha-executor.js +1 -1
- package/tsOutputs/cli-parse/executors/mocha-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/nyc-report-executor.js +3 -3
- package/tsOutputs/cli-parse/executors/nyc-report-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/start-execution-executor.js +1 -1
- package/tsOutputs/cli-parse/executors/start-execution-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/test-listener-executor.js +1 -1
- package/tsOutputs/cli-parse/executors/test-listener-executor.js.map +1 -1
- package/tsOutputs/cli-parse/executors/test-runner-build-session-data-builder.js +1 -1
- package/tsOutputs/cli-parse/executors/test-runner-build-session-data-builder.js.map +1 -1
- package/tsOutputs/cli-parse/executors/upload-report-executor.js +1 -1
- package/tsOutputs/cli-parse/executors/upload-report-executor.js.map +1 -1
- package/tsOutputs/cli-parse/utils.js +5 -5
- package/tsOutputs/cli-parse/utils.js.map +1 -1
- package/tsOutputs/common/agent-events/agent-events-controller.js +7 -7
- package/tsOutputs/common/agent-events/agent-events-controller.js.map +1 -1
- package/tsOutputs/common/agent-events/agent-instance-info-builder.js +1 -1
- package/tsOutputs/common/agent-events/agent-instance-info-builder.js.map +1 -1
- package/tsOutputs/common/agent-events/cockpit-notifier.js +1 -1
- package/tsOutputs/common/agent-events/machine-info-builder.js +1 -1
- package/tsOutputs/common/agent-events/machine-info-builder.js.map +1 -1
- package/tsOutputs/common/agent-events/sensitive-data-filter.js +1 -1
- package/tsOutputs/common/agent-events/sensitive-data-filter.js.map +1 -1
- package/tsOutputs/common/agent-instance-data.js +2 -2
- package/tsOutputs/common/agent-instance-data.js.map +1 -1
- package/tsOutputs/common/config-process/config.js +1 -1
- package/tsOutputs/common/config-process/config.js.map +1 -1
- package/tsOutputs/common/constants/constants.js +1 -1
- package/tsOutputs/common/constants/constants.js.map +1 -1
- package/tsOutputs/common/contracts.d.ts +1 -0
- package/tsOutputs/common/coverage-elements/new-id-resolver.js +7 -7
- package/tsOutputs/common/coverage-elements/new-id-resolver.js.map +1 -1
- package/tsOutputs/common/coverage-elements/unique-id-converter.js +4 -4
- package/tsOutputs/common/coverage-elements/unique-id-converter.js.map +1 -1
- package/tsOutputs/common/events-process/events-creator.js +2 -2
- package/tsOutputs/common/events-process/events-creator.js.map +1 -1
- package/tsOutputs/common/events-process/index.js +4 -4
- package/tsOutputs/common/events-process/index.js.map +1 -1
- package/tsOutputs/common/footprints-process/collection-interval.js +2 -2
- package/tsOutputs/common/footprints-process/collection-interval.js.map +1 -1
- package/tsOutputs/common/footprints-process/index.js +2 -2
- package/tsOutputs/common/footprints-process/index.js.map +1 -1
- package/tsOutputs/common/footprints-process/istanbul-to-footprints.js +5 -5
- package/tsOutputs/common/footprints-process/istanbul-to-footprints.js.map +1 -1
- package/tsOutputs/common/footprints-process/production-footprints-handler.js +4 -4
- package/tsOutputs/common/footprints-process/production-footprints-handler.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/base-browser-hits-converter.js +1 -1
- package/tsOutputs/common/footprints-process-v6/base-browser-hits-converter.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/hits-converter.js +12 -3
- package/tsOutputs/common/footprints-process-v6/hits-converter.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/index.js +6 -6
- package/tsOutputs/common/footprints-process-v6/index.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/location-formatter.js +2 -2
- package/tsOutputs/common/footprints-process-v6/location-formatter.js.map +1 -1
- package/tsOutputs/common/footprints-process-v6/source-map-data.js +1 -1
- package/tsOutputs/common/footprints-process-v6/source-map-data.js.map +1 -1
- package/tsOutputs/common/http/backend-proxy.d.ts +1 -0
- package/tsOutputs/common/http/backend-proxy.js +10 -0
- package/tsOutputs/common/http/backend-proxy.js.map +1 -1
- package/tsOutputs/common/http/contracts.d.ts +78 -1
- package/tsOutputs/common/http/contracts.js +1 -1
- package/tsOutputs/common/http/contracts.js.map +1 -1
- package/tsOutputs/common/http/http-client.js +15 -11
- package/tsOutputs/common/http/http-client.js.map +1 -1
- package/tsOutputs/common/http/sl-routes.js +1 -1
- package/tsOutputs/common/http/sl-routes.js.map +1 -1
- package/tsOutputs/common/ignored-files-handler.js +2 -2
- package/tsOutputs/common/ignored-files-handler.js.map +1 -1
- package/tsOutputs/common/logger.js +4 -4
- package/tsOutputs/common/logger.js.map +1 -1
- package/tsOutputs/common/scm/git-cloner.js +138 -0
- package/tsOutputs/common/scm/git-cloner.js.map +1 -0
- package/tsOutputs/common/scm/git-format-builder.js +1 -1
- package/tsOutputs/common/scm/git.js +1 -1
- package/tsOutputs/common/scm/git.js.map +1 -1
- package/tsOutputs/common/short-name-to-file-mapper.js +3 -3
- package/tsOutputs/common/short-name-to-file-mapper.js.map +1 -1
- package/tsOutputs/common/source-map-handler.js +7 -7
- package/tsOutputs/common/source-map-handler.js.map +1 -1
- package/tsOutputs/common/source-map-reader.js +7 -7
- package/tsOutputs/common/source-map-reader.js.map +1 -1
- package/tsOutputs/common/state-tracker-fpv6.js +1 -1
- package/tsOutputs/common/state-tracker-fpv6.js.map +1 -1
- package/tsOutputs/common/state-tracker.js +5 -8
- package/tsOutputs/common/state-tracker.js.map +1 -1
- package/tsOutputs/common/utils/abstract-data-builder.js +2 -2
- package/tsOutputs/common/utils/abstract-data-builder.js.map +1 -1
- package/tsOutputs/common/utils/build-session-data-builder.js +3 -3
- package/tsOutputs/common/utils/build-session-data-builder.js.map +1 -1
- package/tsOutputs/common/utils/files-utils.d.ts +1 -0
- package/tsOutputs/common/utils/files-utils.js +9 -0
- package/tsOutputs/common/utils/files-utils.js.map +1 -1
- package/tsOutputs/common/utils/test-utils/mock-server-utils/mock-server-proxy.js +3 -3
- package/tsOutputs/common/utils/test-utils/mock-server-utils/mock-server-proxy.js.map +1 -1
- package/tsOutputs/common/utils/token-data-builder.js +2 -2
- package/tsOutputs/common/utils/token-data-builder.js.map +1 -1
- package/tsOutputs/common/utils/validation-utils.js +2 -2
- package/tsOutputs/common/utils/validation-utils.js.map +1 -1
- package/tsOutputs/test-listener/agent.js +3 -3
- package/tsOutputs/test-listener/agent.js.map +1 -1
- package/tsOutputs/test-listener/child-process-patcher.js +1 -1
- package/tsOutputs/test-listener/child-process-patcher.js.map +1 -1
- package/tsOutputs/test-listener/execution-process/execution-service-proxy.js +1 -1
- package/tsOutputs/test-listener/execution-process/execution-service-proxy.js.map +1 -1
- package/tsOutputs/test-listener/footprints-process/index.js +2 -2
- package/tsOutputs/test-listener/footprints-process/index.js.map +1 -1
- package/tsOutputs/test-listener/footprints-process/istanbul-to-footprints-base.js +1 -1
- package/tsOutputs/test-listener/footprints-process/istanbul-to-footprints-base.js.map +1 -1
- package/tsOutputs/test-listener/logs-process/index.js +1 -1
- package/tsOutputs/test-listener/logs-process/index.js.map +1 -1
- package/tsOutputs/test-listener/nyc-report-executor-fpv6.js +10 -3
- package/tsOutputs/test-listener/nyc-report-executor-fpv6.js.map +1 -1
- package/tsOutputs/test-listener/nyc-report-executor.js +3 -3
- package/tsOutputs/test-listener/nyc-report-executor.js.map +1 -1
- package/tsOutputs/test-listener/remote-agent.js +1 -1
- package/tsOutputs/test-listener/remote-agent.js.map +1 -1
- package/tsOutputs/test-listener/resolvers/ArgumentResolver.js +2 -2
- package/tsOutputs/test-listener/resolvers/ArgumentResolver.js.map +1 -1
- package/tsOutputs/test-listener/state-tracker-process/index.js +2 -2
- package/tsOutputs/test-listener/state-tracker-process/index.js.map +1 -1
- package/tsOutputs/test-listener/state-tracker-process/state-tracker-proxy.js +1 -1
- package/tsOutputs/test-listener/state-tracker-process/state-tracker-proxy.js.map +1 -1
- package/tsOutputs/test-listener/test-recommendation-handler.js +4 -4
- package/tsOutputs/test-listener/test-recommendation-handler.js.map +1 -1
- package/tsOutputs/test-listener/upload-report-handler.js +1 -1
- package/tsOutputs/test-listener/upload-report-handler.js.map +1 -1
- package/tsOutputs/build-scanner/git-format-builder.js +0 -69
- package/tsOutputs/build-scanner/git-format-builder.js.map +0 -1
|
@@ -23771,30 +23771,36 @@ utils.intFromLE = intFromLE;
|
|
|
23771
23771
|
arguments[4][15][0].apply(exports,arguments)
|
|
23772
23772
|
},{"buffer":23,"dup":15}],109:[function(require,module,exports){
|
|
23773
23773
|
module.exports={
|
|
23774
|
-
"
|
|
23774
|
+
"_args": [
|
|
23775
|
+
[
|
|
23776
|
+
"elliptic@6.5.4",
|
|
23777
|
+
"/var/lib/jenkins/workspace/SL.OnPremise.Agent.JavaScript/browser-agent"
|
|
23778
|
+
]
|
|
23779
|
+
],
|
|
23780
|
+
"_development": true,
|
|
23781
|
+
"_from": "elliptic@6.5.4",
|
|
23775
23782
|
"_id": "elliptic@6.5.4",
|
|
23776
23783
|
"_inBundle": false,
|
|
23777
23784
|
"_integrity": "sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==",
|
|
23778
23785
|
"_location": "/elliptic",
|
|
23779
23786
|
"_phantomChildren": {},
|
|
23780
23787
|
"_requested": {
|
|
23781
|
-
"type": "
|
|
23788
|
+
"type": "version",
|
|
23782
23789
|
"registry": true,
|
|
23783
|
-
"raw": "elliptic
|
|
23790
|
+
"raw": "elliptic@6.5.4",
|
|
23784
23791
|
"name": "elliptic",
|
|
23785
23792
|
"escapedName": "elliptic",
|
|
23786
|
-
"rawSpec": "
|
|
23793
|
+
"rawSpec": "6.5.4",
|
|
23787
23794
|
"saveSpec": null,
|
|
23788
|
-
"fetchSpec": "
|
|
23795
|
+
"fetchSpec": "6.5.4"
|
|
23789
23796
|
},
|
|
23790
23797
|
"_requiredBy": [
|
|
23791
23798
|
"/browserify-sign",
|
|
23792
23799
|
"/create-ecdh"
|
|
23793
23800
|
],
|
|
23794
23801
|
"_resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz",
|
|
23795
|
-
"
|
|
23796
|
-
"
|
|
23797
|
-
"_where": "/var/lib/jenkins/workspace/SL.OnPremise.Agents.JavaScript/browser-agent/node_modules/browserify-sign",
|
|
23802
|
+
"_spec": "6.5.4",
|
|
23803
|
+
"_where": "/var/lib/jenkins/workspace/SL.OnPremise.Agent.JavaScript/browser-agent",
|
|
23798
23804
|
"author": {
|
|
23799
23805
|
"name": "Fedor Indutny",
|
|
23800
23806
|
"email": "fedor@indutny.com"
|
|
@@ -23802,7 +23808,6 @@ module.exports={
|
|
|
23802
23808
|
"bugs": {
|
|
23803
23809
|
"url": "https://github.com/indutny/elliptic/issues"
|
|
23804
23810
|
},
|
|
23805
|
-
"bundleDependencies": false,
|
|
23806
23811
|
"dependencies": {
|
|
23807
23812
|
"bn.js": "^4.11.9",
|
|
23808
23813
|
"brorand": "^1.1.0",
|
|
@@ -23812,7 +23817,6 @@ module.exports={
|
|
|
23812
23817
|
"minimalistic-assert": "^1.0.1",
|
|
23813
23818
|
"minimalistic-crypto-utils": "^1.0.1"
|
|
23814
23819
|
},
|
|
23815
|
-
"deprecated": false,
|
|
23816
23820
|
"description": "EC cryptography",
|
|
23817
23821
|
"devDependencies": {
|
|
23818
23822
|
"brfs": "^2.0.2",
|
|
@@ -43276,7 +43280,7 @@ function extend() {
|
|
|
43276
43280
|
if (window && window.performance && typeof window.performance.now === 'function') {
|
|
43277
43281
|
return performance.now();
|
|
43278
43282
|
}
|
|
43279
|
-
return system_date_1.getSystemDateValueOf();
|
|
43283
|
+
return (0, system_date_1.getSystemDateValueOf)();
|
|
43280
43284
|
};
|
|
43281
43285
|
AgentFactory.createAgentConfiguration = function (configuration) {
|
|
43282
43286
|
var configLoader = new config_loader_1.ConfigLoader();
|
|
@@ -43359,6 +43363,42 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
43359
43363
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
43360
43364
|
};
|
|
43361
43365
|
})();
|
|
43366
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
43367
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43368
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
43369
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
43370
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
43371
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
43372
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43373
|
+
});
|
|
43374
|
+
};
|
|
43375
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
43376
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
43377
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
43378
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
43379
|
+
function step(op) {
|
|
43380
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
43381
|
+
while (_) try {
|
|
43382
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
43383
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
43384
|
+
switch (op[0]) {
|
|
43385
|
+
case 0: case 1: t = op; break;
|
|
43386
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
43387
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
43388
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
43389
|
+
default:
|
|
43390
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
43391
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
43392
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
43393
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
43394
|
+
if (t[2]) _.ops.pop();
|
|
43395
|
+
_.trys.pop(); continue;
|
|
43396
|
+
}
|
|
43397
|
+
op = body.call(thisArg, _);
|
|
43398
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
43399
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
43400
|
+
}
|
|
43401
|
+
};
|
|
43362
43402
|
(function (factory) {
|
|
43363
43403
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
43364
43404
|
var v = factory(require, exports);
|
|
@@ -43398,6 +43438,29 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
43398
43438
|
BrowserAgentInstanceFpv6.prototype.submitFootprints = function () {
|
|
43399
43439
|
this.footprintsProcess.submitQueuedFootprints();
|
|
43400
43440
|
};
|
|
43441
|
+
BrowserAgentInstanceFpv6.prototype.submitFootprintsSync = function () {
|
|
43442
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
43443
|
+
var e_1;
|
|
43444
|
+
return __generator(this, function (_a) {
|
|
43445
|
+
switch (_a.label) {
|
|
43446
|
+
case 0:
|
|
43447
|
+
_a.trys.push([0, 3, , 4]);
|
|
43448
|
+
return [4, this.footprintsProcess.flushCurrentFootprints()];
|
|
43449
|
+
case 1:
|
|
43450
|
+
_a.sent();
|
|
43451
|
+
return [4, this.footprintsProcess.submitQueuedFootprints()];
|
|
43452
|
+
case 2:
|
|
43453
|
+
_a.sent();
|
|
43454
|
+
return [3, 4];
|
|
43455
|
+
case 3:
|
|
43456
|
+
e_1 = _a.sent();
|
|
43457
|
+
this.logger.error("Failed to submit footprint sync '".concat(e_1.message, "'"));
|
|
43458
|
+
return [3, 4];
|
|
43459
|
+
case 4: return [2];
|
|
43460
|
+
}
|
|
43461
|
+
});
|
|
43462
|
+
});
|
|
43463
|
+
};
|
|
43401
43464
|
return BrowserAgentInstanceFpv6;
|
|
43402
43465
|
}(browser_agent_instance_1.BrowserAgentInstance));
|
|
43403
43466
|
exports.BrowserAgentInstanceFpv6 = BrowserAgentInstanceFpv6;
|
|
@@ -43547,6 +43610,14 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
43547
43610
|
BrowserAgentInstance.prototype.submitFootprints = function () {
|
|
43548
43611
|
this.footprintsQueueSender.sendAll();
|
|
43549
43612
|
};
|
|
43613
|
+
BrowserAgentInstance.prototype.submitFootprintsSync = function () {
|
|
43614
|
+
try {
|
|
43615
|
+
this.footprintsQueueSender.sendAllSync();
|
|
43616
|
+
}
|
|
43617
|
+
catch (e) {
|
|
43618
|
+
this.logger.error("Failed to submit footprint sync '".concat(e.message, "'"));
|
|
43619
|
+
}
|
|
43620
|
+
};
|
|
43550
43621
|
BrowserAgentInstance.prototype.isStarted = function () {
|
|
43551
43622
|
return this._isStarted;
|
|
43552
43623
|
};
|
|
@@ -43642,7 +43713,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
43642
43713
|
};
|
|
43643
43714
|
BrowserAgent.prototype.createInstance = function (configuration) {
|
|
43644
43715
|
if (this.instanceAddedForBsid[configuration.buildSessionId]) {
|
|
43645
|
-
this.logger.info("Already has instance for bsid '"
|
|
43716
|
+
this.logger.info("Already has instance for bsid '".concat(configuration.buildSessionId, "'"));
|
|
43646
43717
|
return;
|
|
43647
43718
|
}
|
|
43648
43719
|
try {
|
|
@@ -43653,11 +43724,11 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
43653
43724
|
this.instances.push(browserAgent);
|
|
43654
43725
|
}
|
|
43655
43726
|
else {
|
|
43656
|
-
this.logger.error("Invalid configuration for app: "
|
|
43727
|
+
this.logger.error("Invalid configuration for app: ".concat(configuration.appName, ",\n build: ").concat(configuration.buildName, ", branch: ").concat(configuration.branchName, "\n Sealights agent disabled"));
|
|
43657
43728
|
}
|
|
43658
43729
|
}
|
|
43659
43730
|
catch (e) {
|
|
43660
|
-
this.logger.error("Error while creating agent for app: "
|
|
43731
|
+
this.logger.error("Error while creating agent for app: ".concat(configuration.appName, ", build: ").concat(configuration.buildName, ",\n branch: ").concat(configuration.branchName, ". Error ").concat(e));
|
|
43661
43732
|
}
|
|
43662
43733
|
};
|
|
43663
43734
|
BrowserAgent.prototype.start = function () {
|
|
@@ -43686,6 +43757,18 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
43686
43757
|
BrowserAgent.prototype.setCurrentTestIdentifier = function (identifier) {
|
|
43687
43758
|
this.instances.forEach(function (instance) { return instance.setCurrentTestIdentifier(identifier); });
|
|
43688
43759
|
};
|
|
43760
|
+
BrowserAgent.prototype.sendAllFootprints = function () {
|
|
43761
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
43762
|
+
return __generator(this, function (_a) {
|
|
43763
|
+
switch (_a.label) {
|
|
43764
|
+
case 0: return [4, Promise.all(this.instances.map(function (instance) { return instance.submitFootprintsSync(); }))];
|
|
43765
|
+
case 1:
|
|
43766
|
+
_a.sent();
|
|
43767
|
+
return [2];
|
|
43768
|
+
}
|
|
43769
|
+
});
|
|
43770
|
+
});
|
|
43771
|
+
};
|
|
43689
43772
|
return BrowserAgent;
|
|
43690
43773
|
}());
|
|
43691
43774
|
exports.BrowserAgent = BrowserAgent;
|
|
@@ -43773,7 +43856,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
43773
43856
|
}
|
|
43774
43857
|
callback = function (err) {
|
|
43775
43858
|
if (err) {
|
|
43776
|
-
_this.logger.error("Failed to submit final events, Error : '"
|
|
43859
|
+
_this.logger.error("Failed to submit final events, Error : '".concat(err, "'"));
|
|
43777
43860
|
}
|
|
43778
43861
|
};
|
|
43779
43862
|
while (this.eventsQueue.getQueueSize() > 0) {
|
|
@@ -43829,7 +43912,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
43829
43912
|
BrowserHitsCollector.prototype.getGlobalCoverageObject = function () {
|
|
43830
43913
|
if (!this.globalCoverageObject) {
|
|
43831
43914
|
var coverageObject = '$SealightsCoverage';
|
|
43832
|
-
var coverageObjectForBSID = coverageObject
|
|
43915
|
+
var coverageObjectForBSID = "".concat(coverageObject, "_").concat(this.buildSessionId);
|
|
43833
43916
|
this.globalCoverageObject = window[coverageObjectForBSID] || window[coverageObject];
|
|
43834
43917
|
}
|
|
43835
43918
|
return this.globalCoverageObject;
|
|
@@ -43905,7 +43988,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
43905
43988
|
}
|
|
43906
43989
|
CodeCoverageManager.prototype.findCoverageContainer = function () {
|
|
43907
43990
|
var coverageObject = '$SealightsCoverage';
|
|
43908
|
-
var coverageObjectForBSID = coverageObject
|
|
43991
|
+
var coverageObjectForBSID = "".concat(coverageObject, "_").concat(this.configuration.buildSessionId);
|
|
43909
43992
|
return window[coverageObjectForBSID] || window[coverageObject];
|
|
43910
43993
|
};
|
|
43911
43994
|
CodeCoverageManager.prototype.getFootprints = function (testInfo) {
|
|
@@ -44672,10 +44755,10 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
44672
44755
|
return request;
|
|
44673
44756
|
};
|
|
44674
44757
|
FootprintsQueueSender.prototype.sleep = function (millis) {
|
|
44675
|
-
var start = system_date_1.getSystemDateValueOf();
|
|
44758
|
+
var start = (0, system_date_1.getSystemDateValueOf)();
|
|
44676
44759
|
var end = null;
|
|
44677
44760
|
do {
|
|
44678
|
-
end = system_date_1.getSystemDateValueOf();
|
|
44761
|
+
end = (0, system_date_1.getSystemDateValueOf)();
|
|
44679
44762
|
} while (end - start < millis);
|
|
44680
44763
|
};
|
|
44681
44764
|
FootprintsQueueSender.prototype.hasApps = function (request) {
|
|
@@ -44689,7 +44772,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
44689
44772
|
this.window.slMappings = this.window.slMappings || {};
|
|
44690
44773
|
if (!this.window.slMappings[this.configuration.buildSessionId]) {
|
|
44691
44774
|
this.lightBackendProxy.getSlMappingFromServer(this.configuration.buildSessionId).then(function (mapping) { return _this.window.slMappings[_this.configuration.buildSessionId] = mapping; }, function (err) {
|
|
44692
|
-
var errMsg = "Error while trying to load slMapping from server '"
|
|
44775
|
+
var errMsg = "Error while trying to load slMapping from server '".concat(err, "'");
|
|
44693
44776
|
_this.logger.error(errMsg);
|
|
44694
44777
|
cockpit_notifier_1.CockpitNotifier.sendGenericMessage(errMsg);
|
|
44695
44778
|
_this.window.slMappings[_this.configuration.buildSessionId] = {};
|
|
@@ -44742,7 +44825,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
44742
44825
|
this.resetState();
|
|
44743
44826
|
var result = this.createFootprintsFile();
|
|
44744
44827
|
var app = result.apps[0];
|
|
44745
|
-
var localTime = mockTime ? mockTime : system_date_1.getSystemDateValueOf();
|
|
44828
|
+
var localTime = mockTime ? mockTime : (0, system_date_1.getSystemDateValueOf)();
|
|
44746
44829
|
var test = this.getOrCreateTestData(testName, executionId, localTime, result);
|
|
44747
44830
|
for (var moduleName in istanbulFootprints) {
|
|
44748
44831
|
var istanbulModule = istanbulFootprints[moduleName];
|
|
@@ -44953,7 +45036,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
44953
45036
|
return result;
|
|
44954
45037
|
};
|
|
44955
45038
|
IstanbulToFootprintsConvertorV3.prototype.formatLoc = function (loc) {
|
|
44956
|
-
return location_formatter_1.formatLocation(loc, this.logger);
|
|
45039
|
+
return (0, location_formatter_1.formatLocation)(loc, this.logger);
|
|
44957
45040
|
};
|
|
44958
45041
|
return IstanbulToFootprintsConvertorV3;
|
|
44959
45042
|
}());
|
|
@@ -45240,7 +45323,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
45240
45323
|
return;
|
|
45241
45324
|
var logObject = {
|
|
45242
45325
|
level: logLevel.toUpperCase(),
|
|
45243
|
-
ts: system_date_1.getSystemDate().toISOString(),
|
|
45326
|
+
ts: (0, system_date_1.getSystemDate)().toISOString(),
|
|
45244
45327
|
msg: logMsg ? logMsg.toString() : undefined
|
|
45245
45328
|
};
|
|
45246
45329
|
var ctx = this.context;
|
|
@@ -45478,7 +45561,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
45478
45561
|
return;
|
|
45479
45562
|
}
|
|
45480
45563
|
footprintsItem = footprintsItem || new footprints_item_data_1.FootprintsItemData();
|
|
45481
|
-
footprintsItem.localTime = system_date_1.getSystemDateValueOf();
|
|
45564
|
+
footprintsItem.localTime = (0, system_date_1.getSystemDateValueOf)();
|
|
45482
45565
|
this.queue.push(footprintsItem);
|
|
45483
45566
|
this.queueSize++;
|
|
45484
45567
|
this.checkQueueSize();
|
|
@@ -45884,7 +45967,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
45884
45967
|
}
|
|
45885
45968
|
NoopJsonClient.prototype.send = function (url, data, onSuccess, onError, async, httpMethod, contentType) {
|
|
45886
45969
|
if (async === void 0) { async = true; }
|
|
45887
|
-
this.logger.info("noop json client not executing http request for url '"
|
|
45970
|
+
this.logger.info("noop json client not executing http request for url '".concat(url));
|
|
45888
45971
|
onSuccess({});
|
|
45889
45972
|
};
|
|
45890
45973
|
return NoopJsonClient;
|
|
@@ -46031,7 +46114,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46031
46114
|
return [3, 4];
|
|
46032
46115
|
case 3:
|
|
46033
46116
|
err_1 = _a.sent();
|
|
46034
|
-
errMsg = "Error while trying to load slMapping from server '"
|
|
46117
|
+
errMsg = "Error while trying to load slMapping from server '".concat(err_1, "'");
|
|
46035
46118
|
this.logger.error(errMsg);
|
|
46036
46119
|
cockpit_notifier_1.CockpitNotifier.sendGenericMessage(errMsg);
|
|
46037
46120
|
this.window.slMappings[buildSessionId] = {};
|
|
@@ -46106,8 +46189,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46106
46189
|
StateTracker.prototype.checkForActiveExecution = function (async) {
|
|
46107
46190
|
var _this = this;
|
|
46108
46191
|
if (async === void 0) { async = true; }
|
|
46109
|
-
var url = this.configuration.server +
|
|
46110
|
-
this.logger.info("[TO TST] - checkMappingStatus. Url '"
|
|
46192
|
+
var url = this.configuration.server + "/v4/testExecution/".concat(this.configuration.labId);
|
|
46193
|
+
this.logger.info("[TO TST] - checkMappingStatus. Url '".concat(url, "'."));
|
|
46111
46194
|
var onSuccess = function (data) {
|
|
46112
46195
|
_this.logger.info('[ACTIVE EXECUTION] Checking for active execution. No errors');
|
|
46113
46196
|
if (data == null) {
|
|
@@ -46124,7 +46207,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46124
46207
|
_this.hasActiveExecution = true;
|
|
46125
46208
|
}
|
|
46126
46209
|
else if (data.execution.status == contracts_1.ExecutionStatus.InProgress) {
|
|
46127
|
-
_this.logger.info("[ACTIVE EXECUTION] Active execution for labid '"
|
|
46210
|
+
_this.logger.info("[ACTIVE EXECUTION] Active execution for labid '".concat(_this.configuration.labId, "'"));
|
|
46128
46211
|
_this.hasActiveExecution = true;
|
|
46129
46212
|
}
|
|
46130
46213
|
else {
|
|
@@ -46573,11 +46656,11 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46573
46656
|
return [4, this.backendProxy.submitAgentEvent(request)];
|
|
46574
46657
|
case 2:
|
|
46575
46658
|
_a.sent();
|
|
46576
|
-
this._logger.info("Submitted '"
|
|
46659
|
+
this._logger.info("Submitted '".concat(request.events.length, "' events successfully"));
|
|
46577
46660
|
return [2, true];
|
|
46578
46661
|
case 3:
|
|
46579
46662
|
e_1 = _a.sent();
|
|
46580
|
-
this._logger.warn("Failed to submit '"
|
|
46663
|
+
this._logger.warn("Failed to submit '".concat(request.events.length, "' events. Error ").concat(e_1));
|
|
46581
46664
|
return [2, false];
|
|
46582
46665
|
case 4: return [2];
|
|
46583
46666
|
}
|
|
@@ -46629,10 +46712,10 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46629
46712
|
AgentEventsController.prototype.submitEvent = function (code) {
|
|
46630
46713
|
var _this = this;
|
|
46631
46714
|
this.submittedEventsMap.set(code, true);
|
|
46632
|
-
this._logger.debug("About to send event with code '"
|
|
46715
|
+
this._logger.debug("About to send event with code '".concat(code, "', current time: ").concat((0, system_date_1.getSystemDateValueOf)()));
|
|
46633
46716
|
var event = this.buildEvent(code);
|
|
46634
46717
|
this.submitAgentEventRequest(event).then(function () {
|
|
46635
|
-
return _this._logger.debug("Event with code '"
|
|
46718
|
+
return _this._logger.debug("Event with code '".concat(code, "' submitted successfully"));
|
|
46636
46719
|
});
|
|
46637
46720
|
};
|
|
46638
46721
|
AgentEventsController.prototype.submitEventOnce = function (code) {
|
|
@@ -46655,11 +46738,11 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46655
46738
|
return;
|
|
46656
46739
|
}
|
|
46657
46740
|
var events = messages.map(function (msg) { return _this.buildEvent(agent_events_conracts_1.AgentEventCode.GENERIC_ERROR, msg); });
|
|
46658
|
-
this.submitAgentEventRequest(events).then(function () { return _this.logger.debug("'"
|
|
46741
|
+
this.submitAgentEventRequest(events).then(function () { return _this.logger.debug("'".concat(events.length, "' events were submitted successfully")); });
|
|
46659
46742
|
};
|
|
46660
46743
|
AgentEventsController.prototype.sendMessage = function (message, code) {
|
|
46661
46744
|
var _this = this;
|
|
46662
|
-
this.logger.debug("About to send message '"
|
|
46745
|
+
this.logger.debug("About to send message '".concat(message, "' with code '").concat(code, "', current time: ").concat((0, system_date_1.getSystemDateValueOf)()));
|
|
46663
46746
|
var messageEvent = this.buildEvent(code, message);
|
|
46664
46747
|
this.submitAgentEventRequest(messageEvent).then(function () {
|
|
46665
46748
|
return _this.logger.debug('Message submitted successfully');
|
|
@@ -46735,7 +46818,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46735
46818
|
AgentEventsController.prototype.buildEvent = function (type, data) {
|
|
46736
46819
|
return {
|
|
46737
46820
|
type: type,
|
|
46738
|
-
utcTimestamp_ms: system_date_1.getSystemDateValueOf(),
|
|
46821
|
+
utcTimestamp_ms: (0, system_date_1.getSystemDateValueOf)(),
|
|
46739
46822
|
data: data
|
|
46740
46823
|
};
|
|
46741
46824
|
};
|
|
@@ -46821,7 +46904,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46821
46904
|
var slEnvVars = {};
|
|
46822
46905
|
Object.keys(process.env).forEach(function (key) {
|
|
46823
46906
|
if (key.indexOf(SEALIGHTS_ENV_VAR_PREFIX) === 0) {
|
|
46824
|
-
slEnvVars[key] = sensitive_data_filter_1.isSensitive(key, process.env[key], _this.logger) ?
|
|
46907
|
+
slEnvVars[key] = (0, sensitive_data_filter_1.isSensitive)(key, process.env[key], _this.logger) ?
|
|
46825
46908
|
AgentInstanceInfoBuilder.SECRET_VALUE_PLACEHOLDER : process.env[key];
|
|
46826
46909
|
}
|
|
46827
46910
|
});
|
|
@@ -47022,7 +47105,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
47022
47105
|
};
|
|
47023
47106
|
CockpitNotifier.verifyControllerInitialized = function () {
|
|
47024
47107
|
if (!CockpitNotifier.controller && !CockpitNotifier.isDryRunMode) {
|
|
47025
|
-
throw new Error('\'Agent started\' event
|
|
47108
|
+
throw new Error('\'Agent started\' event was not sent. Disabling!');
|
|
47026
47109
|
}
|
|
47027
47110
|
};
|
|
47028
47111
|
CockpitNotifier.reset = function () {
|
|
@@ -47106,7 +47189,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
47106
47189
|
this.info = {};
|
|
47107
47190
|
}
|
|
47108
47191
|
MachineInfoBuilder.prototype.fillData = function () {
|
|
47109
|
-
var currentDate = system_date_1.getSystemDate();
|
|
47192
|
+
var currentDate = (0, system_date_1.getSystemDate)();
|
|
47110
47193
|
this.info.machineName = os.hostname();
|
|
47111
47194
|
this.info.arch = os.arch();
|
|
47112
47195
|
this.info.os = os.platform();
|
|
@@ -47224,7 +47307,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
47224
47307
|
for (var _i = 0, _a = Object.entries(secretKeysRegexes); _i < _a.length; _i++) {
|
|
47225
47308
|
var _b = _a[_i], key = _b[0], regex = _b[1];
|
|
47226
47309
|
if (new RegExp(regex).test(value)) {
|
|
47227
|
-
logger.debug("Value for key "
|
|
47310
|
+
logger.debug("Value for key ".concat(envVar, " filtered out since it suspected to contains data fpr ").concat(key));
|
|
47228
47311
|
return true;
|
|
47229
47312
|
}
|
|
47230
47313
|
}
|
|
@@ -47266,12 +47349,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
47266
47349
|
var packageJsonFilePath = files_utils_1.FilesUtils.findFileUp('package.json', __dirname);
|
|
47267
47350
|
if (packageJsonFilePath) {
|
|
47268
47351
|
try {
|
|
47269
|
-
var packageJson = fs_1.readFileSync(packageJsonFilePath).toString();
|
|
47352
|
+
var packageJson = (0, fs_1.readFileSync)(packageJsonFilePath).toString();
|
|
47270
47353
|
var parsed = JSON.parse(packageJson);
|
|
47271
47354
|
return parsed.version;
|
|
47272
47355
|
}
|
|
47273
47356
|
catch (e) {
|
|
47274
|
-
console.warn("Failed to resolve agent version, Error: '"
|
|
47357
|
+
console.warn("Failed to resolve agent version, Error: '".concat(e));
|
|
47275
47358
|
return null;
|
|
47276
47359
|
}
|
|
47277
47360
|
}
|
|
@@ -47745,7 +47828,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
47745
47828
|
_this.extendedFootprints = new config_system_1.BooleanConfigKey(false, false);
|
|
47746
47829
|
_this.projectRoot = new config_system_1.StringConfigKey(false);
|
|
47747
47830
|
_this.enforceFullRun = new config_system_1.BooleanConfigKey(false, false);
|
|
47748
|
-
_this.footprintsEnableV6 = new config_system_1.BooleanConfigKey(false,
|
|
47831
|
+
_this.footprintsEnableV6 = new config_system_1.BooleanConfigKey(false, true);
|
|
47749
47832
|
_this.footprintsBufferThresholdMb = new config_system_1.NumberConfigKey(false, 10);
|
|
47750
47833
|
_this.executionQueryIntervalSecs = new config_system_1.NumberConfigKey(false, 10);
|
|
47751
47834
|
_this.footprintsQueueSize = new config_system_1.NumberConfigKey(false, 2);
|
|
@@ -47932,7 +48015,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
47932
48015
|
Constants.CALLBACK = 'callback';
|
|
47933
48016
|
Constants.PULL_REQUEST_PARAMS = 'pullRequestParams';
|
|
47934
48017
|
Constants.SL_WINDOW_OBJECT = 'window.$Sealights';
|
|
47935
|
-
Constants.SKIP_BROWSER_AGENT = Constants.SL_WINDOW_OBJECT
|
|
48018
|
+
Constants.SKIP_BROWSER_AGENT = "".concat(Constants.SL_WINDOW_OBJECT, ".skipSlAgent");
|
|
47936
48019
|
Constants.Messages = (_a = (function () {
|
|
47937
48020
|
function class_1() {
|
|
47938
48021
|
}
|
|
@@ -48366,24 +48449,24 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
48366
48449
|
var files_utils_1 = require("../utils/files-utils");
|
|
48367
48450
|
var istanbul_unique_id_converter_1 = require("./istanbul-unique-id-converter");
|
|
48368
48451
|
function resolveNewId(uniqueIdKey, moduleName, relativePath, coverageObject, logger) {
|
|
48369
|
-
moduleName = path_1.normalize(moduleName);
|
|
48452
|
+
moduleName = (0, path_1.normalize)(moduleName);
|
|
48370
48453
|
var moduleData = resolveModule(coverageObject, moduleName, logger);
|
|
48371
48454
|
if (!moduleData) {
|
|
48372
48455
|
return;
|
|
48373
48456
|
}
|
|
48374
48457
|
if (!moduleData.uniqueIdsMap) {
|
|
48375
|
-
logger.debug("building uniqueids map for "
|
|
48376
|
-
var before_1 = system_date_1.getSystemDateValueOf();
|
|
48377
|
-
logger.debug("file "
|
|
48458
|
+
logger.debug("building uniqueids map for ".concat(moduleData.path));
|
|
48459
|
+
var before_1 = (0, system_date_1.getSystemDateValueOf)();
|
|
48460
|
+
logger.debug("file ".concat(moduleData.path, " not contains uniqueIdMaps, trying to reload"));
|
|
48378
48461
|
createSLMapping(moduleData.path, relativePath, coverageObject, logger);
|
|
48379
|
-
var after_1 = system_date_1.getSystemDateValueOf();
|
|
48462
|
+
var after_1 = (0, system_date_1.getSystemDateValueOf)();
|
|
48380
48463
|
logger.debug('*******************************create unique id map ******************************************');
|
|
48381
48464
|
logger.debug(after_1 - before_1);
|
|
48382
48465
|
logger.debug('*******************************create unique id map ******************************************');
|
|
48383
48466
|
}
|
|
48384
48467
|
var newUniqueId = moduleData.uniqueIdsMap[uniqueIdKey];
|
|
48385
48468
|
if (!newUniqueId) {
|
|
48386
|
-
logger.error("could not generate new uniqueId for '"
|
|
48469
|
+
logger.error("could not generate new uniqueId for '".concat(uniqueIdKey, "'"));
|
|
48387
48470
|
}
|
|
48388
48471
|
return newUniqueId;
|
|
48389
48472
|
}
|
|
@@ -48392,7 +48475,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
48392
48475
|
var withLeftSlashes = files_utils_1.FilesUtils.adjustPathSlashes(moduleName);
|
|
48393
48476
|
var moduleData = coverageObject[moduleName] || coverageObject[withLeftSlashes];
|
|
48394
48477
|
if (!moduleData) {
|
|
48395
|
-
logger.warn("Coverage object not contains data for "
|
|
48478
|
+
logger.warn("Coverage object not contains data for ".concat(moduleName, " or ").concat(withLeftSlashes));
|
|
48396
48479
|
}
|
|
48397
48480
|
return moduleData;
|
|
48398
48481
|
}
|
|
@@ -48657,8 +48740,8 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
48657
48740
|
this.removeDuplicateElements(this._methodsArray);
|
|
48658
48741
|
this.removeDuplicateElements(this._branchesArray);
|
|
48659
48742
|
this.sortElements();
|
|
48660
|
-
this.logger.debug("sorted "
|
|
48661
|
-
this.logger.debug("sorted "
|
|
48743
|
+
this.logger.debug("sorted ".concat(this._branchesArray.length, " branches"));
|
|
48744
|
+
this.logger.debug("sorted ".concat(this._methodsArray.length, " methods"));
|
|
48662
48745
|
this.fillUniqueIdsMap();
|
|
48663
48746
|
};
|
|
48664
48747
|
UniqueIdConverter.prototype.setAndInitFile = function (file) {
|
|
@@ -48699,7 +48782,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
48699
48782
|
var currentIndex = indexesArray[i];
|
|
48700
48783
|
var currentElement = array[currentIndex];
|
|
48701
48784
|
currentElement.uniqueId = currentElement.filename + delimiter + line + ',' + i;
|
|
48702
|
-
this.logger.debug("[UniqueIdConverter] uniqueId "
|
|
48785
|
+
this.logger.debug("[UniqueIdConverter] uniqueId ".concat(currentElement.uniqueIdKey, " converted to \n ").concat(currentElement.uniqueId));
|
|
48703
48786
|
this._uniqueIdsMap[currentElement.uniqueIdKey] = currentElement.uniqueId;
|
|
48704
48787
|
if (currentElement.uniqueIdKey_decl) {
|
|
48705
48788
|
this._uniqueIdsMap[currentElement.uniqueIdKey_decl] = currentElement.uniqueId;
|
|
@@ -48809,7 +48892,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
48809
48892
|
if (branch.isStartsAfter(method) && branch.isEndsAfter(method)) {
|
|
48810
48893
|
return 1;
|
|
48811
48894
|
}
|
|
48812
|
-
this.logger.warn("branch started at '"
|
|
48895
|
+
this.logger.warn("branch started at '".concat(branch.startPosition.line, ",").concat(branch.startPosition.column, "' in file '").concat(this._filename, "' located across methods, probably some error"));
|
|
48813
48896
|
return 0;
|
|
48814
48897
|
};
|
|
48815
48898
|
UniqueIdConverter.prototype.aggregateElementsByLine = function (elements) {
|
|
@@ -48891,7 +48974,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
48891
48974
|
}
|
|
48892
48975
|
EventsCreator.createTestStartedEvent = function (executionId, framework, testName, duration) {
|
|
48893
48976
|
var eventBase = this.createEvent(events_contracts_1.EventTypes.TestStart, executionId, framework);
|
|
48894
|
-
var startTimeStamp = system_date_1.getSystemDateValueOf() - duration;
|
|
48977
|
+
var startTimeStamp = (0, system_date_1.getSystemDateValueOf)() - duration;
|
|
48895
48978
|
eventBase.localTime = startTimeStamp;
|
|
48896
48979
|
return __assign(__assign({}, eventBase), { testName: testName });
|
|
48897
48980
|
};
|
|
@@ -48904,7 +48987,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
48904
48987
|
type: type,
|
|
48905
48988
|
executionId: executionId,
|
|
48906
48989
|
framework: framework,
|
|
48907
|
-
localTime: system_date_1.getSystemDateValueOf()
|
|
48990
|
+
localTime: (0, system_date_1.getSystemDateValueOf)()
|
|
48908
48991
|
};
|
|
48909
48992
|
};
|
|
48910
48993
|
return EventsCreator;
|
|
@@ -48987,7 +49070,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
48987
49070
|
this.init();
|
|
48988
49071
|
}
|
|
48989
49072
|
EventsProcess.prototype.enqueueEvent = function (evt) {
|
|
48990
|
-
evt.localTime = evt.localTime || system_date_1.getSystemDateValueOf();
|
|
49073
|
+
evt.localTime = evt.localTime || (0, system_date_1.getSystemDateValueOf)();
|
|
48991
49074
|
this._eventsQueue.enqueue(evt);
|
|
48992
49075
|
if (this.isRunning && this.configuration.sendEvents.value && this.configuration.enabled.value) {
|
|
48993
49076
|
this.ensureKeepaliveThreadRunning();
|
|
@@ -49057,7 +49140,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
49057
49140
|
_this.removeRequest(promise);
|
|
49058
49141
|
});
|
|
49059
49142
|
promise.catch(function (err) {
|
|
49060
|
-
_this._logger.warn("Error while submitting events, "
|
|
49143
|
+
_this._logger.warn("Error while submitting events, ".concat(err));
|
|
49061
49144
|
_this._eventsQueue.requeue(items);
|
|
49062
49145
|
_this.removeRequest(promise);
|
|
49063
49146
|
});
|
|
@@ -49081,7 +49164,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
49081
49164
|
case 3: return [3, 5];
|
|
49082
49165
|
case 4:
|
|
49083
49166
|
e_2 = _a.sent();
|
|
49084
|
-
this._logger.warn("Error while sending events synchronously. "
|
|
49167
|
+
this._logger.warn("Error while sending events synchronously. ".concat(e_2));
|
|
49085
49168
|
return [3, 5];
|
|
49086
49169
|
case 5: return [2];
|
|
49087
49170
|
}
|
|
@@ -49100,7 +49183,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
49100
49183
|
events: items,
|
|
49101
49184
|
meta: {
|
|
49102
49185
|
sequence: ++this.sequence,
|
|
49103
|
-
generated: system_date_1.getSystemDateValueOf(),
|
|
49186
|
+
generated: (0, system_date_1.getSystemDateValueOf)(),
|
|
49104
49187
|
agentId: this._agentInstanceData.agentId,
|
|
49105
49188
|
},
|
|
49106
49189
|
};
|
|
@@ -49252,7 +49335,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
49252
49335
|
return locations[leaveIdx].start || locations[leaveIdx].st;
|
|
49253
49336
|
};
|
|
49254
49337
|
BaseBrowserHitsConverter.prototype.formatLoc = function (loc) {
|
|
49255
|
-
return location_formatter_1.formatLocation(loc, this.logger);
|
|
49338
|
+
return (0, location_formatter_1.formatLocation)(loc, this.logger);
|
|
49256
49339
|
};
|
|
49257
49340
|
BaseBrowserHitsConverter.prototype.tryGetUniqueIdFromSlMapping = function (rawUniqueId) {
|
|
49258
49341
|
rawUniqueId = files_utils_1.FilesUtils.adjustPathSlashes(rawUniqueId);
|
|
@@ -49697,7 +49780,16 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
49697
49780
|
return hit.loc.start;
|
|
49698
49781
|
};
|
|
49699
49782
|
HitsConverter.prototype.getLeaveStartLoc = function (hit, leaveIdx) {
|
|
49700
|
-
|
|
49783
|
+
var parentPosition = hit.branchData.loc.start;
|
|
49784
|
+
var position = hit.branchData.locations[leaveIdx].start;
|
|
49785
|
+
var newInstrumentation = (parentPosition.line != position.line) || (parentPosition.column != position.column);
|
|
49786
|
+
if (hit.branchData.type === 'if') {
|
|
49787
|
+
var message = newInstrumentation ? 'Instrumented done by istanbul-lib-instrumenter greater or equal than 5.1.0 enforcing parent positions for the else leave' :
|
|
49788
|
+
'Instrumented done by istanbul-lib-instrumenter lower than 5.1.0 using parent positions for the else leave';
|
|
49789
|
+
this.logger.debug(message);
|
|
49790
|
+
return parentPosition;
|
|
49791
|
+
}
|
|
49792
|
+
return position;
|
|
49701
49793
|
};
|
|
49702
49794
|
HitsConverter.prototype.createBranchIds = function (hitFunctions, relativePath, absolutePath) {
|
|
49703
49795
|
var _this = this;
|
|
@@ -49713,7 +49805,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
49713
49805
|
var idParts = this.resolveIdParts(startLoc, relativePath, absolutePath);
|
|
49714
49806
|
if (sl_env_vars_1.SlEnvVars.isUseNewUniqueId()) {
|
|
49715
49807
|
var uniqueIdKey = idParts.relativePath + '@' + this.formatLoc(idParts.start);
|
|
49716
|
-
var uniqueId = new_id_resolver_1.resolveNewId(uniqueIdKey, idParts.absolutePath, idParts.relativePath, hits_collector_1.HitsCollector.resolveGlobalCoverageObject(), this.logger);
|
|
49808
|
+
var uniqueId = (0, new_id_resolver_1.resolveNewId)(uniqueIdKey, idParts.absolutePath, idParts.relativePath, hits_collector_1.HitsCollector.resolveGlobalCoverageObject(), this.logger);
|
|
49717
49809
|
if (uniqueId) {
|
|
49718
49810
|
return uniqueId;
|
|
49719
49811
|
}
|
|
@@ -49725,7 +49817,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
49725
49817
|
var parts = this.resolveIdParts(startLoc, relativePath, absolutePath);
|
|
49726
49818
|
if (sl_env_vars_1.SlEnvVars.isUseNewUniqueId()) {
|
|
49727
49819
|
var uniqueIdKey = parts.relativePath + '|' + this.formatLoc(parts.start) + '|' + leaveIndex;
|
|
49728
|
-
uniqueId = new_id_resolver_1.resolveNewId(uniqueIdKey, parts.absolutePath, parts.relativePath, hits_collector_1.HitsCollector.resolveGlobalCoverageObject(), this.logger);
|
|
49820
|
+
uniqueId = (0, new_id_resolver_1.resolveNewId)(uniqueIdKey, parts.absolutePath, parts.relativePath, hits_collector_1.HitsCollector.resolveGlobalCoverageObject(), this.logger);
|
|
49729
49821
|
}
|
|
49730
49822
|
if (!uniqueId) {
|
|
49731
49823
|
uniqueId = parts.relativePath + HitsConverter.BRANCH_ID_DEL + this.formatLoc(parts.start) + HitsConverter.BRANCH_ID_DEL + leaveIndex;
|
|
@@ -49826,7 +49918,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
49826
49918
|
this.collectionInterval.next();
|
|
49827
49919
|
var hitFilesData = this.hitsCollector.getHitElements();
|
|
49828
49920
|
if (hitFilesData.length) {
|
|
49829
|
-
this.logger.info("Collecting hits for '"
|
|
49921
|
+
this.logger.info("Collecting hits for '".concat(hitFilesData.length, "' files"));
|
|
49830
49922
|
var convertedHits = this.hitsConverter.convertHits(hitFilesData);
|
|
49831
49923
|
this.footprintsBuffer.addHit(convertedHits, this.collectionInterval.toJson(), executionId, testName, this.isInitFootprints(), isFinalFootprints);
|
|
49832
49924
|
}
|
|
@@ -49871,11 +49963,11 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
49871
49963
|
return [4, this.backendProxy.submitFootprintsV6(packet, this.currentExecutionBsid, this.stateTracker.getTestStage(), this.cfg.buildSessionId.value)];
|
|
49872
49964
|
case 2:
|
|
49873
49965
|
_a.sent();
|
|
49874
|
-
this.logger.info("Footprints packet submitted successfully. packet contains "
|
|
49966
|
+
this.logger.info("Footprints packet submitted successfully. packet contains ".concat(packet.methods.length, " methods, ").concat(packet.branches.length, " branches in ").concat(packet.executions.length, " executions"));
|
|
49875
49967
|
return [3, 5];
|
|
49876
49968
|
case 3:
|
|
49877
49969
|
e_1 = _a.sent();
|
|
49878
|
-
this.logger.error("Error while submitting footprints '"
|
|
49970
|
+
this.logger.error("Error while submitting footprints '".concat(e_1, "'"));
|
|
49879
49971
|
cockpit_notifier_1.CockpitNotifier.sendEvent(agent_events_conracts_1.AgentEventCode.FOOTPRINTS_LOSS);
|
|
49880
49972
|
return [3, 5];
|
|
49881
49973
|
case 4:
|
|
@@ -49963,15 +50055,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
49963
50055
|
_this.submitQueuedFootprints();
|
|
49964
50056
|
});
|
|
49965
50057
|
this.stateTracker.on(state_tracker_1.StateTracker.EXECUTION_BSID_CHANGED, function (prevExecution, newBuildSession) {
|
|
49966
|
-
_this.logger.warn("Execution points to different build session '"
|
|
50058
|
+
_this.logger.warn("Execution points to different build session '".concat(newBuildSession, "'. Collecting and submitting previous footprints"));
|
|
49967
50059
|
_this.enqueueAndSubmit(prevExecution);
|
|
49968
50060
|
});
|
|
49969
50061
|
this.stateTracker.on(state_tracker_1.StateTracker.EXECUTION_ID_CHANGED, function (prevExecution, newExecutionId) {
|
|
49970
|
-
_this.logger.warn("Execution id changed to'"
|
|
50062
|
+
_this.logger.warn("Execution id changed to'".concat(newExecutionId, "'. Collecting previous footprints"));
|
|
49971
50063
|
_this.enqueueCurrentFootprints(prevExecution.executionId, null, prevExecution.buildSessionId);
|
|
49972
50064
|
});
|
|
49973
50065
|
this.stateTracker.on(state_tracker_1.StateTracker.TEST_STAGE_CHANGED, function (prevExecution, newTestStage) {
|
|
49974
|
-
_this.logger.warn("Execution points to different test stage '"
|
|
50066
|
+
_this.logger.warn("Execution points to different test stage '".concat(newTestStage, "'. Collecting and submitting previous footprints"));
|
|
49975
50067
|
_this.enqueueAndSubmit(prevExecution);
|
|
49976
50068
|
});
|
|
49977
50069
|
};
|
|
@@ -50035,7 +50127,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
50035
50127
|
else if (position.hasOwnProperty('l') && position.hasOwnProperty('c')) {
|
|
50036
50128
|
return position.l + ',' + position.c;
|
|
50037
50129
|
}
|
|
50038
|
-
logger.error("Position is not in a valid format got '"
|
|
50130
|
+
logger.error("Position is not in a valid format got '".concat(tryStringifyPosition(position), "', returning -1 for line and column"));
|
|
50039
50131
|
return '-1,-1';
|
|
50040
50132
|
}
|
|
50041
50133
|
exports.formatLocation = formatLocation;
|
|
@@ -50044,7 +50136,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
50044
50136
|
return JSON.stringify(position);
|
|
50045
50137
|
}
|
|
50046
50138
|
catch (e) {
|
|
50047
|
-
"failed to stringify position '"
|
|
50139
|
+
"failed to stringify position '".concat(e, "'");
|
|
50048
50140
|
}
|
|
50049
50141
|
}
|
|
50050
50142
|
});
|
|
@@ -50108,13 +50200,13 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
50108
50200
|
var CollectionInterval = (function () {
|
|
50109
50201
|
function CollectionInterval(intervalInMS) {
|
|
50110
50202
|
this.intervalInSeconds = this.toSeconds(intervalInMS);
|
|
50111
|
-
this.start = this.toSeconds(system_date_1.getSystemDateValueOf());
|
|
50203
|
+
this.start = this.toSeconds((0, system_date_1.getSystemDateValueOf)());
|
|
50112
50204
|
}
|
|
50113
50205
|
CollectionInterval.prototype.next = function () {
|
|
50114
50206
|
if (this.end) {
|
|
50115
50207
|
this.start = this.end;
|
|
50116
50208
|
}
|
|
50117
|
-
this.end = this.toSeconds(system_date_1.getSystemDateValueOf());
|
|
50209
|
+
this.end = this.toSeconds((0, system_date_1.getSystemDateValueOf)());
|
|
50118
50210
|
if ((this.end - this.start) > this.intervalInSeconds) {
|
|
50119
50211
|
this.start = this.end - this.intervalInSeconds;
|
|
50120
50212
|
}
|
|
@@ -50361,6 +50453,16 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
50361
50453
|
});
|
|
50362
50454
|
});
|
|
50363
50455
|
};
|
|
50456
|
+
BackendProxy.prototype.submitBlobAsync = function (body, buildSessionId, blobId) {
|
|
50457
|
+
var _this = this;
|
|
50458
|
+
var url = sl_routes_1.SLRoutes.blobs(buildSessionId, blobId);
|
|
50459
|
+
return new Promise(function (res, rej) {
|
|
50460
|
+
_this.client.post(body, url, function (error) {
|
|
50461
|
+
rej(error);
|
|
50462
|
+
}, true, contracts_1.ContentType.OCTET_STREAM);
|
|
50463
|
+
res(null);
|
|
50464
|
+
});
|
|
50465
|
+
};
|
|
50364
50466
|
BackendProxy.prototype.submitBlob = function (body, buildSessionId, blobId, callback) {
|
|
50365
50467
|
var url = sl_routes_1.SLRoutes.blobs(buildSessionId, blobId);
|
|
50366
50468
|
this.client.post(body, url, callback, true, contracts_1.ContentType.OCTET_STREAM);
|
|
@@ -50636,7 +50738,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
50636
50738
|
exports.GetRemoteConfigRequest = GetRemoteConfigRequest;
|
|
50637
50739
|
var SubmitLogsRequest = (function () {
|
|
50638
50740
|
function SubmitLogsRequest() {
|
|
50639
|
-
this.creationTime = system_date_1.getSystemDateValueOf();
|
|
50741
|
+
this.creationTime = (0, system_date_1.getSystemDateValueOf)();
|
|
50640
50742
|
}
|
|
50641
50743
|
return SubmitLogsRequest;
|
|
50642
50744
|
}());
|
|
@@ -50790,7 +50892,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
50790
50892
|
var opts = this.createDefaultOptions(urlPath);
|
|
50791
50893
|
var id = uuid();
|
|
50792
50894
|
var onRequestCallback = this.createOnRequestCallback(http_verb_1.HttpVerb.POST, id, callback);
|
|
50793
|
-
this.logger.info("Sending "
|
|
50895
|
+
this.logger.info("Sending ".concat(http_verb_1.HttpVerb.POST, " request. Url: '").concat(opts.url, "', requestId: '").concat(id, "'"));
|
|
50794
50896
|
var req = request.post(opts, onRequestCallback);
|
|
50795
50897
|
var form = req.form();
|
|
50796
50898
|
form.append('file', JSON.stringify(agentData), {
|
|
@@ -50803,7 +50905,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
50803
50905
|
});
|
|
50804
50906
|
}
|
|
50805
50907
|
catch (err) {
|
|
50806
|
-
this.logger.error("Failed sending Http "
|
|
50908
|
+
this.logger.error("Failed sending Http ".concat(http_verb_1.HttpVerb.POST, " request to:'").concat(urlPath, "'. Error: '").concat(err, "'"));
|
|
50807
50909
|
return callback(err, null, null);
|
|
50808
50910
|
}
|
|
50809
50911
|
};
|
|
@@ -50842,7 +50944,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
50842
50944
|
}
|
|
50843
50945
|
var id = uuid();
|
|
50844
50946
|
var onRequestCallback = this.createOnRequestCallback(httpVerb, id, callback, isNotFoundAcceptable);
|
|
50845
|
-
this.logger.info("Sending "
|
|
50947
|
+
this.logger.info("Sending ".concat(httpVerb, " request. Url: '").concat(opts.url, "', requestId: '").concat(id, "'"));
|
|
50846
50948
|
if (httpVerb === http_verb_1.HttpVerb.GET) {
|
|
50847
50949
|
opts.json = true;
|
|
50848
50950
|
request.get(opts, onRequestCallback);
|
|
@@ -50862,11 +50964,11 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
50862
50964
|
request.put(opts, onRequestCallback);
|
|
50863
50965
|
}
|
|
50864
50966
|
else {
|
|
50865
|
-
new Error(httpVerb
|
|
50967
|
+
new Error("".concat(httpVerb, " is not implemented yet."));
|
|
50866
50968
|
}
|
|
50867
50969
|
}
|
|
50868
50970
|
catch (err) {
|
|
50869
|
-
this.logger.error("Failed sending Http "
|
|
50971
|
+
this.logger.error("Failed sending Http ".concat(httpVerb, " request to:'").concat(urlPath, "'. Error: '").concat(err, "'"));
|
|
50870
50972
|
return callback(err, null, null);
|
|
50871
50973
|
}
|
|
50872
50974
|
};
|
|
@@ -50879,23 +50981,26 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
50879
50981
|
var statusCode = -1;
|
|
50880
50982
|
if (requestResponse != null) {
|
|
50881
50983
|
statusCode = requestResponse.statusCode;
|
|
50882
|
-
_this.logger.warn("Got "
|
|
50984
|
+
_this.logger.warn("Got ".concat(statusCode, " in '").concat(httpVerb, "' request. Request id:'").concat(requestId, "', Transaction ID:'").concat(txId, "'."));
|
|
50883
50985
|
}
|
|
50884
50986
|
if (err) {
|
|
50885
|
-
err = new Error("HttpClient failed. Error: "
|
|
50987
|
+
err = new Error("HttpClient failed. Error: ".concat(err.message, ", StatusCode: ").concat(statusCode, ", Stack: ").concat(err.stack));
|
|
50886
50988
|
}
|
|
50887
50989
|
else if (statusCode === 404 && isNotFoundAcceptable) {
|
|
50888
50990
|
err = null;
|
|
50889
50991
|
}
|
|
50890
50992
|
else {
|
|
50891
|
-
var errorMessage = "Server returned "
|
|
50993
|
+
var errorMessage = "Server returned: ".concat(statusCode, " status code in '").concat(httpVerb, "' request. Transaction ID:'").concat(txId, "'.");
|
|
50892
50994
|
if (body)
|
|
50893
|
-
errorMessage +=
|
|
50995
|
+
errorMessage += Object.entries(JSON.parse(body)).map(function (_a) {
|
|
50996
|
+
var key = _a[0], val = _a[1];
|
|
50997
|
+
return "\n\t".concat(key, ": ").concat(val);
|
|
50998
|
+
}).join('');
|
|
50894
50999
|
err = new Error(errorMessage);
|
|
50895
51000
|
}
|
|
50896
51001
|
return callback(err, body, statusCode);
|
|
50897
51002
|
}
|
|
50898
|
-
_this.logger.debug("'"
|
|
51003
|
+
_this.logger.debug("'".concat(httpVerb, "' request was completed successfully. Request id:'").concat(requestId, "'. statusCode: ").concat(requestResponse.statusCode, " body: ").concat(body, ", Transaction ID: ").concat(txId));
|
|
50899
51004
|
if (body && body.length > 0 && typeof body == 'string') {
|
|
50900
51005
|
body = JSON.parse(body);
|
|
50901
51006
|
}
|
|
@@ -50929,7 +51034,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
50929
51034
|
timeout = 60 * 1000 * 2;
|
|
50930
51035
|
}
|
|
50931
51036
|
timeout = Number(timeout);
|
|
50932
|
-
this.logger.debug("Http timeout value is '"
|
|
51037
|
+
this.logger.debug("Http timeout value is '".concat(timeout, "'."));
|
|
50933
51038
|
return timeout;
|
|
50934
51039
|
};
|
|
50935
51040
|
return HttpClient;
|
|
@@ -51079,7 +51184,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
51079
51184
|
};
|
|
51080
51185
|
SLRoutes.recommendedAgentV2 = function (component, customerId, appName, branchName, testStage) {
|
|
51081
51186
|
if (!component) {
|
|
51082
|
-
throw new Error("'component' "
|
|
51187
|
+
throw new Error("'component' ".concat(constants_1.Constants.Messages.CANNOT_BE_NULL_OR_UNDEFINED, "."));
|
|
51083
51188
|
}
|
|
51084
51189
|
var result = SLRoutes.agentsV2() + SLRoutes.toUri(component) + SLRoutes.toUri(SLRoutes.RECOMMENDED_VERSION);
|
|
51085
51190
|
var query = {
|
|
@@ -51303,14 +51408,13 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
51303
51408
|
if (v !== undefined) module.exports = v;
|
|
51304
51409
|
}
|
|
51305
51410
|
else if (typeof define === "function" && define.amd) {
|
|
51306
|
-
define(["require", "exports", "events", "
|
|
51411
|
+
define(["require", "exports", "events", "./constants/sl-env-vars", "./utils/validation-utils", "./agent-events/cockpit-notifier", "./agent-events/agent-events-conracts"], factory);
|
|
51307
51412
|
}
|
|
51308
51413
|
})(function (require, exports) {
|
|
51309
51414
|
"use strict";
|
|
51310
51415
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51311
51416
|
exports.StateTracker = void 0;
|
|
51312
51417
|
var events = require("events");
|
|
51313
|
-
var timers_1 = require("timers");
|
|
51314
51418
|
var sl_env_vars_1 = require("./constants/sl-env-vars");
|
|
51315
51419
|
var validation_utils_1 = require("./utils/validation-utils");
|
|
51316
51420
|
var cockpit_notifier_1 = require("./agent-events/cockpit-notifier");
|
|
@@ -51356,9 +51460,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
51356
51460
|
_this.checkTestStatusAtServer();
|
|
51357
51461
|
});
|
|
51358
51462
|
if (this.cfg.shouldCheckForActiveExecutionOnStartUp.value) {
|
|
51359
|
-
|
|
51360
|
-
_this.checkTestStatusAtServer(false);
|
|
51361
|
-
}, 0);
|
|
51463
|
+
this.checkTestStatusAtServer(false);
|
|
51362
51464
|
}
|
|
51363
51465
|
};
|
|
51364
51466
|
StateTracker.prototype.checkTestStatusAtServer = function (async) {
|
|
@@ -51373,7 +51475,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
51373
51475
|
_this.notifyCockpit(response.execution);
|
|
51374
51476
|
_this._currentExecution = response.execution;
|
|
51375
51477
|
}).catch(function (err) {
|
|
51376
|
-
_this.logger.warn("Error while checking test execution status "
|
|
51478
|
+
_this.logger.warn("Error while checking test execution status ".concat(err));
|
|
51377
51479
|
});
|
|
51378
51480
|
}
|
|
51379
51481
|
};
|
|
@@ -51387,7 +51489,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
51387
51489
|
return this._currentExecution != null;
|
|
51388
51490
|
};
|
|
51389
51491
|
StateTracker.prototype.shouldCollectHits = function () {
|
|
51390
|
-
return this.hasMappingAtServer()
|
|
51492
|
+
return this.hasMappingAtServer();
|
|
51391
51493
|
};
|
|
51392
51494
|
Object.defineProperty(StateTracker.prototype, "currentExecution", {
|
|
51393
51495
|
get: function () {
|
|
@@ -51454,7 +51556,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
51454
51556
|
callback();
|
|
51455
51557
|
}
|
|
51456
51558
|
catch (err) {
|
|
51457
|
-
this.logger.error("Error while stopping StateTracker. '"
|
|
51559
|
+
this.logger.error("Error while stopping StateTracker. '".concat(err, "'"));
|
|
51458
51560
|
return callback();
|
|
51459
51561
|
}
|
|
51460
51562
|
};
|
|
@@ -51499,7 +51601,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
51499
51601
|
return [3, 3];
|
|
51500
51602
|
case 2:
|
|
51501
51603
|
e_1 = _a.sent();
|
|
51502
|
-
this.logger.error("Failed to create execution, error '"
|
|
51604
|
+
this.logger.error("Failed to create execution, error '".concat(e_1, "'. Footprints will not be sent"));
|
|
51503
51605
|
return [3, 3];
|
|
51504
51606
|
case 3: return [2];
|
|
51505
51607
|
}
|
|
@@ -51546,7 +51648,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
51546
51648
|
exports.StateTracker = StateTracker;
|
|
51547
51649
|
});
|
|
51548
51650
|
|
|
51549
|
-
},{"./agent-events/agent-events-conracts":289,"./agent-events/cockpit-notifier":294,"./constants/sl-env-vars":305,"./utils/validation-utils":336,"events":110
|
|
51651
|
+
},{"./agent-events/agent-events-conracts":289,"./agent-events/cockpit-notifier":294,"./constants/sl-env-vars":305,"./utils/validation-utils":336,"events":110}],332:[function(require,module,exports){
|
|
51550
51652
|
(function (factory) {
|
|
51551
51653
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
51552
51654
|
var v = factory(require, exports);
|
|
@@ -51598,6 +51700,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
51598
51700
|
originalFilename = path.resolve(generatedDir, originalFilename);
|
|
51599
51701
|
return originalFilename;
|
|
51600
51702
|
};
|
|
51703
|
+
FilesUtils.prototype.fixPathAndSpecialChar = function (path) {
|
|
51704
|
+
if (path) {
|
|
51705
|
+
if (path[0] === '/' || path[0] === '\\') {
|
|
51706
|
+
return path.substr(1).split('\\').join('/');
|
|
51707
|
+
}
|
|
51708
|
+
return path.split('\\').join('/');
|
|
51709
|
+
}
|
|
51710
|
+
return path;
|
|
51711
|
+
};
|
|
51601
51712
|
FilesUtils.adjustPathSlashes = function (filePath) {
|
|
51602
51713
|
filePath = (filePath || '').replace(/\\/g, '/');
|
|
51603
51714
|
return filePath;
|
|
@@ -51706,10 +51817,10 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
51706
51817
|
}
|
|
51707
51818
|
ValidationUtils.verifyNotNullOrEmpty = function (value, paramName) {
|
|
51708
51819
|
if (value === undefined || value === null) {
|
|
51709
|
-
throw new Error(paramName
|
|
51820
|
+
throw new Error("".concat(paramName, " ").concat(constants_1.Constants.Messages.CANNOT_BE_NULL_OR_UNDEFINED, "."));
|
|
51710
51821
|
}
|
|
51711
51822
|
if (typeof (value) === 'string' && value.length === 0) {
|
|
51712
|
-
throw new Error(paramName
|
|
51823
|
+
throw new Error("".concat(paramName, " ").concat(constants_1.Constants.Messages.CANNOT_BE_EMPTY_STRING, "."));
|
|
51713
51824
|
}
|
|
51714
51825
|
};
|
|
51715
51826
|
return ValidationUtils;
|
|
@@ -64784,9 +64895,7 @@ function escapeJsonPtr(str) {
|
|
|
64784
64895
|
/**
|
|
64785
64896
|
* JSONSchema Validator - Validates JavaScript objects using JSON Schemas
|
|
64786
64897
|
* (http://www.json.com/json-schema-proposal/)
|
|
64787
|
-
*
|
|
64788
|
-
* Copyright (c) 2007 Kris Zyp SitePen (www.sitepen.com)
|
|
64789
|
-
* Licensed under the MIT (MIT-LICENSE.txt) license.
|
|
64898
|
+
* Licensed under AFL-2.1 OR BSD-3-Clause
|
|
64790
64899
|
To use the validator call the validate function with an instance object and an optional schema object.
|
|
64791
64900
|
If a schema is provided, it will be used to validate. If the instance object refers to a schema (self-validating),
|
|
64792
64901
|
that schema will be used to validate and the schema parameter is not necessary (if both exist,
|
|
@@ -64890,7 +64999,7 @@ var validate = exports._validate = function(/*Any*/instance,/*Object*/schema,/*O
|
|
|
64890
64999
|
!(value instanceof Array && type == 'array') &&
|
|
64891
65000
|
!(value instanceof Date && type == 'date') &&
|
|
64892
65001
|
!(type == 'integer' && value%1===0)){
|
|
64893
|
-
return [{property:path,message:(typeof value) + " value found, but a " + type + " is required"}];
|
|
65002
|
+
return [{property:path,message:value + " - " + (typeof value) + " value found, but a " + type + " is required"}];
|
|
64894
65003
|
}
|
|
64895
65004
|
if(type instanceof Array){
|
|
64896
65005
|
var unionErrors=[];
|
|
@@ -64953,11 +65062,11 @@ var validate = exports._validate = function(/*Any*/instance,/*Object*/schema,/*O
|
|
|
64953
65062
|
if(schema.minLength && typeof value == 'string' && value.length < schema.minLength){
|
|
64954
65063
|
addError("must be at least " + schema.minLength + " characters long");
|
|
64955
65064
|
}
|
|
64956
|
-
if(typeof schema.minimum !== undefined && typeof value == typeof schema.minimum &&
|
|
65065
|
+
if(typeof schema.minimum !== 'undefined' && typeof value == typeof schema.minimum &&
|
|
64957
65066
|
schema.minimum > value){
|
|
64958
65067
|
addError("must have a minimum value of " + schema.minimum);
|
|
64959
65068
|
}
|
|
64960
|
-
if(typeof schema.maximum !== undefined && typeof value == typeof schema.maximum &&
|
|
65069
|
+
if(typeof schema.maximum !== 'undefined' && typeof value == typeof schema.maximum &&
|
|
64961
65070
|
schema.maximum < value){
|
|
64962
65071
|
addError("must have a maximum value of " + schema.maximum);
|
|
64963
65072
|
}
|
|
@@ -64992,8 +65101,8 @@ var validate = exports._validate = function(/*Any*/instance,/*Object*/schema,/*O
|
|
|
64992
65101
|
}
|
|
64993
65102
|
|
|
64994
65103
|
for(var i in objTypeDef){
|
|
64995
|
-
if(objTypeDef.hasOwnProperty(i)){
|
|
64996
|
-
var value = instance[i];
|
|
65104
|
+
if(objTypeDef.hasOwnProperty(i) && i != '__proto__' && i != 'constructor'){
|
|
65105
|
+
var value = instance.hasOwnProperty(i) ? instance[i] : undefined;
|
|
64997
65106
|
// skip _not_ specified properties
|
|
64998
65107
|
if (value === undefined && options.existingOnly) continue;
|
|
64999
65108
|
var propDef = objTypeDef[i];
|
|
@@ -65014,7 +65123,7 @@ var validate = exports._validate = function(/*Any*/instance,/*Object*/schema,/*O
|
|
|
65014
65123
|
delete instance[i];
|
|
65015
65124
|
continue;
|
|
65016
65125
|
} else {
|
|
65017
|
-
errors.push({property:path,message:
|
|
65126
|
+
errors.push({property:path,message:"The property " + i +
|
|
65018
65127
|
" is not defined in the schema and the schema does not allow additional properties"});
|
|
65019
65128
|
}
|
|
65020
65129
|
}
|
|
@@ -65949,6 +66058,9 @@ module.exports={
|
|
|
65949
66058
|
"application/a2l": {
|
|
65950
66059
|
"source": "iana"
|
|
65951
66060
|
},
|
|
66061
|
+
"application/ace+cbor": {
|
|
66062
|
+
"source": "iana"
|
|
66063
|
+
},
|
|
65952
66064
|
"application/activemessage": {
|
|
65953
66065
|
"source": "iana"
|
|
65954
66066
|
},
|
|
@@ -66018,6 +66130,9 @@ module.exports={
|
|
|
66018
66130
|
"source": "apache",
|
|
66019
66131
|
"extensions": ["aw"]
|
|
66020
66132
|
},
|
|
66133
|
+
"application/at+jwt": {
|
|
66134
|
+
"source": "iana"
|
|
66135
|
+
},
|
|
66021
66136
|
"application/atf": {
|
|
66022
66137
|
"source": "iana"
|
|
66023
66138
|
},
|
|
@@ -66418,6 +66533,10 @@ module.exports={
|
|
|
66418
66533
|
"source": "iana",
|
|
66419
66534
|
"compressible": true
|
|
66420
66535
|
},
|
|
66536
|
+
"application/express": {
|
|
66537
|
+
"source": "iana",
|
|
66538
|
+
"extensions": ["exp"]
|
|
66539
|
+
},
|
|
66421
66540
|
"application/fastinfoset": {
|
|
66422
66541
|
"source": "iana"
|
|
66423
66542
|
},
|
|
@@ -66704,6 +66823,7 @@ module.exports={
|
|
|
66704
66823
|
"extensions": ["mads"]
|
|
66705
66824
|
},
|
|
66706
66825
|
"application/manifest+json": {
|
|
66826
|
+
"source": "iana",
|
|
66707
66827
|
"charset": "UTF-8",
|
|
66708
66828
|
"compressible": true,
|
|
66709
66829
|
"extensions": ["webmanifest"]
|
|
@@ -66823,6 +66943,9 @@ module.exports={
|
|
|
66823
66943
|
"application/mipc": {
|
|
66824
66944
|
"source": "iana"
|
|
66825
66945
|
},
|
|
66946
|
+
"application/missing-blocks+cbor-seq": {
|
|
66947
|
+
"source": "iana"
|
|
66948
|
+
},
|
|
66826
66949
|
"application/mmt-aei+xml": {
|
|
66827
66950
|
"source": "iana",
|
|
66828
66951
|
"compressible": true,
|
|
@@ -66989,6 +67112,13 @@ module.exports={
|
|
|
66989
67112
|
"source": "iana",
|
|
66990
67113
|
"extensions": ["oxps"]
|
|
66991
67114
|
},
|
|
67115
|
+
"application/p21": {
|
|
67116
|
+
"source": "iana"
|
|
67117
|
+
},
|
|
67118
|
+
"application/p21+zip": {
|
|
67119
|
+
"source": "iana",
|
|
67120
|
+
"compressible": false
|
|
67121
|
+
},
|
|
66992
67122
|
"application/p2p-overlay+xml": {
|
|
66993
67123
|
"source": "iana",
|
|
66994
67124
|
"compressible": true,
|
|
@@ -67442,6 +67572,10 @@ module.exports={
|
|
|
67442
67572
|
"compressible": true,
|
|
67443
67573
|
"extensions": ["srx"]
|
|
67444
67574
|
},
|
|
67575
|
+
"application/spdx+json": {
|
|
67576
|
+
"source": "iana",
|
|
67577
|
+
"compressible": true
|
|
67578
|
+
},
|
|
67445
67579
|
"application/spirits-event+xml": {
|
|
67446
67580
|
"source": "iana",
|
|
67447
67581
|
"compressible": true
|
|
@@ -67559,6 +67693,9 @@ module.exports={
|
|
|
67559
67693
|
"application/tnauthlist": {
|
|
67560
67694
|
"source": "iana"
|
|
67561
67695
|
},
|
|
67696
|
+
"application/token-introspection+jwt": {
|
|
67697
|
+
"source": "iana"
|
|
67698
|
+
},
|
|
67562
67699
|
"application/toml": {
|
|
67563
67700
|
"compressible": true,
|
|
67564
67701
|
"extensions": ["toml"]
|
|
@@ -67567,7 +67704,8 @@ module.exports={
|
|
|
67567
67704
|
"source": "iana"
|
|
67568
67705
|
},
|
|
67569
67706
|
"application/trig": {
|
|
67570
|
-
"source": "iana"
|
|
67707
|
+
"source": "iana",
|
|
67708
|
+
"extensions": ["trig"]
|
|
67571
67709
|
},
|
|
67572
67710
|
"application/ttml+xml": {
|
|
67573
67711
|
"source": "iana",
|
|
@@ -67919,6 +68057,10 @@ module.exports={
|
|
|
67919
68057
|
"application/vnd.afpc.modca-pagesegment": {
|
|
67920
68058
|
"source": "iana"
|
|
67921
68059
|
},
|
|
68060
|
+
"application/vnd.age": {
|
|
68061
|
+
"source": "iana",
|
|
68062
|
+
"extensions": ["age"]
|
|
68063
|
+
},
|
|
67922
68064
|
"application/vnd.ah-barcode": {
|
|
67923
68065
|
"source": "iana"
|
|
67924
68066
|
},
|
|
@@ -67980,6 +68122,12 @@ module.exports={
|
|
|
67980
68122
|
"source": "iana",
|
|
67981
68123
|
"extensions": ["atx"]
|
|
67982
68124
|
},
|
|
68125
|
+
"application/vnd.apache.arrow.file": {
|
|
68126
|
+
"source": "iana"
|
|
68127
|
+
},
|
|
68128
|
+
"application/vnd.apache.arrow.stream": {
|
|
68129
|
+
"source": "iana"
|
|
68130
|
+
},
|
|
67983
68131
|
"application/vnd.apache.thrift.binary": {
|
|
67984
68132
|
"source": "iana"
|
|
67985
68133
|
},
|
|
@@ -69754,6 +69902,10 @@ module.exports={
|
|
|
69754
69902
|
"source": "iana",
|
|
69755
69903
|
"extensions": ["taglet"]
|
|
69756
69904
|
},
|
|
69905
|
+
"application/vnd.nacamar.ybrid+json": {
|
|
69906
|
+
"source": "iana",
|
|
69907
|
+
"compressible": true
|
|
69908
|
+
},
|
|
69757
69909
|
"application/vnd.ncd.control": {
|
|
69758
69910
|
"source": "iana"
|
|
69759
69911
|
},
|
|
@@ -70215,6 +70367,9 @@ module.exports={
|
|
|
70215
70367
|
"compressible": true,
|
|
70216
70368
|
"extensions": ["osm"]
|
|
70217
70369
|
},
|
|
70370
|
+
"application/vnd.opentimestamps.ots": {
|
|
70371
|
+
"source": "iana"
|
|
70372
|
+
},
|
|
70218
70373
|
"application/vnd.openxmlformats-officedocument.custom-properties+xml": {
|
|
70219
70374
|
"source": "iana",
|
|
70220
70375
|
"compressible": true
|
|
@@ -70746,6 +70901,9 @@ module.exports={
|
|
|
70746
70901
|
"application/vnd.renlearn.rlprint": {
|
|
70747
70902
|
"source": "iana"
|
|
70748
70903
|
},
|
|
70904
|
+
"application/vnd.resilient.logic": {
|
|
70905
|
+
"source": "iana"
|
|
70906
|
+
},
|
|
70749
70907
|
"application/vnd.restful+json": {
|
|
70750
70908
|
"source": "iana",
|
|
70751
70909
|
"compressible": true
|
|
@@ -71210,6 +71368,10 @@ module.exports={
|
|
|
71210
71368
|
"application/vnd.verimatrix.vcas": {
|
|
71211
71369
|
"source": "iana"
|
|
71212
71370
|
},
|
|
71371
|
+
"application/vnd.veritone.aion+json": {
|
|
71372
|
+
"source": "iana",
|
|
71373
|
+
"compressible": true
|
|
71374
|
+
},
|
|
71213
71375
|
"application/vnd.veryant.thin": {
|
|
71214
71376
|
"source": "iana"
|
|
71215
71377
|
},
|
|
@@ -71697,6 +71859,15 @@ module.exports={
|
|
|
71697
71859
|
"source": "apache",
|
|
71698
71860
|
"extensions": ["iso"]
|
|
71699
71861
|
},
|
|
71862
|
+
"application/x-iwork-keynote-sffkey": {
|
|
71863
|
+
"extensions": ["key"]
|
|
71864
|
+
},
|
|
71865
|
+
"application/x-iwork-numbers-sffnumbers": {
|
|
71866
|
+
"extensions": ["numbers"]
|
|
71867
|
+
},
|
|
71868
|
+
"application/x-iwork-pages-sffpages": {
|
|
71869
|
+
"extensions": ["pages"]
|
|
71870
|
+
},
|
|
71700
71871
|
"application/x-java-archive-diff": {
|
|
71701
71872
|
"source": "nginx",
|
|
71702
71873
|
"extensions": ["jardiff"]
|
|
@@ -73069,6 +73240,7 @@ module.exports={
|
|
|
73069
73240
|
},
|
|
73070
73241
|
"image/vnd.microsoft.icon": {
|
|
73071
73242
|
"source": "iana",
|
|
73243
|
+
"compressible": true,
|
|
73072
73244
|
"extensions": ["ico"]
|
|
73073
73245
|
},
|
|
73074
73246
|
"image/vnd.mix": {
|
|
@@ -73078,6 +73250,7 @@ module.exports={
|
|
|
73078
73250
|
"source": "iana"
|
|
73079
73251
|
},
|
|
73080
73252
|
"image/vnd.ms-dds": {
|
|
73253
|
+
"compressible": true,
|
|
73081
73254
|
"extensions": ["dds"]
|
|
73082
73255
|
},
|
|
73083
73256
|
"image/vnd.ms-modi": {
|
|
@@ -73328,6 +73501,24 @@ module.exports={
|
|
|
73328
73501
|
"source": "iana",
|
|
73329
73502
|
"extensions": ["obj"]
|
|
73330
73503
|
},
|
|
73504
|
+
"model/step": {
|
|
73505
|
+
"source": "iana"
|
|
73506
|
+
},
|
|
73507
|
+
"model/step+xml": {
|
|
73508
|
+
"source": "iana",
|
|
73509
|
+
"compressible": true,
|
|
73510
|
+
"extensions": ["stpx"]
|
|
73511
|
+
},
|
|
73512
|
+
"model/step+zip": {
|
|
73513
|
+
"source": "iana",
|
|
73514
|
+
"compressible": false,
|
|
73515
|
+
"extensions": ["stpz"]
|
|
73516
|
+
},
|
|
73517
|
+
"model/step-xml+zip": {
|
|
73518
|
+
"source": "iana",
|
|
73519
|
+
"compressible": false,
|
|
73520
|
+
"extensions": ["stpxz"]
|
|
73521
|
+
},
|
|
73331
73522
|
"model/stl": {
|
|
73332
73523
|
"source": "iana",
|
|
73333
73524
|
"extensions": ["stl"]
|
|
@@ -73749,6 +73940,10 @@ module.exports={
|
|
|
73749
73940
|
"source": "iana",
|
|
73750
73941
|
"charset": "UTF-8"
|
|
73751
73942
|
},
|
|
73943
|
+
"text/vnd.familysearch.gedcom": {
|
|
73944
|
+
"source": "iana",
|
|
73945
|
+
"extensions": ["ged"]
|
|
73946
|
+
},
|
|
73752
73947
|
"text/vnd.ficlab.flt": {
|
|
73753
73948
|
"source": "iana"
|
|
73754
73949
|
},
|
|
@@ -74018,6 +74213,9 @@ module.exports={
|
|
|
74018
74213
|
"source": "apache",
|
|
74019
74214
|
"extensions": ["jpm","jpgm"]
|
|
74020
74215
|
},
|
|
74216
|
+
"video/jxsv": {
|
|
74217
|
+
"source": "iana"
|
|
74218
|
+
},
|
|
74021
74219
|
"video/mj2": {
|
|
74022
74220
|
"source": "iana",
|
|
74023
74221
|
"extensions": ["mj2","mjp2"]
|
|
@@ -74225,6 +74423,9 @@ module.exports={
|
|
|
74225
74423
|
"video/vp8": {
|
|
74226
74424
|
"source": "iana"
|
|
74227
74425
|
},
|
|
74426
|
+
"video/vp9": {
|
|
74427
|
+
"source": "iana"
|
|
74428
|
+
},
|
|
74228
74429
|
"video/webm": {
|
|
74229
74430
|
"source": "apache",
|
|
74230
74431
|
"compressible": false,
|