CEC-532 Display manifest file properties (#133)

* CEC-532 Display update file properties

* npm audit fix
This commit is contained in:
John Wu
2022-04-06 12:34:39 -07:00
committed by GitHub
parent 6eb32d1522
commit 350134e187
4 changed files with 28 additions and 25 deletions

30
package-lock.json generated
View File

@@ -5328,6 +5328,16 @@
"css-what": "^3.2.1", "css-what": "^3.2.1",
"domutils": "^1.7.0", "domutils": "^1.7.0",
"nth-check": "^1.0.2" "nth-check": "^1.0.2"
},
"dependencies": {
"nth-check": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/nth-check/-/nth-check-1.0.2.tgz",
"integrity": "sha512-WeBOdju8SnzPN5vTUJYxYUxLeXpCaVP5i5e0LF8fg7WORF2Wd7wFX/pk0tYZk7s8T+J7VLy0Da6J1+wCT0AtHg==",
"requires": {
"boolbase": "~1.0.0"
}
}
} }
}, },
"css-select-base-adapter": { "css-select-base-adapter": {
@@ -8939,9 +8949,9 @@
} }
}, },
"minimist": { "minimist": {
"version": "1.2.5", "version": "1.2.6",
"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz",
"integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q=="
}, },
"mkdirp": { "mkdirp": {
"version": "0.5.5", "version": "0.5.5",
@@ -9000,9 +9010,9 @@
} }
}, },
"node-forge": { "node-forge": {
"version": "1.2.1", "version": "1.3.1",
"resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.2.1.tgz", "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz",
"integrity": "sha512-Fcvtbb+zBcZXbTTVwqGA5W+MKBj56UjVRevvchv5XrcyXbmNdesfZL37nlcWOfpgHhgmxApw3tQbTr4CqNmX4w==" "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA=="
}, },
"node-int64": { "node-int64": {
"version": "0.4.0", "version": "0.4.0",
@@ -9037,14 +9047,6 @@
"path-key": "^3.0.0" "path-key": "^3.0.0"
} }
}, },
"nth-check": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/nth-check/-/nth-check-2.0.1.tgz",
"integrity": "sha512-it1vE95zF6dTT9lBsYbxvqh0Soy4SPowchj0UBGj/V6cTPnXXtQOPUbhZ6CmGzAD/rW22LQK6E96pcdJXk4A4w==",
"requires": {
"boolbase": "^1.0.0"
}
},
"nwsapi": { "nwsapi": {
"version": "2.2.0", "version": "2.2.0",
"resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.0.tgz", "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.0.tgz",

View File

@@ -116,7 +116,7 @@ Object {
ECUs: ECUs:
<ul> <ul>
<li> <li>
ICC, SW Version: 1000, HW Version: None, Mode: D ICC, SW Version: 1000, HW Version: none, Mode: D
<br /> <br />
<ul> <ul>
<li> <li>
@@ -125,9 +125,7 @@ Object {
> >
LARGE.jpg LARGE.jpg
</a> </a>
[ , File ID: b0cda514c94080b4, Type: ODX Data, Download Size: 14559274, File Size: 14488498, Offset: 0, CRC32: 00000000
b0cda514c94080b4
]
</li> </li>
</ul> </ul>
</li> </li>
@@ -161,7 +159,7 @@ Object {
ECUs: ECUs:
<ul> <ul>
<li> <li>
ICC, SW Version: 1000, HW Version: None, Mode: D ICC, SW Version: 1000, HW Version: none, Mode: D
<br /> <br />
<ul> <ul>
<li> <li>
@@ -170,9 +168,7 @@ Object {
> >
LARGE.jpg LARGE.jpg
</a> </a>
[ , File ID: b0cda514c94080b4, Type: ODX Data, Download Size: 14559274, File Size: 14488498, Offset: 0, CRC32: 00000000
b0cda514c94080b4
]
</li> </li>
</ul> </ul>
</li> </li>

View File

@@ -12,7 +12,12 @@ const ECUFileList = (files) => {
<ul> <ul>
{files.map((file) => ( {files.map((file) => (
<li key={file.filename}> <li key={file.filename}>
<a href={file.url}>{file.filename}</a> [{file.file_id}] <a href={file.url}>{file.filename}</a>
{`, File ID: ${file.file_id}, Type: ${file.type}, Download Size: ${
file.file_size
}, File Size: ${file.size}, Offset: ${file.offset ?? 0}, CRC32: ${
file.checksum ?? "00000000"
}`}
</li> </li>
))} ))}
</ul> </ul>
@@ -26,7 +31,7 @@ const ECUList = (ecus) => {
{ecus.map((ecu) => ( {ecus.map((ecu) => (
<li key={ecu.name}> <li key={ecu.name}>
{`${ecu.name}, SW Version: ${ecu.version ?? "None"}, HW Version: ${ {`${ecu.name}, SW Version: ${ecu.version ?? "None"}, HW Version: ${
ecu.hw_version ?? "None" ecu.hw_version ?? "none"
}, Mode: ${ecu.mode ?? "D"}${ }, Mode: ${ecu.mode ?? "D"}${
ecu.self_download ? ", Self Download" : "" ecu.self_download ? ", Self Download" : ""
}`} }`}