@superutils/rx 0.1.11 → 0.1.13
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/browser/index.min.js.map +1 -1
- package/dist/index.cjs +2 -0
- package/dist/index.d.cts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -0
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -419,6 +419,8 @@ var _DataStorage = class _DataStorage {
|
|
|
419
419
|
* treat the underlying storage as a serialized object, while providing a
|
|
420
420
|
* type-safe Map-like interface for individual properties.
|
|
421
421
|
*
|
|
422
|
+
* This default behavior can be overridden by providing custom `parse` and `stringify` implementations in `options`.
|
|
423
|
+
*
|
|
422
424
|
* @param name (optional) The name for the storage (e.g., localStorage key or filename).
|
|
423
425
|
* @param options (optional) Configuration options for the storage instance.
|
|
424
426
|
* @param options.initialValue (optional) An optional object to populate the storage if it's currently empty.
|
package/dist/index.d.cts
CHANGED
|
@@ -527,7 +527,6 @@ interface IObjectStorage<T extends object, CacheDisabled extends boolean = false
|
|
|
527
527
|
* const userStore = DataStorage.(name, { delay: 0 }) // delay is set to zero to simplify the example
|
|
528
528
|
* userStore.set('name', 'John Doe')
|
|
529
529
|
* userStore.set('name', 'John Doe')
|
|
530
|
-
*
|
|
531
530
|
* ```
|
|
532
531
|
*/
|
|
533
532
|
declare const forceUpdateCache$: Subject<string | boolean | string[]>;
|
|
@@ -704,6 +703,8 @@ This extends IDataStorage<Key, Value, CacheDisabled> = IDataStorage<Key, Value,
|
|
|
704
703
|
* treat the underlying storage as a serialized object, while providing a
|
|
705
704
|
* type-safe Map-like interface for individual properties.
|
|
706
705
|
*
|
|
706
|
+
* This default behavior can be overridden by providing custom `parse` and `stringify` implementations in `options`.
|
|
707
|
+
*
|
|
707
708
|
* @param name (optional) The name for the storage (e.g., localStorage key or filename).
|
|
708
709
|
* @param options (optional) Configuration options for the storage instance.
|
|
709
710
|
* @param options.initialValue (optional) An optional object to populate the storage if it's currently empty.
|
package/dist/index.d.ts
CHANGED
|
@@ -527,7 +527,6 @@ interface IObjectStorage<T extends object, CacheDisabled extends boolean = false
|
|
|
527
527
|
* const userStore = DataStorage.(name, { delay: 0 }) // delay is set to zero to simplify the example
|
|
528
528
|
* userStore.set('name', 'John Doe')
|
|
529
529
|
* userStore.set('name', 'John Doe')
|
|
530
|
-
*
|
|
531
530
|
* ```
|
|
532
531
|
*/
|
|
533
532
|
declare const forceUpdateCache$: Subject<string | boolean | string[]>;
|
|
@@ -704,6 +703,8 @@ This extends IDataStorage<Key, Value, CacheDisabled> = IDataStorage<Key, Value,
|
|
|
704
703
|
* treat the underlying storage as a serialized object, while providing a
|
|
705
704
|
* type-safe Map-like interface for individual properties.
|
|
706
705
|
*
|
|
706
|
+
* This default behavior can be overridden by providing custom `parse` and `stringify` implementations in `options`.
|
|
707
|
+
*
|
|
707
708
|
* @param name (optional) The name for the storage (e.g., localStorage key or filename).
|
|
708
709
|
* @param options (optional) Configuration options for the storage instance.
|
|
709
710
|
* @param options.initialValue (optional) An optional object to populate the storage if it's currently empty.
|
package/dist/index.js
CHANGED
|
@@ -406,6 +406,8 @@ var _DataStorage = class _DataStorage {
|
|
|
406
406
|
* treat the underlying storage as a serialized object, while providing a
|
|
407
407
|
* type-safe Map-like interface for individual properties.
|
|
408
408
|
*
|
|
409
|
+
* This default behavior can be overridden by providing custom `parse` and `stringify` implementations in `options`.
|
|
410
|
+
*
|
|
409
411
|
* @param name (optional) The name for the storage (e.g., localStorage key or filename).
|
|
410
412
|
* @param options (optional) Configuration options for the storage instance.
|
|
411
413
|
* @param options.initialValue (optional) An optional object to populate the storage if it's currently empty.
|
package/package.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"author": "Toufiqur Rahaman Chowdhury",
|
|
3
3
|
"description": "A set of small, focused utilities for working with RxJS observables and subjects.",
|
|
4
4
|
"dependencies": {
|
|
5
|
-
"@superutils/core": "^1.2.
|
|
6
|
-
"@superutils/promise": "^1.3.
|
|
5
|
+
"@superutils/core": "^1.2.17",
|
|
6
|
+
"@superutils/promise": "^1.3.16",
|
|
7
7
|
"@types/react": "^18.0.0",
|
|
8
8
|
"react": ">=16.8.0",
|
|
9
9
|
"rxjs": "^7.8.2"
|
|
@@ -49,6 +49,6 @@
|
|
|
49
49
|
"module": "./dist/index.js",
|
|
50
50
|
"type": "module",
|
|
51
51
|
"types": "./dist/index.d.ts",
|
|
52
|
-
"version": "0.1.
|
|
53
|
-
"gitHead": "
|
|
52
|
+
"version": "0.1.13",
|
|
53
|
+
"gitHead": "63216686cba0a287fc167e02d9137b9e7e6942c1"
|
|
54
54
|
}
|