@open-audio-stack/core 0.0.22 → 0.0.23

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.
@@ -184,19 +184,19 @@ export async function fileValidateMetadata(filePath, fileMetadata) {
184
184
  if (fileMetadata.sha256 !== hash) {
185
185
  errors.push({
186
186
  code: ZodIssueCode.invalid_type,
187
- expected: hash,
187
+ expected: fileMetadata.sha256,
188
188
  message: 'Required',
189
189
  path: ['sha256'],
190
- received: fileMetadata.sha256,
190
+ received: hash,
191
191
  });
192
192
  }
193
193
  if (fileMetadata.size !== fileSize(filePath)) {
194
194
  errors.push({
195
195
  code: ZodIssueCode.invalid_type,
196
- expected: String(fileSize(filePath)),
196
+ expected: String(fileMetadata.size),
197
197
  message: 'Required',
198
198
  path: ['size'],
199
- received: String(fileMetadata.size),
199
+ received: String(fileSize(filePath)),
200
200
  });
201
201
  }
202
202
  return errors;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-audio-stack/core",
3
- "version": "0.0.22",
3
+ "version": "0.0.23",
4
4
  "description": "Open-source audio plugin management software",
5
5
  "type": "module",
6
6
  "main": "./build/index.js",