padavan 2.0.1 → 2.0.2
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 +1 -1
- package/src/index.js +1 -6
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -94,7 +94,7 @@ export default class Padavan {
|
|
|
94
94
|
* @type {Promise<any>}
|
|
95
95
|
*/
|
|
96
96
|
#commandQueue = Promise.resolve();
|
|
97
|
-
|
|
97
|
+
|
|
98
98
|
/**
|
|
99
99
|
* Кэшированный промис запроса NVRAM.
|
|
100
100
|
* @type {Promise<Record<string, string>>|null}
|
|
@@ -596,11 +596,6 @@ export default class Padavan {
|
|
|
596
596
|
const artifact = await this.#github.getLatestArtifact();
|
|
597
597
|
const toIdMatch = artifact.name.match(/-([0-9a-f]{7,})$/);
|
|
598
598
|
const toId = toIdMatch ? toIdMatch[1]?.substring(0, 7) : null;
|
|
599
|
-
console.log({
|
|
600
|
-
currentFirmware, fromId,
|
|
601
|
-
artifact,
|
|
602
|
-
toIdMatch, toId
|
|
603
|
-
});
|
|
604
599
|
|
|
605
600
|
if (!fromId || !toId)
|
|
606
601
|
throw new Error(`Could not determine firmware versions (current: ${fromId}, latest: ${toId})`);
|