@fireproof/core 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/crypto.js +1 -1
- package/dist/encrypted-block.js +48 -0
- package/dist/src/fireproof.js +3 -0
- package/dist/src/fireproof.js.map +1 -1
- package/dist/src/fireproof.mjs +3 -0
- package/dist/src/fireproof.mjs.map +1 -1
- package/dist/storage/base.js +2 -1
- package/package.json +2 -2
- package/src/crypto.js +1 -1
- package/src/encrypted-block.js +57 -0
- package/src/storage/base.js +2 -1
package/dist/src/fireproof.mjs
CHANGED
@@ -38647,6 +38647,8 @@ aes$2.unwrapKey = unwrapKey;
|
|
38647
38647
|
|
38648
38648
|
var aes = /*@__PURE__*/getDefaultExportFromCjs(dist$1);
|
38649
38649
|
|
38650
|
+
// from https://github.com/mikeal/encrypted-block
|
38651
|
+
|
38650
38652
|
const enc32 = value => {
|
38651
38653
|
value = +value;
|
38652
38654
|
const buff = new Uint8Array(4);
|
@@ -38937,6 +38939,7 @@ class Base {
|
|
38937
38939
|
const got = await reader.get(cid);
|
38938
38940
|
let useCodec = codec;
|
38939
38941
|
if (cid.toString().indexOf('bafy') === 0) {
|
38942
|
+
// @ts-ignore
|
38940
38943
|
useCodec = codec$1; // todo this is a dirty check
|
38941
38944
|
}
|
38942
38945
|
const decoded = await decode$5({
|