sealights-plugins-common 2.0.44 → 2.0.69
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 +6 -4
- package/tsOutputs/lib/config/base-config-provider.d.ts +0 -9
- package/tsOutputs/lib/config/base-config-provider.js +0 -20
- package/tsOutputs/lib/config/base-config-provider.js.map +0 -1
- package/tsOutputs/lib/config/cli-args-parser.d.ts +0 -7
- package/tsOutputs/lib/config/cli-args-parser.js +0 -31
- package/tsOutputs/lib/config/cli-args-parser.js.map +0 -1
- package/tsOutputs/lib/config/combined-config-provider.d.ts +0 -8
- package/tsOutputs/lib/config/combined-config-provider.js +0 -40
- package/tsOutputs/lib/config/combined-config-provider.js.map +0 -1
- package/tsOutputs/lib/config/config-provider.d.ts +0 -6
- package/tsOutputs/lib/config/config-provider.js +0 -23
- package/tsOutputs/lib/config/config-provider.js.map +0 -1
- package/tsOutputs/lib/config/env-vars-parser.d.ts +0 -7
- package/tsOutputs/lib/config/env-vars-parser.js +0 -29
- package/tsOutputs/lib/config/env-vars-parser.js.map +0 -1
- package/tsOutputs/lib/config/file-config-provider.d.ts +0 -7
- package/tsOutputs/lib/config/file-config-provider.js +0 -32
- package/tsOutputs/lib/config/file-config-provider.js.map +0 -1
- package/tsOutputs/lib/config/index.d.ts +0 -7
- package/tsOutputs/lib/config/index.js +0 -16
- package/tsOutputs/lib/config/index.js.map +0 -1
- package/tsOutputs/lib/config/interfaces.d.ts +0 -6
- package/tsOutputs/lib/config/interfaces.js +0 -3
- package/tsOutputs/lib/config/interfaces.js.map +0 -1
- package/tsOutputs/lib/contracts.d.ts +0 -21
- package/tsOutputs/lib/contracts.js +0 -11
- package/tsOutputs/lib/contracts.js.map +0 -1
- package/tsOutputs/lib/index.d.ts +0 -4
- package/tsOutputs/lib/index.js +0 -25
- package/tsOutputs/lib/index.js.map +0 -1
- package/tsOutputs/lib/sealights-integration.d.ts +0 -24
- package/tsOutputs/lib/sealights-integration.js +0 -175
- package/tsOutputs/lib/sealights-integration.js.map +0 -1
- package/tsOutputs/lib/version.d.ts +0 -1
- package/tsOutputs/lib/version.js +0 -5
- package/tsOutputs/lib/version.js.map +0 -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.69",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"author": "Roni Segal <roni@sealights.io>",
|
|
6
6
|
"homepage": "https://github.com/RoniSegal/SL.OnPremis.Plugins.JavaScript#readme",
|
|
@@ -27,9 +27,11 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"minimist": "^1.2.5",
|
|
30
|
-
"
|
|
31
|
-
"slnodejs": "^6.1.533",
|
|
30
|
+
"slnodejs": "^6.1.632",
|
|
32
31
|
"typescript": "^4.4.4"
|
|
33
32
|
},
|
|
34
|
-
"
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"mocha": "^9.1.3"
|
|
35
|
+
},
|
|
36
|
+
"gitHead": "0632f236d811720194cbda50a17509d180ab0bff"
|
|
35
37
|
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ISlPluginConfigProvider } from './interfaces';
|
|
2
|
-
import { ITestRunnerArgs } from 'slnodejs';
|
|
3
|
-
export declare abstract class BaseSlConfigProvider<T extends ITestRunnerArgs> implements ISlPluginConfigProvider<T> {
|
|
4
|
-
protected config: Record<string, unknown>;
|
|
5
|
-
constructor(config?: T);
|
|
6
|
-
abstract init(): Promise<void>;
|
|
7
|
-
getConfig(): T;
|
|
8
|
-
getValue<K extends keyof T>(key: K): T[K];
|
|
9
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BaseSlConfigProvider = void 0;
|
|
4
|
-
class BaseSlConfigProvider {
|
|
5
|
-
constructor(config = {}) {
|
|
6
|
-
this.config = {};
|
|
7
|
-
const keys = Object.keys(config);
|
|
8
|
-
keys.forEach(key => {
|
|
9
|
-
this.config[key.toLowerCase()] = config[key];
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
getConfig() {
|
|
13
|
-
return this.config;
|
|
14
|
-
}
|
|
15
|
-
getValue(key) {
|
|
16
|
-
return this.config[key.toString().toLowerCase()];
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
exports.BaseSlConfigProvider = BaseSlConfigProvider;
|
|
20
|
-
//# sourceMappingURL=base-config-provider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base-config-provider.js","sourceRoot":"","sources":["../../../lib/config/base-config-provider.ts"],"names":[],"mappings":";;;AAGA,MAAsB,oBAAoB;IAGtC,YAAY,SAAS,EAAO;QAFlB,WAAM,GAA4B,EAAE,CAAA;QAG1C,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACjC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;YACf,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;QACjD,CAAC,CAAC,CAAC;IACP,CAAC;IAID,SAAS;QACL,OAAO,IAAI,CAAC,MAAW,CAAC;IAC5B,CAAC;IAED,QAAQ,CAAoB,GAAM;QAC9B,OAAO,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,WAAW,EAAE,CAAS,CAAC;IAC7D,CAAC;CACJ;AAnBD,oDAmBC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { BaseSlConfigProvider } from './base-config-provider';
|
|
2
|
-
import { ITestRunnerArgs } from 'slnodejs';
|
|
3
|
-
export declare class CliSlConfigProvider<T extends ITestRunnerArgs = ITestRunnerArgs> extends BaseSlConfigProvider<T> {
|
|
4
|
-
private prefix;
|
|
5
|
-
constructor(prefix?: string);
|
|
6
|
-
init(): Promise<void>;
|
|
7
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.CliSlConfigProvider = void 0;
|
|
13
|
-
const minimist = require("minimist");
|
|
14
|
-
const base_config_provider_1 = require("./base-config-provider");
|
|
15
|
-
class CliSlConfigProvider extends base_config_provider_1.BaseSlConfigProvider {
|
|
16
|
-
constructor(prefix = 'sl-') {
|
|
17
|
-
super();
|
|
18
|
-
this.prefix = prefix;
|
|
19
|
-
}
|
|
20
|
-
init() {
|
|
21
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
const args = minimist(process.argv.slice(2));
|
|
23
|
-
const slKeys = Object.keys(args).filter(key => key.indexOf(this.prefix) === 0);
|
|
24
|
-
slKeys.forEach(key => {
|
|
25
|
-
this.config[key.replace(this.prefix, '').toLowerCase()] = args[key];
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
exports.CliSlConfigProvider = CliSlConfigProvider;
|
|
31
|
-
//# sourceMappingURL=cli-args-parser.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cli-args-parser.js","sourceRoot":"","sources":["../../../lib/config/cli-args-parser.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,qCAAsC;AACtC,iEAA8D;AAG9D,MAAa,mBAAiE,SAAQ,2CAAuB;IACzG,YAAoB,SAAiB,KAAK;QACtC,KAAK,EAAE,CAAC;QADQ,WAAM,GAAN,MAAM,CAAgB;IAE1C,CAAC;IAEK,IAAI;;YACN,MAAM,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;YAC7C,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;YAE/E,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;gBACjB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;YACxE,CAAC,CAAC,CAAC;QACP,CAAC;KAAA;CACJ;AAbD,kDAaC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ITestRunnerArgs } from 'slnodejs';
|
|
2
|
-
import { BaseSlConfigProvider } from './base-config-provider';
|
|
3
|
-
import { ISlPluginConfigProvider } from './interfaces';
|
|
4
|
-
export declare class CombinedConfigProvider<T extends ITestRunnerArgs = ITestRunnerArgs> extends BaseSlConfigProvider<T> {
|
|
5
|
-
private providers;
|
|
6
|
-
constructor(...providers: ISlPluginConfigProvider<T>[]);
|
|
7
|
-
init(): Promise<void>;
|
|
8
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.CombinedConfigProvider = void 0;
|
|
13
|
-
const sealights_integration_1 = require("../sealights-integration");
|
|
14
|
-
const base_config_provider_1 = require("./base-config-provider");
|
|
15
|
-
class CombinedConfigProvider extends base_config_provider_1.BaseSlConfigProvider {
|
|
16
|
-
constructor(...providers) {
|
|
17
|
-
super();
|
|
18
|
-
this.providers = providers;
|
|
19
|
-
}
|
|
20
|
-
init() {
|
|
21
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
-
const configsPromises = this.providers.map((p) => __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
try {
|
|
24
|
-
yield p.init();
|
|
25
|
-
return p.getConfig();
|
|
26
|
-
}
|
|
27
|
-
catch (err) {
|
|
28
|
-
sealights_integration_1.logger.warn('Config initialization failed with error:', err);
|
|
29
|
-
return {};
|
|
30
|
-
}
|
|
31
|
-
}));
|
|
32
|
-
const configs = yield Promise.all(configsPromises);
|
|
33
|
-
this.config = configs.reduce((acc, item) => {
|
|
34
|
-
return Object.assign(Object.assign({}, acc), item);
|
|
35
|
-
}, {});
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
exports.CombinedConfigProvider = CombinedConfigProvider;
|
|
40
|
-
//# sourceMappingURL=combined-config-provider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"combined-config-provider.js","sourceRoot":"","sources":["../../../lib/config/combined-config-provider.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,oEAAkD;AAClD,iEAA8D;AAG9D,MAAa,sBAAoE,SAAQ,2CAAuB;IAG5G,YAAY,GAAG,SAAuC;QAClD,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;IAEK,IAAI;;YACN,MAAM,eAAe,GAAG,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAM,CAAC,EAAC,EAAE;gBACjD,IAAI;oBACA,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;oBACf,OAAO,CAAC,CAAC,SAAS,EAAE,CAAC;iBACxB;gBAAC,OAAO,GAAG,EAAE;oBACV,8BAAM,CAAC,IAAI,CAAC,0CAA0C,EAAE,GAAG,CAAC,CAAA;oBAC5D,OAAO,EAAO,CAAC;iBAClB;YACL,CAAC,CAAA,CAAC,CAAA;YAEF,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;gBAC1C,uCACO,GAAG,GACH,IAAI,EACT;YACN,CAAC,EAAE,EAAO,CAA4B,CAAC;QAC3C,CAAC;KAAA;CACJ;AA3BD,wDA2BC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ITestRunnerArgs } from 'slnodejs';
|
|
2
|
-
import { BaseSlConfigProvider } from './base-config-provider';
|
|
3
|
-
export declare class ConfigProvider<T extends ITestRunnerArgs = ITestRunnerArgs> extends BaseSlConfigProvider<T> {
|
|
4
|
-
constructor(config: T);
|
|
5
|
-
init(): Promise<void>;
|
|
6
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.ConfigProvider = void 0;
|
|
13
|
-
const base_config_provider_1 = require("./base-config-provider");
|
|
14
|
-
class ConfigProvider extends base_config_provider_1.BaseSlConfigProvider {
|
|
15
|
-
constructor(config) {
|
|
16
|
-
super(config);
|
|
17
|
-
}
|
|
18
|
-
init() {
|
|
19
|
-
return __awaiter(this, void 0, void 0, function* () { });
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.ConfigProvider = ConfigProvider;
|
|
23
|
-
//# sourceMappingURL=config-provider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config-provider.js","sourceRoot":"","sources":["../../../lib/config/config-provider.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,iEAA8D;AAE9D,MAAa,cAA4D,SAAQ,2CAAuB;IAEpG,YAAY,MAAS;QACjB,KAAK,CAAC,MAAM,CAAC,CAAC;IAClB,CAAC;IAEK,IAAI;8DAAmB,CAAC;KAAA;CACjC;AAPD,wCAOC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ITestRunnerArgs } from 'slnodejs';
|
|
2
|
-
import { BaseSlConfigProvider } from './base-config-provider';
|
|
3
|
-
export declare class EnvSlConfigProvider<T extends ITestRunnerArgs = ITestRunnerArgs> extends BaseSlConfigProvider<T> {
|
|
4
|
-
private prefix;
|
|
5
|
-
constructor(prefix?: string);
|
|
6
|
-
init(): Promise<void>;
|
|
7
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.EnvSlConfigProvider = void 0;
|
|
13
|
-
const base_config_provider_1 = require("./base-config-provider");
|
|
14
|
-
class EnvSlConfigProvider extends base_config_provider_1.BaseSlConfigProvider {
|
|
15
|
-
constructor(prefix = 'SL_') {
|
|
16
|
-
super();
|
|
17
|
-
this.prefix = prefix;
|
|
18
|
-
}
|
|
19
|
-
init() {
|
|
20
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
const slKeys = Object.keys(process.env).filter(key => key.indexOf(this.prefix) === 0);
|
|
22
|
-
slKeys.forEach(key => {
|
|
23
|
-
this.config[key.replace(this.prefix, '').toLowerCase()] = process.env[key];
|
|
24
|
-
});
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
exports.EnvSlConfigProvider = EnvSlConfigProvider;
|
|
29
|
-
//# sourceMappingURL=env-vars-parser.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"env-vars-parser.js","sourceRoot":"","sources":["../../../lib/config/env-vars-parser.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,iEAA8D;AAE9D,MAAa,mBAAiE,SAAQ,2CAAuB;IACzG,YAAoB,SAAiB,KAAK;QACtC,KAAK,EAAE,CAAC;QADQ,WAAM,GAAN,MAAM,CAAgB;IAE1C,CAAC;IAEK,IAAI;;YACN,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;YAEtF,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;gBACjB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAC/E,CAAC,CAAC,CAAC;QACP,CAAC;KAAA;CACJ;AAZD,kDAYC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ITestRunnerArgs } from 'slnodejs';
|
|
2
|
-
import { BaseSlConfigProvider } from './base-config-provider';
|
|
3
|
-
export declare class FileSlConfigProvider<T extends ITestRunnerArgs = ITestRunnerArgs> extends BaseSlConfigProvider<T> {
|
|
4
|
-
private pathToConfig;
|
|
5
|
-
constructor(pathToConfig: string);
|
|
6
|
-
init(): Promise<void>;
|
|
7
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.FileSlConfigProvider = void 0;
|
|
13
|
-
const fs_1 = require("fs");
|
|
14
|
-
const path_1 = require("path");
|
|
15
|
-
const base_config_provider_1 = require("./base-config-provider");
|
|
16
|
-
class FileSlConfigProvider extends base_config_provider_1.BaseSlConfigProvider {
|
|
17
|
-
constructor(pathToConfig) {
|
|
18
|
-
super();
|
|
19
|
-
this.pathToConfig = pathToConfig;
|
|
20
|
-
}
|
|
21
|
-
init() {
|
|
22
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
const fileContent = (0, fs_1.readFileSync)((0, path_1.resolve)(this.pathToConfig));
|
|
24
|
-
const config = JSON.parse(fileContent.toString());
|
|
25
|
-
Object.keys(config).forEach(key => {
|
|
26
|
-
this.config[key.toLowerCase()] = config[key];
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
exports.FileSlConfigProvider = FileSlConfigProvider;
|
|
32
|
-
//# sourceMappingURL=file-config-provider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"file-config-provider.js","sourceRoot":"","sources":["../../../lib/config/file-config-provider.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2BAAkC;AAClC,+BAA+B;AAE/B,iEAA8D;AAE9D,MAAa,oBAAkE,SAAQ,2CAAuB;IAE1G,YAAoB,YAAoB;QACpC,KAAK,EAAE,CAAC;QADQ,iBAAY,GAAZ,YAAY,CAAQ;IAExC,CAAC;IAEK,IAAI;;YACN,MAAM,WAAW,GAAG,IAAA,iBAAY,EAAC,IAAA,cAAO,EAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC;YAC7D,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAM,CAAC;YAEvD,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;gBAC9B,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;YACjD,CAAC,CAAC,CAAC;QACP,CAAC;KAAA;CACJ;AAdD,oDAcC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export { BaseSlConfigProvider } from './base-config-provider';
|
|
2
|
-
export { CliSlConfigProvider } from './cli-args-parser';
|
|
3
|
-
export { EnvSlConfigProvider } from './env-vars-parser';
|
|
4
|
-
export { FileSlConfigProvider } from './file-config-provider';
|
|
5
|
-
export { ConfigProvider } from './config-provider';
|
|
6
|
-
export { CombinedConfigProvider } from './combined-config-provider';
|
|
7
|
-
export { ISlPluginConfigProvider } from './interfaces';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CombinedConfigProvider = exports.ConfigProvider = exports.FileSlConfigProvider = exports.EnvSlConfigProvider = exports.CliSlConfigProvider = exports.BaseSlConfigProvider = void 0;
|
|
4
|
-
var base_config_provider_1 = require("./base-config-provider");
|
|
5
|
-
Object.defineProperty(exports, "BaseSlConfigProvider", { enumerable: true, get: function () { return base_config_provider_1.BaseSlConfigProvider; } });
|
|
6
|
-
var cli_args_parser_1 = require("./cli-args-parser");
|
|
7
|
-
Object.defineProperty(exports, "CliSlConfigProvider", { enumerable: true, get: function () { return cli_args_parser_1.CliSlConfigProvider; } });
|
|
8
|
-
var env_vars_parser_1 = require("./env-vars-parser");
|
|
9
|
-
Object.defineProperty(exports, "EnvSlConfigProvider", { enumerable: true, get: function () { return env_vars_parser_1.EnvSlConfigProvider; } });
|
|
10
|
-
var file_config_provider_1 = require("./file-config-provider");
|
|
11
|
-
Object.defineProperty(exports, "FileSlConfigProvider", { enumerable: true, get: function () { return file_config_provider_1.FileSlConfigProvider; } });
|
|
12
|
-
var config_provider_1 = require("./config-provider");
|
|
13
|
-
Object.defineProperty(exports, "ConfigProvider", { enumerable: true, get: function () { return config_provider_1.ConfigProvider; } });
|
|
14
|
-
var combined_config_provider_1 = require("./combined-config-provider");
|
|
15
|
-
Object.defineProperty(exports, "CombinedConfigProvider", { enumerable: true, get: function () { return combined_config_provider_1.CombinedConfigProvider; } });
|
|
16
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/config/index.ts"],"names":[],"mappings":";;;AAAA,+DAA8D;AAArD,4HAAA,oBAAoB,OAAA;AAC7B,qDAAwD;AAA/C,sHAAA,mBAAmB,OAAA;AAC5B,qDAAwD;AAA/C,sHAAA,mBAAmB,OAAA;AAC5B,+DAA8D;AAArD,4HAAA,oBAAoB,OAAA;AAC7B,qDAAmD;AAA1C,iHAAA,cAAc,OAAA;AACvB,uEAAoE;AAA3D,kIAAA,sBAAsB,OAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../lib/config/interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export interface ITestData {
|
|
2
|
-
fixtureName: string;
|
|
3
|
-
testName: string;
|
|
4
|
-
}
|
|
5
|
-
export declare enum TestResult {
|
|
6
|
-
SKIPPED = "skipped",
|
|
7
|
-
PASSED = "passed",
|
|
8
|
-
FAILED = "failed",
|
|
9
|
-
PENDING = "pending"
|
|
10
|
-
}
|
|
11
|
-
export interface TestEvent {
|
|
12
|
-
name: string;
|
|
13
|
-
suitename: string;
|
|
14
|
-
timestamp?: number;
|
|
15
|
-
testType?: 'regular' | 'dummy';
|
|
16
|
-
}
|
|
17
|
-
export interface TestEndEvent extends TestEvent {
|
|
18
|
-
result: TestResult;
|
|
19
|
-
duration: number;
|
|
20
|
-
coverage?: any;
|
|
21
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TestResult = void 0;
|
|
4
|
-
var TestResult;
|
|
5
|
-
(function (TestResult) {
|
|
6
|
-
TestResult["SKIPPED"] = "skipped";
|
|
7
|
-
TestResult["PASSED"] = "passed";
|
|
8
|
-
TestResult["FAILED"] = "failed";
|
|
9
|
-
TestResult["PENDING"] = "pending";
|
|
10
|
-
})(TestResult = exports.TestResult || (exports.TestResult = {}));
|
|
11
|
-
//# sourceMappingURL=contracts.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contracts.js","sourceRoot":"","sources":["../../lib/contracts.ts"],"names":[],"mappings":";;;AAIA,IAAY,UAKX;AALD,WAAY,UAAU;IAClB,iCAAmB,CAAA;IACnB,+BAAiB,CAAA;IACjB,+BAAiB,CAAA;IACjB,iCAAmB,CAAA;AACvB,CAAC,EALW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAKrB"}
|
package/tsOutputs/lib/index.d.ts
DELETED
package/tsOutputs/lib/index.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.TestResult = exports.CockpitNotifier = exports.logger = exports.SealightsIntegration = void 0;
|
|
18
|
-
__exportStar(require("./config/"), exports);
|
|
19
|
-
var sealights_integration_1 = require("./sealights-integration");
|
|
20
|
-
Object.defineProperty(exports, "SealightsIntegration", { enumerable: true, get: function () { return sealights_integration_1.SealightsIntegration; } });
|
|
21
|
-
Object.defineProperty(exports, "logger", { enumerable: true, get: function () { return sealights_integration_1.logger; } });
|
|
22
|
-
Object.defineProperty(exports, "CockpitNotifier", { enumerable: true, get: function () { return sealights_integration_1.CockpitNotifier; } });
|
|
23
|
-
var contracts_1 = require("./contracts");
|
|
24
|
-
Object.defineProperty(exports, "TestResult", { enumerable: true, get: function () { return contracts_1.TestResult; } });
|
|
25
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,iEAAsF;AAA9E,6HAAA,oBAAoB,OAAA;AAAE,+GAAA,MAAM,OAAA;AAAE,wHAAA,eAAe,OAAA;AACrD,yCAAgE;AAA/B,uGAAA,UAAU,OAAA"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { CockpitNotifier, ITagInfo } from 'slnodejs';
|
|
2
|
-
import { TestEndEvent, TestEvent } from './contracts';
|
|
3
|
-
import { ISlPluginConfigProvider } from './config';
|
|
4
|
-
export declare const logger: import("slnodejs/tsOutputs/common/contracts").Logger;
|
|
5
|
-
export { CockpitNotifier };
|
|
6
|
-
export declare class SealightsIntegration {
|
|
7
|
-
private slArgs;
|
|
8
|
-
private agent;
|
|
9
|
-
private static instance;
|
|
10
|
-
static getInstance(configProvider: ISlPluginConfigProvider, useRelativeCoverage?: boolean, tags?: ITagInfo[]): Promise<SealightsIntegration>;
|
|
11
|
-
static resetInstance(): void;
|
|
12
|
-
private constructor();
|
|
13
|
-
private tryInitAgent;
|
|
14
|
-
startExecution(): Promise<void>;
|
|
15
|
-
getExcludedTests(): Promise<Record<string, boolean>>;
|
|
16
|
-
getExecutionId(): string;
|
|
17
|
-
endExecution(): Promise<void>;
|
|
18
|
-
stopAgent(): Promise<void>;
|
|
19
|
-
startTest(testEvent: TestEvent): void;
|
|
20
|
-
endTest(testEndEvent: TestEndEvent): void;
|
|
21
|
-
getBuildSessionId(): string;
|
|
22
|
-
static runAgentMethodSafe(defaultResult?: object): (target: any, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<any>) => TypedPropertyDescriptor<any> | void;
|
|
23
|
-
private handleAgentError;
|
|
24
|
-
}
|
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
12
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
13
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
14
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
15
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
16
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
17
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.SealightsIntegration = exports.CockpitNotifier = exports.logger = void 0;
|
|
22
|
-
const slnodejs_1 = require("slnodejs");
|
|
23
|
-
Object.defineProperty(exports, "CockpitNotifier", { enumerable: true, get: function () { return slnodejs_1.CockpitNotifier; } });
|
|
24
|
-
const version_1 = require("./version");
|
|
25
|
-
exports.logger = slnodejs_1.LoggerFactory.getCreateApplicationLogger();
|
|
26
|
-
const defaultTags = [{
|
|
27
|
-
name: 'js-plugin',
|
|
28
|
-
version: version_1.version
|
|
29
|
-
}];
|
|
30
|
-
class SealightsIntegration {
|
|
31
|
-
static getInstance(configProvider, useRelativeCoverage = false, tags = []) {
|
|
32
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
-
if (!this.instance) {
|
|
34
|
-
exports.logger.debug('No \'SealightsIntegration\' instance, initializing');
|
|
35
|
-
const config = configProvider.getConfig();
|
|
36
|
-
this.instance = new SealightsIntegration(config);
|
|
37
|
-
yield this.instance.tryInitAgent(useRelativeCoverage, tags);
|
|
38
|
-
}
|
|
39
|
-
exports.logger.debug('\'SealightsIntegration\' instance already initialized');
|
|
40
|
-
return this.instance;
|
|
41
|
-
});
|
|
42
|
-
}
|
|
43
|
-
static resetInstance() {
|
|
44
|
-
this.instance = undefined;
|
|
45
|
-
}
|
|
46
|
-
constructor(slArgs) {
|
|
47
|
-
this.slArgs = slArgs;
|
|
48
|
-
}
|
|
49
|
-
tryInitAgent(useRelativeCoverage, tags) {
|
|
50
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
-
if (this.agent) {
|
|
52
|
-
exports.logger.debug('Agent already initialized');
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
try {
|
|
56
|
-
exports.logger.debug('Agent did not initialized yet, initializing');
|
|
57
|
-
const agent = yield (0, slnodejs_1.createRemoteAgent)(this.slArgs, useRelativeCoverage);
|
|
58
|
-
yield agent.start({
|
|
59
|
-
tags: [...tags, ...defaultTags],
|
|
60
|
-
});
|
|
61
|
-
this.agent = agent;
|
|
62
|
-
}
|
|
63
|
-
catch (e) {
|
|
64
|
-
exports.logger.lifecycle(`Error while initializing Sealights agent ${e.message}`);
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
startExecution() {
|
|
69
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
70
|
-
yield this.agent.startExecution();
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
getExcludedTests() {
|
|
74
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
75
|
-
return yield this.agent.getExcludedTests();
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
getExecutionId() {
|
|
79
|
-
return this.agent.getExecutionData().executionId;
|
|
80
|
-
}
|
|
81
|
-
endExecution() {
|
|
82
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
83
|
-
yield this.agent.endExecution();
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
stopAgent() {
|
|
87
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
88
|
-
yield this.agent.stop();
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
startTest(testEvent) {
|
|
92
|
-
this.agent.testStart(testEvent.name, testEvent.suitename, testEvent.timestamp || (0, slnodejs_1.getSystemDateValueOf)());
|
|
93
|
-
}
|
|
94
|
-
endTest(testEndEvent) {
|
|
95
|
-
this.agent.testEnd(testEndEvent.name, testEndEvent.suitename, testEndEvent.duration, testEndEvent.result, testEndEvent.coverage || {});
|
|
96
|
-
}
|
|
97
|
-
getBuildSessionId() {
|
|
98
|
-
return this.agent.agentConfig.buildSessionId.value;
|
|
99
|
-
}
|
|
100
|
-
static runAgentMethodSafe(defaultResult) {
|
|
101
|
-
return function (target, propertyKey, descriptor) {
|
|
102
|
-
const method = descriptor.value;
|
|
103
|
-
descriptor.value = function (...args) {
|
|
104
|
-
if (!this.agent)
|
|
105
|
-
return defaultResult;
|
|
106
|
-
try {
|
|
107
|
-
const result = method.apply(this, args);
|
|
108
|
-
if (result && result instanceof Promise) {
|
|
109
|
-
return result.catch((error) => {
|
|
110
|
-
return this.handleAgentError(error, method.name, defaultResult);
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
return result;
|
|
114
|
-
}
|
|
115
|
-
catch (error) {
|
|
116
|
-
return this.handleAgentError(error, method.name, defaultResult);
|
|
117
|
-
}
|
|
118
|
-
};
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
handleAgentError(e, methodName, defaultResult) {
|
|
122
|
-
exports.logger.lifecycle(`Error while executing method '${methodName}', Err: '${e.message}'`);
|
|
123
|
-
return defaultResult;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
__decorate([
|
|
127
|
-
SealightsIntegration.runAgentMethodSafe(),
|
|
128
|
-
__metadata("design:type", Function),
|
|
129
|
-
__metadata("design:paramtypes", []),
|
|
130
|
-
__metadata("design:returntype", Promise)
|
|
131
|
-
], SealightsIntegration.prototype, "startExecution", null);
|
|
132
|
-
__decorate([
|
|
133
|
-
SealightsIntegration.runAgentMethodSafe({}),
|
|
134
|
-
__metadata("design:type", Function),
|
|
135
|
-
__metadata("design:paramtypes", []),
|
|
136
|
-
__metadata("design:returntype", Promise)
|
|
137
|
-
], SealightsIntegration.prototype, "getExcludedTests", null);
|
|
138
|
-
__decorate([
|
|
139
|
-
SealightsIntegration.runAgentMethodSafe({}),
|
|
140
|
-
__metadata("design:type", Function),
|
|
141
|
-
__metadata("design:paramtypes", []),
|
|
142
|
-
__metadata("design:returntype", String)
|
|
143
|
-
], SealightsIntegration.prototype, "getExecutionId", null);
|
|
144
|
-
__decorate([
|
|
145
|
-
SealightsIntegration.runAgentMethodSafe(),
|
|
146
|
-
__metadata("design:type", Function),
|
|
147
|
-
__metadata("design:paramtypes", []),
|
|
148
|
-
__metadata("design:returntype", Promise)
|
|
149
|
-
], SealightsIntegration.prototype, "endExecution", null);
|
|
150
|
-
__decorate([
|
|
151
|
-
SealightsIntegration.runAgentMethodSafe(),
|
|
152
|
-
__metadata("design:type", Function),
|
|
153
|
-
__metadata("design:paramtypes", []),
|
|
154
|
-
__metadata("design:returntype", Promise)
|
|
155
|
-
], SealightsIntegration.prototype, "stopAgent", null);
|
|
156
|
-
__decorate([
|
|
157
|
-
SealightsIntegration.runAgentMethodSafe(),
|
|
158
|
-
__metadata("design:type", Function),
|
|
159
|
-
__metadata("design:paramtypes", [Object]),
|
|
160
|
-
__metadata("design:returntype", void 0)
|
|
161
|
-
], SealightsIntegration.prototype, "startTest", null);
|
|
162
|
-
__decorate([
|
|
163
|
-
SealightsIntegration.runAgentMethodSafe(),
|
|
164
|
-
__metadata("design:type", Function),
|
|
165
|
-
__metadata("design:paramtypes", [Object]),
|
|
166
|
-
__metadata("design:returntype", void 0)
|
|
167
|
-
], SealightsIntegration.prototype, "endTest", null);
|
|
168
|
-
__decorate([
|
|
169
|
-
SealightsIntegration.runAgentMethodSafe(),
|
|
170
|
-
__metadata("design:type", Function),
|
|
171
|
-
__metadata("design:paramtypes", []),
|
|
172
|
-
__metadata("design:returntype", String)
|
|
173
|
-
], SealightsIntegration.prototype, "getBuildSessionId", null);
|
|
174
|
-
exports.SealightsIntegration = SealightsIntegration;
|
|
175
|
-
//# sourceMappingURL=sealights-integration.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sealights-integration.js","sourceRoot":"","sources":["../../lib/sealights-integration.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,uCAA6J;AAMr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kB,EAAE;;;;qDAGzC;AAED;IAAC,oBAAoB,CAAC,kBAAkB,EAAE;;;;mDAGzC;AAED;IAAC,oBAAoB,CAAC,kBAAkB,EAAE;;;;6DAGzC;AA9EL,oDAyGC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const version = "2.0.44";
|
package/tsOutputs/lib/version.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["../../lib/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,QAAQ,CAAC"}
|