keyv-dir-store 0.0.8 → 0.0.9

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 (2) hide show
  1. package/index.ts +0 -2
  2. package/package.json +22 -6
package/index.ts CHANGED
@@ -46,7 +46,6 @@ export class KeyvDirStore<Value extends string> implements Keyv.Store<string> {
46
46
  ) {
47
47
  this.#ready = mkdir(dir, { recursive: true }).catch(() => {});
48
48
  this.#cache = cache;
49
-
50
49
  this.#dir = dir;
51
50
  this.#filename = filename ?? this.#defaultFilename;
52
51
  this.ext = ext ?? this.ext;
@@ -116,7 +115,6 @@ export class KeyvDirStore<Value extends string> implements Keyv.Store<string> {
116
115
  async has(key: string) {
117
116
  return undefined !== (await this.get(key));
118
117
  }
119
-
120
118
  // Save expires into mtime, and value into file
121
119
  /** @deprecated use KeyvDirStoreJSON */
122
120
  static serialize({ value }: DeserializedData<any>): string {
package/package.json CHANGED
@@ -1,12 +1,28 @@
1
1
  {
2
2
  "name": "keyv-dir-store",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
+ "description": "High performance Filesystem Keyv Store, caches each key-value pair into a $key.json. and more! *.JSON, *.YAML, *.CSV is also avaliable.",
5
+ "keywords": [
6
+ "keyv",
7
+ "keyv-store",
8
+ "dir"
9
+ ],
10
+ "homepage": "https://github.com/snomiao/keyv-dir-store#readme",
11
+ "bugs": {
12
+ "url": "https://github.com/snomiao/keyv-dir-store/issues"
13
+ },
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/snomiao/keyv-dir-store.git"
17
+ },
18
+ "license": "MIT",
4
19
  "author": "snomiao <snomiao@gmail.com>",
5
20
  "type": "module",
6
21
  "exports": {
7
22
  "import": "./dist/index.js",
8
23
  "types": "./index.ts"
9
24
  },
25
+ "main": "index.js",
10
26
  "module": "index.ts",
11
27
  "types": "./index.ts",
12
28
  "files": [
@@ -15,10 +31,10 @@
15
31
  ],
16
32
  "scripts": {
17
33
  "build": "bun build index.ts --outdir=dist --target=bun",
34
+ "prepare": "husky",
18
35
  "prerelease": "bun run build && bun run test",
19
36
  "release": "bunx standard-version && git push --follow-tags && npm publish",
20
- "test": "bun test",
21
- "prepare": "husky"
37
+ "test": "bun test"
22
38
  },
23
39
  "dependencies": {
24
40
  "@types/node": "^20.14.2",
@@ -27,12 +43,12 @@
27
43
  "yaml": "^2.4.5"
28
44
  },
29
45
  "devDependencies": {
30
- "@types/bun": "^1.1.3",
31
- "@types/jest": "^29.5.12",
46
+ "@types/bun": "^1.1.17",
47
+ "@types/jest": "^29.5.14",
32
48
  "@types/md5": "^2.3.5",
33
49
  "husky": "^9.1.7",
34
50
  "semantic-release": "^24.2.1",
35
- "typescript": "^5.4.5"
51
+ "typescript": "^5.7.3"
36
52
  },
37
53
  "peerDependencies": {
38
54
  "keyv": "^4.5.4"