@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.
- package/dist/fireproof.js +2 -13
- package/dist/src/fireproof.d.ts +2 -2
- package/dist/src/fireproof.js +2 -14
- package/dist/src/fireproof.js.map +1 -1
- package/dist/src/fireproof.mjs +2 -14
- package/dist/src/fireproof.mjs.map +1 -1
- package/package.json +1 -1
- package/src/fireproof.js +2 -14
package/package.json
CHANGED
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
|
14
|
+
* @returns {Database} - a new Fireproof instance
|
15
15
|
*/
|
16
16
|
static storage = (name = null, opts = {}) => {
|
17
|
-
|
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 = {}) {
|