@open-audio-stack/core 0.1.6 → 0.1.8

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 CHANGED
@@ -5,7 +5,7 @@
5
5
  </h1>
6
6
  <p>Audio registry specification and API with searchable list of packages</p>
7
7
  <p>
8
- <a href="https://github.com/open-audio-stack/open-audio-stack-core/wiki/Open-Audio-Stack-%E2%80%90-Registry-%E2%80%90-Specification-1.0.0">Registry Specification</a>
8
+ <a href="https://github.com/open-audio-stack/open-audio-stack-core/wiki/Open-Audio-Stack-%E2%80%90-Manager-%E2%80%90-Specification-1.0.0">Manager Specification</a>
9
9
  ⦁︎
10
10
  <a href="https://open-audio-stack.github.io/open-audio-stack-registry">Registry API</a>
11
11
  ⦁︎
@@ -17,7 +17,7 @@
17
17
  ![Release](https://github.com/open-audio-stack/open-audio-stack-core/workflows/Release/badge.svg)
18
18
  <a href="https://discord.com/invite/9D94f98PxP" target="_blank"><img src="https://img.shields.io/badge/chat-on%20discord-7289DA.svg" alt="Join the chat at Discord"></a>
19
19
 
20
- ![Open Audio Stack - Registry - Specification 1.0.0](https://raw.githubusercontent.com/open-audio-stack/open-audio-stack-registry/refs/heads/main/src/assets/open-audio-stack-diagram.svg)
20
+ ![Open Audio Stack - Manager - Specification 1.0.0](https://raw.githubusercontent.com/open-audio-stack/open-audio-stack-registry/refs/heads/main/src/assets/open-audio-stack-diagram-manager.svg)
21
21
 
22
22
  </div>
23
23
 
@@ -1,7 +1,7 @@
1
1
  import path from 'path';
2
2
  import { Package } from './Package.js';
3
3
  import { Manager } from './Manager.js';
4
- import { archiveExtract, dirCreate, dirDelete, dirEmpty, dirRead, fileCreate, fileCreateJson, fileExists, fileHash, fileOpen, fileReadJson, filesMove, isAdmin, runCliAsAdmin, } from '../helpers/file.js';
4
+ import { archiveExtract, dirCreate, dirDelete, dirEmpty, dirRead, fileCreate, fileCreateJson, fileExists, fileHash, fileOpen, fileReadJson, fileReadYaml, filesMove, isAdmin, runCliAsAdmin, } from '../helpers/file.js';
5
5
  import { pathGetSlug, pathGetVersion } from '../helpers/utils.js';
6
6
  import { commandExists, getArchitecture, getSystem, isTests } from '../helpers/utilsLocal.js';
7
7
  import { apiBuffer } from '../helpers/api.js';
@@ -25,7 +25,7 @@ export class ManagerLocal extends Manager {
25
25
  const filePaths = dirRead(`${this.typeDir}/**/index.${ext}`);
26
26
  filePaths.forEach((filePath) => {
27
27
  const subPath = filePath.replace(`${this.typeDir}/`, '');
28
- const pkgJson = fileReadJson(filePath);
28
+ const pkgJson = ext === 'yaml' ? fileReadYaml(filePath) : fileReadJson(filePath);
29
29
  pkgJson.installed = true;
30
30
  const pkg = new Package(pathGetSlug(subPath));
31
31
  pkg.addVersion(pathGetVersion(subPath), pkgJson);
@@ -1,6 +1,6 @@
1
1
  export * from './classes/Config.js';
2
- export * from './classes/Package.js';
3
2
  export * from './classes/Manager.js';
3
+ export * from './classes/Package.js';
4
4
  export * from './classes/Registry.js';
5
5
  export * from './helpers/api.js';
6
6
  export * from './helpers/config.js';
@@ -5,10 +5,11 @@
5
5
  // Classes
6
6
  export * from './classes/Config.js';
7
7
  // export * from './classes/ConfigLocal.js';
8
- export * from './classes/Package.js';
9
8
  export * from './classes/Manager.js';
10
9
  // export * from './classes/ManagerLocal.js';
10
+ export * from './classes/Package.js';
11
11
  export * from './classes/Registry.js';
12
+ // export * from './classes/RegistryLocal.js';
12
13
  // Helpers
13
14
  // export * from './helpers/admin.js'; // Admin is an independent script which should not be imported here.
14
15
  export * from './helpers/api.js';
package/build/index.d.ts CHANGED
@@ -1,9 +1,10 @@
1
1
  export * from './classes/Config.js';
2
2
  export * from './classes/ConfigLocal.js';
3
- export * from './classes/Package.js';
4
3
  export * from './classes/Manager.js';
5
4
  export * from './classes/ManagerLocal.js';
5
+ export * from './classes/Package.js';
6
6
  export * from './classes/Registry.js';
7
+ export * from './classes/RegistryLocal.js';
7
8
  export * from './helpers/api.js';
8
9
  export * from './helpers/config.js';
9
10
  export * from './helpers/configLocal.js';
package/build/index.js CHANGED
@@ -5,10 +5,11 @@
5
5
  // Classes
6
6
  export * from './classes/Config.js';
7
7
  export * from './classes/ConfigLocal.js';
8
- export * from './classes/Package.js';
9
8
  export * from './classes/Manager.js';
10
9
  export * from './classes/ManagerLocal.js';
10
+ export * from './classes/Package.js';
11
11
  export * from './classes/Registry.js';
12
+ export * from './classes/RegistryLocal.js';
12
13
  // Helpers
13
14
  // export * from './helpers/admin.js'; // Admin is an independent script which should not be imported here.
14
15
  export * from './helpers/api.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-audio-stack/core",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "Open-source audio plugin management software",
5
5
  "type": "module",
6
6
  "main": "./build/index.js",