@graffy/cache 0.15.25-alpha.1 → 0.15.25-alpha.3

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.
Files changed (3) hide show
  1. package/index.cjs +3 -3
  2. package/index.mjs +4 -2
  3. package/package.json +3 -3
package/index.cjs CHANGED
@@ -1,13 +1,13 @@
1
1
  "use strict";
2
- var common = require("@graffy/common");
3
- var stream = require("@graffy/stream");
2
+ const common = require("@graffy/common");
3
+ const stream = require("@graffy/stream");
4
4
  const DEFAULT_MAX_AGE = 6e4;
5
5
  const NUM_LAYERS = 3;
6
6
  function index({ maxAge = DEFAULT_MAX_AGE } = {}) {
7
7
  return (store) => {
8
8
  const layers = [];
9
9
  let optimisticState = [];
10
- const optimisticChanges = new Set();
10
+ const optimisticChanges = /* @__PURE__ */ 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 = new Set();
9
+ const optimisticChanges = /* @__PURE__ */ new Set();
10
10
  const watcher = makeWatcher();
11
11
  function addToCache(result = []) {
12
12
  const now = Date.now();
@@ -92,4 +92,6 @@ function index({ maxAge = DEFAULT_MAX_AGE } = {}) {
92
92
  });
93
93
  };
94
94
  }
95
- export { index as default };
95
+ export {
96
+ index as default
97
+ };
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.25-alpha.1",
5
+ "version": "0.15.25-alpha.3",
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.25-alpha.1",
20
- "@graffy/stream": "0.15.25-alpha.1"
19
+ "@graffy/common": "0.15.25-alpha.3",
20
+ "@graffy/stream": "0.15.25-alpha.3"
21
21
  }
22
22
  }