@open-audio-stack/core 0.1.35 → 0.1.36
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,4 +218,5 @@ 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
|
|
221
|
+
export declare function packageJsToYaml(pkgVersion: PackageVersion): string;
|
|
222
|
+
export declare function packageYamlToJs(pkgYaml: string): PackageVersion;
|
package/build/helpers/package.js
CHANGED
|
@@ -194,6 +194,9 @@ export function packageRecommendationsUrl(obj, recs, field, domain) {
|
|
|
194
194
|
});
|
|
195
195
|
}
|
|
196
196
|
}
|
|
197
|
-
export function
|
|
197
|
+
export function packageJsToYaml(pkgVersion) {
|
|
198
198
|
return yaml.dump(pkgVersion, { lineWidth: -1 });
|
|
199
199
|
}
|
|
200
|
+
export function packageYamlToJs(pkgYaml) {
|
|
201
|
+
return yaml.load(pkgYaml);
|
|
202
|
+
}
|