sealights-plugins-common 2.0.136 → 2.0.137
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/tsOutputs/lib/config/combined-config-provider.js +2 -1
- package/tsOutputs/lib/config/combined-config-provider.js.map +1 -1
- package/tsOutputs/lib/index.d.ts +1 -0
- package/tsOutputs/lib/index.js +1 -0
- package/tsOutputs/lib/index.js.map +1 -1
- package/tsOutputs/lib/utils.d.ts +1 -0
- package/tsOutputs/lib/utils.js +17 -0
- package/tsOutputs/lib/utils.js.map +1 -0
- package/tsOutputs/lib/version.d.ts +1 -1
- package/tsOutputs/lib/version.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sealights-plugins-common",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.137",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "Roni Segal <roni@sealights.io>",
|
|
6
6
|
"homepage": "https://github.com/Sealights/SL.OnPremis.Plugins.JavaScript#readme",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"minimist": "^1.2.5",
|
|
43
|
-
"slnodejs": "6.2.
|
|
43
|
+
"slnodejs": "6.2.24"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
46
|
"@types/istanbul-lib-coverage": "^2.0.6",
|
|
@@ -11,6 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CombinedConfigProvider = void 0;
|
|
13
13
|
const sealights_integration_1 = require("../sealights-integration");
|
|
14
|
+
const utils_1 = require("../utils");
|
|
14
15
|
const base_config_provider_1 = require("./base-config-provider");
|
|
15
16
|
class CombinedConfigProvider extends base_config_provider_1.BaseSlConfigProvider {
|
|
16
17
|
constructor(...providers) {
|
|
@@ -28,7 +29,7 @@ class CombinedConfigProvider extends base_config_provider_1.BaseSlConfigProvider
|
|
|
28
29
|
return p.getConfig();
|
|
29
30
|
}
|
|
30
31
|
catch (err) {
|
|
31
|
-
(0, sealights_integration_1.getLogger)().warn(
|
|
32
|
+
(0, sealights_integration_1.getLogger)().warn(`Config initialization failed with error: ${(0, utils_1.printableError)(err)}`);
|
|
32
33
|
return {};
|
|
33
34
|
}
|
|
34
35
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"combined-config-provider.js","sourceRoot":"","sources":["../../../lib/config/combined-config-provider.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,oEAAqD;AACrD,iEAA8D;AAG9D,MAAa,sBAEX,SAAQ,2CAAuB;IAG/B,YAAY,GAAG,SAAuC;QAEpD,KAAK,CAAC,EAAO,EAAE,IAAI,CAAC,CAAC;QACrB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;IAEK,IAAI;;;;;YACR,MAAM,eAAe,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAO,CAAC,EAAE,EAAE;gBACrD,IAAI;oBACF,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;oBACf,OAAO,CAAC,CAAC,SAAS,EAAE,CAAC;iBACtB;gBAAC,OAAO,GAAG,EAAE;oBACZ,IAAA,iCAAS,GAAE,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"combined-config-provider.js","sourceRoot":"","sources":["../../../lib/config/combined-config-provider.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,oEAAqD;AACrD,oCAA0C;AAC1C,iEAA8D;AAG9D,MAAa,sBAEX,SAAQ,2CAAuB;IAG/B,YAAY,GAAG,SAAuC;QAEpD,KAAK,CAAC,EAAO,EAAE,IAAI,CAAC,CAAC;QACrB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;IAEK,IAAI;;;;;YACR,MAAM,eAAe,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAO,CAAC,EAAE,EAAE;gBACrD,IAAI;oBACF,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;oBACf,OAAO,CAAC,CAAC,SAAS,EAAE,CAAC;iBACtB;gBAAC,OAAO,GAAG,EAAE;oBACZ,IAAA,iCAAS,GAAE,CAAC,IAAI,CAAC,4CAA4C,IAAA,sBAAc,EAAC,GAAG,CAAC,EAAE,CAAC,CAAC;oBACpF,OAAO,EAAO,CAAC;iBAChB;YACH,CAAC,CAAA,CAAC,CAAC;YAEH,MAAM,OAAO,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC;YACnD,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAI,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;gBAC5C,uCACK,GAAG,GACH,IAAI,EACP;YACJ,CAAC,EAAE,EAAO,CAA4B,CAAC;YAGvC,OAAM,IAAI,YAAG;QACf,CAAC;KAAA;CACF;AAjCD,wDAiCC"}
|
package/tsOutputs/lib/index.d.ts
CHANGED
package/tsOutputs/lib/index.js
CHANGED
|
@@ -23,4 +23,5 @@ Object.defineProperty(exports, "CockpitNotifier", { enumerable: true, get: funct
|
|
|
23
23
|
var contracts_1 = require("./contracts");
|
|
24
24
|
Object.defineProperty(exports, "TestResult", { enumerable: true, get: function () { return contracts_1.TestResult; } });
|
|
25
25
|
__exportStar(require("./browser"), exports);
|
|
26
|
+
__exportStar(require("./utils"), exports);
|
|
26
27
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,iEAIiC;AAH/B,6HAAA,oBAAoB,OAAA;AACpB,kHAAA,SAAS,OAAA;AACT,wHAAA,eAAe,OAAA;AAEjB,yCAAkE;AAAhC,uGAAA,UAAU,OAAA;AAE5C,4CAA0B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,iEAIiC;AAH/B,6HAAA,oBAAoB,OAAA;AACpB,kHAAA,SAAS,OAAA;AACT,wHAAA,eAAe,OAAA;AAEjB,yCAAkE;AAAhC,uGAAA,UAAU,OAAA;AAE5C,4CAA0B;AAC1B,0CAAwB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function printableError(err: unknown): string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.printableError = void 0;
|
|
4
|
+
function printableError(err) {
|
|
5
|
+
var _a, _b;
|
|
6
|
+
if (err instanceof Error) {
|
|
7
|
+
return (_a = err.stack) !== null && _a !== void 0 ? _a : err.message;
|
|
8
|
+
}
|
|
9
|
+
try {
|
|
10
|
+
return (_b = JSON.stringify(err)) !== null && _b !== void 0 ? _b : String(err);
|
|
11
|
+
}
|
|
12
|
+
catch (_c) {
|
|
13
|
+
return String(err);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
exports.printableError = printableError;
|
|
17
|
+
//# sourceMappingURL=utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../lib/utils.ts"],"names":[],"mappings":";;;AAAA,SAAgB,cAAc,CAAC,GAAY;;IACzC,IAAI,GAAG,YAAY,KAAK,EAAE;QACxB,OAAO,MAAA,GAAG,CAAC,KAAK,mCAAI,GAAG,CAAC,OAAO,CAAC;KACjC;IACD,IAAI;QACF,OAAO,MAAA,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,mCAAI,MAAM,CAAC,GAAG,CAAC,CAAC;KAC3C;IAAC,WAAM;QACN,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC;KACpB;AACH,CAAC;AATD,wCASC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "2.0.
|
|
1
|
+
export declare const version = "2.0.137";
|
package/tsOutputs/lib/version.js
CHANGED