Comparing version 0.2.5 to 0.2.8
{ | ||
"name": "sqb", | ||
"description": "Lightweight, multi-dialect SQL query builder for JavaScript", | ||
"version": "0.2.5", | ||
"version": "0.2.8", | ||
"author": "Panates Ltd.", | ||
@@ -33,3 +33,3 @@ "contributors": [ | ||
"peerDependencies": { | ||
"sqb-connect": "^0.0.10" | ||
"sqb-connect": "^0.0.11" | ||
}, | ||
@@ -36,0 +36,0 @@ "engines": { |
@@ -10,3 +10,2 @@ /* SQB | ||
/* Internal module dependencies. */ | ||
const SqlBuilder = require('./sqlbuilder'); | ||
const SqlObject = require('./sqlobjects/abstract'); | ||
@@ -23,12 +22,15 @@ const Select = require('./sqlobjects/select'); | ||
const Serializer = require('./serializer'); | ||
const {DbPool} = require('sqb-connect'); | ||
const DbPool = require('./pool'); | ||
const Connection = require('./connection'); | ||
const sqlObjects = require('./sqlobjects'); | ||
/* Register built-in serializers */ | ||
require('./dialects/oracle_serializer'); | ||
module.exports = new SqlBuilder(); | ||
Object.assign(sqlObjects, { | ||
Object.assign(module.exports, { | ||
SqlBuilder, | ||
Serializer, | ||
DbPool, | ||
Connection, | ||
SqlObject, | ||
@@ -44,4 +46,2 @@ Select, | ||
ConditionGroup, | ||
Serializer, | ||
DbPool, | ||
@@ -57,5 +57,2 @@ serializer: function (config) { | ||
DbPool._sqb = module.exports; | ||
module.exports = sqlObjects; |
@@ -10,3 +10,2 @@ /* SQB | ||
/* Internal module dependencies. */ | ||
const StringBuilder = require('./helpers/stringbuilder'); | ||
@@ -13,0 +12,0 @@ |
@@ -31,3 +31,3 @@ /* SQB | ||
dbpool() { | ||
get dbpool() { | ||
return typeof this.builder.connect === 'function' ? this.builder : undefined; | ||
@@ -43,2 +43,7 @@ } | ||
identify(value) { | ||
this._identity = value; | ||
return this; | ||
} | ||
//noinspection JSUnusedGlobalSymbols | ||
@@ -45,0 +50,0 @@ then(callback) { |
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances 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
64859
23
1901
7