beanbagdb 0.5.4 → 0.5.41

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beanbagdb",
3
- "version": "0.5.4",
3
+ "version": "0.5.41",
4
4
  "description": "A JS library to introduce a schema layer to a No-SQL local database",
5
5
  "main": "dist/beanbagdb.esm.js",
6
6
  "module": "dist/beanbagdb.esm.js",
package/src/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import "./utils"
1
2
  import BeanBagDB from "./beanbagdb";
2
3
  import BeanBagDB_CouchDB from "./couchdb";
3
4
  import BeanBagDB_PouchDB from "./pouchdb";
package/src/utils.js CHANGED
@@ -38,4 +38,8 @@ export async function getPackageVersion() {
38
38
  }
39
39
 
40
40
  // getPackageVersion().then(version => console.log('Package version:', version));
41
-
41
+ import { fileURLToPath } from 'url';
42
+ import { dirname } from 'path';
43
+
44
+ export const __filename = fileURLToPath(import.meta.url);
45
+ export const __dirname = dirname(__filename);