@open-audio-stack/core 0.0.7 → 0.0.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.
@@ -0,0 +1,3 @@
1
+ export declare function apiBuffer(url: string): Promise<ArrayBuffer>;
2
+ export declare function apiJson(url: string): Promise<any>;
3
+ export declare function apiText(url: string): Promise<string>;
@@ -0,0 +1,12 @@
1
+ export async function apiBuffer(url) {
2
+ console.log('⤓', url);
3
+ return fetch(url).then((res) => res.arrayBuffer());
4
+ }
5
+ export async function apiJson(url) {
6
+ console.log('⤓', url);
7
+ return fetch(url).then((res) => res.json());
8
+ }
9
+ export async function apiText(url) {
10
+ console.log('⤓', url);
11
+ return fetch(url).then((res) => res.text());
12
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@open-audio-stack/core",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "Open-source audio plugin management software",
5
5
  "type": "module",
6
6
  "main": "./build/index.js",