sqlite-express
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -8,5 +8,5 @@ const path = require( 'path' ); | ||
class SqliteExpress{ | ||
constructor(){ | ||
constructor(root){ | ||
this._dataBasesList = {}; | ||
this._rootPath = path.dirname( module.parent.filename ); | ||
this._rootPath = path.dirname( root ? root : (module.parent.filename ? module.parent.filename : '.') ); | ||
this._defaultOptions = new DefaultOptions( this._rootPath ); | ||
@@ -13,0 +13,0 @@ } |
{ | ||
"name": "sqlite-express", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "functions for sqlite3", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -24,2 +24,11 @@ ### SQLite-Express Version 3 | ||
if you are using an environment with complex path handling such as next.js or react-router, it is recommended to instantiate the class with a parameter with the root path from which you are instantiating the class. | ||
This avoids conflicts, however in simple applications it is not necessary. | ||
```javascript | ||
const SqliteExpress = require('./index'); | ||
const session = new SqliteExpress('my/root/path'); | ||
``` | ||
#### Key Features | ||
@@ -66,4 +75,2 @@ | ||
# Methods | ||
All of the following methods can receive parameters in order or an object. | ||
@@ -70,0 +77,0 @@ # Methods |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
38306
458
0