keyv-dir-store 0.0.5 → 0.0.6

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.0.6](https://github.com/snomiao/keyv-dir-store/compare/v0.0.5...v0.0.6) (2024-06-27)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * - [`fs.utimes` doesn't support `number` or `string` on Windows · Issue [#33227](https://github.com/snomiao/keyv-dir-store/issues/33227) · nodejs/node]( https://github.com/nodejs/node/issues/33227 ) ([ff4981c](https://github.com/snomiao/keyv-dir-store/commit/ff4981cde2564eb9e49350d97149653d0066f850))
11
+
5
12
  ### [0.0.5](https://github.com/snomiao/keyv-dir-store/compare/v0.0.4...v0.0.5) (2024-06-26)
6
13
 
7
14
 
package/dist/index.js CHANGED
@@ -382,7 +382,7 @@ class KeyvDirStore {
382
382
  this.#cache.set(key, { value, expires });
383
383
  await this.#ready;
384
384
  await writeFile(this.#path(key), value);
385
- await utimes(this.#path(key), +new Date, new Date(expires ?? 0));
385
+ await utimes(this.#path(key), new Date, new Date(expires ?? 0));
386
386
  return true;
387
387
  }
388
388
  async delete(key) {
package/index.ts CHANGED
@@ -91,7 +91,7 @@ export class KeyvDirStore implements Keyv.Store<string> {
91
91
  await this.#ready;
92
92
  // console.log({ key, value, expires });
93
93
  await writeFile(this.#path(key), value); // create a expired file
94
- await utimes(this.#path(key), +new Date(), new Date(expires ?? 0)); // set a future expires time (0 as never expired)
94
+ await utimes(this.#path(key), new Date(), new Date(expires ?? 0)); // set a future expires time (0 as never expired)
95
95
  return true;
96
96
  }
97
97
  async delete(key: string) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "keyv-dir-store",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "author": "snomiao <snomiao@gmail.com>",
5
5
  "type": "module",
6
6
  "exports": {