@open-audio-stack/core 0.1.11 → 0.1.13
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.
|
@@ -134,7 +134,7 @@ export class ManagerLocal extends Manager {
|
|
|
134
134
|
dirCreate(path.join(dir, pkgSlug, version));
|
|
135
135
|
saveFile(path.join(dir, pkgSlug, version, filename), pkgVersion);
|
|
136
136
|
}
|
|
137
|
-
dirCreate(path.join(dir, pkgSlug
|
|
137
|
+
dirCreate(path.join(dir, pkgSlug));
|
|
138
138
|
saveFile(path.join(dir, pkgSlug, filename), pkg.toJSON());
|
|
139
139
|
// TODO find a more elegant way to handle org exports.
|
|
140
140
|
const pkgOrg = pkgSlug.split('/')[0];
|
package/build/classes/Package.js
CHANGED
|
@@ -25,8 +25,10 @@ export class Package {
|
|
|
25
25
|
};
|
|
26
26
|
if (Object.keys(report).length > 0)
|
|
27
27
|
this.reports.set(num, report);
|
|
28
|
-
if (errors.length > 0)
|
|
28
|
+
if (errors.length > 0) {
|
|
29
|
+
console.error(errors);
|
|
29
30
|
return;
|
|
31
|
+
}
|
|
30
32
|
this.versions.set(num, version);
|
|
31
33
|
this.version = this.latestVersion();
|
|
32
34
|
}
|
|
@@ -30,7 +30,6 @@ export declare const PackageSystemValidator: z.ZodObject<{
|
|
|
30
30
|
}>;
|
|
31
31
|
export declare const PackageFileValidator: z.ZodObject<{
|
|
32
32
|
architectures: z.ZodArray<z.ZodNativeEnum<typeof Architecture>, "many">;
|
|
33
|
-
format: z.ZodNativeEnum<typeof FileFormat>;
|
|
34
33
|
sha256: z.ZodString;
|
|
35
34
|
size: z.ZodNumber;
|
|
36
35
|
systems: z.ZodArray<z.ZodObject<{
|
|
@@ -51,7 +50,6 @@ export declare const PackageFileValidator: z.ZodObject<{
|
|
|
51
50
|
}, "strip", z.ZodTypeAny, {
|
|
52
51
|
type: FileType;
|
|
53
52
|
architectures: Architecture[];
|
|
54
|
-
format: FileFormat;
|
|
55
53
|
sha256: string;
|
|
56
54
|
size: number;
|
|
57
55
|
systems: {
|
|
@@ -63,7 +61,6 @@ export declare const PackageFileValidator: z.ZodObject<{
|
|
|
63
61
|
}, {
|
|
64
62
|
type: FileType;
|
|
65
63
|
architectures: Architecture[];
|
|
66
|
-
format: FileFormat;
|
|
67
64
|
sha256: string;
|
|
68
65
|
size: number;
|
|
69
66
|
systems: {
|
|
@@ -102,7 +99,6 @@ export declare const PackageVersionValidator: z.ZodObject<{
|
|
|
102
99
|
description: z.ZodString;
|
|
103
100
|
files: z.ZodArray<z.ZodObject<{
|
|
104
101
|
architectures: z.ZodArray<z.ZodNativeEnum<typeof Architecture>, "many">;
|
|
105
|
-
format: z.ZodNativeEnum<typeof FileFormat>;
|
|
106
102
|
sha256: z.ZodString;
|
|
107
103
|
size: z.ZodNumber;
|
|
108
104
|
systems: z.ZodArray<z.ZodObject<{
|
|
@@ -123,7 +119,6 @@ export declare const PackageVersionValidator: z.ZodObject<{
|
|
|
123
119
|
}, "strip", z.ZodTypeAny, {
|
|
124
120
|
type: FileType;
|
|
125
121
|
architectures: Architecture[];
|
|
126
|
-
format: FileFormat;
|
|
127
122
|
sha256: string;
|
|
128
123
|
size: number;
|
|
129
124
|
systems: {
|
|
@@ -135,7 +130,6 @@ export declare const PackageVersionValidator: z.ZodObject<{
|
|
|
135
130
|
}, {
|
|
136
131
|
type: FileType;
|
|
137
132
|
architectures: Architecture[];
|
|
138
|
-
format: FileFormat;
|
|
139
133
|
sha256: string;
|
|
140
134
|
size: number;
|
|
141
135
|
systems: {
|
|
@@ -180,7 +174,6 @@ export declare const PackageVersionValidator: z.ZodObject<{
|
|
|
180
174
|
files: {
|
|
181
175
|
type: FileType;
|
|
182
176
|
architectures: Architecture[];
|
|
183
|
-
format: FileFormat;
|
|
184
177
|
sha256: string;
|
|
185
178
|
size: number;
|
|
186
179
|
systems: {
|
|
@@ -205,7 +198,6 @@ export declare const PackageVersionValidator: z.ZodObject<{
|
|
|
205
198
|
files: {
|
|
206
199
|
type: FileType;
|
|
207
200
|
architectures: Architecture[];
|
|
208
|
-
format: FileFormat;
|
|
209
201
|
sha256: string;
|
|
210
202
|
size: number;
|
|
211
203
|
systems: {
|
package/build/helpers/package.js
CHANGED
|
@@ -48,7 +48,6 @@ export const PackageSystemValidator = z.object({
|
|
|
48
48
|
});
|
|
49
49
|
export const PackageFileValidator = z.object({
|
|
50
50
|
architectures: z.nativeEnum(Architecture).array(),
|
|
51
|
-
format: z.nativeEnum(FileFormat),
|
|
52
51
|
sha256: z.string().length(64),
|
|
53
52
|
size: z.number().min(0).max(9999999999),
|
|
54
53
|
systems: PackageSystemValidator.array(),
|