@open-audio-stack/core 0.1.33 → 0.1.35

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.
@@ -218,3 +218,4 @@ export declare const PackageVersionValidator: z.ZodObject<{
218
218
  export declare const SemverValidator: z.ZodString;
219
219
  export declare function packageRecommendations(pkgVersion: PackageVersion): PackageValidationRec[];
220
220
  export declare function packageRecommendationsUrl(obj: PackageVersion | PluginFile | PresetFile | ProjectFile, recs: PackageValidationRec[], field: string, domain?: string): void;
221
+ export declare function packageToYaml(pkgVersion: PackageVersion): string;
@@ -9,6 +9,7 @@ import { PresetType } from '../types/PresetType.js';
9
9
  import { ProjectType } from '../types/ProjectType.js';
10
10
  import { SystemType } from '../types/SystemType.js';
11
11
  import { pathGetExt } from './utils.js';
12
+ import yaml from 'js-yaml';
12
13
  export function packageCompatibleFiles(pkg, arch, sys, excludedFormats) {
13
14
  return pkg.files.filter((file) => {
14
15
  const archMatches = file.architectures.filter(architecture => {
@@ -193,3 +194,6 @@ export function packageRecommendationsUrl(obj, recs, field, domain) {
193
194
  });
194
195
  }
195
196
  }
197
+ export function packageToYaml(pkgVersion) {
198
+ return yaml.dump(pkgVersion, { lineWidth: -1 });
199
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-audio-stack/core",
3
- "version": "0.1.33",
3
+ "version": "0.1.35",
4
4
  "description": "Open-source audio plugin management software",
5
5
  "type": "module",
6
6
  "main": "./build/index.js",