@firestartr/cli 2.11.0 → 2.11.1
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/build/{857.index.js → 170.index.js} +9 -9
- package/build/{540.index.js → 252.index.js} +8 -8
- package/build/{594.index.js → 37.index.js} +5 -5
- package/build/{351.index.js → 456.index.js} +4 -4
- package/build/596.index.js +25 -0
- package/build/673.index.js +35 -0
- package/build/{647.index.js → 721.index.js} +9 -9
- package/build/728.index.js +58 -0
- package/build/749.index.js +58 -0
- package/build/822.index.js +57 -0
- package/build/index.js +2 -2
- package/build/packages/features_renderer/index.d.ts +3 -2
- package/build/packages/features_renderer/src/featureArgsValidation.d.ts +4 -0
- package/build/packages/features_renderer/src/render.d.ts +1 -0
- package/build/packages/features_renderer/src/schema.d.ts +4 -0
- package/build/packages/github/index.d.ts +2 -2
- package/build/packages/github/src/with_profile.d.ts +1 -1
- package/package.json +2 -2
- package/build/_loadurl.mjs +0 -53
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export const id =
|
|
2
|
-
export const ids = [
|
|
1
|
+
export const id = 170;
|
|
2
|
+
export const ids = [170];
|
|
3
3
|
export const modules = {
|
|
4
4
|
|
|
5
|
-
/***/
|
|
5
|
+
/***/ 55931:
|
|
6
6
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
7
7
|
|
|
8
8
|
|
|
@@ -12,14 +12,14 @@ export const modules = {
|
|
|
12
12
|
*/
|
|
13
13
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
14
14
|
exports.execAsync = void 0;
|
|
15
|
-
const child_process = __webpack_require__(
|
|
16
|
-
const util = __webpack_require__(
|
|
15
|
+
const child_process = __webpack_require__(35317);
|
|
16
|
+
const util = __webpack_require__(39023);
|
|
17
17
|
exports.execAsync = util.promisify(child_process.exec);
|
|
18
18
|
//# sourceMappingURL=execAsync.js.map
|
|
19
19
|
|
|
20
20
|
/***/ }),
|
|
21
21
|
|
|
22
|
-
/***/
|
|
22
|
+
/***/ 170:
|
|
23
23
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
24
24
|
|
|
25
25
|
|
|
@@ -29,9 +29,9 @@ exports.execAsync = util.promisify(child_process.exec);
|
|
|
29
29
|
*/
|
|
30
30
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
31
31
|
exports.getMachineId = void 0;
|
|
32
|
-
const fs_1 = __webpack_require__(
|
|
33
|
-
const execAsync_1 = __webpack_require__(
|
|
34
|
-
const api_1 = __webpack_require__(
|
|
32
|
+
const fs_1 = __webpack_require__(79896);
|
|
33
|
+
const execAsync_1 = __webpack_require__(55931);
|
|
34
|
+
const api_1 = __webpack_require__(70502);
|
|
35
35
|
async function getMachineId() {
|
|
36
36
|
try {
|
|
37
37
|
const result = await fs_1.promises.readFile('/etc/hostid', { encoding: 'utf8' });
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export const id =
|
|
2
|
-
export const ids = [
|
|
1
|
+
export const id = 252;
|
|
2
|
+
export const ids = [252];
|
|
3
3
|
export const modules = {
|
|
4
4
|
|
|
5
|
-
/***/
|
|
5
|
+
/***/ 55931:
|
|
6
6
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
7
7
|
|
|
8
8
|
|
|
@@ -12,14 +12,14 @@ export const modules = {
|
|
|
12
12
|
*/
|
|
13
13
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
14
14
|
exports.execAsync = void 0;
|
|
15
|
-
const child_process = __webpack_require__(
|
|
16
|
-
const util = __webpack_require__(
|
|
15
|
+
const child_process = __webpack_require__(35317);
|
|
16
|
+
const util = __webpack_require__(39023);
|
|
17
17
|
exports.execAsync = util.promisify(child_process.exec);
|
|
18
18
|
//# sourceMappingURL=execAsync.js.map
|
|
19
19
|
|
|
20
20
|
/***/ }),
|
|
21
21
|
|
|
22
|
-
/***/
|
|
22
|
+
/***/ 28252:
|
|
23
23
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
24
24
|
|
|
25
25
|
|
|
@@ -29,8 +29,8 @@ exports.execAsync = util.promisify(child_process.exec);
|
|
|
29
29
|
*/
|
|
30
30
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
31
31
|
exports.getMachineId = void 0;
|
|
32
|
-
const execAsync_1 = __webpack_require__(
|
|
33
|
-
const api_1 = __webpack_require__(
|
|
32
|
+
const execAsync_1 = __webpack_require__(55931);
|
|
33
|
+
const api_1 = __webpack_require__(70502);
|
|
34
34
|
async function getMachineId() {
|
|
35
35
|
try {
|
|
36
36
|
const result = await (0, execAsync_1.execAsync)('ioreg -rd1 -c "IOPlatformExpertDevice"');
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export const id =
|
|
2
|
-
export const ids = [
|
|
1
|
+
export const id = 37;
|
|
2
|
+
export const ids = [37];
|
|
3
3
|
export const modules = {
|
|
4
4
|
|
|
5
|
-
/***/
|
|
5
|
+
/***/ 14037:
|
|
6
6
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
7
7
|
|
|
8
8
|
|
|
@@ -12,8 +12,8 @@ exports.getMachineId = void 0;
|
|
|
12
12
|
* Copyright The OpenTelemetry Authors
|
|
13
13
|
* SPDX-License-Identifier: Apache-2.0
|
|
14
14
|
*/
|
|
15
|
-
const fs_1 = __webpack_require__(
|
|
16
|
-
const api_1 = __webpack_require__(
|
|
15
|
+
const fs_1 = __webpack_require__(79896);
|
|
16
|
+
const api_1 = __webpack_require__(70502);
|
|
17
17
|
async function getMachineId() {
|
|
18
18
|
const paths = ['/etc/machine-id', '/var/lib/dbus/machine-id'];
|
|
19
19
|
for (const path of paths) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export const id =
|
|
2
|
-
export const ids = [
|
|
1
|
+
export const id = 456;
|
|
2
|
+
export const ids = [456];
|
|
3
3
|
export const modules = {
|
|
4
4
|
|
|
5
|
-
/***/
|
|
5
|
+
/***/ 61456:
|
|
6
6
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
7
7
|
|
|
8
8
|
|
|
@@ -12,7 +12,7 @@ export const modules = {
|
|
|
12
12
|
*/
|
|
13
13
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
14
14
|
exports.getMachineId = void 0;
|
|
15
|
-
const api_1 = __webpack_require__(
|
|
15
|
+
const api_1 = __webpack_require__(70502);
|
|
16
16
|
async function getMachineId() {
|
|
17
17
|
api_1.diag.debug('could not read machine-id: unsupported platform');
|
|
18
18
|
return undefined;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export const id = 596;
|
|
2
|
+
export const ids = [596];
|
|
3
|
+
export const modules = {
|
|
4
|
+
|
|
5
|
+
/***/ 35596:
|
|
6
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
* Copyright The OpenTelemetry Authors
|
|
11
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
14
|
+
exports.getMachineId = void 0;
|
|
15
|
+
const api_1 = __webpack_require__(70502);
|
|
16
|
+
async function getMachineId() {
|
|
17
|
+
api_1.diag.debug('could not read machine-id: unsupported platform');
|
|
18
|
+
return undefined;
|
|
19
|
+
}
|
|
20
|
+
exports.getMachineId = getMachineId;
|
|
21
|
+
//# sourceMappingURL=getMachineId-unsupported.js.map
|
|
22
|
+
|
|
23
|
+
/***/ })
|
|
24
|
+
|
|
25
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
export const id = 673;
|
|
2
|
+
export const ids = [673];
|
|
3
|
+
export const modules = {
|
|
4
|
+
|
|
5
|
+
/***/ 98673:
|
|
6
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
10
|
+
exports.getMachineId = void 0;
|
|
11
|
+
/*
|
|
12
|
+
* Copyright The OpenTelemetry Authors
|
|
13
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
14
|
+
*/
|
|
15
|
+
const fs_1 = __webpack_require__(79896);
|
|
16
|
+
const api_1 = __webpack_require__(70502);
|
|
17
|
+
async function getMachineId() {
|
|
18
|
+
const paths = ['/etc/machine-id', '/var/lib/dbus/machine-id'];
|
|
19
|
+
for (const path of paths) {
|
|
20
|
+
try {
|
|
21
|
+
const result = await fs_1.promises.readFile(path, { encoding: 'utf8' });
|
|
22
|
+
return result.trim();
|
|
23
|
+
}
|
|
24
|
+
catch (e) {
|
|
25
|
+
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return undefined;
|
|
29
|
+
}
|
|
30
|
+
exports.getMachineId = getMachineId;
|
|
31
|
+
//# sourceMappingURL=getMachineId-linux.js.map
|
|
32
|
+
|
|
33
|
+
/***/ })
|
|
34
|
+
|
|
35
|
+
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export const id =
|
|
2
|
-
export const ids = [
|
|
1
|
+
export const id = 721;
|
|
2
|
+
export const ids = [721];
|
|
3
3
|
export const modules = {
|
|
4
4
|
|
|
5
|
-
/***/
|
|
5
|
+
/***/ 55931:
|
|
6
6
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
7
7
|
|
|
8
8
|
|
|
@@ -12,14 +12,14 @@ export const modules = {
|
|
|
12
12
|
*/
|
|
13
13
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
14
14
|
exports.execAsync = void 0;
|
|
15
|
-
const child_process = __webpack_require__(
|
|
16
|
-
const util = __webpack_require__(
|
|
15
|
+
const child_process = __webpack_require__(35317);
|
|
16
|
+
const util = __webpack_require__(39023);
|
|
17
17
|
exports.execAsync = util.promisify(child_process.exec);
|
|
18
18
|
//# sourceMappingURL=execAsync.js.map
|
|
19
19
|
|
|
20
20
|
/***/ }),
|
|
21
21
|
|
|
22
|
-
/***/
|
|
22
|
+
/***/ 18721:
|
|
23
23
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
24
24
|
|
|
25
25
|
|
|
@@ -29,9 +29,9 @@ exports.execAsync = util.promisify(child_process.exec);
|
|
|
29
29
|
*/
|
|
30
30
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
31
31
|
exports.getMachineId = void 0;
|
|
32
|
-
const process = __webpack_require__(
|
|
33
|
-
const execAsync_1 = __webpack_require__(
|
|
34
|
-
const api_1 = __webpack_require__(
|
|
32
|
+
const process = __webpack_require__(932);
|
|
33
|
+
const execAsync_1 = __webpack_require__(55931);
|
|
34
|
+
const api_1 = __webpack_require__(70502);
|
|
35
35
|
async function getMachineId() {
|
|
36
36
|
const args = 'QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid';
|
|
37
37
|
let command = '%windir%\\System32\\REG.exe';
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export const id = 728;
|
|
2
|
+
export const ids = [728];
|
|
3
|
+
export const modules = {
|
|
4
|
+
|
|
5
|
+
/***/ 55063:
|
|
6
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
* Copyright The OpenTelemetry Authors
|
|
11
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
14
|
+
exports.execAsync = void 0;
|
|
15
|
+
const child_process = __webpack_require__(35317);
|
|
16
|
+
const util = __webpack_require__(39023);
|
|
17
|
+
exports.execAsync = util.promisify(child_process.exec);
|
|
18
|
+
//# sourceMappingURL=execAsync.js.map
|
|
19
|
+
|
|
20
|
+
/***/ }),
|
|
21
|
+
|
|
22
|
+
/***/ 52728:
|
|
23
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
/*
|
|
27
|
+
* Copyright The OpenTelemetry Authors
|
|
28
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
29
|
+
*/
|
|
30
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
31
|
+
exports.getMachineId = void 0;
|
|
32
|
+
const execAsync_1 = __webpack_require__(55063);
|
|
33
|
+
const api_1 = __webpack_require__(70502);
|
|
34
|
+
async function getMachineId() {
|
|
35
|
+
try {
|
|
36
|
+
const result = await (0, execAsync_1.execAsync)('ioreg -rd1 -c "IOPlatformExpertDevice"');
|
|
37
|
+
const idLine = result.stdout
|
|
38
|
+
.split('\n')
|
|
39
|
+
.find(line => line.includes('IOPlatformUUID'));
|
|
40
|
+
if (!idLine) {
|
|
41
|
+
return undefined;
|
|
42
|
+
}
|
|
43
|
+
const parts = idLine.split('" = "');
|
|
44
|
+
if (parts.length === 2) {
|
|
45
|
+
return parts[1].slice(0, -1);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
catch (e) {
|
|
49
|
+
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
50
|
+
}
|
|
51
|
+
return undefined;
|
|
52
|
+
}
|
|
53
|
+
exports.getMachineId = getMachineId;
|
|
54
|
+
//# sourceMappingURL=getMachineId-darwin.js.map
|
|
55
|
+
|
|
56
|
+
/***/ })
|
|
57
|
+
|
|
58
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export const id = 749;
|
|
2
|
+
export const ids = [749];
|
|
3
|
+
export const modules = {
|
|
4
|
+
|
|
5
|
+
/***/ 55063:
|
|
6
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
* Copyright The OpenTelemetry Authors
|
|
11
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
14
|
+
exports.execAsync = void 0;
|
|
15
|
+
const child_process = __webpack_require__(35317);
|
|
16
|
+
const util = __webpack_require__(39023);
|
|
17
|
+
exports.execAsync = util.promisify(child_process.exec);
|
|
18
|
+
//# sourceMappingURL=execAsync.js.map
|
|
19
|
+
|
|
20
|
+
/***/ }),
|
|
21
|
+
|
|
22
|
+
/***/ 48749:
|
|
23
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
/*
|
|
27
|
+
* Copyright The OpenTelemetry Authors
|
|
28
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
29
|
+
*/
|
|
30
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
31
|
+
exports.getMachineId = void 0;
|
|
32
|
+
const process = __webpack_require__(932);
|
|
33
|
+
const execAsync_1 = __webpack_require__(55063);
|
|
34
|
+
const api_1 = __webpack_require__(70502);
|
|
35
|
+
async function getMachineId() {
|
|
36
|
+
const args = 'QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid';
|
|
37
|
+
let command = '%windir%\\System32\\REG.exe';
|
|
38
|
+
if (process.arch === 'ia32' && 'PROCESSOR_ARCHITEW6432' in process.env) {
|
|
39
|
+
command = '%windir%\\sysnative\\cmd.exe /c ' + command;
|
|
40
|
+
}
|
|
41
|
+
try {
|
|
42
|
+
const result = await (0, execAsync_1.execAsync)(`${command} ${args}`);
|
|
43
|
+
const parts = result.stdout.split('REG_SZ');
|
|
44
|
+
if (parts.length === 2) {
|
|
45
|
+
return parts[1].trim();
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
catch (e) {
|
|
49
|
+
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
50
|
+
}
|
|
51
|
+
return undefined;
|
|
52
|
+
}
|
|
53
|
+
exports.getMachineId = getMachineId;
|
|
54
|
+
//# sourceMappingURL=getMachineId-win.js.map
|
|
55
|
+
|
|
56
|
+
/***/ })
|
|
57
|
+
|
|
58
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export const id = 822;
|
|
2
|
+
export const ids = [822];
|
|
3
|
+
export const modules = {
|
|
4
|
+
|
|
5
|
+
/***/ 55063:
|
|
6
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/*
|
|
10
|
+
* Copyright The OpenTelemetry Authors
|
|
11
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
14
|
+
exports.execAsync = void 0;
|
|
15
|
+
const child_process = __webpack_require__(35317);
|
|
16
|
+
const util = __webpack_require__(39023);
|
|
17
|
+
exports.execAsync = util.promisify(child_process.exec);
|
|
18
|
+
//# sourceMappingURL=execAsync.js.map
|
|
19
|
+
|
|
20
|
+
/***/ }),
|
|
21
|
+
|
|
22
|
+
/***/ 77822:
|
|
23
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
/*
|
|
27
|
+
* Copyright The OpenTelemetry Authors
|
|
28
|
+
* SPDX-License-Identifier: Apache-2.0
|
|
29
|
+
*/
|
|
30
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
31
|
+
exports.getMachineId = void 0;
|
|
32
|
+
const fs_1 = __webpack_require__(79896);
|
|
33
|
+
const execAsync_1 = __webpack_require__(55063);
|
|
34
|
+
const api_1 = __webpack_require__(70502);
|
|
35
|
+
async function getMachineId() {
|
|
36
|
+
try {
|
|
37
|
+
const result = await fs_1.promises.readFile('/etc/hostid', { encoding: 'utf8' });
|
|
38
|
+
return result.trim();
|
|
39
|
+
}
|
|
40
|
+
catch (e) {
|
|
41
|
+
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
42
|
+
}
|
|
43
|
+
try {
|
|
44
|
+
const result = await (0, execAsync_1.execAsync)('kenv -q smbios.system.uuid');
|
|
45
|
+
return result.stdout.trim();
|
|
46
|
+
}
|
|
47
|
+
catch (e) {
|
|
48
|
+
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
49
|
+
}
|
|
50
|
+
return undefined;
|
|
51
|
+
}
|
|
52
|
+
exports.getMachineId = getMachineId;
|
|
53
|
+
//# sourceMappingURL=getMachineId-bsd.js.map
|
|
54
|
+
|
|
55
|
+
/***/ })
|
|
56
|
+
|
|
57
|
+
};
|
package/build/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/build/index.js
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 53001246 bytes
|
|
4
|
+
sha256: 88aa147dc5a74d827788a6833d6c753181338c773f8033a2248159aca304735f
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import validate from './src/validate';
|
|
2
|
-
import render, { buildContext, renderContent, expandFiles, getClaimPatches } from './src/render';
|
|
2
|
+
import render, { buildContext, renderContent, expandFiles, getClaimPatches, isFeatureArgsValidationEnabled } from './src/render';
|
|
3
3
|
import updateFileContent from './src/update_file';
|
|
4
4
|
import { validateFeatureArgs } from './src/featureArgsValidation';
|
|
5
|
-
export { getClaimPatches, buildContext, renderContent, expandFiles };
|
|
5
|
+
export { getClaimPatches, buildContext, renderContent, expandFiles, isFeatureArgsValidationEnabled, };
|
|
6
6
|
declare const _default: {
|
|
7
7
|
validate: typeof validate;
|
|
8
8
|
render: typeof render;
|
|
@@ -19,6 +19,7 @@ declare const _default: {
|
|
|
19
19
|
renderContent: typeof renderContent;
|
|
20
20
|
expandFiles: typeof expandFiles;
|
|
21
21
|
validateFeatureArgs: typeof validateFeatureArgs;
|
|
22
|
+
isFeatureArgsValidationEnabled: typeof isFeatureArgsValidationEnabled;
|
|
22
23
|
getClaimPatches: typeof getClaimPatches;
|
|
23
24
|
};
|
|
24
25
|
export default _default;
|
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
* Validates user-supplied feature args against the feature's on-disk
|
|
3
3
|
* `schema.json` (generated by prefapp/features from the feature's config.yaml).
|
|
4
4
|
*
|
|
5
|
+
* This is the validation body only: the caller owns the opt-in gate and must
|
|
6
|
+
* check `isFeatureArgsValidationEnabled(configData)` first, since a feature
|
|
7
|
+
* validates its args only when its config.yaml sets `enable_validation: true`.
|
|
8
|
+
*
|
|
5
9
|
* The downloader-injected `traceability` key is stripped before validation so it
|
|
6
10
|
* never trips the unknown-key check. `additionalProperties: false` is injected
|
|
7
11
|
* into a shallow copy of the schema before compiling; the on-disk file is never
|
|
@@ -7,3 +7,4 @@ export declare function assertNonEmptyString(value: unknown, what: string): asse
|
|
|
7
7
|
export declare function assertSafeRelativePath(candidate: unknown, what: string): void;
|
|
8
8
|
export declare function resolveInside(basePath: string, candidate: string, what: string, baseLabel: string): string;
|
|
9
9
|
export declare function allowsNonAnchoredPaths(configData: any): boolean;
|
|
10
|
+
export declare function isFeatureArgsValidationEnabled(configData: any): boolean;
|
|
@@ -68,7 +68,7 @@ declare const _default: {
|
|
|
68
68
|
getPrFiles: typeof import("./src/pull_request").getPrFiles;
|
|
69
69
|
filterPrBy: (filter: {
|
|
70
70
|
title: string;
|
|
71
|
-
state: "
|
|
71
|
+
state: "all" | "closed" | "open";
|
|
72
72
|
repo: string;
|
|
73
73
|
owner: string;
|
|
74
74
|
userType: "Bot" | "User";
|
|
@@ -80,7 +80,7 @@ declare const _default: {
|
|
|
80
80
|
create: (owner: string, repo: string, title: string, body: string, labels?: string[], octokit?: any) => Promise<any>;
|
|
81
81
|
update: (owner: string, repo: string, issue_number: number, title: string, body: string, labels?: string[], octokit?: any) => Promise<any>;
|
|
82
82
|
close: (owner: string, repo: string, issue_number: number, octokit?: any) => Promise<any>;
|
|
83
|
-
filterBy: (owner: string, repo: string, title: string, labels: string, state?: "
|
|
83
|
+
filterBy: (owner: string, repo: string, title: string, labels: string, state?: "all" | "closed" | "open", creator?: string, assignee?: string, octokit?: any) => Promise<any>;
|
|
84
84
|
upsertByTitle: (owner: string, repo: string, title: string, body: string, labels?: string[], octokit?: any) => Promise<any>;
|
|
85
85
|
};
|
|
86
86
|
branches: {
|
|
@@ -853,7 +853,7 @@ export declare function withProfile(profileName: string): {
|
|
|
853
853
|
create: (owner: string, repo: string, title: string, body: string, labels?: string[]) => Promise<any>;
|
|
854
854
|
update: (owner: string, repo: string, issue_number: number, title: string, body: string, labels?: string[]) => Promise<any>;
|
|
855
855
|
close: (owner: string, repo: string, issue_number: number) => Promise<any>;
|
|
856
|
-
filterBy: (owner: string, repo: string, title: string, labels: string, state?: "
|
|
856
|
+
filterBy: (owner: string, repo: string, title: string, labels: string, state?: "all" | "closed" | "open", creator?: string, assignee?: string) => Promise<any>;
|
|
857
857
|
upsertByTitle: (owner: string, repo: string, title: string, body: string, labels?: string[]) => Promise<any>;
|
|
858
858
|
};
|
|
859
859
|
workflow: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@firestartr/cli",
|
|
3
|
-
"version": "2.11.
|
|
3
|
+
"version": "2.11.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Commandline tool",
|
|
6
6
|
"main": "build/main.js",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"@types/command-line-args": "^5.2.0",
|
|
30
|
-
"@types/semver": "^7.
|
|
30
|
+
"@types/semver": "^7.8.0",
|
|
31
31
|
"catalog_common": "file:../catalog_common",
|
|
32
32
|
"cdk8s_renderer": "file:../cdk8s_renderer",
|
|
33
33
|
"command-line-args": "^5.2.1",
|
package/build/_loadurl.mjs
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
// this is an executable program that downloads a file from a url (with
|
|
2
|
-
// redirects) and prints it's output to STDOUT. it is implemented as a program
|
|
3
|
-
// because node.js does not support issuing network requests synchronously and
|
|
4
|
-
// in the cdk we need everything to be synchronous (it all happens in the
|
|
5
|
-
// ctors). so we utilize `spawnSync` to spawn this program as a child process.
|
|
6
|
-
// alternatively we could have use `curl` but this is more portable.
|
|
7
|
-
|
|
8
|
-
import followRedirects from 'follow-redirects';
|
|
9
|
-
import { parse } from 'node:url';
|
|
10
|
-
import { lstatSync, createReadStream } from 'node:fs';
|
|
11
|
-
import process from 'node:process'
|
|
12
|
-
|
|
13
|
-
const { http, https } = followRedirects;
|
|
14
|
-
|
|
15
|
-
const url = process.argv[2];
|
|
16
|
-
if (!url) {
|
|
17
|
-
console.error(`Usage: ${process.argv[1]} URL`);
|
|
18
|
-
process.exit(1);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
try {
|
|
22
|
-
if (lstatSync(url).isFile()) {
|
|
23
|
-
createReadStream(url).pipe(process.stdout);
|
|
24
|
-
}
|
|
25
|
-
} catch (err) {
|
|
26
|
-
const purl = parse(url);
|
|
27
|
-
|
|
28
|
-
if (!purl.protocol) {
|
|
29
|
-
throw new Error(`unable to determine protocol from url: ${url}`);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
const client = getHttpClient(purl.protocol);
|
|
33
|
-
const get = client.get(url, response => {
|
|
34
|
-
if (response.statusCode !== 200) {
|
|
35
|
-
throw new Error(`${response.statusCode} response from http get: ${response.statusMessage}`);
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
response.on('data', chunk => process.stdout.write(chunk));
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
get.once('error', err => {
|
|
42
|
-
throw new Error(`http error: ${err.message}`);
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
function getHttpClient(protocol) {
|
|
47
|
-
switch (protocol) {
|
|
48
|
-
case 'http:': return http;
|
|
49
|
-
case 'https:': return https;
|
|
50
|
-
default:
|
|
51
|
-
throw new Error(`unsupported protocol "${protocol}" in url: ${url}`);
|
|
52
|
-
}
|
|
53
|
-
}
|