@fireproof/core 0.5.0 → 0.5.2
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/README.md +11 -0
- package/dist/src/fireproof.js +7 -5
- package/dist/src/fireproof.js.map +1 -1
- package/dist/src/fireproof.mjs +7 -5
- package/dist/src/fireproof.mjs.map +1 -1
- package/package.json +3 -3
- package/src/db-index.js +7 -5
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@fireproof/core",
|
3
|
-
"version": "0.5.
|
4
|
-
"description": "
|
3
|
+
"version": "0.5.2",
|
4
|
+
"description": "Cloudless database for apps, the browser, and IPFS",
|
5
5
|
"main": "dist/src/fireproof.js",
|
6
6
|
"module": "dist/src/fireproof.mjs",
|
7
7
|
"typings": "dist/src/fireproof.d.ts",
|
@@ -10,7 +10,7 @@
|
|
10
10
|
"scripts": {
|
11
11
|
"keygen": "node scripts/keygen.js",
|
12
12
|
"test": "standard && npm run test:unencrypted && npm run test:mocha",
|
13
|
-
"test:unencrypted": "NO_ENCRYPT=true npm run test:mocha",
|
13
|
+
"test:unencrypted": "set NO_ENCRYPT=true && npm run test:mocha",
|
14
14
|
"test:mocha": "mocha test/*.test.js",
|
15
15
|
"test:watch": "npm run test:mocha -- -w --parallel",
|
16
16
|
"coverage": "c8 -r html -r text npm test",
|
package/src/db-index.js
CHANGED
@@ -98,11 +98,13 @@ export class DbIndex {
|
|
98
98
|
if (!database.indexBlocks) {
|
99
99
|
database.indexBlocks = new TransactionBlockstore(database?.name + '.indexes', database.blocks.valet?.getKeyMaterial())
|
100
100
|
}
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
101
|
+
if (typeof name === 'function') {
|
102
|
+
// app is using deprecated API, remove in 0.7
|
103
|
+
opts = clock || {}
|
104
|
+
clock = mapFn || null
|
105
|
+
mapFn = name
|
106
|
+
name = null
|
107
|
+
}
|
106
108
|
if (typeof mapFn === 'string') {
|
107
109
|
this.mapFnString = mapFn
|
108
110
|
} else {
|