/var/www/qr4y.com/server/delivery/node_modules/mysql2/lib
NameSizeModeActions
auth_plugins/-0755rm
commands/-0755rm
constants/-0755rm
packets/-0755rm
parsers/-0755rm
auth_41.js26620644editdlrm
compressed_protocol.js45240644editdlrm
connection.js280650644editdlrm
connection_config.js80370644editdlrm
helpers.js15360644editdlrm
packet_parser.js60300644editdlrm
pool.js55110644editdlrm
pool_cluster.js67320644editdlrm
pool_config.js6550644editdlrm
pool_connection.js17150644editdlrm
results_stream.js9480644editdlrm
server.js8500644editdlrm
Edit: /var/www/qr4y.com/server/delivery/node_modules/mysql2/lib/helpers.js (1536B)
'use strict'; /* this seems to be not only shorter, but faster than string.replace(/\\/g, '\\\\'). replace(/\u0008/g, '\\b'). replace(/\t/g, '\\t'). replace(/\n/g, '\\n'). replace(/\f/g, '\\f'). replace(/\r/g, '\\r'). replace(/'/g, '\\\''). replace(/"/g, '\\"'); or string.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&") see http://jsperf.com/string-escape-regexp-vs-json-stringify */ function srcEscape(str) { return JSON.stringify({ [str]: 1 }).slice(1, -3); } exports.srcEscape = srcEscape; let highlightFn; let cardinalRecommended = false; try { highlightFn = require('cardinal').highlight; } catch (err) { highlightFn = text => { if (!cardinalRecommended) { // eslint-disable-next-line no-console console.log('For nicer debug output consider install cardinal@^2.0.0'); cardinalRecommended = true; } return text; }; } /** * Prints debug message with code frame, will try to use `cardinal` if available. */ function printDebugWithCode(msg, code) { // eslint-disable-next-line no-console console.log(`\n\n${msg}:\n`); // eslint-disable-next-line no-console console.log(`${highlightFn(code)}\n`); } exports.printDebugWithCode = printDebugWithCode; /** * checks whether the `type` is in the `list` */ function typeMatch(type, list, Types) { if (Array.isArray(list)) { return list.some(t => type === Types[t]); } return !!list; } exports.typeMatch = typeMatch;