@open-audio-stack/core 0.0.21 → 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;
@@ -1,6 +1,7 @@
1
1
  export declare enum FileFormat {
2
2
  AppImage = "appimage",
3
3
  AppleDiskImage = "dmg",
4
+ ApplePackage = "pkg",
4
5
  DebianPackage = "deb",
5
6
  ExecutableInstaller = "exe",
6
7
  RedHatPackage = "rpm",
@@ -2,6 +2,7 @@ export var FileFormat;
2
2
  (function (FileFormat) {
3
3
  FileFormat["AppImage"] = "appimage";
4
4
  FileFormat["AppleDiskImage"] = "dmg";
5
+ FileFormat["ApplePackage"] = "pkg";
5
6
  FileFormat["DebianPackage"] = "deb";
6
7
  FileFormat["ExecutableInstaller"] = "exe";
7
8
  FileFormat["RedHatPackage"] = "rpm";
@@ -22,6 +23,11 @@ export const fileFormats = [
22
23
  value: FileFormat.AppleDiskImage,
23
24
  name: 'Apple Disk Image',
24
25
  },
26
+ {
27
+ description: 'macOS and iOS software package installer.',
28
+ value: FileFormat.ApplePackage,
29
+ name: 'Apple package',
30
+ },
25
31
  {
26
32
  description: 'Package for Debian-based Linux such as Ubuntu.',
27
33
  value: FileFormat.DebianPackage,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-audio-stack/core",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "description": "Open-source audio plugin management software",
5
5
  "type": "module",
6
6
  "main": "./build/index.js",