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 4.8.0-rc.0 to 4.8.0

4

package.json
{
"name": "pg-sql2",
"version": "4.8.0-rc.0",
"version": "4.8.0",
"description": "Generate safe Postgres-compliant SQL with tagged template literals",

@@ -60,3 +60,3 @@ "main": "node8plus/index.js",

},
"gitHead": "f9d4d21c67bc3af908dbf070190fe1a1230c8d1f"
"gitHead": "9bd73ee7d20c059856af8e8d347e3711ba1b0d72"
}

@@ -43,3 +43,3 @@ # pg-sql2

// sql.identifier safely escapes arguments and joins them with dots
fields.map((fieldName) => sql.identifier(tableName, fieldName)),
fields.map(fieldName => sql.identifier(tableName, fieldName)),
", "

@@ -123,3 +123,3 @@ );

```js
const arrayOfSqlFields = ["a", "b", "c", "d"].map((n) => sql.identifier(n));
const arrayOfSqlFields = ["a", "b", "c", "d"].map(n => sql.identifier(n));
sql.query`select ${sql.join(arrayOfSqlFields, ", ")}`; // -> select "a", "b", "c", "d"

@@ -126,0 +126,0 @@

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