@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fireproof/core",
3
- "version": "0.3.21",
3
+ "version": "0.3.22",
4
4
  "description": "Realtime database for IPFS",
5
5
  "main": "dist/src/index.js",
6
6
  "module": "dist/src/index.mjs",
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
- // typeof process !== 'undefined' ? process.env.NO_ENCRYPT : import.meta && import.meta.env.VITE_NO_ENCRYPT
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