@kvs/env 1.2.0 → 2.1.1
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/README.md +1 -1
- package/lib/browser.d.ts +0 -1
- package/lib/browser.js +3 -12
- package/lib/browser.js.map +1 -1
- package/lib/node.js +3 -12
- package/lib/node.js.map +1 -1
- package/module/browser.d.ts +0 -1
- package/module/browser.js +2 -11
- package/module/browser.js.map +1 -1
- package/module/node.js +2 -11
- package/module/node.js.map +1 -1
- package/package.json +8 -9
- package/CHANGELOG.md +0 -89
package/README.md
CHANGED
package/lib/browser.d.ts
CHANGED
package/lib/browser.js
CHANGED
|
@@ -1,18 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.kvsEnvStorage = void 0;
|
|
13
4
|
const indexeddb_1 = require("@kvs/indexeddb");
|
|
14
|
-
const kvsEnvStorage = (options) =>
|
|
15
|
-
return indexeddb_1.kvsIndexedDB(options);
|
|
16
|
-
}
|
|
5
|
+
const kvsEnvStorage = async (options) => {
|
|
6
|
+
return (0, indexeddb_1.kvsIndexedDB)(options);
|
|
7
|
+
};
|
|
17
8
|
exports.kvsEnvStorage = kvsEnvStorage;
|
|
18
9
|
//# sourceMappingURL=browser.js.map
|
package/lib/browser.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":";;;AACA,8CAAmE;AAG5D,MAAM,aAAa,GAAG,KAAK,EAC9B,OAAmE,EACxC,EAAE;IAC7B,OAAO,IAAA,wBAAY,EAAC,OAAO,CAAC,CAAC;AACjC,CAAC,CAAC;AAJW,QAAA,aAAa,iBAIxB"}
|
package/lib/node.js
CHANGED
|
@@ -1,18 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
3
|
exports.kvsEnvStorage = void 0;
|
|
13
4
|
const node_localstorage_1 = require("@kvs/node-localstorage");
|
|
14
|
-
const kvsEnvStorage = (options) =>
|
|
15
|
-
return node_localstorage_1.kvsLocalStorage(options);
|
|
16
|
-
}
|
|
5
|
+
const kvsEnvStorage = async (options) => {
|
|
6
|
+
return (0, node_localstorage_1.kvsLocalStorage)(options);
|
|
7
|
+
};
|
|
17
8
|
exports.kvsEnvStorage = kvsEnvStorage;
|
|
18
9
|
//# sourceMappingURL=node.js.map
|
package/lib/node.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.js","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"node.js","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":";;;AAAA,8DAAkG;AAI3F,MAAM,aAAa,GAAG,KAAK,EAC9B,OAAsE,EACtC,EAAE;IAClC,OAAO,IAAA,mCAAe,EAAC,OAAO,CAAC,CAAC;AACpC,CAAC,CAAC;AAJW,QAAA,aAAa,iBAIxB"}
|
package/module/browser.d.ts
CHANGED
package/module/browser.js
CHANGED
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
1
|
import { kvsIndexedDB } from "@kvs/indexeddb";
|
|
11
|
-
export const kvsEnvStorage = (options) =>
|
|
2
|
+
export const kvsEnvStorage = async (options) => {
|
|
12
3
|
return kvsIndexedDB(options);
|
|
13
|
-
}
|
|
4
|
+
};
|
|
14
5
|
//# sourceMappingURL=browser.js.map
|
package/module/browser.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"browser.js","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAuB,MAAM,gBAAgB,CAAC;AAGnE,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,EAC9B,OAAmE,EACxC,EAAE;IAC7B,OAAO,YAAY,CAAC,OAAO,CAAC,CAAC;AACjC,CAAC,CAAC"}
|
package/module/node.js
CHANGED
|
@@ -1,14 +1,5 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
1
|
import { kvsLocalStorage } from "@kvs/node-localstorage";
|
|
11
|
-
export const kvsEnvStorage = (options) =>
|
|
2
|
+
export const kvsEnvStorage = async (options) => {
|
|
12
3
|
return kvsLocalStorage(options);
|
|
13
|
-
}
|
|
4
|
+
};
|
|
14
5
|
//# sourceMappingURL=node.js.map
|
package/module/node.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.js","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"node.js","sourceRoot":"","sources":["../src/node.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAA2C,MAAM,wBAAwB,CAAC;AAIlG,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,EAC9B,OAAsE,EACtC,EAAE;IAClC,OAAO,eAAe,CAAC,OAAO,CAAC,CAAC;AACpC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kvs/env",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "Universal Storage for KVS.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"kvs",
|
|
@@ -46,22 +46,21 @@
|
|
|
46
46
|
"trailingComma": "none"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@kvs/indexeddb": "^1.
|
|
50
|
-
"@kvs/node-localstorage": "^1.
|
|
49
|
+
"@kvs/indexeddb": "^2.1.1",
|
|
50
|
+
"@kvs/node-localstorage": "^2.1.1"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@jsdevtools/karma-config": "^3.1.7",
|
|
54
|
-
"@types/mocha": "^
|
|
55
|
-
"@types/node": "^
|
|
56
|
-
"
|
|
57
|
-
"mocha": "^8.1.1",
|
|
54
|
+
"@types/mocha": "^9.0.0",
|
|
55
|
+
"@types/node": "^16.9.1",
|
|
56
|
+
"mocha": "^9.1.1",
|
|
58
57
|
"prettier": "^2.0.5",
|
|
59
58
|
"rimraf": "^3.0.2",
|
|
60
|
-
"ts-loader": "^8.
|
|
59
|
+
"ts-loader": "^8.2.0",
|
|
61
60
|
"typescript": "^4.2.4"
|
|
62
61
|
},
|
|
63
62
|
"publishConfig": {
|
|
64
63
|
"access": "public"
|
|
65
64
|
},
|
|
66
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "d8ec6e0ba796bc2cab189a395bcda9754ffc4c9e"
|
|
67
66
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,89 +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/env
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
## [0.3.1](https://github.com/azu/kvs/compare/v0.3.0...v0.3.1) (2020-08-22)
|
|
50
|
-
|
|
51
|
-
**Note:** Version bump only for package @kvs/env
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
# [0.3.0](https://github.com/azu/kvs/compare/v0.2.1...v0.3.0) (2020-08-22)
|
|
58
|
-
|
|
59
|
-
**Note:** Version bump only for package @kvs/env
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
## [0.2.1](https://github.com/azu/kvs/compare/v0.2.0...v0.2.1) (2020-08-22)
|
|
66
|
-
|
|
67
|
-
**Note:** Version bump only for package @kvs/env
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
# [0.2.0](https://github.com/azu/kvs/compare/v0.1.0...v0.2.0) (2020-08-08)
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
### Features
|
|
77
|
-
|
|
78
|
-
* **@kvs/env:** migrate Schema Type ([0951d08](https://github.com/azu/kvs/commit/0951d08405d42588454878a03c9082961ad0c363))
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
# 0.1.0 (2020-08-08)
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
### Features
|
|
88
|
-
|
|
89
|
-
* **@lvs/env:** add universal env ([36eef88](https://github.com/azu/kvs/commit/36eef88020e13d27545f237df4101174d541c098))
|