@absolutejs/voice 0.0.22-beta.420 → 0.0.22-beta.421
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/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -33102,10 +33102,10 @@ var verifyArtifact = async (artifact, options) => {
|
|
|
33102
33102
|
const generatedAtMs = toEpochMs(generatedAt);
|
|
33103
33103
|
const ageMs = generatedAtMs === undefined ? undefined : now - generatedAtMs;
|
|
33104
33104
|
const isStale = maxAgeMs !== undefined && ageMs !== undefined && ageMs > maxAgeMs;
|
|
33105
|
-
const checksum = options.checksum ===
|
|
33105
|
+
const checksum = options.checksum === "sha256" ? {
|
|
33106
33106
|
algorithm: "sha256",
|
|
33107
33107
|
value: await checksumFile(filePath)
|
|
33108
|
-
};
|
|
33108
|
+
} : artifact.checksum;
|
|
33109
33109
|
return {
|
|
33110
33110
|
...artifact,
|
|
33111
33111
|
bytes: artifact.bytes ?? file.size,
|