@open-audio-stack/core 0.0.5 → 0.0.6
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.
- package/README.md +1 -0
- package/build/Config.d.ts +1 -1
- package/build/Config.js +1 -1
- package/build/Registry.d.ts +1 -1
- package/build/Registry.js +2 -2
- package/build/helpers/file.js +2 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
# open-audio-stack-core
|
|
2
2
|
|
|
3
|
+

|
|
3
4
|

|
|
4
5
|
|
|
5
6
|
Common methods package shared across Open Audio Stack compatible registries, command-line tools, apps and websites for handling installing DAW VST plugin dependencies.
|
package/build/Config.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import { ProjectType } from './types/ProjectType.js';
|
|
|
12
12
|
import { SystemType } from './types/SystemType.js';
|
|
13
13
|
export declare class Config {
|
|
14
14
|
config: ConfigInterface;
|
|
15
|
-
constructor(config
|
|
15
|
+
constructor(config?: ConfigInterface);
|
|
16
16
|
get(): ConfigInterface;
|
|
17
17
|
architecture(type: Architecture): import("./types/Architecture.js").ArchitectureOption;
|
|
18
18
|
architectures(): import("./types/Architecture.js").ArchitectureOption[];
|
package/build/Config.js
CHANGED
package/build/Registry.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { PresetType } from './types/PresetType.js';
|
|
|
5
5
|
import { ProjectType } from './types/ProjectType.js';
|
|
6
6
|
export declare class Registry {
|
|
7
7
|
registry: RegistryInterface;
|
|
8
|
-
constructor(registry
|
|
8
|
+
constructor(registry?: RegistryInterface);
|
|
9
9
|
packageAdd(slug: string): {
|
|
10
10
|
slug: string;
|
|
11
11
|
version: string;
|
package/build/Registry.js
CHANGED
|
@@ -3,7 +3,7 @@ import { PackageValidation, } from './types/Package.js';
|
|
|
3
3
|
export class Registry {
|
|
4
4
|
registry;
|
|
5
5
|
constructor(registry) {
|
|
6
|
-
this.registry = registry;
|
|
6
|
+
this.registry = Object.assign({}, registry);
|
|
7
7
|
}
|
|
8
8
|
packageAdd(slug) {
|
|
9
9
|
return (this.registry.packages[slug] = {
|
|
@@ -91,7 +91,7 @@ export class Registry {
|
|
|
91
91
|
const errors = [];
|
|
92
92
|
fields.forEach((field) => {
|
|
93
93
|
const versionField = pkgVersion[field.name];
|
|
94
|
-
if (
|
|
94
|
+
if (versionField === undefined) {
|
|
95
95
|
errors.push({
|
|
96
96
|
field: field.name,
|
|
97
97
|
error: PackageValidation.MISSING_FIELD,
|
package/build/helpers/file.js
CHANGED
|
@@ -51,9 +51,9 @@ export function dirOpen(dir) {
|
|
|
51
51
|
if (process.env.CI)
|
|
52
52
|
return new Buffer('');
|
|
53
53
|
if (process.platform === 'win32')
|
|
54
|
-
command = 'open';
|
|
55
|
-
else if (process.platform === 'darwin')
|
|
56
54
|
command = 'start ""';
|
|
55
|
+
else if (process.platform === 'darwin')
|
|
56
|
+
command = 'open';
|
|
57
57
|
else
|
|
58
58
|
command = 'xdg-open';
|
|
59
59
|
console.log('⎋', `${command} "${dir}"`);
|