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

pg-sql2

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pg-sql2 - npm Package Compare versions

Comparing version 0.0.1-alpha9.1 to 0.0.1-alpha9.2

32

lib/index.js
"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 {

10

package.json
{
"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"
]
}
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