Comparing version 1.6.3 to 1.6.4
@@ -0,1 +1,5 @@ | ||
1.6.4 (08/11/2018) | ||
- revert changes breaking node v4 and add v4 to | ||
build matrix #872, #873 | ||
1.6.3 (06/10/2018) | ||
@@ -2,0 +6,0 @@ - Don't treat selector-making function as a class. #869, #871 |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
'use strict'; | ||
const { EventEmitter } = require('events'); | ||
const EventEmitter = require('events').EventEmitter; | ||
@@ -5,0 +5,0 @@ class Command extends EventEmitter { |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -5,3 +5,3 @@ 'use strict'; | ||
const { Readable } = require('stream'); | ||
const Readable = require('stream').Readable; | ||
@@ -266,3 +266,3 @@ const Command = require('./command.js'); | ||
}); | ||
this.on('end', function () { | ||
this.on('end', function() { | ||
stream.push(null); // pushing null, indicating EOF | ||
@@ -269,0 +269,0 @@ stream.emit('close'); // notify readers that query has completed |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -6,4 +6,4 @@ 'use strict'; | ||
const Timers = require('timers'); | ||
const { EventEmitter } = require('events'); | ||
const { Readable } = require('stream'); | ||
const EventEmitter = require('events').EventEmitter; | ||
const Readable = require('stream').Readable; | ||
const Queue = require('denque'); | ||
@@ -10,0 +10,0 @@ const SqlString = require('sqlstring'); |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -6,3 +6,3 @@ 'use strict'; | ||
const Types = require('../constants/types.js'); | ||
const { srcEscape, printDebugWithCode } = require('../helpers'); | ||
const helpers = require('../helpers'); | ||
const genFunc = require('generate-function'); | ||
@@ -112,3 +112,3 @@ const parserCache = require('./parser_cache.js'); | ||
for (i = 0; i < resultTablesArray.length; i++) { | ||
parserFn('this[' + srcEscape(resultTablesArray[i]) + '] = {};'); | ||
parserFn('this[' + helpers.srcEscape(resultTablesArray[i]) + '] = {};'); | ||
} | ||
@@ -129,13 +129,15 @@ } | ||
for (i = 0; i < fields.length; i++) { | ||
fieldName = srcEscape(fields[i].name); | ||
fieldName = helpers.srcEscape(fields[i].name); | ||
parserFn('// ' + fieldName + ': ' + typeNames[fields[i].columnType]); | ||
if (typeof options.nestTables == 'string') { | ||
tableName = srcEscape(fields[i].table); | ||
tableName = helpers.srcEscape(fields[i].table); | ||
lvalue = | ||
'this[' + | ||
srcEscape(fields[i].table + options.nestTables + fields[i].name) + | ||
helpers.srcEscape( | ||
fields[i].table + options.nestTables + fields[i].name | ||
) + | ||
']'; | ||
} else if (options.nestTables === true) { | ||
tableName = srcEscape(fields[i].table); | ||
tableName = helpers.srcEscape(fields[i].table); | ||
lvalue = 'this[' + tableName + '][' + fieldName + ']'; | ||
@@ -145,3 +147,3 @@ } else if (options.rowsAsArray) { | ||
} else { | ||
lvalue = 'this[' + srcEscape(fields[i].name) + ']'; | ||
lvalue = 'this[' + helpers.srcEscape(fields[i].name) + ']'; | ||
} | ||
@@ -183,3 +185,3 @@ | ||
if (config.debug) { | ||
printDebugWithCode( | ||
helpers.printDebugWithCode( | ||
'Compiled binary protocol row parser', | ||
@@ -186,0 +188,0 @@ parserFn.toString() |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -5,3 +5,3 @@ 'use strict'; | ||
const Charsets = require('../constants/charsets.js'); | ||
const { srcEscape, printDebugWithCode } = require('../helpers'); | ||
const helpers = require('../helpers'); | ||
const genFunc = require('generate-function'); | ||
@@ -129,3 +129,3 @@ const parserCache = require('./parser_cache.js'); | ||
for (i = 0; i < resultTablesArray.length; i++) { | ||
parserFn('this[' + srcEscape(resultTablesArray[i]) + '] = {};'); | ||
parserFn('this[' + helpers.srcEscape(resultTablesArray[i]) + '] = {};'); | ||
} | ||
@@ -137,3 +137,3 @@ } | ||
for (i = 0; i < fields.length; i++) { | ||
fieldName = srcEscape(fields[i].name); | ||
fieldName = helpers.srcEscape(fields[i].name); | ||
parserFn('// ' + fieldName + ': ' + typeNames[fields[i].columnType]); | ||
@@ -143,6 +143,9 @@ if (typeof options.nestTables == 'string') { | ||
'this[' + | ||
srcEscape(fields[i].table + options.nestTables + fields[i].name) + | ||
helpers.srcEscape( | ||
fields[i].table + options.nestTables + fields[i].name | ||
) + | ||
']'; | ||
} else if (options.nestTables === true) { | ||
lvalue = 'this[' + srcEscape(fields[i].table) + '][' + fieldName + ']'; | ||
lvalue = | ||
'this[' + helpers.srcEscape(fields[i].table) + '][' + fieldName + ']'; | ||
} else if (options.rowsAsArray) { | ||
@@ -167,3 +170,3 @@ lvalue = 'result[' + i.toString(10) + ']'; | ||
'], ' + | ||
srcEscape(typeNames[fields[i].columnType]) + | ||
helpers.srcEscape(typeNames[fields[i].columnType]) + | ||
', packet, ' + | ||
@@ -193,3 +196,3 @@ encodingExpr + | ||
if (config.debug) { | ||
printDebugWithCode( | ||
helpers.printDebugWithCode( | ||
'Compiled text protocol row parser', | ||
@@ -196,0 +199,0 @@ parserFn.toString() |
@@ -5,3 +5,3 @@ 'use strict'; | ||
const PoolConfig = require('./pool_config.js'); | ||
const { EventEmitter } = require('events'); | ||
const EventEmitter = require('events').EventEmitter; | ||
@@ -8,0 +8,0 @@ /** |
@@ -0,0 +0,0 @@ 'use strict'; |
'use strict'; | ||
const { Connection } = require('../index.js'); | ||
const Connection = require('../index.js').Connection; | ||
@@ -5,0 +5,0 @@ class PoolConnection extends Connection { |
@@ -5,3 +5,3 @@ 'use strict'; | ||
const { EventEmitter } = require('events'); | ||
const EventEmitter = require('events').EventEmitter; | ||
const PoolConnection = require('./pool_connection.js'); | ||
@@ -8,0 +8,0 @@ const Queue = require('denque'); |
@@ -0,0 +0,0 @@ 'use strict'; |
'use strict'; | ||
const net = require('net'); | ||
const { EventEmitter } = require('events'); | ||
const EventEmitter = require('events').EventEmitter; | ||
@@ -6,0 +6,0 @@ const Connection = require('./connection'); |
{ | ||
"name": "mysql2", | ||
"version": "1.6.3", | ||
"version": "1.6.4", | ||
"description": "fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
'use strict'; | ||
const core = require('./index.js'); | ||
const { EventEmitter } = require('events'); | ||
const EventEmitter = require('events').EventEmitter; | ||
@@ -6,0 +6,0 @@ function makeDoneCb(resolve, reject, localErr) { |
@@ -0,0 +0,0 @@ ## Node MySQL 2 |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
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
359080
9025