@dnax/core 0.74.0 → 0.74.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.
@@ -7,8 +7,8 @@ import { v4 } from "uuid";
7
7
  import fs from "fs-extra";
8
8
  import path from "path";
9
9
  const BENTO_CACHE_DIR = "cache";
10
- const cacheDirectory = path.join(process.cwd(), "/.cache/system/");
11
- const cacheDirectoryData = path.join(process.cwd(), "/.cache/data/");
10
+ const cacheDirectory = path.join(process.cwd(), ".cache", "system");
11
+ const cacheDirectoryData = path.join(process.cwd(), ".cache", "data");
12
12
 
13
13
  if (!fs?.existsSync(path.resolve(cacheDirectory))) {
14
14
  fs.mkdirSync(cacheDirectory, {
@@ -35,7 +35,7 @@ function useCache(
35
35
  }
36
36
  ): InstanceType<typeof BentoCache> {
37
37
  const bento = new BentoCache({
38
- default: "memory",
38
+ default: driver ?? "memory",
39
39
  stores: {
40
40
  memory: bentostore().useL1Layer(
41
41
  memoryDriver({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.74.0",
3
+ "version": "0.74.2",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {},