@open-audio-stack/core 0.0.11 → 0.0.12

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.
@@ -1,4 +1,4 @@
1
- import { PackageInterface } from '../types/Package.js';
1
+ import { PackageInterface, PackageValidationError } from '../types/Package.js';
2
2
  import { PluginFile } from '../types/Plugin.js';
3
3
  import { PresetFile } from '../types/Preset.js';
4
4
  import { ProjectFile } from '../types/Project.js';
@@ -30,6 +30,6 @@ export declare function fileReadJson(filePath: string): any;
30
30
  export declare function fileReadString(filePath: string): string;
31
31
  export declare function fileReadYaml(filePath: string): unknown;
32
32
  export declare function fileSize(filePath: string): number;
33
- export declare function fileValidateMetadata(filePath: string, fileMetadata: PluginFile | PresetFile | ProjectFile): void;
33
+ export declare function fileValidateMetadata(filePath: string, fileMetadata: PluginFile | PresetFile | ProjectFile): PackageValidationError[];
34
34
  export declare function zipCreate(filesPath: string, zipPath: string): void;
35
35
  export declare function zipExtract(content: any, dirPath: string): void;
@@ -193,6 +193,7 @@ export function fileValidateMetadata(filePath, fileMetadata) {
193
193
  valueReceived: String(fileMetadata.size),
194
194
  });
195
195
  }
196
+ return errors;
196
197
  }
197
198
  export function zipCreate(filesPath, zipPath) {
198
199
  if (fileExists(zipPath)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-audio-stack/core",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "description": "Open-source audio plugin management software",
5
5
  "type": "module",
6
6
  "main": "./build/index.js",