piral-cli 1.8.2-beta.7801 → 1.8.2-beta.7851
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/lib/external/index.js
CHANGED
|
@@ -18548,9 +18548,9 @@ var require_asynckit = __commonJS({
|
|
|
18548
18548
|
}
|
|
18549
18549
|
});
|
|
18550
18550
|
|
|
18551
|
-
// node_modules/form-data/lib/populate.js
|
|
18551
|
+
// ../../../node_modules/form-data/lib/populate.js
|
|
18552
18552
|
var require_populate = __commonJS({
|
|
18553
|
-
"node_modules/form-data/lib/populate.js"(exports2, module2) {
|
|
18553
|
+
"../../../node_modules/form-data/lib/populate.js"(exports2, module2) {
|
|
18554
18554
|
module2.exports = function(dst, src) {
|
|
18555
18555
|
Object.keys(src).forEach(function(prop) {
|
|
18556
18556
|
dst[prop] = dst[prop] || src[prop];
|
|
@@ -18560,9 +18560,9 @@ var require_populate = __commonJS({
|
|
|
18560
18560
|
}
|
|
18561
18561
|
});
|
|
18562
18562
|
|
|
18563
|
-
// node_modules/form-data/lib/form_data.js
|
|
18563
|
+
// ../../../node_modules/form-data/lib/form_data.js
|
|
18564
18564
|
var require_form_data = __commonJS({
|
|
18565
|
-
"node_modules/form-data/lib/form_data.js"(exports2, module2) {
|
|
18565
|
+
"../../../node_modules/form-data/lib/form_data.js"(exports2, module2) {
|
|
18566
18566
|
var CombinedStream = require_combined_stream();
|
|
18567
18567
|
var util3 = require("util");
|
|
18568
18568
|
var path9 = require("path");
|
|
@@ -48735,8 +48735,8 @@ var require_rc = __commonJS({
|
|
|
48735
48735
|
});
|
|
48736
48736
|
|
|
48737
48737
|
// src/external/index.ts
|
|
48738
|
-
var
|
|
48739
|
-
__export(
|
|
48738
|
+
var index_exports = {};
|
|
48739
|
+
__export(index_exports, {
|
|
48740
48740
|
FormData: () => import_form_data2.default,
|
|
48741
48741
|
axios: () => axios_default,
|
|
48742
48742
|
chalk: () => source_default2,
|
|
@@ -48755,7 +48755,7 @@ __export(external_exports, {
|
|
|
48755
48755
|
tar: () => esm_exports3,
|
|
48756
48756
|
yargs: () => import_yargs.default
|
|
48757
48757
|
});
|
|
48758
|
-
module.exports = __toCommonJS(
|
|
48758
|
+
module.exports = __toCommonJS(index_exports);
|
|
48759
48759
|
var jju = __toESM(require_jju());
|
|
48760
48760
|
|
|
48761
48761
|
// node_modules/tar/dist/esm/index.js
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "piral-cli",
|
|
3
|
-
"version": "1.8.2-beta.
|
|
3
|
+
"version": "1.8.2-beta.7851",
|
|
4
4
|
"description": "The standard CLI for creating and building a Piral instance or a Pilet.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"portal",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"open": "^10",
|
|
79
79
|
"typescript": "^5"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "fa0dcf704b6146a1ceb6daa2787540365030e943"
|
|
82
82
|
}
|
package/src/common/pack.test.ts
CHANGED
|
@@ -22,25 +22,19 @@ describe('Pack Module', () => {
|
|
|
22
22
|
it('createPilePackage without package json', async () => {
|
|
23
23
|
json = null;
|
|
24
24
|
expect.assertions(1);
|
|
25
|
-
await expect(createPiletPackage('./', '', '')).rejects.
|
|
26
|
-
Error('[0020] No valid package.json could be found.'),
|
|
27
|
-
);
|
|
25
|
+
await expect(createPiletPackage('./', '', '')).rejects.toThrow('[0020] No valid package.json could be found.');
|
|
28
26
|
});
|
|
29
27
|
|
|
30
28
|
it('createPilePackage without package json name', async () => {
|
|
31
29
|
json = {};
|
|
32
30
|
expect.assertions(1);
|
|
33
|
-
await expect(createPiletPackage('./', '', '')).rejects.
|
|
34
|
-
Error('[0021] Cannot pack the pilet - missing name.'),
|
|
35
|
-
);
|
|
31
|
+
await expect(createPiletPackage('./', '', '')).rejects.toThrow('[0021] Cannot pack the pilet - missing name.');
|
|
36
32
|
});
|
|
37
33
|
|
|
38
34
|
it('createPilePackage without package json version', async () => {
|
|
39
35
|
json = { name: 'Test' };
|
|
40
36
|
expect.assertions(1);
|
|
41
|
-
await expect(createPiletPackage('./', '', '')).rejects.
|
|
42
|
-
Error('[0022] Cannot pack the pilet - missing version.'),
|
|
43
|
-
);
|
|
37
|
+
await expect(createPiletPackage('./', '', '')).rejects.toThrow('[0022] Cannot pack the pilet - missing version.');
|
|
44
38
|
});
|
|
45
39
|
|
|
46
40
|
it('createPilePackage source = target', async () => {
|
|
@@ -135,18 +135,11 @@ describe('CLI package module', () => {
|
|
|
135
135
|
it(
|
|
136
136
|
'retrievePiletData error cases',
|
|
137
137
|
async () => {
|
|
138
|
-
await retrievePiletData('foo', '').
|
|
139
|
-
|
|
138
|
+
await expect(retrievePiletData('foo', 'bar')).rejects.toThrow(
|
|
139
|
+
'[0010] The defined Piral instance ("bar") could not be found.',
|
|
140
140
|
);
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
expect(err).toStrictEqual(Error('[0010] The defined Piral instance ("bar") could not be found.')),
|
|
144
|
-
);
|
|
145
|
-
|
|
146
|
-
await retrievePiletData('/foo', 'sample-piral').catch((err) =>
|
|
147
|
-
expect(err).toStrictEqual(
|
|
148
|
-
Error('[0075] Cannot find the "package.json". You need a valid package.json for your pilet.'),
|
|
149
|
-
),
|
|
141
|
+
await expect(retrievePiletData('/foo', 'sample-piral')).rejects.toThrow(
|
|
142
|
+
'[0075] Cannot find the "package.json". You need a valid package.json for your pilet.',
|
|
150
143
|
);
|
|
151
144
|
},
|
|
152
145
|
testOptions,
|
package/src/common/rules.test.ts
CHANGED
|
@@ -12,7 +12,7 @@ describe('Rules Module', () => {
|
|
|
12
12
|
const runException = () => {
|
|
13
13
|
ruleSummary(['Error!'], []);
|
|
14
14
|
};
|
|
15
|
-
expect(runException).toThrow(
|
|
15
|
+
expect(runException).toThrow('[0080] Validation failed. Found 1 error(s).');
|
|
16
16
|
|
|
17
17
|
let consoleSpy = vitest.spyOn(process.stderr, 'write');
|
|
18
18
|
ruleSummary([], []);
|