slnodejs 6.0.34 → 6.1.70
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 +195 -111
- package/browser-agent/dist/browser-agent-all.min.js +28 -28
- package/browser-agent/package.json +2 -2
- package/package.json +6 -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/file-instrumenter.js +6 -6
- package/tsOutputs/build-scanner/instrumentation/file-instrumenter.js.map +1 -1
- package/tsOutputs/build-scanner/instrumentation/markup-file-instrumenter.js +5 -8
- 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 +11 -24
- 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 +10 -8
- 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 +2 -2
- 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();
|
|
@@ -43450,7 +43454,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
43450
43454
|
return [3, 4];
|
|
43451
43455
|
case 3:
|
|
43452
43456
|
e_1 = _a.sent();
|
|
43453
|
-
this.logger.error("Failed to submit footprint sync '"
|
|
43457
|
+
this.logger.error("Failed to submit footprint sync '".concat(e_1.message, "'"));
|
|
43454
43458
|
return [3, 4];
|
|
43455
43459
|
case 4: return [2];
|
|
43456
43460
|
}
|
|
@@ -43611,7 +43615,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
43611
43615
|
this.footprintsQueueSender.sendAllSync();
|
|
43612
43616
|
}
|
|
43613
43617
|
catch (e) {
|
|
43614
|
-
this.logger.error("Failed to submit footprint sync '"
|
|
43618
|
+
this.logger.error("Failed to submit footprint sync '".concat(e.message, "'"));
|
|
43615
43619
|
}
|
|
43616
43620
|
};
|
|
43617
43621
|
BrowserAgentInstance.prototype.isStarted = function () {
|
|
@@ -43709,7 +43713,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
43709
43713
|
};
|
|
43710
43714
|
BrowserAgent.prototype.createInstance = function (configuration) {
|
|
43711
43715
|
if (this.instanceAddedForBsid[configuration.buildSessionId]) {
|
|
43712
|
-
this.logger.info("Already has instance for bsid '"
|
|
43716
|
+
this.logger.info("Already has instance for bsid '".concat(configuration.buildSessionId, "'"));
|
|
43713
43717
|
return;
|
|
43714
43718
|
}
|
|
43715
43719
|
try {
|
|
@@ -43720,11 +43724,11 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
43720
43724
|
this.instances.push(browserAgent);
|
|
43721
43725
|
}
|
|
43722
43726
|
else {
|
|
43723
|
-
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"));
|
|
43724
43728
|
}
|
|
43725
43729
|
}
|
|
43726
43730
|
catch (e) {
|
|
43727
|
-
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));
|
|
43728
43732
|
}
|
|
43729
43733
|
};
|
|
43730
43734
|
BrowserAgent.prototype.start = function () {
|
|
@@ -43852,7 +43856,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
43852
43856
|
}
|
|
43853
43857
|
callback = function (err) {
|
|
43854
43858
|
if (err) {
|
|
43855
|
-
_this.logger.error("Failed to submit final events, Error : '"
|
|
43859
|
+
_this.logger.error("Failed to submit final events, Error : '".concat(err, "'"));
|
|
43856
43860
|
}
|
|
43857
43861
|
};
|
|
43858
43862
|
while (this.eventsQueue.getQueueSize() > 0) {
|
|
@@ -43908,7 +43912,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
43908
43912
|
BrowserHitsCollector.prototype.getGlobalCoverageObject = function () {
|
|
43909
43913
|
if (!this.globalCoverageObject) {
|
|
43910
43914
|
var coverageObject = '$SealightsCoverage';
|
|
43911
|
-
var coverageObjectForBSID = coverageObject
|
|
43915
|
+
var coverageObjectForBSID = "".concat(coverageObject, "_").concat(this.buildSessionId);
|
|
43912
43916
|
this.globalCoverageObject = window[coverageObjectForBSID] || window[coverageObject];
|
|
43913
43917
|
}
|
|
43914
43918
|
return this.globalCoverageObject;
|
|
@@ -43984,7 +43988,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
43984
43988
|
}
|
|
43985
43989
|
CodeCoverageManager.prototype.findCoverageContainer = function () {
|
|
43986
43990
|
var coverageObject = '$SealightsCoverage';
|
|
43987
|
-
var coverageObjectForBSID = coverageObject
|
|
43991
|
+
var coverageObjectForBSID = "".concat(coverageObject, "_").concat(this.configuration.buildSessionId);
|
|
43988
43992
|
return window[coverageObjectForBSID] || window[coverageObject];
|
|
43989
43993
|
};
|
|
43990
43994
|
CodeCoverageManager.prototype.getFootprints = function (testInfo) {
|
|
@@ -44751,10 +44755,10 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
44751
44755
|
return request;
|
|
44752
44756
|
};
|
|
44753
44757
|
FootprintsQueueSender.prototype.sleep = function (millis) {
|
|
44754
|
-
var start = system_date_1.getSystemDateValueOf();
|
|
44758
|
+
var start = (0, system_date_1.getSystemDateValueOf)();
|
|
44755
44759
|
var end = null;
|
|
44756
44760
|
do {
|
|
44757
|
-
end = system_date_1.getSystemDateValueOf();
|
|
44761
|
+
end = (0, system_date_1.getSystemDateValueOf)();
|
|
44758
44762
|
} while (end - start < millis);
|
|
44759
44763
|
};
|
|
44760
44764
|
FootprintsQueueSender.prototype.hasApps = function (request) {
|
|
@@ -44768,7 +44772,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
44768
44772
|
this.window.slMappings = this.window.slMappings || {};
|
|
44769
44773
|
if (!this.window.slMappings[this.configuration.buildSessionId]) {
|
|
44770
44774
|
this.lightBackendProxy.getSlMappingFromServer(this.configuration.buildSessionId).then(function (mapping) { return _this.window.slMappings[_this.configuration.buildSessionId] = mapping; }, function (err) {
|
|
44771
|
-
var errMsg = "Error while trying to load slMapping from server '"
|
|
44775
|
+
var errMsg = "Error while trying to load slMapping from server '".concat(err, "'");
|
|
44772
44776
|
_this.logger.error(errMsg);
|
|
44773
44777
|
cockpit_notifier_1.CockpitNotifier.sendGenericMessage(errMsg);
|
|
44774
44778
|
_this.window.slMappings[_this.configuration.buildSessionId] = {};
|
|
@@ -44821,7 +44825,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
44821
44825
|
this.resetState();
|
|
44822
44826
|
var result = this.createFootprintsFile();
|
|
44823
44827
|
var app = result.apps[0];
|
|
44824
|
-
var localTime = mockTime ? mockTime : system_date_1.getSystemDateValueOf();
|
|
44828
|
+
var localTime = mockTime ? mockTime : (0, system_date_1.getSystemDateValueOf)();
|
|
44825
44829
|
var test = this.getOrCreateTestData(testName, executionId, localTime, result);
|
|
44826
44830
|
for (var moduleName in istanbulFootprints) {
|
|
44827
44831
|
var istanbulModule = istanbulFootprints[moduleName];
|
|
@@ -45032,7 +45036,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
45032
45036
|
return result;
|
|
45033
45037
|
};
|
|
45034
45038
|
IstanbulToFootprintsConvertorV3.prototype.formatLoc = function (loc) {
|
|
45035
|
-
return location_formatter_1.formatLocation(loc, this.logger);
|
|
45039
|
+
return (0, location_formatter_1.formatLocation)(loc, this.logger);
|
|
45036
45040
|
};
|
|
45037
45041
|
return IstanbulToFootprintsConvertorV3;
|
|
45038
45042
|
}());
|
|
@@ -45319,7 +45323,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
45319
45323
|
return;
|
|
45320
45324
|
var logObject = {
|
|
45321
45325
|
level: logLevel.toUpperCase(),
|
|
45322
|
-
ts: system_date_1.getSystemDate().toISOString(),
|
|
45326
|
+
ts: (0, system_date_1.getSystemDate)().toISOString(),
|
|
45323
45327
|
msg: logMsg ? logMsg.toString() : undefined
|
|
45324
45328
|
};
|
|
45325
45329
|
var ctx = this.context;
|
|
@@ -45557,7 +45561,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
45557
45561
|
return;
|
|
45558
45562
|
}
|
|
45559
45563
|
footprintsItem = footprintsItem || new footprints_item_data_1.FootprintsItemData();
|
|
45560
|
-
footprintsItem.localTime = system_date_1.getSystemDateValueOf();
|
|
45564
|
+
footprintsItem.localTime = (0, system_date_1.getSystemDateValueOf)();
|
|
45561
45565
|
this.queue.push(footprintsItem);
|
|
45562
45566
|
this.queueSize++;
|
|
45563
45567
|
this.checkQueueSize();
|
|
@@ -45963,7 +45967,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
45963
45967
|
}
|
|
45964
45968
|
NoopJsonClient.prototype.send = function (url, data, onSuccess, onError, async, httpMethod, contentType) {
|
|
45965
45969
|
if (async === void 0) { async = true; }
|
|
45966
|
-
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));
|
|
45967
45971
|
onSuccess({});
|
|
45968
45972
|
};
|
|
45969
45973
|
return NoopJsonClient;
|
|
@@ -46110,7 +46114,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46110
46114
|
return [3, 4];
|
|
46111
46115
|
case 3:
|
|
46112
46116
|
err_1 = _a.sent();
|
|
46113
|
-
errMsg = "Error while trying to load slMapping from server '"
|
|
46117
|
+
errMsg = "Error while trying to load slMapping from server '".concat(err_1, "'");
|
|
46114
46118
|
this.logger.error(errMsg);
|
|
46115
46119
|
cockpit_notifier_1.CockpitNotifier.sendGenericMessage(errMsg);
|
|
46116
46120
|
this.window.slMappings[buildSessionId] = {};
|
|
@@ -46185,8 +46189,8 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46185
46189
|
StateTracker.prototype.checkForActiveExecution = function (async) {
|
|
46186
46190
|
var _this = this;
|
|
46187
46191
|
if (async === void 0) { async = true; }
|
|
46188
|
-
var url = this.configuration.server +
|
|
46189
|
-
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, "'."));
|
|
46190
46194
|
var onSuccess = function (data) {
|
|
46191
46195
|
_this.logger.info('[ACTIVE EXECUTION] Checking for active execution. No errors');
|
|
46192
46196
|
if (data == null) {
|
|
@@ -46203,7 +46207,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46203
46207
|
_this.hasActiveExecution = true;
|
|
46204
46208
|
}
|
|
46205
46209
|
else if (data.execution.status == contracts_1.ExecutionStatus.InProgress) {
|
|
46206
|
-
_this.logger.info("[ACTIVE EXECUTION] Active execution for labid '"
|
|
46210
|
+
_this.logger.info("[ACTIVE EXECUTION] Active execution for labid '".concat(_this.configuration.labId, "'"));
|
|
46207
46211
|
_this.hasActiveExecution = true;
|
|
46208
46212
|
}
|
|
46209
46213
|
else {
|
|
@@ -46652,11 +46656,11 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46652
46656
|
return [4, this.backendProxy.submitAgentEvent(request)];
|
|
46653
46657
|
case 2:
|
|
46654
46658
|
_a.sent();
|
|
46655
|
-
this._logger.info("Submitted '"
|
|
46659
|
+
this._logger.info("Submitted '".concat(request.events.length, "' events successfully"));
|
|
46656
46660
|
return [2, true];
|
|
46657
46661
|
case 3:
|
|
46658
46662
|
e_1 = _a.sent();
|
|
46659
|
-
this._logger.warn("Failed to submit '"
|
|
46663
|
+
this._logger.warn("Failed to submit '".concat(request.events.length, "' events. Error ").concat(e_1));
|
|
46660
46664
|
return [2, false];
|
|
46661
46665
|
case 4: return [2];
|
|
46662
46666
|
}
|
|
@@ -46708,10 +46712,10 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46708
46712
|
AgentEventsController.prototype.submitEvent = function (code) {
|
|
46709
46713
|
var _this = this;
|
|
46710
46714
|
this.submittedEventsMap.set(code, true);
|
|
46711
|
-
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)()));
|
|
46712
46716
|
var event = this.buildEvent(code);
|
|
46713
46717
|
this.submitAgentEventRequest(event).then(function () {
|
|
46714
|
-
return _this._logger.debug("Event with code '"
|
|
46718
|
+
return _this._logger.debug("Event with code '".concat(code, "' submitted successfully"));
|
|
46715
46719
|
});
|
|
46716
46720
|
};
|
|
46717
46721
|
AgentEventsController.prototype.submitEventOnce = function (code) {
|
|
@@ -46734,11 +46738,11 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46734
46738
|
return;
|
|
46735
46739
|
}
|
|
46736
46740
|
var events = messages.map(function (msg) { return _this.buildEvent(agent_events_conracts_1.AgentEventCode.GENERIC_ERROR, msg); });
|
|
46737
|
-
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")); });
|
|
46738
46742
|
};
|
|
46739
46743
|
AgentEventsController.prototype.sendMessage = function (message, code) {
|
|
46740
46744
|
var _this = this;
|
|
46741
|
-
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)()));
|
|
46742
46746
|
var messageEvent = this.buildEvent(code, message);
|
|
46743
46747
|
this.submitAgentEventRequest(messageEvent).then(function () {
|
|
46744
46748
|
return _this.logger.debug('Message submitted successfully');
|
|
@@ -46814,7 +46818,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46814
46818
|
AgentEventsController.prototype.buildEvent = function (type, data) {
|
|
46815
46819
|
return {
|
|
46816
46820
|
type: type,
|
|
46817
|
-
utcTimestamp_ms: system_date_1.getSystemDateValueOf(),
|
|
46821
|
+
utcTimestamp_ms: (0, system_date_1.getSystemDateValueOf)(),
|
|
46818
46822
|
data: data
|
|
46819
46823
|
};
|
|
46820
46824
|
};
|
|
@@ -46900,7 +46904,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
46900
46904
|
var slEnvVars = {};
|
|
46901
46905
|
Object.keys(process.env).forEach(function (key) {
|
|
46902
46906
|
if (key.indexOf(SEALIGHTS_ENV_VAR_PREFIX) === 0) {
|
|
46903
|
-
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) ?
|
|
46904
46908
|
AgentInstanceInfoBuilder.SECRET_VALUE_PLACEHOLDER : process.env[key];
|
|
46905
46909
|
}
|
|
46906
46910
|
});
|
|
@@ -47101,7 +47105,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
47101
47105
|
};
|
|
47102
47106
|
CockpitNotifier.verifyControllerInitialized = function () {
|
|
47103
47107
|
if (!CockpitNotifier.controller && !CockpitNotifier.isDryRunMode) {
|
|
47104
|
-
throw new Error('\'Agent started\' event
|
|
47108
|
+
throw new Error('\'Agent started\' event was not sent. Disabling!');
|
|
47105
47109
|
}
|
|
47106
47110
|
};
|
|
47107
47111
|
CockpitNotifier.reset = function () {
|
|
@@ -47185,7 +47189,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
47185
47189
|
this.info = {};
|
|
47186
47190
|
}
|
|
47187
47191
|
MachineInfoBuilder.prototype.fillData = function () {
|
|
47188
|
-
var currentDate = system_date_1.getSystemDate();
|
|
47192
|
+
var currentDate = (0, system_date_1.getSystemDate)();
|
|
47189
47193
|
this.info.machineName = os.hostname();
|
|
47190
47194
|
this.info.arch = os.arch();
|
|
47191
47195
|
this.info.os = os.platform();
|
|
@@ -47303,7 +47307,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
47303
47307
|
for (var _i = 0, _a = Object.entries(secretKeysRegexes); _i < _a.length; _i++) {
|
|
47304
47308
|
var _b = _a[_i], key = _b[0], regex = _b[1];
|
|
47305
47309
|
if (new RegExp(regex).test(value)) {
|
|
47306
|
-
logger.debug("Value for key "
|
|
47310
|
+
logger.debug("Value for key ".concat(envVar, " filtered out since it suspected to contains data fpr ").concat(key));
|
|
47307
47311
|
return true;
|
|
47308
47312
|
}
|
|
47309
47313
|
}
|
|
@@ -47345,12 +47349,12 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
47345
47349
|
var packageJsonFilePath = files_utils_1.FilesUtils.findFileUp('package.json', __dirname);
|
|
47346
47350
|
if (packageJsonFilePath) {
|
|
47347
47351
|
try {
|
|
47348
|
-
var packageJson = fs_1.readFileSync(packageJsonFilePath).toString();
|
|
47352
|
+
var packageJson = (0, fs_1.readFileSync)(packageJsonFilePath).toString();
|
|
47349
47353
|
var parsed = JSON.parse(packageJson);
|
|
47350
47354
|
return parsed.version;
|
|
47351
47355
|
}
|
|
47352
47356
|
catch (e) {
|
|
47353
|
-
console.warn("Failed to resolve agent version, Error: '"
|
|
47357
|
+
console.warn("Failed to resolve agent version, Error: '".concat(e));
|
|
47354
47358
|
return null;
|
|
47355
47359
|
}
|
|
47356
47360
|
}
|
|
@@ -47824,7 +47828,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
47824
47828
|
_this.extendedFootprints = new config_system_1.BooleanConfigKey(false, false);
|
|
47825
47829
|
_this.projectRoot = new config_system_1.StringConfigKey(false);
|
|
47826
47830
|
_this.enforceFullRun = new config_system_1.BooleanConfigKey(false, false);
|
|
47827
|
-
_this.footprintsEnableV6 = new config_system_1.BooleanConfigKey(false,
|
|
47831
|
+
_this.footprintsEnableV6 = new config_system_1.BooleanConfigKey(false, true);
|
|
47828
47832
|
_this.footprintsBufferThresholdMb = new config_system_1.NumberConfigKey(false, 10);
|
|
47829
47833
|
_this.executionQueryIntervalSecs = new config_system_1.NumberConfigKey(false, 10);
|
|
47830
47834
|
_this.footprintsQueueSize = new config_system_1.NumberConfigKey(false, 2);
|
|
@@ -48011,7 +48015,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
48011
48015
|
Constants.CALLBACK = 'callback';
|
|
48012
48016
|
Constants.PULL_REQUEST_PARAMS = 'pullRequestParams';
|
|
48013
48017
|
Constants.SL_WINDOW_OBJECT = 'window.$Sealights';
|
|
48014
|
-
Constants.SKIP_BROWSER_AGENT = Constants.SL_WINDOW_OBJECT
|
|
48018
|
+
Constants.SKIP_BROWSER_AGENT = "".concat(Constants.SL_WINDOW_OBJECT, ".skipSlAgent");
|
|
48015
48019
|
Constants.Messages = (_a = (function () {
|
|
48016
48020
|
function class_1() {
|
|
48017
48021
|
}
|
|
@@ -48445,24 +48449,24 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
48445
48449
|
var files_utils_1 = require("../utils/files-utils");
|
|
48446
48450
|
var istanbul_unique_id_converter_1 = require("./istanbul-unique-id-converter");
|
|
48447
48451
|
function resolveNewId(uniqueIdKey, moduleName, relativePath, coverageObject, logger) {
|
|
48448
|
-
moduleName = path_1.normalize(moduleName);
|
|
48452
|
+
moduleName = (0, path_1.normalize)(moduleName);
|
|
48449
48453
|
var moduleData = resolveModule(coverageObject, moduleName, logger);
|
|
48450
48454
|
if (!moduleData) {
|
|
48451
48455
|
return;
|
|
48452
48456
|
}
|
|
48453
48457
|
if (!moduleData.uniqueIdsMap) {
|
|
48454
|
-
logger.debug("building uniqueids map for "
|
|
48455
|
-
var before_1 = system_date_1.getSystemDateValueOf();
|
|
48456
|
-
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"));
|
|
48457
48461
|
createSLMapping(moduleData.path, relativePath, coverageObject, logger);
|
|
48458
|
-
var after_1 = system_date_1.getSystemDateValueOf();
|
|
48462
|
+
var after_1 = (0, system_date_1.getSystemDateValueOf)();
|
|
48459
48463
|
logger.debug('*******************************create unique id map ******************************************');
|
|
48460
48464
|
logger.debug(after_1 - before_1);
|
|
48461
48465
|
logger.debug('*******************************create unique id map ******************************************');
|
|
48462
48466
|
}
|
|
48463
48467
|
var newUniqueId = moduleData.uniqueIdsMap[uniqueIdKey];
|
|
48464
48468
|
if (!newUniqueId) {
|
|
48465
|
-
logger.error("could not generate new uniqueId for '"
|
|
48469
|
+
logger.error("could not generate new uniqueId for '".concat(uniqueIdKey, "'"));
|
|
48466
48470
|
}
|
|
48467
48471
|
return newUniqueId;
|
|
48468
48472
|
}
|
|
@@ -48471,7 +48475,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
48471
48475
|
var withLeftSlashes = files_utils_1.FilesUtils.adjustPathSlashes(moduleName);
|
|
48472
48476
|
var moduleData = coverageObject[moduleName] || coverageObject[withLeftSlashes];
|
|
48473
48477
|
if (!moduleData) {
|
|
48474
|
-
logger.warn("Coverage object not contains data for "
|
|
48478
|
+
logger.warn("Coverage object not contains data for ".concat(moduleName, " or ").concat(withLeftSlashes));
|
|
48475
48479
|
}
|
|
48476
48480
|
return moduleData;
|
|
48477
48481
|
}
|
|
@@ -48736,8 +48740,8 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
48736
48740
|
this.removeDuplicateElements(this._methodsArray);
|
|
48737
48741
|
this.removeDuplicateElements(this._branchesArray);
|
|
48738
48742
|
this.sortElements();
|
|
48739
|
-
this.logger.debug("sorted "
|
|
48740
|
-
this.logger.debug("sorted "
|
|
48743
|
+
this.logger.debug("sorted ".concat(this._branchesArray.length, " branches"));
|
|
48744
|
+
this.logger.debug("sorted ".concat(this._methodsArray.length, " methods"));
|
|
48741
48745
|
this.fillUniqueIdsMap();
|
|
48742
48746
|
};
|
|
48743
48747
|
UniqueIdConverter.prototype.setAndInitFile = function (file) {
|
|
@@ -48778,7 +48782,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
48778
48782
|
var currentIndex = indexesArray[i];
|
|
48779
48783
|
var currentElement = array[currentIndex];
|
|
48780
48784
|
currentElement.uniqueId = currentElement.filename + delimiter + line + ',' + i;
|
|
48781
|
-
this.logger.debug("[UniqueIdConverter] uniqueId "
|
|
48785
|
+
this.logger.debug("[UniqueIdConverter] uniqueId ".concat(currentElement.uniqueIdKey, " converted to \n ").concat(currentElement.uniqueId));
|
|
48782
48786
|
this._uniqueIdsMap[currentElement.uniqueIdKey] = currentElement.uniqueId;
|
|
48783
48787
|
if (currentElement.uniqueIdKey_decl) {
|
|
48784
48788
|
this._uniqueIdsMap[currentElement.uniqueIdKey_decl] = currentElement.uniqueId;
|
|
@@ -48888,7 +48892,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
48888
48892
|
if (branch.isStartsAfter(method) && branch.isEndsAfter(method)) {
|
|
48889
48893
|
return 1;
|
|
48890
48894
|
}
|
|
48891
|
-
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"));
|
|
48892
48896
|
return 0;
|
|
48893
48897
|
};
|
|
48894
48898
|
UniqueIdConverter.prototype.aggregateElementsByLine = function (elements) {
|
|
@@ -48970,7 +48974,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
48970
48974
|
}
|
|
48971
48975
|
EventsCreator.createTestStartedEvent = function (executionId, framework, testName, duration) {
|
|
48972
48976
|
var eventBase = this.createEvent(events_contracts_1.EventTypes.TestStart, executionId, framework);
|
|
48973
|
-
var startTimeStamp = system_date_1.getSystemDateValueOf() - duration;
|
|
48977
|
+
var startTimeStamp = (0, system_date_1.getSystemDateValueOf)() - duration;
|
|
48974
48978
|
eventBase.localTime = startTimeStamp;
|
|
48975
48979
|
return __assign(__assign({}, eventBase), { testName: testName });
|
|
48976
48980
|
};
|
|
@@ -48983,7 +48987,7 @@ var __assign = (this && this.__assign) || function () {
|
|
|
48983
48987
|
type: type,
|
|
48984
48988
|
executionId: executionId,
|
|
48985
48989
|
framework: framework,
|
|
48986
|
-
localTime: system_date_1.getSystemDateValueOf()
|
|
48990
|
+
localTime: (0, system_date_1.getSystemDateValueOf)()
|
|
48987
48991
|
};
|
|
48988
48992
|
};
|
|
48989
48993
|
return EventsCreator;
|
|
@@ -49066,7 +49070,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
49066
49070
|
this.init();
|
|
49067
49071
|
}
|
|
49068
49072
|
EventsProcess.prototype.enqueueEvent = function (evt) {
|
|
49069
|
-
evt.localTime = evt.localTime || system_date_1.getSystemDateValueOf();
|
|
49073
|
+
evt.localTime = evt.localTime || (0, system_date_1.getSystemDateValueOf)();
|
|
49070
49074
|
this._eventsQueue.enqueue(evt);
|
|
49071
49075
|
if (this.isRunning && this.configuration.sendEvents.value && this.configuration.enabled.value) {
|
|
49072
49076
|
this.ensureKeepaliveThreadRunning();
|
|
@@ -49136,7 +49140,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
49136
49140
|
_this.removeRequest(promise);
|
|
49137
49141
|
});
|
|
49138
49142
|
promise.catch(function (err) {
|
|
49139
|
-
_this._logger.warn("Error while submitting events, "
|
|
49143
|
+
_this._logger.warn("Error while submitting events, ".concat(err));
|
|
49140
49144
|
_this._eventsQueue.requeue(items);
|
|
49141
49145
|
_this.removeRequest(promise);
|
|
49142
49146
|
});
|
|
@@ -49160,7 +49164,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
49160
49164
|
case 3: return [3, 5];
|
|
49161
49165
|
case 4:
|
|
49162
49166
|
e_2 = _a.sent();
|
|
49163
|
-
this._logger.warn("Error while sending events synchronously. "
|
|
49167
|
+
this._logger.warn("Error while sending events synchronously. ".concat(e_2));
|
|
49164
49168
|
return [3, 5];
|
|
49165
49169
|
case 5: return [2];
|
|
49166
49170
|
}
|
|
@@ -49179,7 +49183,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
49179
49183
|
events: items,
|
|
49180
49184
|
meta: {
|
|
49181
49185
|
sequence: ++this.sequence,
|
|
49182
|
-
generated: system_date_1.getSystemDateValueOf(),
|
|
49186
|
+
generated: (0, system_date_1.getSystemDateValueOf)(),
|
|
49183
49187
|
agentId: this._agentInstanceData.agentId,
|
|
49184
49188
|
},
|
|
49185
49189
|
};
|
|
@@ -49331,7 +49335,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
49331
49335
|
return locations[leaveIdx].start || locations[leaveIdx].st;
|
|
49332
49336
|
};
|
|
49333
49337
|
BaseBrowserHitsConverter.prototype.formatLoc = function (loc) {
|
|
49334
|
-
return location_formatter_1.formatLocation(loc, this.logger);
|
|
49338
|
+
return (0, location_formatter_1.formatLocation)(loc, this.logger);
|
|
49335
49339
|
};
|
|
49336
49340
|
BaseBrowserHitsConverter.prototype.tryGetUniqueIdFromSlMapping = function (rawUniqueId) {
|
|
49337
49341
|
rawUniqueId = files_utils_1.FilesUtils.adjustPathSlashes(rawUniqueId);
|
|
@@ -49776,7 +49780,16 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
49776
49780
|
return hit.loc.start;
|
|
49777
49781
|
};
|
|
49778
49782
|
HitsConverter.prototype.getLeaveStartLoc = function (hit, leaveIdx) {
|
|
49779
|
-
|
|
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;
|
|
49780
49793
|
};
|
|
49781
49794
|
HitsConverter.prototype.createBranchIds = function (hitFunctions, relativePath, absolutePath) {
|
|
49782
49795
|
var _this = this;
|
|
@@ -49792,7 +49805,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
49792
49805
|
var idParts = this.resolveIdParts(startLoc, relativePath, absolutePath);
|
|
49793
49806
|
if (sl_env_vars_1.SlEnvVars.isUseNewUniqueId()) {
|
|
49794
49807
|
var uniqueIdKey = idParts.relativePath + '@' + this.formatLoc(idParts.start);
|
|
49795
|
-
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);
|
|
49796
49809
|
if (uniqueId) {
|
|
49797
49810
|
return uniqueId;
|
|
49798
49811
|
}
|
|
@@ -49804,7 +49817,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
49804
49817
|
var parts = this.resolveIdParts(startLoc, relativePath, absolutePath);
|
|
49805
49818
|
if (sl_env_vars_1.SlEnvVars.isUseNewUniqueId()) {
|
|
49806
49819
|
var uniqueIdKey = parts.relativePath + '|' + this.formatLoc(parts.start) + '|' + leaveIndex;
|
|
49807
|
-
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);
|
|
49808
49821
|
}
|
|
49809
49822
|
if (!uniqueId) {
|
|
49810
49823
|
uniqueId = parts.relativePath + HitsConverter.BRANCH_ID_DEL + this.formatLoc(parts.start) + HitsConverter.BRANCH_ID_DEL + leaveIndex;
|
|
@@ -49905,7 +49918,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
49905
49918
|
this.collectionInterval.next();
|
|
49906
49919
|
var hitFilesData = this.hitsCollector.getHitElements();
|
|
49907
49920
|
if (hitFilesData.length) {
|
|
49908
|
-
this.logger.info("Collecting hits for '"
|
|
49921
|
+
this.logger.info("Collecting hits for '".concat(hitFilesData.length, "' files"));
|
|
49909
49922
|
var convertedHits = this.hitsConverter.convertHits(hitFilesData);
|
|
49910
49923
|
this.footprintsBuffer.addHit(convertedHits, this.collectionInterval.toJson(), executionId, testName, this.isInitFootprints(), isFinalFootprints);
|
|
49911
49924
|
}
|
|
@@ -49950,11 +49963,11 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
49950
49963
|
return [4, this.backendProxy.submitFootprintsV6(packet, this.currentExecutionBsid, this.stateTracker.getTestStage(), this.cfg.buildSessionId.value)];
|
|
49951
49964
|
case 2:
|
|
49952
49965
|
_a.sent();
|
|
49953
|
-
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"));
|
|
49954
49967
|
return [3, 5];
|
|
49955
49968
|
case 3:
|
|
49956
49969
|
e_1 = _a.sent();
|
|
49957
|
-
this.logger.error("Error while submitting footprints '"
|
|
49970
|
+
this.logger.error("Error while submitting footprints '".concat(e_1, "'"));
|
|
49958
49971
|
cockpit_notifier_1.CockpitNotifier.sendEvent(agent_events_conracts_1.AgentEventCode.FOOTPRINTS_LOSS);
|
|
49959
49972
|
return [3, 5];
|
|
49960
49973
|
case 4:
|
|
@@ -50042,15 +50055,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
50042
50055
|
_this.submitQueuedFootprints();
|
|
50043
50056
|
});
|
|
50044
50057
|
this.stateTracker.on(state_tracker_1.StateTracker.EXECUTION_BSID_CHANGED, function (prevExecution, newBuildSession) {
|
|
50045
|
-
_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"));
|
|
50046
50059
|
_this.enqueueAndSubmit(prevExecution);
|
|
50047
50060
|
});
|
|
50048
50061
|
this.stateTracker.on(state_tracker_1.StateTracker.EXECUTION_ID_CHANGED, function (prevExecution, newExecutionId) {
|
|
50049
|
-
_this.logger.warn("Execution id changed to'"
|
|
50062
|
+
_this.logger.warn("Execution id changed to'".concat(newExecutionId, "'. Collecting previous footprints"));
|
|
50050
50063
|
_this.enqueueCurrentFootprints(prevExecution.executionId, null, prevExecution.buildSessionId);
|
|
50051
50064
|
});
|
|
50052
50065
|
this.stateTracker.on(state_tracker_1.StateTracker.TEST_STAGE_CHANGED, function (prevExecution, newTestStage) {
|
|
50053
|
-
_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"));
|
|
50054
50067
|
_this.enqueueAndSubmit(prevExecution);
|
|
50055
50068
|
});
|
|
50056
50069
|
};
|
|
@@ -50114,7 +50127,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
50114
50127
|
else if (position.hasOwnProperty('l') && position.hasOwnProperty('c')) {
|
|
50115
50128
|
return position.l + ',' + position.c;
|
|
50116
50129
|
}
|
|
50117
|
-
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"));
|
|
50118
50131
|
return '-1,-1';
|
|
50119
50132
|
}
|
|
50120
50133
|
exports.formatLocation = formatLocation;
|
|
@@ -50123,7 +50136,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
50123
50136
|
return JSON.stringify(position);
|
|
50124
50137
|
}
|
|
50125
50138
|
catch (e) {
|
|
50126
|
-
"failed to stringify position '"
|
|
50139
|
+
"failed to stringify position '".concat(e, "'");
|
|
50127
50140
|
}
|
|
50128
50141
|
}
|
|
50129
50142
|
});
|
|
@@ -50187,13 +50200,13 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
50187
50200
|
var CollectionInterval = (function () {
|
|
50188
50201
|
function CollectionInterval(intervalInMS) {
|
|
50189
50202
|
this.intervalInSeconds = this.toSeconds(intervalInMS);
|
|
50190
|
-
this.start = this.toSeconds(system_date_1.getSystemDateValueOf());
|
|
50203
|
+
this.start = this.toSeconds((0, system_date_1.getSystemDateValueOf)());
|
|
50191
50204
|
}
|
|
50192
50205
|
CollectionInterval.prototype.next = function () {
|
|
50193
50206
|
if (this.end) {
|
|
50194
50207
|
this.start = this.end;
|
|
50195
50208
|
}
|
|
50196
|
-
this.end = this.toSeconds(system_date_1.getSystemDateValueOf());
|
|
50209
|
+
this.end = this.toSeconds((0, system_date_1.getSystemDateValueOf)());
|
|
50197
50210
|
if ((this.end - this.start) > this.intervalInSeconds) {
|
|
50198
50211
|
this.start = this.end - this.intervalInSeconds;
|
|
50199
50212
|
}
|
|
@@ -50440,6 +50453,16 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
50440
50453
|
});
|
|
50441
50454
|
});
|
|
50442
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
|
+
};
|
|
50443
50466
|
BackendProxy.prototype.submitBlob = function (body, buildSessionId, blobId, callback) {
|
|
50444
50467
|
var url = sl_routes_1.SLRoutes.blobs(buildSessionId, blobId);
|
|
50445
50468
|
this.client.post(body, url, callback, true, contracts_1.ContentType.OCTET_STREAM);
|
|
@@ -50715,7 +50738,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
50715
50738
|
exports.GetRemoteConfigRequest = GetRemoteConfigRequest;
|
|
50716
50739
|
var SubmitLogsRequest = (function () {
|
|
50717
50740
|
function SubmitLogsRequest() {
|
|
50718
|
-
this.creationTime = system_date_1.getSystemDateValueOf();
|
|
50741
|
+
this.creationTime = (0, system_date_1.getSystemDateValueOf)();
|
|
50719
50742
|
}
|
|
50720
50743
|
return SubmitLogsRequest;
|
|
50721
50744
|
}());
|
|
@@ -50869,7 +50892,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
50869
50892
|
var opts = this.createDefaultOptions(urlPath);
|
|
50870
50893
|
var id = uuid();
|
|
50871
50894
|
var onRequestCallback = this.createOnRequestCallback(http_verb_1.HttpVerb.POST, id, callback);
|
|
50872
|
-
this.logger.info("Sending "
|
|
50895
|
+
this.logger.info("Sending ".concat(http_verb_1.HttpVerb.POST, " request. Url: '").concat(opts.url, "', requestId: '").concat(id, "'"));
|
|
50873
50896
|
var req = request.post(opts, onRequestCallback);
|
|
50874
50897
|
var form = req.form();
|
|
50875
50898
|
form.append('file', JSON.stringify(agentData), {
|
|
@@ -50882,7 +50905,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
50882
50905
|
});
|
|
50883
50906
|
}
|
|
50884
50907
|
catch (err) {
|
|
50885
|
-
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, "'"));
|
|
50886
50909
|
return callback(err, null, null);
|
|
50887
50910
|
}
|
|
50888
50911
|
};
|
|
@@ -50921,7 +50944,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
50921
50944
|
}
|
|
50922
50945
|
var id = uuid();
|
|
50923
50946
|
var onRequestCallback = this.createOnRequestCallback(httpVerb, id, callback, isNotFoundAcceptable);
|
|
50924
|
-
this.logger.info("Sending "
|
|
50947
|
+
this.logger.info("Sending ".concat(httpVerb, " request. Url: '").concat(opts.url, "', requestId: '").concat(id, "'"));
|
|
50925
50948
|
if (httpVerb === http_verb_1.HttpVerb.GET) {
|
|
50926
50949
|
opts.json = true;
|
|
50927
50950
|
request.get(opts, onRequestCallback);
|
|
@@ -50941,11 +50964,11 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
50941
50964
|
request.put(opts, onRequestCallback);
|
|
50942
50965
|
}
|
|
50943
50966
|
else {
|
|
50944
|
-
new Error(httpVerb
|
|
50967
|
+
new Error("".concat(httpVerb, " is not implemented yet."));
|
|
50945
50968
|
}
|
|
50946
50969
|
}
|
|
50947
50970
|
catch (err) {
|
|
50948
|
-
this.logger.error("Failed sending Http "
|
|
50971
|
+
this.logger.error("Failed sending Http ".concat(httpVerb, " request to:'").concat(urlPath, "'. Error: '").concat(err, "'"));
|
|
50949
50972
|
return callback(err, null, null);
|
|
50950
50973
|
}
|
|
50951
50974
|
};
|
|
@@ -50958,23 +50981,26 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
50958
50981
|
var statusCode = -1;
|
|
50959
50982
|
if (requestResponse != null) {
|
|
50960
50983
|
statusCode = requestResponse.statusCode;
|
|
50961
|
-
_this.logger.warn("Got "
|
|
50984
|
+
_this.logger.warn("Got ".concat(statusCode, " in '").concat(httpVerb, "' request. Request id:'").concat(requestId, "', Transaction ID:'").concat(txId, "'."));
|
|
50962
50985
|
}
|
|
50963
50986
|
if (err) {
|
|
50964
|
-
err = new Error("HttpClient failed. Error: "
|
|
50987
|
+
err = new Error("HttpClient failed. Error: ".concat(err.message, ", StatusCode: ").concat(statusCode, ", Stack: ").concat(err.stack));
|
|
50965
50988
|
}
|
|
50966
50989
|
else if (statusCode === 404 && isNotFoundAcceptable) {
|
|
50967
50990
|
err = null;
|
|
50968
50991
|
}
|
|
50969
50992
|
else {
|
|
50970
|
-
var errorMessage = "Server returned "
|
|
50993
|
+
var errorMessage = "Server returned: ".concat(statusCode, " status code in '").concat(httpVerb, "' request. Transaction ID:'").concat(txId, "'.");
|
|
50971
50994
|
if (body)
|
|
50972
|
-
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('');
|
|
50973
50999
|
err = new Error(errorMessage);
|
|
50974
51000
|
}
|
|
50975
51001
|
return callback(err, body, statusCode);
|
|
50976
51002
|
}
|
|
50977
|
-
_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));
|
|
50978
51004
|
if (body && body.length > 0 && typeof body == 'string') {
|
|
50979
51005
|
body = JSON.parse(body);
|
|
50980
51006
|
}
|
|
@@ -51008,7 +51034,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
51008
51034
|
timeout = 60 * 1000 * 2;
|
|
51009
51035
|
}
|
|
51010
51036
|
timeout = Number(timeout);
|
|
51011
|
-
this.logger.debug("Http timeout value is '"
|
|
51037
|
+
this.logger.debug("Http timeout value is '".concat(timeout, "'."));
|
|
51012
51038
|
return timeout;
|
|
51013
51039
|
};
|
|
51014
51040
|
return HttpClient;
|
|
@@ -51158,7 +51184,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
51158
51184
|
};
|
|
51159
51185
|
SLRoutes.recommendedAgentV2 = function (component, customerId, appName, branchName, testStage) {
|
|
51160
51186
|
if (!component) {
|
|
51161
|
-
throw new Error("'component' "
|
|
51187
|
+
throw new Error("'component' ".concat(constants_1.Constants.Messages.CANNOT_BE_NULL_OR_UNDEFINED, "."));
|
|
51162
51188
|
}
|
|
51163
51189
|
var result = SLRoutes.agentsV2() + SLRoutes.toUri(component) + SLRoutes.toUri(SLRoutes.RECOMMENDED_VERSION);
|
|
51164
51190
|
var query = {
|
|
@@ -51382,14 +51408,13 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
51382
51408
|
if (v !== undefined) module.exports = v;
|
|
51383
51409
|
}
|
|
51384
51410
|
else if (typeof define === "function" && define.amd) {
|
|
51385
|
-
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);
|
|
51386
51412
|
}
|
|
51387
51413
|
})(function (require, exports) {
|
|
51388
51414
|
"use strict";
|
|
51389
51415
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51390
51416
|
exports.StateTracker = void 0;
|
|
51391
51417
|
var events = require("events");
|
|
51392
|
-
var timers_1 = require("timers");
|
|
51393
51418
|
var sl_env_vars_1 = require("./constants/sl-env-vars");
|
|
51394
51419
|
var validation_utils_1 = require("./utils/validation-utils");
|
|
51395
51420
|
var cockpit_notifier_1 = require("./agent-events/cockpit-notifier");
|
|
@@ -51435,9 +51460,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
51435
51460
|
_this.checkTestStatusAtServer();
|
|
51436
51461
|
});
|
|
51437
51462
|
if (this.cfg.shouldCheckForActiveExecutionOnStartUp.value) {
|
|
51438
|
-
|
|
51439
|
-
_this.checkTestStatusAtServer(false);
|
|
51440
|
-
}, 0);
|
|
51463
|
+
this.checkTestStatusAtServer(false);
|
|
51441
51464
|
}
|
|
51442
51465
|
};
|
|
51443
51466
|
StateTracker.prototype.checkTestStatusAtServer = function (async) {
|
|
@@ -51452,7 +51475,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
51452
51475
|
_this.notifyCockpit(response.execution);
|
|
51453
51476
|
_this._currentExecution = response.execution;
|
|
51454
51477
|
}).catch(function (err) {
|
|
51455
|
-
_this.logger.warn("Error while checking test execution status "
|
|
51478
|
+
_this.logger.warn("Error while checking test execution status ".concat(err));
|
|
51456
51479
|
});
|
|
51457
51480
|
}
|
|
51458
51481
|
};
|
|
@@ -51466,7 +51489,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
51466
51489
|
return this._currentExecution != null;
|
|
51467
51490
|
};
|
|
51468
51491
|
StateTracker.prototype.shouldCollectHits = function () {
|
|
51469
|
-
return this.hasMappingAtServer()
|
|
51492
|
+
return this.hasMappingAtServer();
|
|
51470
51493
|
};
|
|
51471
51494
|
Object.defineProperty(StateTracker.prototype, "currentExecution", {
|
|
51472
51495
|
get: function () {
|
|
@@ -51533,7 +51556,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
51533
51556
|
callback();
|
|
51534
51557
|
}
|
|
51535
51558
|
catch (err) {
|
|
51536
|
-
this.logger.error("Error while stopping StateTracker. '"
|
|
51559
|
+
this.logger.error("Error while stopping StateTracker. '".concat(err, "'"));
|
|
51537
51560
|
return callback();
|
|
51538
51561
|
}
|
|
51539
51562
|
};
|
|
@@ -51578,7 +51601,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
51578
51601
|
return [3, 3];
|
|
51579
51602
|
case 2:
|
|
51580
51603
|
e_1 = _a.sent();
|
|
51581
|
-
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"));
|
|
51582
51605
|
return [3, 3];
|
|
51583
51606
|
case 3: return [2];
|
|
51584
51607
|
}
|
|
@@ -51625,7 +51648,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
51625
51648
|
exports.StateTracker = StateTracker;
|
|
51626
51649
|
});
|
|
51627
51650
|
|
|
51628
|
-
},{"./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){
|
|
51629
51652
|
(function (factory) {
|
|
51630
51653
|
if (typeof module === "object" && typeof module.exports === "object") {
|
|
51631
51654
|
var v = factory(require, exports);
|
|
@@ -51677,6 +51700,15 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
51677
51700
|
originalFilename = path.resolve(generatedDir, originalFilename);
|
|
51678
51701
|
return originalFilename;
|
|
51679
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
|
+
};
|
|
51680
51712
|
FilesUtils.adjustPathSlashes = function (filePath) {
|
|
51681
51713
|
filePath = (filePath || '').replace(/\\/g, '/');
|
|
51682
51714
|
return filePath;
|
|
@@ -51785,10 +51817,10 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
51785
51817
|
}
|
|
51786
51818
|
ValidationUtils.verifyNotNullOrEmpty = function (value, paramName) {
|
|
51787
51819
|
if (value === undefined || value === null) {
|
|
51788
|
-
throw new Error(paramName
|
|
51820
|
+
throw new Error("".concat(paramName, " ").concat(constants_1.Constants.Messages.CANNOT_BE_NULL_OR_UNDEFINED, "."));
|
|
51789
51821
|
}
|
|
51790
51822
|
if (typeof (value) === 'string' && value.length === 0) {
|
|
51791
|
-
throw new Error(paramName
|
|
51823
|
+
throw new Error("".concat(paramName, " ").concat(constants_1.Constants.Messages.CANNOT_BE_EMPTY_STRING, "."));
|
|
51792
51824
|
}
|
|
51793
51825
|
};
|
|
51794
51826
|
return ValidationUtils;
|
|
@@ -64863,9 +64895,7 @@ function escapeJsonPtr(str) {
|
|
|
64863
64895
|
/**
|
|
64864
64896
|
* JSONSchema Validator - Validates JavaScript objects using JSON Schemas
|
|
64865
64897
|
* (http://www.json.com/json-schema-proposal/)
|
|
64866
|
-
*
|
|
64867
|
-
* Copyright (c) 2007 Kris Zyp SitePen (www.sitepen.com)
|
|
64868
|
-
* Licensed under the MIT (MIT-LICENSE.txt) license.
|
|
64898
|
+
* Licensed under AFL-2.1 OR BSD-3-Clause
|
|
64869
64899
|
To use the validator call the validate function with an instance object and an optional schema object.
|
|
64870
64900
|
If a schema is provided, it will be used to validate. If the instance object refers to a schema (self-validating),
|
|
64871
64901
|
that schema will be used to validate and the schema parameter is not necessary (if both exist,
|
|
@@ -64969,7 +64999,7 @@ var validate = exports._validate = function(/*Any*/instance,/*Object*/schema,/*O
|
|
|
64969
64999
|
!(value instanceof Array && type == 'array') &&
|
|
64970
65000
|
!(value instanceof Date && type == 'date') &&
|
|
64971
65001
|
!(type == 'integer' && value%1===0)){
|
|
64972
|
-
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"}];
|
|
64973
65003
|
}
|
|
64974
65004
|
if(type instanceof Array){
|
|
64975
65005
|
var unionErrors=[];
|
|
@@ -65032,11 +65062,11 @@ var validate = exports._validate = function(/*Any*/instance,/*Object*/schema,/*O
|
|
|
65032
65062
|
if(schema.minLength && typeof value == 'string' && value.length < schema.minLength){
|
|
65033
65063
|
addError("must be at least " + schema.minLength + " characters long");
|
|
65034
65064
|
}
|
|
65035
|
-
if(typeof schema.minimum !== undefined && typeof value == typeof schema.minimum &&
|
|
65065
|
+
if(typeof schema.minimum !== 'undefined' && typeof value == typeof schema.minimum &&
|
|
65036
65066
|
schema.minimum > value){
|
|
65037
65067
|
addError("must have a minimum value of " + schema.minimum);
|
|
65038
65068
|
}
|
|
65039
|
-
if(typeof schema.maximum !== undefined && typeof value == typeof schema.maximum &&
|
|
65069
|
+
if(typeof schema.maximum !== 'undefined' && typeof value == typeof schema.maximum &&
|
|
65040
65070
|
schema.maximum < value){
|
|
65041
65071
|
addError("must have a maximum value of " + schema.maximum);
|
|
65042
65072
|
}
|
|
@@ -65071,8 +65101,8 @@ var validate = exports._validate = function(/*Any*/instance,/*Object*/schema,/*O
|
|
|
65071
65101
|
}
|
|
65072
65102
|
|
|
65073
65103
|
for(var i in objTypeDef){
|
|
65074
|
-
if(objTypeDef.hasOwnProperty(i)){
|
|
65075
|
-
var value = instance[i];
|
|
65104
|
+
if(objTypeDef.hasOwnProperty(i) && i != '__proto__' && i != 'constructor'){
|
|
65105
|
+
var value = instance.hasOwnProperty(i) ? instance[i] : undefined;
|
|
65076
65106
|
// skip _not_ specified properties
|
|
65077
65107
|
if (value === undefined && options.existingOnly) continue;
|
|
65078
65108
|
var propDef = objTypeDef[i];
|
|
@@ -65093,7 +65123,7 @@ var validate = exports._validate = function(/*Any*/instance,/*Object*/schema,/*O
|
|
|
65093
65123
|
delete instance[i];
|
|
65094
65124
|
continue;
|
|
65095
65125
|
} else {
|
|
65096
|
-
errors.push({property:path,message:
|
|
65126
|
+
errors.push({property:path,message:"The property " + i +
|
|
65097
65127
|
" is not defined in the schema and the schema does not allow additional properties"});
|
|
65098
65128
|
}
|
|
65099
65129
|
}
|
|
@@ -66028,6 +66058,9 @@ module.exports={
|
|
|
66028
66058
|
"application/a2l": {
|
|
66029
66059
|
"source": "iana"
|
|
66030
66060
|
},
|
|
66061
|
+
"application/ace+cbor": {
|
|
66062
|
+
"source": "iana"
|
|
66063
|
+
},
|
|
66031
66064
|
"application/activemessage": {
|
|
66032
66065
|
"source": "iana"
|
|
66033
66066
|
},
|
|
@@ -66097,6 +66130,9 @@ module.exports={
|
|
|
66097
66130
|
"source": "apache",
|
|
66098
66131
|
"extensions": ["aw"]
|
|
66099
66132
|
},
|
|
66133
|
+
"application/at+jwt": {
|
|
66134
|
+
"source": "iana"
|
|
66135
|
+
},
|
|
66100
66136
|
"application/atf": {
|
|
66101
66137
|
"source": "iana"
|
|
66102
66138
|
},
|
|
@@ -66497,6 +66533,10 @@ module.exports={
|
|
|
66497
66533
|
"source": "iana",
|
|
66498
66534
|
"compressible": true
|
|
66499
66535
|
},
|
|
66536
|
+
"application/express": {
|
|
66537
|
+
"source": "iana",
|
|
66538
|
+
"extensions": ["exp"]
|
|
66539
|
+
},
|
|
66500
66540
|
"application/fastinfoset": {
|
|
66501
66541
|
"source": "iana"
|
|
66502
66542
|
},
|
|
@@ -67072,6 +67112,9 @@ module.exports={
|
|
|
67072
67112
|
"source": "iana",
|
|
67073
67113
|
"extensions": ["oxps"]
|
|
67074
67114
|
},
|
|
67115
|
+
"application/p21": {
|
|
67116
|
+
"source": "iana"
|
|
67117
|
+
},
|
|
67075
67118
|
"application/p21+zip": {
|
|
67076
67119
|
"source": "iana",
|
|
67077
67120
|
"compressible": false
|
|
@@ -67529,6 +67572,10 @@ module.exports={
|
|
|
67529
67572
|
"compressible": true,
|
|
67530
67573
|
"extensions": ["srx"]
|
|
67531
67574
|
},
|
|
67575
|
+
"application/spdx+json": {
|
|
67576
|
+
"source": "iana",
|
|
67577
|
+
"compressible": true
|
|
67578
|
+
},
|
|
67532
67579
|
"application/spirits-event+xml": {
|
|
67533
67580
|
"source": "iana",
|
|
67534
67581
|
"compressible": true
|
|
@@ -67646,6 +67693,9 @@ module.exports={
|
|
|
67646
67693
|
"application/tnauthlist": {
|
|
67647
67694
|
"source": "iana"
|
|
67648
67695
|
},
|
|
67696
|
+
"application/token-introspection+jwt": {
|
|
67697
|
+
"source": "iana"
|
|
67698
|
+
},
|
|
67649
67699
|
"application/toml": {
|
|
67650
67700
|
"compressible": true,
|
|
67651
67701
|
"extensions": ["toml"]
|
|
@@ -68007,6 +68057,10 @@ module.exports={
|
|
|
68007
68057
|
"application/vnd.afpc.modca-pagesegment": {
|
|
68008
68058
|
"source": "iana"
|
|
68009
68059
|
},
|
|
68060
|
+
"application/vnd.age": {
|
|
68061
|
+
"source": "iana",
|
|
68062
|
+
"extensions": ["age"]
|
|
68063
|
+
},
|
|
68010
68064
|
"application/vnd.ah-barcode": {
|
|
68011
68065
|
"source": "iana"
|
|
68012
68066
|
},
|
|
@@ -69848,6 +69902,10 @@ module.exports={
|
|
|
69848
69902
|
"source": "iana",
|
|
69849
69903
|
"extensions": ["taglet"]
|
|
69850
69904
|
},
|
|
69905
|
+
"application/vnd.nacamar.ybrid+json": {
|
|
69906
|
+
"source": "iana",
|
|
69907
|
+
"compressible": true
|
|
69908
|
+
},
|
|
69851
69909
|
"application/vnd.ncd.control": {
|
|
69852
69910
|
"source": "iana"
|
|
69853
69911
|
},
|
|
@@ -71801,6 +71859,15 @@ module.exports={
|
|
|
71801
71859
|
"source": "apache",
|
|
71802
71860
|
"extensions": ["iso"]
|
|
71803
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
|
+
},
|
|
71804
71871
|
"application/x-java-archive-diff": {
|
|
71805
71872
|
"source": "nginx",
|
|
71806
71873
|
"extensions": ["jardiff"]
|
|
@@ -73173,6 +73240,7 @@ module.exports={
|
|
|
73173
73240
|
},
|
|
73174
73241
|
"image/vnd.microsoft.icon": {
|
|
73175
73242
|
"source": "iana",
|
|
73243
|
+
"compressible": true,
|
|
73176
73244
|
"extensions": ["ico"]
|
|
73177
73245
|
},
|
|
73178
73246
|
"image/vnd.mix": {
|
|
@@ -73182,6 +73250,7 @@ module.exports={
|
|
|
73182
73250
|
"source": "iana"
|
|
73183
73251
|
},
|
|
73184
73252
|
"image/vnd.ms-dds": {
|
|
73253
|
+
"compressible": true,
|
|
73185
73254
|
"extensions": ["dds"]
|
|
73186
73255
|
},
|
|
73187
73256
|
"image/vnd.ms-modi": {
|
|
@@ -73432,6 +73501,14 @@ module.exports={
|
|
|
73432
73501
|
"source": "iana",
|
|
73433
73502
|
"extensions": ["obj"]
|
|
73434
73503
|
},
|
|
73504
|
+
"model/step": {
|
|
73505
|
+
"source": "iana"
|
|
73506
|
+
},
|
|
73507
|
+
"model/step+xml": {
|
|
73508
|
+
"source": "iana",
|
|
73509
|
+
"compressible": true,
|
|
73510
|
+
"extensions": ["stpx"]
|
|
73511
|
+
},
|
|
73435
73512
|
"model/step+zip": {
|
|
73436
73513
|
"source": "iana",
|
|
73437
73514
|
"compressible": false,
|
|
@@ -73863,6 +73940,10 @@ module.exports={
|
|
|
73863
73940
|
"source": "iana",
|
|
73864
73941
|
"charset": "UTF-8"
|
|
73865
73942
|
},
|
|
73943
|
+
"text/vnd.familysearch.gedcom": {
|
|
73944
|
+
"source": "iana",
|
|
73945
|
+
"extensions": ["ged"]
|
|
73946
|
+
},
|
|
73866
73947
|
"text/vnd.ficlab.flt": {
|
|
73867
73948
|
"source": "iana"
|
|
73868
73949
|
},
|
|
@@ -74132,6 +74213,9 @@ module.exports={
|
|
|
74132
74213
|
"source": "apache",
|
|
74133
74214
|
"extensions": ["jpm","jpgm"]
|
|
74134
74215
|
},
|
|
74216
|
+
"video/jxsv": {
|
|
74217
|
+
"source": "iana"
|
|
74218
|
+
},
|
|
74135
74219
|
"video/mj2": {
|
|
74136
74220
|
"source": "iana",
|
|
74137
74221
|
"extensions": ["mj2","mjp2"]
|