@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/README.md
CHANGED
@@ -139,6 +139,17 @@ Thanks to Alan Shaw and Mikeal Rogers without whom this project would have never
|
|
139
139
|
|
140
140
|
# Contributing
|
141
141
|
|
142
|
+
To contribute please follow these steps for local setup and installation of the project
|
143
|
+
|
144
|
+
1. Click on the "Fork" button in the top-right corner of the repository's page. This will create a copy of the repository in your account.
|
145
|
+
2. Clone the forked repository to your local machine using Git.
|
146
|
+
3. Now cd to the target directory, or load the directory in your IDE, and open up a terminal.
|
147
|
+
4. Write the command `pnpm install`. This will install all the dependencies that are listed in the `package.json` file.
|
148
|
+
5. Now change the directory to packages/fireproof using the command `cd packages/fireproof`.
|
149
|
+
6. See the `package.json` file to work with all the listed commands and try them out. You can also test your application locally using `npm test`.
|
150
|
+
7. Also change directory to `examples/todomvc` and run the command `npm run dev` to load up a simple application to understand the use of Fireproof as a real-time database.
|
151
|
+
8. Keep contributing :) See [projects](https://github.com/fireproof-storage/fireproof/projects?query=is%3Aopen) and [issues](https://github.com/fireproof-storage/fireproof/issues) for ideas where to get started.
|
152
|
+
|
142
153
|
Feel free to join in. All welcome. [Open an issue](https://github.com/jchris/fireproof/issues)!
|
143
154
|
|
144
155
|
# License
|
package/dist/src/fireproof.js
CHANGED
@@ -38697,11 +38697,13 @@ class DbIndex {
|
|
38697
38697
|
if (!database.indexBlocks) {
|
38698
38698
|
database.indexBlocks = new TransactionBlockstore(database?.name + '.indexes', database.blocks.valet?.getKeyMaterial());
|
38699
38699
|
}
|
38700
|
-
|
38701
|
-
|
38702
|
-
|
38703
|
-
|
38704
|
-
|
38700
|
+
if (typeof name === 'function') {
|
38701
|
+
// app is using deprecated API, remove in 0.7
|
38702
|
+
opts = clock || {};
|
38703
|
+
clock = mapFn || null;
|
38704
|
+
mapFn = name;
|
38705
|
+
name = null;
|
38706
|
+
}
|
38705
38707
|
if (typeof mapFn === 'string') {
|
38706
38708
|
this.mapFnString = mapFn;
|
38707
38709
|
} else {
|