Comparing version 0.11.10004 to 0.11.10005
@@ -97,2 +97,3 @@ 'use strict'; | ||
_query: function _query(connection, obj) { | ||
var config = this.consfig; | ||
return new _promise2.default(function (resolver, rejecter) { | ||
@@ -105,5 +106,7 @@ if (!connection) return rejecter(new Error('No connection provided.')); | ||
}, function (trx, err) { | ||
config.onerror && config.onerror(err); | ||
rejecter(err); | ||
}); | ||
}, function (trx, err) { | ||
config.onerror && config.onerror(err); | ||
rejecter(err); | ||
@@ -161,2 +164,2 @@ }); | ||
module.exports = exports['default']; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9kaWFsZWN0cy93ZWJzcWwvaW5kZXguanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBSUE7Ozs7QUFFQTs7OztBQUNBOzs7O0FBQ0E7Ozs7QUFDQTs7OztBQUVBLFNBQVMsYUFBVCxDQUF1QixNQUF2QixFQUErQjtBQUM3QixtQkFBZSxJQUFmLENBQW9CLElBQXBCLEVBQTBCLE1BQTFCO0FBQ0EsT0FBSyxJQUFMLEdBQVksT0FBTyxJQUFQLElBQWUsZUFBM0I7QUFDQSxPQUFLLE9BQUwsR0FBZ0IsYUFBYSxNQUFkLEdBQXdCLE9BQU8sT0FBL0IsR0FBeUMsS0FBeEQ7QUFDQSxPQUFLLFdBQUwsR0FBbUIsT0FBTyxXQUFQLElBQXNCLEtBQUssSUFBOUM7QUFDQSxPQUFLLGFBQUwsR0FBcUIsT0FBTyxhQUFQLElBQXdCLElBQUksSUFBSixHQUFXLElBQXhEO0FBQ0EsT0FBSyxPQUFMLEdBQWUsT0FBTyxPQUF0QjtBQUNBLE9BQUssTUFBTCxHQUFjLE1BQWQ7QUFDRCxDLENBbkJEOztBQUVBO0FBQ0E7O0FBaUJBLHdCQUFTLGFBQVQ7O0FBRUEsb0JBQU8sY0FBYyxTQUFyQixFQUFnQzs7QUFFOUIsb0NBRj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0aW9uLCBzcWwpLnRoZW4ob2JqID0+XG4gICAgICAgIGNsaWVudC5wcm9jZXNzUmVzcG9uc2Uob2JqKVxuICAgICAgKS5tYXAocm93ID0+IHtcbiAgICAgICAgc3RyZWFtLndyaXRlKHJvdylcbiAgICAgIH0pLmNhdGNoKGVyciA9PiB7XG4gICAgICAgIHN0cmVhbS5lbWl0KCdlcnJvcicsIGVycilcbiAgICAgIH0pLnRoZW4oKCkgPT4ge1xuICAgICAgICBzdHJlYW0uZW5kKClcbiAgICAgIH0pXG4gICAgfSlcbiAgfSxcblxuICBwcm9jZXNzUmVzcG9uc2Uob2JqLCBydW5uZXIpIHtcbiAgICBjb25zdCByZXNwID0gb2JqLnJlc3BvbnNlO1xuICAgIGlmIChvYmoub3V0cHV0KSByZXR1cm4gb2JqLm91dHB1dC5jYWxsKHJ1bm5lciwgcmVzcCk7XG4gICAgc3dpdGNoIChvYmoubWV0aG9kKSB7XG4gICAgICBjYXNlICdwbHVjayc6XG4gICAgICBjYXNlICdmaXJzdCc6XG4gICAgICBjYXNlICdzZWxlY3QnOiB7XG4gICAgICAgIGxldCByZXN1bHRzID0gW107XG4gICAgICAgIGZvciAobGV0IGkgPSAwLCBsID0gcmVzcC5yb3dzLmxlbmd0aDsgaSA8IGw7IGkrKykge1xuICAgICAgICAgIHJlc3VsdHNbaV0gPSBjbG9uZShyZXNwLnJvd3MuaXRlbShpKSk7XG4gICAgICAgIH1cbiAgICAgICAgaWYgKG9iai5tZXRob2QgPT09ICdwbHVjaycpIHJlc3VsdHMgPSBtYXAocmVzdWx0cywgb2JqLnBsdWNrKTtcbiAgICAgICAgcmV0dXJuIG9iai5tZXRob2QgPT09ICdmaXJzdCcgPyByZXN1bHRzWzBdIDogcmVzdWx0cztcbiAgICAgIH1cbiAgICAgIGNhc2UgJ2luc2VydCc6XG4gICAgICAgIHJldHVybiBbcmVzcC5pbnNlcnRJZF07XG4gICAgICBjYXNlICdkZWxldGUnOlxuICAgICAgY2FzZSAndXBkYX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ZiAoZXJyKSB7XG4gICAgICAgICAgICByZXR1cm4gcmVqZWN0KGVycik7XG4gICAgICAgICAgIH1cbiAgICAgICAgICAgcmV0dXJuIHJlc29sdmUoY2xpZW50LmRiSW5zdGFuY2UgPSBoYW5kbGUpO1xuICAgICAgICB9KTtcbiAgICAgIH1cbiAgICAgIHRyeSB7XG4gICAgICAgIC8qanNsaW50IGJyb3dzZXI6IHRydWUqL1xuICAgICAgICBjbGllbnQuZGJJbnN0YW5jZSA9IG9wZW5EYXRhYmFzZShcbiAgICAgICAgICBjbGllbnQubmFtZSwgY2xpZW50LnZlcnNpb24sIGNsaWVudC5kaXNwbGF5TmFtZSwgY2xpZW50LmVzdGltYXRlZFNpemVcbiAgICAgICAgKTtcbiAgICAgICAgLy8gZGIudHJhbnNhY3Rpb24oZnVuY3Rpb24odCkge1xuICAgICAgICAvLyAgIHQuX19rbmV4VWlkID0gdW5pcXVlSWQoJ19fa25leFVpZCcpO1xuICAgICAgICAvLyAgIHJlc29sdmUodCk7XG4gICAgICAgIC8vIH0pO1xuICAgICAgfSBjYXRjaCAoZSkge1xuICAgICAgICByZWplY3QoZSk7XG4gICAgICB9XG4gICAgICByZXNvbHZlKGNsaWVudC5kYkluc3RhbmNlKTtcbiAgICB9KTtcbiAgICBjb25zdCBhYm9ydCA9IGZ1bmN0aW9uKHJlYXNvbikge1xuICAgICAgaWYgKGNsaWVudC5kYkluc3RhbmNlKSB7XG4gICAgICAgIGNsaWVudC5kYkluc3RhbmNlID0gbnVsbDtcbiAgICAgIH1cbiAgICB9XG4gICAgcmV0dXJuIHtcbiAgICAgIGNvbXBsZXRlZDogY29tcGxldGVkLFxuICAgICAgYWJvcnQ6IGFib3J0XG4gICAgfTtcbiAgfSxcblxuICAvLyBVc2VkIHRvIGV4cGxpY2l0bHkgY2xvc2UgYSBjb25uZWN0aW9uLCBjYWxsZWQgaW50ZXJuYWxseSBieSB0aGUgcG9vbFxuICAvLyB3aGVuIGEgY29ubmVjdGlvbiB0aW1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Lml0ZW0oaSkpO1xuICAgICAgICB9XG4gICAgICAgIGlmIChvYmoubWV0aG9kID09PSAncGx1Y2snKSByZXN1bHRzID0gbWFwKHJlc3VsdHMsIG9iai5wbHVjayk7XG4gICAgICAgIHJldHVybiBvYmoubWV0aG9kID09PSAnZmlyc3QnID8gcmVzdWx0c1swXSA6IHJlc3VsdHM7XG4gICAgICB9XG4gICAgICBjYXNlICdpbnNlcnQnOlxuICAgICAgICByZXR1cm4gW3Jlc3AuaW5zZXJ0SWRdO1xuICAgICAgY2FzZSAnZGVsZXRlJzpcbiAgICAgIGNhc2UgJ3VwZGF0ZSc6XG4gICAgICBjYXNlICdjb3VudGVyJzpcbiAgICAgICAgcmV0dXJuIHJlc3Aucm93c0FmZmVjdGVkO1xuICAgICAgZGVmYXVsdDpcbiAgICAgICAgcmV0dXJuIHJlc3A7XG4gICAgfVxuICB9LFxuXG4gIHBpbmcocmVzb3VyY2UsIGNhbGxiYWNrKSB7XG4gICAgY2FsbGJhY2soKTtcbiAgfVxuXG59KVxuXG5leHBvcnQgZGVmYXVsdCBDbGllbnRfV2ViU1FMO1xuIl19 |
{ | ||
"name": "hfjy-knex", | ||
"version": "0.11.10004", | ||
"version": "0.11.10005", | ||
"description": "knex modify version", | ||
@@ -5,0 +5,0 @@ "main": "knex.js", |
{ | ||
"name": "hfjy-knex", | ||
"version": "0.11.10004", | ||
"version": "0.11.10005", | ||
"description": "knex modify version", | ||
@@ -5,0 +5,0 @@ "main": "lib", |
1448682
10564