@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.
- package/architect.mjs +1 -3
- 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:///') ?
|
|
967
|
+
let dir = url.startsWith('file:///') ? process.cwd() : url
|
|
970
968
|
|
|
971
969
|
dir = dir.replace(/\\/g, '/')
|
|
972
970
|
|