tiny-essentials 1.19.0 → 1.19.1
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/v1/TinyEssentials.js +6 -6
- package/dist/v1/TinyEssentials.min.js +1 -1
- package/dist/v1/TinyLocalStorage.js +6 -6
- package/dist/v1/TinyLocalStorage.min.js +1 -1
- package/dist/v1/TinyUploadClicker.js +6 -6
- package/dist/v1/TinyUploadClicker.min.js +1 -1
- package/dist/v1/libs/TinyLocalStorage.cjs +6 -6
- package/dist/v1/libs/TinyLocalStorage.mjs +6 -6
- package/package.json +1 -1
|
@@ -19297,7 +19297,7 @@ class TinyLocalStorage {
|
|
|
19297
19297
|
}
|
|
19298
19298
|
const encoded = this.#setJson(name, data);
|
|
19299
19299
|
this.emit('setJson', name, data);
|
|
19300
|
-
this.#localStorage.setItem(name, JSON.stringify(encoded));
|
|
19300
|
+
return this.#localStorage.setItem(name, JSON.stringify(encoded));
|
|
19301
19301
|
}
|
|
19302
19302
|
|
|
19303
19303
|
/**
|
|
@@ -19367,8 +19367,8 @@ class TinyLocalStorage {
|
|
|
19367
19367
|
setDate(name, data) {
|
|
19368
19368
|
if (!(data instanceof Date)) throw new Error('Value must be a Date.');
|
|
19369
19369
|
const encoded = this.#setJson(name, data);
|
|
19370
|
-
this.#localStorage.setItem(name, JSON.stringify(encoded));
|
|
19371
19370
|
this.emit('setDate', name, data);
|
|
19371
|
+
return this.#localStorage.setItem(name, JSON.stringify(encoded));
|
|
19372
19372
|
}
|
|
19373
19373
|
|
|
19374
19374
|
/**
|
|
@@ -19389,8 +19389,8 @@ class TinyLocalStorage {
|
|
|
19389
19389
|
setRegExp(name, data) {
|
|
19390
19390
|
if (!(data instanceof RegExp)) throw new Error('Value must be a RegExp.');
|
|
19391
19391
|
const encoded = this.#setJson(name, data);
|
|
19392
|
-
this.#localStorage.setItem(name, JSON.stringify(encoded));
|
|
19393
19392
|
this.emit('setRegExp', name, data);
|
|
19393
|
+
return this.#localStorage.setItem(name, JSON.stringify(encoded));
|
|
19394
19394
|
}
|
|
19395
19395
|
|
|
19396
19396
|
/**
|
|
@@ -19411,8 +19411,8 @@ class TinyLocalStorage {
|
|
|
19411
19411
|
setBigInt(name, data) {
|
|
19412
19412
|
if (typeof data !== 'bigint') throw new Error('Value must be a BigInt.');
|
|
19413
19413
|
const encoded = this.#setJson(name, data);
|
|
19414
|
-
this.#localStorage.setItem(name, JSON.stringify(encoded));
|
|
19415
19414
|
this.emit('setBigInt', name, data);
|
|
19415
|
+
return this.#localStorage.setItem(name, JSON.stringify(encoded));
|
|
19416
19416
|
}
|
|
19417
19417
|
|
|
19418
19418
|
/**
|
|
@@ -19434,8 +19434,8 @@ class TinyLocalStorage {
|
|
|
19434
19434
|
setSymbol(name, data) {
|
|
19435
19435
|
if (typeof data !== 'symbol') throw new Error('Value must be a Symbol.');
|
|
19436
19436
|
const encoded = this.#setJson(name, data);
|
|
19437
|
-
this.#localStorage.setItem(name, JSON.stringify(encoded));
|
|
19438
19437
|
this.emit('setSymbol', name, data);
|
|
19438
|
+
return this.#localStorage.setItem(name, JSON.stringify(encoded));
|
|
19439
19439
|
}
|
|
19440
19440
|
|
|
19441
19441
|
/**
|
|
@@ -19597,7 +19597,7 @@ class TinyLocalStorage {
|
|
|
19597
19597
|
* Clears all data from `localStorage`.
|
|
19598
19598
|
*/
|
|
19599
19599
|
clearLocalStorage() {
|
|
19600
|
-
this.#localStorage.clear();
|
|
19600
|
+
return this.#localStorage.clear();
|
|
19601
19601
|
}
|
|
19602
19602
|
|
|
19603
19603
|
/**
|