wacom 20.2.0 → 20.2.2
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/fesm2022/wacom.mjs +4 -4
- package/fesm2022/wacom.mjs.map +1 -1
- package/index.d.ts +2 -2
- package/package.json +51 -2
package/fesm2022/wacom.mjs
CHANGED
|
@@ -1900,8 +1900,8 @@ class StoreService {
|
|
|
1900
1900
|
* @param value - The value to store.
|
|
1901
1901
|
* @returns A promise that resolves to a boolean indicating success.
|
|
1902
1902
|
*/
|
|
1903
|
-
async setJson(key, value) {
|
|
1904
|
-
return await this.set(key, JSON.stringify(value));
|
|
1903
|
+
async setJson(key, value, callback = () => { }, errCallback = () => { }) {
|
|
1904
|
+
return await this.set(key, JSON.stringify(value), callback, errCallback);
|
|
1905
1905
|
}
|
|
1906
1906
|
/**
|
|
1907
1907
|
* Gets a JSON value from storage asynchronously.
|
|
@@ -1909,8 +1909,8 @@ class StoreService {
|
|
|
1909
1909
|
* @param key - The storage key.
|
|
1910
1910
|
* @returns A promise that resolves to the retrieved value.
|
|
1911
1911
|
*/
|
|
1912
|
-
async getJson(key) {
|
|
1913
|
-
const value = await this.get(key);
|
|
1912
|
+
async getJson(key, callback, errCallback = () => { }) {
|
|
1913
|
+
const value = await this.get(key, callback, errCallback);
|
|
1914
1914
|
if (value === null) {
|
|
1915
1915
|
return null;
|
|
1916
1916
|
}
|