Socket
Socket
Sign inDemoInstall

sqlite-express

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sqlite-express - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

4

index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc