@kvs/node-localstorage 1.2.0 → 2.0.0

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/lib/index.js CHANGED
@@ -24,12 +24,12 @@ const mkdirp_1 = __importDefault(require("mkdirp"));
24
24
  const kvsLocalStorage = (options) => __awaiter(void 0, void 0, void 0, function* () {
25
25
  const defaultCacheDir = path_1.default.join(app_root_path_1.default.toString(), ".cache");
26
26
  if (!options.storeFilePath) {
27
- yield mkdirp_1.default(defaultCacheDir);
27
+ yield (0, mkdirp_1.default)(defaultCacheDir);
28
28
  }
29
29
  const saveFilePath = options.storeFilePath
30
30
  ? options.storeFilePath
31
31
  : path_1.default.join(defaultCacheDir, "kvs-node-localstorage");
32
- return storage_1.kvsStorage(Object.assign(Object.assign({}, options), { storage: new node_localstorage_1.LocalStorage(saveFilePath) }));
32
+ return (0, storage_1.kvsStorage)(Object.assign(Object.assign({}, options), { storage: new node_localstorage_1.LocalStorage(saveFilePath) }));
33
33
  });
34
34
  exports.kvsLocalStorage = kvsLocalStorage;
35
35
  //# sourceMappingURL=index.js.map
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAAwB;AACxB,0CAAiE;AAEjE,aAAa;AACb,yDAAiD;AACjD,aAAa;AACb,kEAAoC;AACpC,aAAa;AACb,oDAA4B;AAUrB,MAAM,eAAe,GAAG,CAC3B,OAAuC,EACZ,EAAE;IAC7B,MAAM,eAAe,GAAG,cAAI,CAAC,IAAI,CAAC,uBAAO,CAAC,QAAQ,EAAE,EAAE,QAAQ,CAAC,CAAC;IAChE,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE;QACxB,MAAM,gBAAM,CAAC,eAAe,CAAC,CAAC;KACjC;IACD,MAAM,YAAY,GAAG,OAAO,CAAC,aAAa;QACtC,CAAC,CAAC,OAAO,CAAC,aAAa;QACvB,CAAC,CAAC,cAAI,CAAC,IAAI,CAAC,eAAe,EAAE,uBAAuB,CAAC,CAAC;IAC1D,OAAO,oBAAU,iCACV,OAAO,KACV,OAAO,EAAE,IAAI,gCAAY,CAAC,YAAY,CAAC,IACzC,CAAC;AACP,CAAC,CAAA,CAAC;AAdW,QAAA,eAAe,mBAc1B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,gDAAwB;AACxB,0CAAiE;AAEjE,aAAa;AACb,yDAAiD;AACjD,aAAa;AACb,kEAAoC;AACpC,aAAa;AACb,oDAA4B;AAUrB,MAAM,eAAe,GAAG,CAC3B,OAAuC,EACZ,EAAE;IAC7B,MAAM,eAAe,GAAG,cAAI,CAAC,IAAI,CAAC,uBAAO,CAAC,QAAQ,EAAE,EAAE,QAAQ,CAAC,CAAC;IAChE,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE;QACxB,MAAM,IAAA,gBAAM,EAAC,eAAe,CAAC,CAAC;KACjC;IACD,MAAM,YAAY,GAAG,OAAO,CAAC,aAAa;QACtC,CAAC,CAAC,OAAO,CAAC,aAAa;QACvB,CAAC,CAAC,cAAI,CAAC,IAAI,CAAC,eAAe,EAAE,uBAAuB,CAAC,CAAC;IAC1D,OAAO,IAAA,oBAAU,kCACV,OAAO,KACV,OAAO,EAAE,IAAI,gCAAY,CAAC,YAAY,CAAC,IACzC,CAAC;AACP,CAAC,CAAA,CAAC;AAdW,QAAA,eAAe,mBAc1B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kvs/node-localstorage",
3
- "version": "1.2.0",
3
+ "version": "2.0.0",
4
4
  "description": "Node.js localstorage for KVS.",
5
5
  "keywords": [
6
6
  "kvs",
@@ -45,25 +45,24 @@
45
45
  "trailingComma": "none"
46
46
  },
47
47
  "dependencies": {
48
- "@kvs/storage": "^1.2.0",
48
+ "@kvs/storage": "^2.0.0",
49
49
  "app-root-path": "^3.0.0",
50
50
  "mkdirp": "^1.0.4",
51
51
  "node-localstorage": "^2.1.6"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@jsdevtools/karma-config": "^3.1.7",
55
- "@kvs/common-test-case": "^1.2.0",
56
- "@types/mocha": "^8.0.1",
57
- "@types/node": "^14.0.27",
58
- "lerna": "^3.22.1",
59
- "mocha": "^8.1.1",
55
+ "@kvs/common-test-case": "^2.0.0",
56
+ "@types/mocha": "^9.0.0",
57
+ "@types/node": "^16.9.1",
58
+ "mocha": "^9.1.1",
60
59
  "prettier": "^2.0.5",
61
60
  "rimraf": "^3.0.2",
62
- "ts-loader": "^8.1.0",
61
+ "ts-loader": "^8.2.0",
63
62
  "typescript": "^4.2.4"
64
63
  },
65
64
  "publishConfig": {
66
65
  "access": "public"
67
66
  },
68
- "gitHead": "63a9bf838e8efa7690163d28476edd90e2c6b94c"
67
+ "gitHead": "b43dd2fdbefe4ee5714d0690b2f8f576dc8c1417"
69
68
  }
package/CHANGELOG.md DELETED
@@ -1,81 +0,0 @@
1
- # Change Log
2
-
3
- All notable changes to this project will be documented in this file.
4
- See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
-
6
- # [1.2.0](https://github.com/azu/kvs/compare/v1.1.0...v1.2.0) (2021-04-17)
7
-
8
-
9
- ### Features
10
-
11
- * **types:** Use Key Remapping in Mapped Types. ([#17](https://github.com/azu/kvs/issues/17)) ([7c099be](https://github.com/azu/kvs/commit/7c099be4ae39adedba78d111574347395e024362))
12
-
13
-
14
- ### BREAKING CHANGES
15
-
16
- * **types:** require TypeScript 4.1+
17
-
18
- It aims to support to following schema:
19
-
20
- ```ts
21
- const storage = kvs<{
22
- [index: string]: string;
23
- }>;
24
- ```
25
-
26
-
27
-
28
-
29
-
30
- # [1.1.0](https://github.com/azu/kvs/compare/v1.0.0...v1.1.0) (2020-10-29)
31
-
32
-
33
- ### Features
34
-
35
- * **examples:** add basic example ([#14](https://github.com/azu/kvs/issues/14)) ([351215d](https://github.com/azu/kvs/commit/351215d6c04158201768036caaa6e792c72717ea))
36
-
37
-
38
-
39
-
40
-
41
- # [1.0.0](https://github.com/azu/kvs/compare/v0.3.1...v1.0.0) (2020-08-22)
42
-
43
- **Note:** Version bump only for package @kvs/node-localstorage
44
-
45
-
46
-
47
-
48
-
49
- # [0.3.0](https://github.com/azu/kvs/compare/v0.2.1...v0.3.0) (2020-08-22)
50
-
51
- **Note:** Version bump only for package @kvs/node-localstorage
52
-
53
-
54
-
55
-
56
-
57
- ## [0.2.1](https://github.com/azu/kvs/compare/v0.2.0...v0.2.1) (2020-08-22)
58
-
59
- **Note:** Version bump only for package @kvs/node-localstorage
60
-
61
-
62
-
63
-
64
-
65
- # [0.2.0](https://github.com/azu/kvs/compare/v0.1.0...v0.2.0) (2020-08-08)
66
-
67
-
68
- ### Features
69
-
70
- * **@kvs/env:** migrate Schema Type ([0951d08](https://github.com/azu/kvs/commit/0951d08405d42588454878a03c9082961ad0c363))
71
-
72
-
73
-
74
-
75
-
76
- # 0.1.0 (2020-08-08)
77
-
78
-
79
- ### Features
80
-
81
- * **@kvs/node-localstorage:** add node implementation ([5160012](https://github.com/azu/kvs/commit/516001286c96ac85cb54d55fbba62549d6d7eb0e))