@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.
Files changed (2) hide show
  1. package/dist/index.js +2 -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 === false ? artifact.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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@absolutejs/voice",
3
- "version": "0.0.22-beta.420",
3
+ "version": "0.0.22-beta.421",
4
4
  "description": "Voice primitives and Elysia plugin for AbsoluteJS",
5
5
  "repository": {
6
6
  "type": "git",