@opendaw/studio-adapters 0.0.53 → 0.0.55
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/dist/MetaData.d.ts +2 -2
- package/dist/MetaData.d.ts.map +1 -1
- package/dist/MetaData.js +4 -8
- package/package.json +8 -8
package/dist/MetaData.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Box } from "@opendaw/lib-box";
|
|
2
2
|
import { Pointers } from "@opendaw/studio-enums";
|
|
3
|
-
import {
|
|
3
|
+
import { JSONValue, Nullable } from "@opendaw/lib-std";
|
|
4
4
|
export declare namespace MetaData {
|
|
5
5
|
/**
|
|
6
6
|
* Stores the given value in the target box under the given origin.
|
|
@@ -16,7 +16,7 @@ export declare namespace MetaData {
|
|
|
16
16
|
* @param target The box to read the meta-data from.
|
|
17
17
|
* @param origin The origin of the meta-data. Must be unique to the app.
|
|
18
18
|
*/
|
|
19
|
-
const read: (target: Box<Pointers.MetaData>, origin: string) =>
|
|
19
|
+
const read: (target: Box<Pointers.MetaData>, origin: string) => Nullable<JSONValue>;
|
|
20
20
|
/**
|
|
21
21
|
* Deletes all meta-data from the target box with the given origin.
|
|
22
22
|
* Needs to be called within a transaction.
|
package/dist/MetaData.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MetaData.d.ts","sourceRoot":"","sources":["../src/MetaData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AACpC,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAA;AAC9C,OAAO,
|
|
1
|
+
{"version":3,"file":"MetaData.d.ts","sourceRoot":"","sources":["../src/MetaData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,kBAAkB,CAAA;AACpC,OAAO,EAAC,QAAQ,EAAC,MAAM,uBAAuB,CAAA;AAC9C,OAAO,EAAiB,SAAS,EAAE,QAAQ,EAAwB,MAAM,kBAAkB,CAAA;AAG3F,yBAAiB,QAAQ,CAAC;IACtB;;;;;;OAMG;IACI,MAAM,KAAK,GAAI,QAAQ,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,SAAS,EAAE,QAAQ,MAAM,KAAG,IAgBxF,CAAA;IAED;;;;;OAKG;IACI,MAAM,IAAI,GAAI,QAAQ,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,MAAM,KAAG,QAAQ,CAAC,SAAS,CAYvF,CAAA;IAED;;;;;OAKG;IACI,MAAM,KAAK,GAAI,QAAQ,GAAG,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,MAAM,KAAG,IAOtE,CAAA;CACJ"}
|
package/dist/MetaData.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Pointers } from "@opendaw/studio-enums";
|
|
2
|
-
import {
|
|
2
|
+
import { isNotUndefined, panic, tryCatch, UUID } from "@opendaw/lib-std";
|
|
3
3
|
import { MetaDataBox } from "@opendaw/studio-boxes";
|
|
4
4
|
export var MetaData;
|
|
5
5
|
(function (MetaData) {
|
|
@@ -47,15 +47,11 @@ export var MetaData;
|
|
|
47
47
|
if (isNotUndefined(existingBox)) {
|
|
48
48
|
const { status, value, error } = tryCatch(() => JSON.parse(existingBox.value.getValue()));
|
|
49
49
|
if (status === "success") {
|
|
50
|
-
return
|
|
50
|
+
return value;
|
|
51
51
|
}
|
|
52
|
-
|
|
53
|
-
return Attempts.err(error);
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
return Attempts.err("No meta-data found");
|
|
52
|
+
console.warn(error);
|
|
58
53
|
}
|
|
54
|
+
return null;
|
|
59
55
|
};
|
|
60
56
|
/**
|
|
61
57
|
* Deletes all meta-data from the target box with the given origin.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opendaw/studio-adapters",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.55",
|
|
4
4
|
"license": "LGPL-3.0-or-later",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -23,17 +23,17 @@
|
|
|
23
23
|
"test": "echo \"No tests to run\""
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@opendaw/lib-box": "^0.0.
|
|
27
|
-
"@opendaw/lib-dsp": "^0.0.
|
|
28
|
-
"@opendaw/lib-runtime": "^0.0.
|
|
29
|
-
"@opendaw/lib-std": "^0.0.
|
|
30
|
-
"@opendaw/studio-boxes": "^0.0.
|
|
31
|
-
"@opendaw/studio-enums": "^0.0.
|
|
26
|
+
"@opendaw/lib-box": "^0.0.53",
|
|
27
|
+
"@opendaw/lib-dsp": "^0.0.53",
|
|
28
|
+
"@opendaw/lib-runtime": "^0.0.53",
|
|
29
|
+
"@opendaw/lib-std": "^0.0.53",
|
|
30
|
+
"@opendaw/studio-boxes": "^0.0.53",
|
|
31
|
+
"@opendaw/studio-enums": "^0.0.44",
|
|
32
32
|
"soundfont2": "^0.5.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@opendaw/eslint-config": "^0.0.20",
|
|
36
36
|
"@opendaw/typescript-config": "^0.0.20"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "9b821e1d60b57731dd8c44ebcf309b98d896f194"
|
|
39
39
|
}
|