@n42/cli 0.2.96 → 0.3.3
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/.github/workflows/audit-check.yaml +17 -3
- package/.github/workflows/{ci.yaml → ci-coverage.yaml} +13 -2
- package/README.md +1 -1
- package/dist/assets/github-color.svg +33 -0
- package/dist/assets/github-dim.svg +34 -0
- package/dist/assets/github.svg +4 -4
- package/dist/assets/insomnia-color.svg +34 -0
- package/dist/assets/insomnia-dim.svg +34 -0
- package/dist/assets/insomnia.svg +15 -0
- package/dist/assets/npm-color.svg +31 -0
- package/dist/assets/npm-dim.svg +32 -0
- package/dist/assets/npm.svg +32 -0
- package/dist/assets/slack-color.svg +35 -0
- package/dist/assets/slack-dim.svg +39 -0
- package/dist/assets/slack.svg +39 -0
- package/dist/n42 +7 -7
- package/package.json +1 -1
- package/src/assets/github-color.svg +33 -0
- package/src/assets/github-dim.svg +34 -0
- package/src/assets/github.svg +4 -4
- package/src/assets/insomnia-color.svg +34 -0
- package/src/assets/insomnia-dim.svg +34 -0
- package/src/assets/insomnia.svg +15 -0
- package/src/assets/npm-color.svg +31 -0
- package/src/assets/npm-dim.svg +32 -0
- package/src/assets/npm.svg +32 -0
- package/src/assets/slack-color.svg +35 -0
- package/src/assets/slack-dim.svg +39 -0
- package/src/assets/slack.svg +39 -0
- package/src/cli.js +3 -1
- package/src/discover.js +3 -3
- package/src/errors.js +1 -1
- package/src/validator.js +1 -1
- package/test/errors.test.js +1 -1
package/package.json
CHANGED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<svg
|
|
3
|
+
width="128"
|
|
4
|
+
height="128"
|
|
5
|
+
viewBox="0 0 24 24"
|
|
6
|
+
fill="none"
|
|
7
|
+
version="1.1"
|
|
8
|
+
id="svg11"
|
|
9
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
10
|
+
xmlns:svg="http://www.w3.org/2000/svg">
|
|
11
|
+
<g
|
|
12
|
+
clip-path="url(#clip0_730_27126)"
|
|
13
|
+
id="g4"
|
|
14
|
+
transform="matrix(0.21815325,0,0,0.21815325,1.3104908,1.6457951)">
|
|
15
|
+
<path
|
|
16
|
+
d="M 41.4395,69.3848 C 28.8066,67.8535 19.9062,58.7617 19.9062,46.9902 c 0,-4.7851 1.7227,-9.9531 4.5938,-13.3984 -1.2441,-3.1582 -1.0527,-9.8574 0.3828,-12.6328 3.8281,-0.4785 8.9961,1.5312 12.0586,4.3066 3.6367,-1.1484 7.4648,-1.7226 12.1543,-1.7226 4.6895,0 8.5176,0.5742 11.9629,1.6269 2.9668,-2.6797 8.2305,-4.6894 12.0586,-4.2109 1.3398,2.584 1.5312,9.2832 0.2871,12.5371 3.0625,3.6367 4.6894,8.5176 4.6894,13.4941 0,11.7715 -8.9003,20.6719 -21.7246,22.2989 3.2539,2.1054 5.4551,6.6992 5.4551,11.9629 v 9.9531 c 0,2.8711 2.3926,4.498 5.2637,3.3496 C 84.4102,87.9512 98,70.6289 98,49.1914 98,22.1074 75.9883,6.69539e-7 48.9043,4.309e-7 21.8203,1.92261e-7 -1.9479e-7,22.1074 -4.3343e-7,49.1914 -6.20631e-7,70.4375 13.4941,88.0469 31.6777,94.6504 c 2.584,0.957 5.0723,-0.7656 5.0723,-3.3496 v -7.6563 c -1.3398,0.5743 -3.0625,0.9571 -4.5938,0.9571 -6.3164,0 -10.0488,-3.4453 -12.7285,-9.8575 -1.0527,-2.5839 -2.2011,-4.1152 -4.4023,-4.4023 -1.1484,-0.0957 -1.5313,-0.5742 -1.5313,-1.1484 0,-1.1485 1.9141,-2.0098 3.8282,-2.0098 2.7754,0 5.1679,1.7227 7.6562,5.2637 1.9141,2.7754 3.9238,4.0195 6.3164,4.0195 2.3926,0 3.9238,-0.8613 6.125,-3.0625 1.627,-1.627 2.8711,-3.0625 4.0196,-4.0195 z"
|
|
17
|
+
fill="#000000"
|
|
18
|
+
id="path2" />
|
|
19
|
+
</g>
|
|
20
|
+
<defs
|
|
21
|
+
id="defs9">
|
|
22
|
+
<clipPath
|
|
23
|
+
id="clip0_730_27126">
|
|
24
|
+
<rect
|
|
25
|
+
width="98"
|
|
26
|
+
height="96"
|
|
27
|
+
fill="#ffffff"
|
|
28
|
+
id="rect6"
|
|
29
|
+
x="0"
|
|
30
|
+
y="0" />
|
|
31
|
+
</clipPath>
|
|
32
|
+
</defs>
|
|
33
|
+
</svg>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<svg
|
|
3
|
+
width="128"
|
|
4
|
+
height="128"
|
|
5
|
+
viewBox="0 0 24 24"
|
|
6
|
+
fill="none"
|
|
7
|
+
version="1.1"
|
|
8
|
+
id="svg11"
|
|
9
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
10
|
+
xmlns:svg="http://www.w3.org/2000/svg">
|
|
11
|
+
<g
|
|
12
|
+
clip-path="url(#clip0_730_27126)"
|
|
13
|
+
id="g4"
|
|
14
|
+
transform="matrix(0.21815325,0,0,0.21815325,1.3104908,1.6457951)">
|
|
15
|
+
<path
|
|
16
|
+
d="M 41.4395,69.3848 C 28.8066,67.8535 19.9062,58.7617 19.9062,46.9902 c 0,-4.7851 1.7227,-9.9531 4.5938,-13.3984 -1.2441,-3.1582 -1.0527,-9.8574 0.3828,-12.6328 3.8281,-0.4785 8.9961,1.5312 12.0586,4.3066 3.6367,-1.1484 7.4648,-1.7226 12.1543,-1.7226 4.6895,0 8.5176,0.5742 11.9629,1.6269 2.9668,-2.6797 8.2305,-4.6894 12.0586,-4.2109 1.3398,2.584 1.5312,9.2832 0.2871,12.5371 3.0625,3.6367 4.6894,8.5176 4.6894,13.4941 0,11.7715 -8.9003,20.6719 -21.7246,22.2989 3.2539,2.1054 5.4551,6.6992 5.4551,11.9629 v 9.9531 c 0,2.8711 2.3926,4.498 5.2637,3.3496 C 84.4102,87.9512 98,70.6289 98,49.1914 98,22.1074 75.9883,6.69539e-7 48.9043,4.309e-7 21.8203,1.92261e-7 -1.9479e-7,22.1074 -4.3343e-7,49.1914 -6.20631e-7,70.4375 13.4941,88.0469 31.6777,94.6504 c 2.584,0.957 5.0723,-0.7656 5.0723,-3.3496 v -7.6563 c -1.3398,0.5743 -3.0625,0.9571 -4.5938,0.9571 -6.3164,0 -10.0488,-3.4453 -12.7285,-9.8575 -1.0527,-2.5839 -2.2011,-4.1152 -4.4023,-4.4023 -1.1484,-0.0957 -1.5313,-0.5742 -1.5313,-1.1484 0,-1.1485 1.9141,-2.0098 3.8282,-2.0098 2.7754,0 5.1679,1.7227 7.6562,5.2637 1.9141,2.7754 3.9238,4.0195 6.3164,4.0195 2.3926,0 3.9238,-0.8613 6.125,-3.0625 1.627,-1.627 2.8711,-3.0625 4.0196,-4.0195 z"
|
|
17
|
+
fill="#000000"
|
|
18
|
+
id="path2"
|
|
19
|
+
style="fill:#9ca3af;fill-opacity:1" />
|
|
20
|
+
</g>
|
|
21
|
+
<defs
|
|
22
|
+
id="defs9">
|
|
23
|
+
<clipPath
|
|
24
|
+
id="clip0_730_27126">
|
|
25
|
+
<rect
|
|
26
|
+
width="98"
|
|
27
|
+
height="96"
|
|
28
|
+
fill="#ffffff"
|
|
29
|
+
id="rect6"
|
|
30
|
+
x="0"
|
|
31
|
+
y="0" />
|
|
32
|
+
</clipPath>
|
|
33
|
+
</defs>
|
|
34
|
+
</svg>
|
package/src/assets/github.svg
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
2
|
<svg
|
|
3
|
-
width="
|
|
4
|
-
height="
|
|
5
|
-
viewBox="0 0
|
|
3
|
+
width="128"
|
|
4
|
+
height="128"
|
|
5
|
+
viewBox="0 0 24 24"
|
|
6
6
|
fill="none"
|
|
7
7
|
version="1.1"
|
|
8
8
|
id="svg11"
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<g
|
|
12
12
|
clip-path="url(#clip0_730_27126)"
|
|
13
13
|
id="g4"
|
|
14
|
-
transform="matrix(
|
|
14
|
+
transform="matrix(0.21815325,0,0,0.21815325,1.3104908,1.6457951)">
|
|
15
15
|
<path
|
|
16
16
|
d="M 41.4395,69.3848 C 28.8066,67.8535 19.9062,58.7617 19.9062,46.9902 c 0,-4.7851 1.7227,-9.9531 4.5938,-13.3984 -1.2441,-3.1582 -1.0527,-9.8574 0.3828,-12.6328 3.8281,-0.4785 8.9961,1.5312 12.0586,4.3066 3.6367,-1.1484 7.4648,-1.7226 12.1543,-1.7226 4.6895,0 8.5176,0.5742 11.9629,1.6269 2.9668,-2.6797 8.2305,-4.6894 12.0586,-4.2109 1.3398,2.584 1.5312,9.2832 0.2871,12.5371 3.0625,3.6367 4.6894,8.5176 4.6894,13.4941 0,11.7715 -8.9003,20.6719 -21.7246,22.2989 3.2539,2.1054 5.4551,6.6992 5.4551,11.9629 v 9.9531 c 0,2.8711 2.3926,4.498 5.2637,3.3496 C 84.4102,87.9512 98,70.6289 98,49.1914 98,22.1074 75.9883,6.69539e-7 48.9043,4.309e-7 21.8203,1.92261e-7 -1.9479e-7,22.1074 -4.3343e-7,49.1914 -6.20631e-7,70.4375 13.4941,88.0469 31.6777,94.6504 c 2.584,0.957 5.0723,-0.7656 5.0723,-3.3496 v -7.6563 c -1.3398,0.5743 -3.0625,0.9571 -4.5938,0.9571 -6.3164,0 -10.0488,-3.4453 -12.7285,-9.8575 -1.0527,-2.5839 -2.2011,-4.1152 -4.4023,-4.4023 -1.1484,-0.0957 -1.5313,-0.5742 -1.5313,-1.1484 0,-1.1485 1.9141,-2.0098 3.8282,-2.0098 2.7754,0 5.1679,1.7227 7.6562,5.2637 1.9141,2.7754 3.9238,4.0195 6.3164,4.0195 2.3926,0 3.9238,-0.8613 6.125,-3.0625 1.627,-1.627 2.8711,-3.0625 4.0196,-4.0195 z"
|
|
17
17
|
fill="#000000"
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
|
3
|
+
|
|
4
|
+
<svg
|
|
5
|
+
fill="#000000"
|
|
6
|
+
width="128"
|
|
7
|
+
height="128"
|
|
8
|
+
viewBox="0 0 24 24"
|
|
9
|
+
role="img"
|
|
10
|
+
version="1.1"
|
|
11
|
+
id="svg6"
|
|
12
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
13
|
+
xmlns:svg="http://www.w3.org/2000/svg"
|
|
14
|
+
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
15
|
+
xmlns:cc="http://creativecommons.org/ns#"
|
|
16
|
+
xmlns:dc="http://purl.org/dc/elements/1.1/">
|
|
17
|
+
<defs
|
|
18
|
+
id="defs10" />
|
|
19
|
+
<title
|
|
20
|
+
id="title2">Insomnia icon</title>
|
|
21
|
+
<path
|
|
22
|
+
d="M 12,1.17 C 6.0588425,1.17 1.17,6.0588425 1.17,12 1.17,17.941157 6.0588425,22.83 12,22.83 17.941157,22.83 22.83,17.941157 22.83,12 22.83,6.0588425 17.941157,1.17 12,1.17 Z m 0,2.236395 c 4.74354,0 8.593605,3.850065 8.593605,8.593605 0,4.74354 -3.850065,8.593605 -8.593605,8.593605 -4.74354,0 -8.593605,-3.850065 -8.593605,-8.593605 0,-0.798713 0.1083,-1.571253 0.3131675,-2.304985 A 4.2959,4.2959 0 0 0 7.261875,11.55958 4.29951,4.29951 0 0 0 11.55958,7.261875 4.294095,4.294095 0 0 0 9.6941125,3.7195625 8.597215,8.597215 0 0 1 12,3.406395 Z"
|
|
23
|
+
id="path4"
|
|
24
|
+
style="stroke-width:0.9025;fill:#7400e1;fill-opacity:1" />
|
|
25
|
+
<metadata
|
|
26
|
+
id="metadata239">
|
|
27
|
+
<rdf:RDF>
|
|
28
|
+
<cc:Work
|
|
29
|
+
rdf:about="">
|
|
30
|
+
<dc:title>Insomnia icon</dc:title>
|
|
31
|
+
</cc:Work>
|
|
32
|
+
</rdf:RDF>
|
|
33
|
+
</metadata>
|
|
34
|
+
</svg>
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
|
3
|
+
|
|
4
|
+
<svg
|
|
5
|
+
fill="#000000"
|
|
6
|
+
width="128"
|
|
7
|
+
height="128"
|
|
8
|
+
viewBox="0 0 24 24"
|
|
9
|
+
role="img"
|
|
10
|
+
version="1.1"
|
|
11
|
+
id="svg6"
|
|
12
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
13
|
+
xmlns:svg="http://www.w3.org/2000/svg"
|
|
14
|
+
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
15
|
+
xmlns:cc="http://creativecommons.org/ns#"
|
|
16
|
+
xmlns:dc="http://purl.org/dc/elements/1.1/">
|
|
17
|
+
<defs
|
|
18
|
+
id="defs10" />
|
|
19
|
+
<title
|
|
20
|
+
id="title2">Insomnia icon</title>
|
|
21
|
+
<path
|
|
22
|
+
d="M 12,1.17 C 6.0588425,1.17 1.17,6.0588425 1.17,12 1.17,17.941157 6.0588425,22.83 12,22.83 17.941157,22.83 22.83,17.941157 22.83,12 22.83,6.0588425 17.941157,1.17 12,1.17 Z m 0,2.236395 c 4.74354,0 8.593605,3.850065 8.593605,8.593605 0,4.74354 -3.850065,8.593605 -8.593605,8.593605 -4.74354,0 -8.593605,-3.850065 -8.593605,-8.593605 0,-0.798713 0.1083,-1.571253 0.3131675,-2.304985 A 4.2959,4.2959 0 0 0 7.261875,11.55958 4.29951,4.29951 0 0 0 11.55958,7.261875 4.294095,4.294095 0 0 0 9.6941125,3.7195625 8.597215,8.597215 0 0 1 12,3.406395 Z"
|
|
23
|
+
id="path4"
|
|
24
|
+
style="stroke-width:0.9025;fill:#9ca3af;fill-opacity:1" />
|
|
25
|
+
<metadata
|
|
26
|
+
id="metadata239">
|
|
27
|
+
<rdf:RDF>
|
|
28
|
+
<cc:Work
|
|
29
|
+
rdf:about="">
|
|
30
|
+
<dc:title>Insomnia icon</dc:title>
|
|
31
|
+
</cc:Work>
|
|
32
|
+
</rdf:RDF>
|
|
33
|
+
</metadata>
|
|
34
|
+
</svg>
|
package/src/assets/insomnia.svg
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
|
3
|
+
|
|
2
4
|
<svg
|
|
3
5
|
fill="#000000"
|
|
4
6
|
width="128"
|
|
@@ -12,8 +14,21 @@
|
|
|
12
14
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
|
13
15
|
xmlns:cc="http://creativecommons.org/ns#"
|
|
14
16
|
xmlns:dc="http://purl.org/dc/elements/1.1/">
|
|
17
|
+
<defs
|
|
18
|
+
id="defs10" />
|
|
19
|
+
<title
|
|
20
|
+
id="title2">Insomnia icon</title>
|
|
15
21
|
<path
|
|
16
22
|
d="M 12,1.17 C 6.0588425,1.17 1.17,6.0588425 1.17,12 1.17,17.941157 6.0588425,22.83 12,22.83 17.941157,22.83 22.83,17.941157 22.83,12 22.83,6.0588425 17.941157,1.17 12,1.17 Z m 0,2.236395 c 4.74354,0 8.593605,3.850065 8.593605,8.593605 0,4.74354 -3.850065,8.593605 -8.593605,8.593605 -4.74354,0 -8.593605,-3.850065 -8.593605,-8.593605 0,-0.798713 0.1083,-1.571253 0.3131675,-2.304985 A 4.2959,4.2959 0 0 0 7.261875,11.55958 4.29951,4.29951 0 0 0 11.55958,7.261875 4.294095,4.294095 0 0 0 9.6941125,3.7195625 8.597215,8.597215 0 0 1 12,3.406395 Z"
|
|
17
23
|
id="path4"
|
|
18
24
|
style="stroke-width:0.9025" />
|
|
25
|
+
<metadata
|
|
26
|
+
id="metadata239">
|
|
27
|
+
<rdf:RDF>
|
|
28
|
+
<cc:Work
|
|
29
|
+
rdf:about="">
|
|
30
|
+
<dc:title>Insomnia icon</dc:title>
|
|
31
|
+
</cc:Work>
|
|
32
|
+
</rdf:RDF>
|
|
33
|
+
</metadata>
|
|
19
34
|
</svg>
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
|
3
|
+
|
|
4
|
+
<svg
|
|
5
|
+
width="128"
|
|
6
|
+
height="128"
|
|
7
|
+
viewBox="0 0 24 24"
|
|
8
|
+
version="1.1"
|
|
9
|
+
id="svg8"
|
|
10
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
11
|
+
xmlns:svg="http://www.w3.org/2000/svg">
|
|
12
|
+
<defs
|
|
13
|
+
id="defs12" />
|
|
14
|
+
<g
|
|
15
|
+
fill="none"
|
|
16
|
+
fill-rule="evenodd"
|
|
17
|
+
id="g6"
|
|
18
|
+
transform="matrix(0.857375,0,0,0.857375,1.7115,1.7115)">
|
|
19
|
+
<rect
|
|
20
|
+
width="24"
|
|
21
|
+
height="24"
|
|
22
|
+
fill="#d40001"
|
|
23
|
+
id="rect2"
|
|
24
|
+
x="0"
|
|
25
|
+
y="0" />
|
|
26
|
+
<path
|
|
27
|
+
fill="#ffffff"
|
|
28
|
+
d="M 16.717949,7.9284049 H 12.205128 V 20.249417 H 4 V 3 H 12.205128 20 V 7.9284049 20.249417 h -3.282051 z"
|
|
29
|
+
id="path4" />
|
|
30
|
+
</g>
|
|
31
|
+
</svg>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
|
3
|
+
|
|
4
|
+
<svg
|
|
5
|
+
width="128"
|
|
6
|
+
height="128"
|
|
7
|
+
viewBox="0 0 24 24"
|
|
8
|
+
version="1.1"
|
|
9
|
+
id="svg8"
|
|
10
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
11
|
+
xmlns:svg="http://www.w3.org/2000/svg">
|
|
12
|
+
<defs
|
|
13
|
+
id="defs12" />
|
|
14
|
+
<g
|
|
15
|
+
fill="none"
|
|
16
|
+
fill-rule="evenodd"
|
|
17
|
+
id="g6"
|
|
18
|
+
transform="matrix(0.857375,0,0,0.857375,1.7115,1.7115)">
|
|
19
|
+
<rect
|
|
20
|
+
width="24"
|
|
21
|
+
height="24"
|
|
22
|
+
fill="#d40001"
|
|
23
|
+
id="rect2"
|
|
24
|
+
x="0"
|
|
25
|
+
y="0"
|
|
26
|
+
style="fill:#9ca3af;fill-opacity:1" />
|
|
27
|
+
<path
|
|
28
|
+
fill="#ffffff"
|
|
29
|
+
d="M 16.717949,7.9284049 H 12.205128 V 20.249417 H 4 V 3 H 12.205128 20 V 7.9284049 20.249417 h -3.282051 z"
|
|
30
|
+
id="path4" />
|
|
31
|
+
</g>
|
|
32
|
+
</svg>
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
|
3
|
+
|
|
4
|
+
<svg
|
|
5
|
+
width="128"
|
|
6
|
+
height="128"
|
|
7
|
+
viewBox="0 0 24 24"
|
|
8
|
+
version="1.1"
|
|
9
|
+
id="svg8"
|
|
10
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
11
|
+
xmlns:svg="http://www.w3.org/2000/svg">
|
|
12
|
+
<defs
|
|
13
|
+
id="defs12" />
|
|
14
|
+
<g
|
|
15
|
+
fill="none"
|
|
16
|
+
fill-rule="evenodd"
|
|
17
|
+
id="g6"
|
|
18
|
+
transform="matrix(0.857375,0,0,0.857375,1.7115,1.7115)">
|
|
19
|
+
<rect
|
|
20
|
+
width="24"
|
|
21
|
+
height="24"
|
|
22
|
+
fill="#d40001"
|
|
23
|
+
id="rect2"
|
|
24
|
+
x="0"
|
|
25
|
+
y="0"
|
|
26
|
+
style="fill:#000000" />
|
|
27
|
+
<path
|
|
28
|
+
fill="#ffffff"
|
|
29
|
+
d="M 16.717949,7.9284049 H 12.205128 V 20.249417 H 4 V 3 H 12.205128 20 V 7.9284049 20.249417 h -3.282051 z"
|
|
30
|
+
id="path4" />
|
|
31
|
+
</g>
|
|
32
|
+
</svg>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
|
3
|
+
|
|
4
|
+
<svg
|
|
5
|
+
width="128"
|
|
6
|
+
height="128"
|
|
7
|
+
viewBox="0 0 24 24"
|
|
8
|
+
fill="none"
|
|
9
|
+
version="1.1"
|
|
10
|
+
id="svg10"
|
|
11
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
+
xmlns:svg="http://www.w3.org/2000/svg">
|
|
13
|
+
<defs
|
|
14
|
+
id="defs14" />
|
|
15
|
+
<g
|
|
16
|
+
id="g359"
|
|
17
|
+
transform="matrix(0.81450625,0,0,0.81450625,-1.0321,-1.0321)">
|
|
18
|
+
<path
|
|
19
|
+
d="M 26.5002,14.9996 C 27.8808,14.9996 29,13.8804 29,12.4998 29,11.1192 27.8807,10 26.5001,10 25.1194,10 24,11.1193 24,12.5 v 2.4996 z m -7.0002,0 c 1.3807,0 2.5,-1.1193 2.5,-2.5 V 5.5 C 22,4.11929 20.8807,3 19.5,3 18.1193,3 17,4.11929 17,5.5 v 6.9996 c 0,1.3807 1.1193,2.5 2.5,2.5 z"
|
|
20
|
+
fill="#2eb67d"
|
|
21
|
+
id="path2" />
|
|
22
|
+
<path
|
|
23
|
+
d="M 5.49979,17.0004 C 4.11919,17.0004 3,18.1196 3,19.5002 3,20.8808 4.1193,22 5.49989,22 6.8806,22 8,20.8807 8,19.5 v -2.4996 z m 7.00021,0 c -1.3807,0 -2.5,1.1193 -2.5,2.5 V 26.5 c 0,1.3807 1.1193,2.5 2.5,2.5 1.3807,0 2.5,-1.1193 2.5,-2.5 v -6.9996 c 0,-1.3807 -1.1193,-2.5 -2.5,-2.5 z"
|
|
24
|
+
fill="#e01e5a"
|
|
25
|
+
id="path4" />
|
|
26
|
+
<path
|
|
27
|
+
d="M 17.0004,26.5002 C 17.0004,27.8808 18.1196,29 19.5002,29 20.8808,29 22,27.8807 22,26.5001 22,25.1194 20.8807,24 19.5,24 h -2.4996 z m 0,-7.0002 c 0,1.3807 1.1193,2.5 2.5,2.5 H 26.5 C 27.8807,22 29,20.8807 29,19.5 29,18.1193 27.8807,17 26.5,17 h -6.9996 c -1.3807,0 -2.5,1.1193 -2.5,2.5 z"
|
|
28
|
+
fill="#ecb22e"
|
|
29
|
+
id="path6" />
|
|
30
|
+
<path
|
|
31
|
+
d="M 14.9996,5.49979 C 14.9996,4.11919 13.8804,3 12.4998,3 11.1192,3 10,4.1193 10,5.49989 10,6.88061 11.1193,8 12.5,8 h 2.4996 z m 0,7.00021 c 0,-1.3807 -1.1193,-2.5 -2.5,-2.5 H 5.5 C 4.11929,10 3,11.1193 3,12.5 3,13.8807 4.11929,15 5.5,15 h 6.9996 c 1.3807,0 2.5,-1.1193 2.5,-2.5 z"
|
|
32
|
+
fill="#36c5f0"
|
|
33
|
+
id="path8" />
|
|
34
|
+
</g>
|
|
35
|
+
</svg>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
|
3
|
+
|
|
4
|
+
<svg
|
|
5
|
+
width="128"
|
|
6
|
+
height="128"
|
|
7
|
+
viewBox="0 0 24 24"
|
|
8
|
+
fill="none"
|
|
9
|
+
version="1.1"
|
|
10
|
+
id="svg10"
|
|
11
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
+
xmlns:svg="http://www.w3.org/2000/svg">
|
|
13
|
+
<defs
|
|
14
|
+
id="defs14" />
|
|
15
|
+
<g
|
|
16
|
+
id="g359"
|
|
17
|
+
transform="matrix(0.81450625,0,0,0.81450625,-1.0321,-1.0321)">
|
|
18
|
+
<path
|
|
19
|
+
d="M 26.5002,14.9996 C 27.8808,14.9996 29,13.8804 29,12.4998 29,11.1192 27.8807,10 26.5001,10 25.1194,10 24,11.1193 24,12.5 v 2.4996 z m -7.0002,0 c 1.3807,0 2.5,-1.1193 2.5,-2.5 V 5.5 C 22,4.11929 20.8807,3 19.5,3 18.1193,3 17,4.11929 17,5.5 v 6.9996 c 0,1.3807 1.1193,2.5 2.5,2.5 z"
|
|
20
|
+
fill="#2eb67d"
|
|
21
|
+
id="path2"
|
|
22
|
+
style="fill:#9ca3af;fill-opacity:1" />
|
|
23
|
+
<path
|
|
24
|
+
d="M 5.49979,17.0004 C 4.11919,17.0004 3,18.1196 3,19.5002 3,20.8808 4.1193,22 5.49989,22 6.8806,22 8,20.8807 8,19.5 v -2.4996 z m 7.00021,0 c -1.3807,0 -2.5,1.1193 -2.5,2.5 V 26.5 c 0,1.3807 1.1193,2.5 2.5,2.5 1.3807,0 2.5,-1.1193 2.5,-2.5 v -6.9996 c 0,-1.3807 -1.1193,-2.5 -2.5,-2.5 z"
|
|
25
|
+
fill="#e01e5a"
|
|
26
|
+
id="path4"
|
|
27
|
+
style="fill:#9ca3af;fill-opacity:1" />
|
|
28
|
+
<path
|
|
29
|
+
d="M 17.0004,26.5002 C 17.0004,27.8808 18.1196,29 19.5002,29 20.8808,29 22,27.8807 22,26.5001 22,25.1194 20.8807,24 19.5,24 h -2.4996 z m 0,-7.0002 c 0,1.3807 1.1193,2.5 2.5,2.5 H 26.5 C 27.8807,22 29,20.8807 29,19.5 29,18.1193 27.8807,17 26.5,17 h -6.9996 c -1.3807,0 -2.5,1.1193 -2.5,2.5 z"
|
|
30
|
+
fill="#ecb22e"
|
|
31
|
+
id="path6"
|
|
32
|
+
style="fill:#9ca3af;fill-opacity:1" />
|
|
33
|
+
<path
|
|
34
|
+
d="M 14.9996,5.49979 C 14.9996,4.11919 13.8804,3 12.4998,3 11.1192,3 10,4.1193 10,5.49989 10,6.88061 11.1193,8 12.5,8 h 2.4996 z m 0,7.00021 c 0,-1.3807 -1.1193,-2.5 -2.5,-2.5 H 5.5 C 4.11929,10 3,11.1193 3,12.5 3,13.8807 4.11929,15 5.5,15 h 6.9996 c 1.3807,0 2.5,-1.1193 2.5,-2.5 z"
|
|
35
|
+
fill="#36c5f0"
|
|
36
|
+
id="path8"
|
|
37
|
+
style="fill:#9ca3af;fill-opacity:1" />
|
|
38
|
+
</g>
|
|
39
|
+
</svg>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
+
<!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
|
|
3
|
+
|
|
4
|
+
<svg
|
|
5
|
+
width="128"
|
|
6
|
+
height="128"
|
|
7
|
+
viewBox="0 0 24 24"
|
|
8
|
+
fill="none"
|
|
9
|
+
version="1.1"
|
|
10
|
+
id="svg10"
|
|
11
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
12
|
+
xmlns:svg="http://www.w3.org/2000/svg">
|
|
13
|
+
<defs
|
|
14
|
+
id="defs14" />
|
|
15
|
+
<g
|
|
16
|
+
id="g359"
|
|
17
|
+
transform="matrix(0.81450625,0,0,0.81450625,-1.0321,-1.0321)">
|
|
18
|
+
<path
|
|
19
|
+
d="M 26.5002,14.9996 C 27.8808,14.9996 29,13.8804 29,12.4998 29,11.1192 27.8807,10 26.5001,10 25.1194,10 24,11.1193 24,12.5 v 2.4996 z m -7.0002,0 c 1.3807,0 2.5,-1.1193 2.5,-2.5 V 5.5 C 22,4.11929 20.8807,3 19.5,3 18.1193,3 17,4.11929 17,5.5 v 6.9996 c 0,1.3807 1.1193,2.5 2.5,2.5 z"
|
|
20
|
+
fill="#2eb67d"
|
|
21
|
+
id="path2"
|
|
22
|
+
style="fill:#000000" />
|
|
23
|
+
<path
|
|
24
|
+
d="M 5.49979,17.0004 C 4.11919,17.0004 3,18.1196 3,19.5002 3,20.8808 4.1193,22 5.49989,22 6.8806,22 8,20.8807 8,19.5 v -2.4996 z m 7.00021,0 c -1.3807,0 -2.5,1.1193 -2.5,2.5 V 26.5 c 0,1.3807 1.1193,2.5 2.5,2.5 1.3807,0 2.5,-1.1193 2.5,-2.5 v -6.9996 c 0,-1.3807 -1.1193,-2.5 -2.5,-2.5 z"
|
|
25
|
+
fill="#e01e5a"
|
|
26
|
+
id="path4"
|
|
27
|
+
style="fill:#000000" />
|
|
28
|
+
<path
|
|
29
|
+
d="M 17.0004,26.5002 C 17.0004,27.8808 18.1196,29 19.5002,29 20.8808,29 22,27.8807 22,26.5001 22,25.1194 20.8807,24 19.5,24 h -2.4996 z m 0,-7.0002 c 0,1.3807 1.1193,2.5 2.5,2.5 H 26.5 C 27.8807,22 29,20.8807 29,19.5 29,18.1193 27.8807,17 26.5,17 h -6.9996 c -1.3807,0 -2.5,1.1193 -2.5,2.5 z"
|
|
30
|
+
fill="#ecb22e"
|
|
31
|
+
id="path6"
|
|
32
|
+
style="fill:#000000" />
|
|
33
|
+
<path
|
|
34
|
+
d="M 14.9996,5.49979 C 14.9996,4.11919 13.8804,3 12.4998,3 11.1192,3 10,4.1193 10,5.49989 10,6.88061 11.1193,8 12.5,8 h 2.4996 z m 0,7.00021 c 0,-1.3807 -1.1193,-2.5 -2.5,-2.5 H 5.5 C 4.11929,10 3,11.1193 3,12.5 3,13.8807 4.11929,15 5.5,15 h 6.9996 c 1.3807,0 2.5,-1.1193 2.5,-2.5 z"
|
|
35
|
+
fill="#36c5f0"
|
|
36
|
+
id="path8"
|
|
37
|
+
style="fill:#000000" />
|
|
38
|
+
</g>
|
|
39
|
+
</svg>
|
package/src/cli.js
CHANGED
|
@@ -208,12 +208,14 @@ program
|
|
|
208
208
|
const time = iso.slice(11, 19); // 16:53:28
|
|
209
209
|
|
|
210
210
|
let file;
|
|
211
|
+
let link;
|
|
211
212
|
if (item.file.includes(".svg")) {
|
|
212
213
|
file = path.join(ARTEFACTS_DIR, `${item.file.replace(".svg", ".html")}`);
|
|
214
|
+
link = `\u001B]8;;file://${file}\u0007Open Diagram\u001B]8;;\u0007`;
|
|
213
215
|
} else {
|
|
214
216
|
file = path.join(ARTEFACTS_DIR, `${item.file}`);
|
|
217
|
+
link = `\u001B]8;;file://${file}\u0007Open Artefact\u001B]8;;\u0007`;
|
|
215
218
|
}
|
|
216
|
-
const link = `\u001B]8;;file://${file}\u0007Open\u001B]8;;\u0007`
|
|
217
219
|
|
|
218
220
|
let pid = item.participantId;
|
|
219
221
|
if (!participantId) {
|
package/src/discover.js
CHANGED
|
@@ -173,7 +173,7 @@ async function runDiscovery(participantId, options) {
|
|
|
173
173
|
fs.writeFileSync(file, svg);
|
|
174
174
|
|
|
175
175
|
const htmlFile = wrapSvg(fileId, refId, svg);
|
|
176
|
-
const link = `\u001B]8;;file://${htmlFile}\
|
|
176
|
+
const link = `\u001B]8;;file://${htmlFile}\u0007Diagram\u001B]8;;\u0007`;
|
|
177
177
|
|
|
178
178
|
console.log(`${C.BOLD}Discovery completed${C.RESET}`);
|
|
179
179
|
console.log(`PID : ${participantId}`);
|
|
@@ -193,7 +193,7 @@ async function runDiscovery(participantId, options) {
|
|
|
193
193
|
const file = path.join(ARTEFACTS_DIR, `${fileName}`);
|
|
194
194
|
fs.writeFileSync(file, text);
|
|
195
195
|
|
|
196
|
-
const link = `\u001B]8;;file://${file}\u0007Open\u001B]8;;\u0007`;
|
|
196
|
+
const link = `\u001B]8;;file://${file}\u0007Open Diagram\u001B]8;;\u0007`;
|
|
197
197
|
|
|
198
198
|
console.log(`${C.BOLD}Discovery completed${C.RESET}`);
|
|
199
199
|
console.log(`PID : ${participantId}`);
|
|
@@ -213,7 +213,7 @@ async function runDiscovery(participantId, options) {
|
|
|
213
213
|
const file = path.join(ARTEFACTS_DIR, `${fileName}`);
|
|
214
214
|
fs.writeFileSync(file, JSON.stringify(json, null, 2));
|
|
215
215
|
|
|
216
|
-
const link = `\u001B]8;;file://${file}\u0007Open\u001B]8;;\u0007`;
|
|
216
|
+
const link = `\u001B]8;;file://${file}\u0007Open Diagram\u001B]8;;\u0007`;
|
|
217
217
|
|
|
218
218
|
console.log(`${C.BOLD}Discovery completed${C.RESET}`);
|
|
219
219
|
console.log(`PID : ${participantId}`);
|
package/src/errors.js
CHANGED
|
@@ -15,7 +15,7 @@ function handleError(err) {
|
|
|
15
15
|
: `${WWW_URL}/errors`;
|
|
16
16
|
//console.log(url);
|
|
17
17
|
|
|
18
|
-
const link = `\u001B]8;;${url}\u0007View
|
|
18
|
+
const link = `\u001B]8;;${url}\u0007View Details\u001B]8;;\u0007`;
|
|
19
19
|
|
|
20
20
|
if (message) {
|
|
21
21
|
console.error(`\r${C.BOLD}Error: ${code}${C.RESET} ${C.BLUE}[${link}]${C.RESET}\n\n${C.RED}${err.message}${C.RESET}\n`);
|
package/src/validator.js
CHANGED
|
@@ -237,7 +237,7 @@ function handleValidationReport(artefactFile, report) {
|
|
|
237
237
|
tip = "The document has passed validation and is ready to be sent."
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
-
const link = `\u001B]8;;file://${artefactFile}\u0007View\u001B]8;;\u0007`;
|
|
240
|
+
const link = `\u001B]8;;file://${artefactFile}\u0007View Report\u001B]8;;\u0007`;
|
|
241
241
|
console.log(`${title}${color}${message}${C.RESET} ${C.BLUE}[${link}]${C.RESET}\n\n${tip}\n`);
|
|
242
242
|
}
|
|
243
243
|
|
package/test/errors.test.js
CHANGED
|
@@ -26,7 +26,7 @@ describe("handleError()", () => {
|
|
|
26
26
|
expect(console.error.called).to.be.true;
|
|
27
27
|
expect(console.error.firstCall.args[0]).to.include("Error: 5101");
|
|
28
28
|
expect(console.error.firstCall.args[0]).to.include("Rate limit exceeded");
|
|
29
|
-
expect(console.error.firstCall.args[0]).to.include("View
|
|
29
|
+
expect(console.error.firstCall.args[0]).to.include("View Details");
|
|
30
30
|
});
|
|
31
31
|
|
|
32
32
|
it("prints error without message using documentation fallback", () => {
|