@k3000/store 1.6.0 → 1.7.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.
Files changed (2) hide show
  1. package/architect.mjs +1 -3
  2. package/package.json +1 -1
package/architect.mjs CHANGED
@@ -1,5 +1,3 @@
1
- import {dirname} from "node:path"
2
- import {fileURLToPath} from "node:url"
3
1
  import {openSync, closeSync, readFileSync, writeFileSync, readSync, writeSync, unlinkSync} from "node:fs"
4
2
  import {createCipheriv, createDecipheriv, createHash, scryptSync} from "node:crypto"
5
3
 
@@ -966,7 +964,7 @@ export class Storage {
966
964
 
967
965
  constructor(url, password, newPwd) {
968
966
 
969
- let dir = url.startsWith('file:///') ? dirname(fileURLToPath(url)) : url
967
+ let dir = url.startsWith('file:///') ? process.cwd() : url
970
968
 
971
969
  dir = dir.replace(/\\/g, '/')
972
970
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@k3000/store",
3
- "version": "1.6.0",
3
+ "version": "1.7.0",
4
4
  "description": "storage",
5
5
  "main": "generator.mjs",
6
6
  "scripts": {