@graffy/cache 0.15.23-alpha.1 → 0.15.24
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/index.cjs +1 -1
- package/index.mjs +1 -1
- package/package.json +3 -3
package/index.cjs
CHANGED
|
@@ -7,7 +7,7 @@ function index({ maxAge = DEFAULT_MAX_AGE } = {}) {
|
|
|
7
7
|
return (store) => {
|
|
8
8
|
const layers = [];
|
|
9
9
|
let optimisticState = [];
|
|
10
|
-
const optimisticChanges =
|
|
10
|
+
const optimisticChanges = new Set();
|
|
11
11
|
const watcher = common.makeWatcher();
|
|
12
12
|
function addToCache(result = []) {
|
|
13
13
|
const now = Date.now();
|
package/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ function index({ maxAge = DEFAULT_MAX_AGE } = {}) {
|
|
|
6
6
|
return (store) => {
|
|
7
7
|
const layers = [];
|
|
8
8
|
let optimisticState = [];
|
|
9
|
-
const optimisticChanges =
|
|
9
|
+
const optimisticChanges = new Set();
|
|
10
10
|
const watcher = makeWatcher();
|
|
11
11
|
function addToCache(result = []) {
|
|
12
12
|
const now = Date.now();
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@graffy/cache",
|
|
3
3
|
"description": "Graffy module providing in-memory caching.",
|
|
4
4
|
"author": "aravind (https://github.com/aravindet)",
|
|
5
|
-
"version": "0.15.
|
|
5
|
+
"version": "0.15.24",
|
|
6
6
|
"main": "./index.cjs",
|
|
7
7
|
"exports": {
|
|
8
8
|
"import": "./index.mjs",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"license": "Apache-2.0",
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@graffy/common": "0.15.
|
|
20
|
-
"@graffy/stream": "0.15.
|
|
19
|
+
"@graffy/common": "0.15.24",
|
|
20
|
+
"@graffy/stream": "0.15.24"
|
|
21
21
|
}
|
|
22
22
|
}
|