Comparing version 0.0.1-alpha9.1 to 0.0.1-alpha9.2
"use strict"; | ||
var _isInteger = require("babel-runtime/core-js/number/is-integer"); | ||
var _isInteger2 = _interopRequireDefault(_isInteger); | ||
var _getIterator2 = require("babel-runtime/core-js/get-iterator"); | ||
var _getIterator3 = _interopRequireDefault(_getIterator2); | ||
var _map = require("babel-runtime/core-js/map"); | ||
var _map2 = _interopRequireDefault(_map); | ||
var _defineProperty = require("babel-runtime/core-js/object/define-property"); | ||
var _defineProperty2 = _interopRequireDefault(_defineProperty); | ||
var _symbol = require("babel-runtime/core-js/symbol"); | ||
var _symbol2 = _interopRequireDefault(_symbol); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
// Full credit: https://raw.githubusercontent.com/postgraphql/postgraphql/master/src/postgres/utils/sql.ts | ||
@@ -17,3 +39,3 @@ var isSymbol = require("lodash/isSymbol"); | ||
var $$trusted = Symbol("trusted"); | ||
var $$trusted = (0, _symbol2.default)("trusted"); | ||
/*:: | ||
@@ -40,3 +62,3 @@ type SQLRawNode = { | ||
function makeTrustedNode /*:: <Node>*/(node /*: Node */) /*: Node */{ | ||
Object.defineProperty(node, $$trusted, { | ||
(0, _defineProperty2.default)(node, $$trusted, { | ||
enumerable: false, | ||
@@ -92,3 +114,3 @@ configurable: false, | ||
var nextSymbolId = 0; | ||
var symbolToIdentifier = new Map(); | ||
var symbolToIdentifier = new _map2.default(); | ||
@@ -102,3 +124,3 @@ var items = Array.isArray(sql) ? sql : [sql]; | ||
try { | ||
for (var _iterator = items[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { | ||
for (var _iterator = (0, _getIterator3.default)(items), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { | ||
var item = _step.value; | ||
@@ -251,3 +273,3 @@ | ||
} else if (typeof val === "number" && lodashIsFinite(val)) { | ||
if (Number.isInteger(val)) { | ||
if ((0, _isInteger2.default)(val)) { | ||
return raw(String(val)); | ||
@@ -254,0 +276,0 @@ } else { |
{ | ||
"name": "pg-sql2", | ||
"version": "0.0.1-alpha9.1", | ||
"version": "0.0.1-alpha9.2", | ||
"description": "Generate safe SQL with tagged template literals", | ||
@@ -40,5 +40,11 @@ "main": "index.js", | ||
"dependencies": { | ||
"babel-runtime": ">=6 <7", | ||
"debug": ">=2 <3", | ||
"lodash": ">=4 <5" | ||
} | ||
}, | ||
"files": [ | ||
"src", | ||
"lib", | ||
"index.js" | ||
] | ||
} |
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
27118
567
3
+ Addedbabel-runtime@>=6 <7
+ Addedbabel-runtime@6.26.0(transitive)
+ Addedcore-js@2.6.12(transitive)
+ Addedregenerator-runtime@0.11.1(transitive)