Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

betajs-sql

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

betajs-sql - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

package-source.json
{
"name": "betajs-sql",
"version": "1.0.2",
"version": "1.0.4",
"description": "BetaJS-SQL is a sql wrapper for BetaJS.",

@@ -5,0 +5,0 @@ "contributors": ["Pablo Iglesias"],

@@ -18,3 +18,3 @@ {

"name": "betajs-sql",
"version": "1.0.3",
"version": "1.0.4",
"description": "BetaJS-SQL is a sql wrapper for BetaJS.",

@@ -21,0 +21,0 @@ "contributors": [

@@ -37,3 +37,3 @@ Scoped.define("module:SqlDatabaseTable", [

var prom = Promise.create();
return Promise.funcCallback(req, req.query, query, {}).mapSuccess(function(result) {
return Promise.funcCallback(req, req.rawQuery, query, {}).mapSuccess(function(result) {
return new ArrayIterator(result.rows);

@@ -49,3 +49,3 @@ }, this).mapError(function(err) {

var prom = Promise.create();
req.query(query, {}, prom.asyncCallbackFunc());
req.rawQuery(query, {}, prom.asyncCallbackFunc());
return prom.success(function(result) {

@@ -58,7 +58,7 @@ return result;

_removeRow: function(delParams, callbacks) {
_removeRow: function(delParams) {
var req = this.table();
var query = this.__formatDelete(delParams);
var prom = Promise.create();
req.query(query, {}, prom.asyncCallbackFunc());
req.rawQuery(query, {}, prom.asyncCallbackFunc());
return prom.success(function(result) {

@@ -75,3 +75,3 @@ return result;

var prom = Promise.create();
req.query(query, {}, prom.asyncCallbackFunc());
req.rawQuery(query, {}, prom.asyncCallbackFunc());
return prom.success(function(result) {

@@ -78,0 +78,0 @@ return result;

@@ -40,3 +40,5 @@ Scoped.define("module:SqlDatabase", [

var sqldbman = this.sql_module;
var sqldb = new sqldbman(this.__dbObject);
var sqldb = new sqldbman(this.__dbObject, {
rawConnection: true
});
this.__sqldb = sqldb;

@@ -59,2 +61,6 @@ ret = sqldb;

return this.__sqldbreq;
},
close: function() {
this.__sqldb.close();
}

@@ -61,0 +67,0 @@ };

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