@fireproof/core 0.3.21 → 0.3.22
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/dist/src/index.js +2 -2
- package/dist/src/index.js.map +1 -1
- package/dist/src/index.mjs +2 -2
- package/dist/src/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/valet.js +2 -2
package/package.json
CHANGED
package/src/valet.js
CHANGED
@@ -18,8 +18,8 @@ import * as codec from 'encrypted-block'
|
|
18
18
|
import { rawSha1 as sha1sync } from './sha1.js'
|
19
19
|
const chunker = bf(3)
|
20
20
|
|
21
|
-
const NO_ENCRYPT = process.env?.NO_ENCRYPT
|
22
|
-
//
|
21
|
+
const NO_ENCRYPT = typeof process !== 'undefined' && !!process.env?.NO_ENCRYPT
|
22
|
+
// ? process.env.NO_ENCRYPT : import.meta && import.meta.env.VITE_NO_ENCRYPT
|
23
23
|
|
24
24
|
export class Valet {
|
25
25
|
idb = null
|