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

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.
@@ -50346,22 +50346,10 @@ class Fireproof {
50346
50346
  * Creates a new Fireproof instance with default storage settings
50347
50347
  * Most apps should use this and not worry about the details.
50348
50348
  * @static
50349
- * @returns {Database|Promise<Database>} - a new Fireproof instance or a promise for remote loaders
50349
+ * @returns {Database} - a new Fireproof instance
50350
50350
  */
50351
50351
  static storage = (name = null, opts = {}) => {
50352
- if (!name) {
50353
- return new Database(null, opts)
50354
- } else {
50355
- // const primaryLoader = Loader.appropriate(name, opts.primary, { key: null })
50356
- // const secondaryLoader = opts.secondary ? Loader.appropriate(name, opts.secondary, { key: null }) : null
50357
- const db = new Database(name, opts);
50358
- return db
50359
- // const loaders = [pr]
50360
-
50361
- // todo we need branch names here
50362
-
50363
- // console.log('storage', name, opts, primaryLoader, secondaryLoader)
50364
- }
50352
+ return new Database(name, opts)
50365
50353
  }
50366
50354
 
50367
50355
  // static fromConfig (name, primary, secondary, opts = {}) {