@fireproof/core 0.7.0-alpha.0 → 0.7.0-alpha.1

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fireproof/core",
3
- "version": "0.7.0-alpha.0",
3
+ "version": "0.7.0-alpha.1",
4
4
  "description": "Live data for React, accelerated by proofs, powered by IPFS",
5
5
  "main": "dist/src/fireproof.js",
6
6
  "module": "dist/src/fireproof.mjs",
package/src/fireproof.js CHANGED
@@ -11,22 +11,10 @@ export class Fireproof {
11
11
  * Creates a new Fireproof instance with default storage settings
12
12
  * Most apps should use this and not worry about the details.
13
13
  * @static
14
- * @returns {Database|Promise<Database>} - a new Fireproof instance or a promise for remote loaders
14
+ * @returns {Database} - a new Fireproof instance
15
15
  */
16
16
  static storage = (name = null, opts = {}) => {
17
- if (!name) {
18
- return new Database(null, opts)
19
- } else {
20
- // const primaryLoader = Loader.appropriate(name, opts.primary, { key: null })
21
- // const secondaryLoader = opts.secondary ? Loader.appropriate(name, opts.secondary, { key: null }) : null
22
- const db = new Database(name, opts)
23
- return db
24
- // const loaders = [pr]
25
-
26
- // todo we need branch names here
27
-
28
- // console.log('storage', name, opts, primaryLoader, secondaryLoader)
29
- }
17
+ return new Database(name, opts)
30
18
  }
31
19
 
32
20
  // static fromConfig (name, primary, secondary, opts = {}) {