deepbase-sqlite 3.0.4 → 3.0.8

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,21 +1,21 @@
1
1
  {
2
2
  "name": "deepbase-sqlite",
3
- "version": "3.0.4",
3
+ "version": "3.0.8",
4
4
  "description": "⚡ DeepBase SQLite - SQLite database driver",
5
5
  "type": "module",
6
- "main": "src/index.js",
6
+ "main": "src/index.cjs",
7
7
  "module": "src/index.js",
8
8
  "exports": {
9
9
  ".": {
10
- "import": "./src/index.js",
11
- "require": "./src/index.js"
10
+ "require": "./src/index.cjs",
11
+ "import": "./src/index.js"
12
12
  }
13
13
  },
14
14
  "dependencies": {
15
15
  "better-sqlite3": "^11.8.1"
16
16
  },
17
17
  "peerDependencies": {
18
- "deepbase": "^3.0.4"
18
+ "deepbase": "^3.0.8"
19
19
  },
20
20
  "scripts": {
21
21
  "test": "mocha test/test.js"
@@ -2,7 +2,6 @@ import { DeepBaseDriver } from 'deepbase';
2
2
  import Database from 'better-sqlite3';
3
3
  import fs from 'fs';
4
4
  import * as pathModule from 'path';
5
- import { customAlphabet } from 'nanoid';
6
5
 
7
6
  export class SqliteDriver extends DeepBaseDriver {
8
7
  static _instances = {};
@@ -12,7 +11,6 @@ export class SqliteDriver extends DeepBaseDriver {
12
11
 
13
12
  this.name = name || "default";
14
13
  this.path = path || './db';
15
- this.nanoid = customAlphabet(this.nidAlphabet, this.nidLength);
16
14
 
17
15
  this.path = pathModule.resolve(this.path);
18
16
  this.fileName = pathModule.join(this.path, `${this.name}.db`);
package/src/index.cjs ADDED
@@ -0,0 +1,2 @@
1
+ module.exports = require('./index.js').default;
2
+