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

ci-node-query

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ci-node-query - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

lib/adapters/node-firebird.js

34

Gruntfile.js
module.exports = function(grunt) {
'use strict';
var tests = 'tests/**/*_test.js';
var src = 'lib/**/*.js';
var reportDir = 'coverage';
// Project configuration
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
clean: [ 'build' ],
jsdoc: {

@@ -23,30 +18,6 @@ dist: {

nodeunit: {
all: [tests],
all: ['tests/**/*_test.js'],
options: {
reporter: 'verbose'
}
},
watch: {
files: [src, tests],
tasks: 'default'
},
instrument: {
files: src,
options: {
lazy: true,
basePath : 'build/instrument/'
}
},
storeCoverage : {
options : {
dir: reportDir
}
},
makeReport: {
src: 'build/reports/**/*.json',
options: {
type: ['lcov', 'html'],
dir: reportDir,
print: 'detail'
}
}

@@ -56,5 +27,3 @@ });

grunt.loadNpmTasks('grunt-jsdoc');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-nodeunit');
grunt.loadNpmTasks('grunt-istanbul');

@@ -65,3 +34,2 @@

grunt.registerTask('docs', 'jsdoc');
grunt.registerTask('cover', ['clean', 'instrument', 'tests', 'storeCoverage', 'makeReport']);
};

@@ -287,2 +287,3 @@ 'use strict';

//console.log(vals);
//console.log(callback);
//console.log('------------------------');

@@ -772,3 +773,3 @@

var args = getArgs('table:string, [data]:object, callback:function', arguments);
args.table = driver.quoteTable(args.table);
if (args.data) {

@@ -779,3 +780,3 @@ this.set(args.data);

// Run the query
_p.run('insert', args.table, args.callback);
_p.run('insert', driver.quoteTable(args.table), args.callback);
};

@@ -810,2 +811,3 @@

var args = getArgs('table:string, [data]:object, callback:function', arguments);
if (args.data) {

@@ -816,3 +818,3 @@ this.set(args.data);

// Run the query
_p.run('update', args.table, args.callback);
_p.run('update', driver.quoteTable(args.table), args.callback);
};

@@ -837,3 +839,3 @@

// Run the query
_p.run('delete', args.table, args.callback);
_p.run('delete', driver.quoteTable(args.table), args.callback);
};

@@ -870,3 +872,3 @@

this.getCompiledInsert = function(table, reset) {
return _p.getCompile('insert', table, reset);
return _p.getCompile('insert', driver.quoteTable(table), reset);
};

@@ -882,3 +884,3 @@

this.getCompiledUpdate = function(table, reset) {
return _p.getCompile('update', table, reset);
return _p.getCompile('update', driver.quoteTable(table), reset);
};

@@ -894,3 +896,3 @@

this.getCompiledDelete = function(table, reset) {
return _p.getCompile('delete', table, reset);
return _p.getCompile('delete', driver.quoteTable(table), reset);
};

@@ -897,0 +899,0 @@

{
"name": "ci-node-query",
"version": "1.0.0",
"version": "1.1.0",
"description": "A query builder for node based on the one in CodeIgniter",

@@ -22,3 +22,5 @@ "author": "Timothy J Warren <tim@timshomepage.net>",

"dblite",
"sqlite3"
"sqlite3",
"firebird",
"node-firebird"
],

@@ -48,3 +50,3 @@ "bugs": {

"mysql2": "^0.12.5",
"node-firebird": "^0.2.3",
"node-firebird": "^0.2.4",
"nodeunit": "^0.9.0",

@@ -51,0 +53,0 @@ "pg": "^3.6.2",

@@ -14,2 +14,3 @@ #CI-Node-query

* sqlite3
* node-firebird

@@ -16,0 +17,0 @@ ### Installation

@@ -313,4 +313,4 @@ 'use strict';

base.qb.set('id', 98)
.set('key', 84)
.set('val', 120)
.set('key', "84")
.set('val', new Buffer("120"))
.insert('create_test', base.testCallback.bind(this, test));

@@ -323,3 +323,3 @@ },

key: 1,
val: 2
val: new Buffer('2')
}, base.testCallback.bind(this, test));

@@ -332,11 +332,11 @@ },

key: 3,
val: 7
val: new Buffer('7')
}, {
id: 89,
key: 34,
val: "10 o'clock"
val: new Buffer("10 o'clock")
}, {
id: 48,
key: 403,
val: 97
val: new Buffer('97')
}];

@@ -352,3 +352,3 @@

key: 'gogle',
val: 'non-word'
val: new Buffer('non-word')
}, base.testCallback.bind(this, test));

@@ -361,3 +361,3 @@ },

key: 'gogle',
val: 'non-word'
val: new Buffer('non-word')
};

@@ -374,3 +374,3 @@

.set('key', 'gogle')
.set('val', 'non-word')
.set('val', new Buffer('non-word'))
.update('create_test', base.testCallback.bind(this, test));

@@ -377,0 +377,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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