New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

sql-bricks

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sql-bricks - npm Package Compare versions

Comparing version

to
2.0.5

.DS_Store

2

package.json
{
"name": "sql-bricks",
"version": "2.0.4",
"version": "2.0.5",
"author": "Peter Rust <peter@cornerstonenw.com>",

@@ -5,0 +5,0 @@ "description": "Transparent, Schemaless SQL Generation",

@@ -26,2 +26,6 @@ (function() {

}
sql.prototype.clone = function clone() {
var args = [this.str].concat(this.vals);
return sql.apply(null, args);
};
sql.setDefaultOpts = setDefaultOpts;

@@ -28,0 +32,0 @@ function setDefaultOpts(opts) {

@@ -951,2 +951,11 @@ (function() {

});
it('should clone parameterized sub-expressions', function() {
checkParams(select().from('tbl').where(or(sql('a = $1', 444), sql('b = $1', 555), sql('c = $1', 666))).clone(),
'SELECT * FROM tbl WHERE a = $1 OR b = $2 OR c = $3',
[444, 555, 666]);
});
it('should clone non-parameterized sub-expressions', function() {
check(select().from('tbl').where(or(sql('a = 444'), sql('b = 555'), sql('c = 666'))).clone(),
'SELECT * FROM tbl WHERE a = 444 OR b = 555 OR c = 666');
});
});

@@ -953,0 +962,0 @@