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

pg-promise

Package Overview
Dependencies
Maintainers
1
Versions
630
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pg-promise - npm Package Compare versions

Comparing version 10.8.0 to 10.8.1

10

package.json
{
"name": "pg-promise",
"version": "10.8.0",
"version": "10.8.1",
"description": "PostgreSQL interface for Node.js",

@@ -49,6 +49,6 @@ "main": "lib/index.js",

"devDependencies": {
"@types/node": "14.14.8",
"@types/node": "14.14.10",
"bluebird": "3.7.2",
"coveralls": "3.1.0",
"eslint": "7.13.0",
"eslint": "7.14.0",
"istanbul": "0.4.5",

@@ -58,6 +58,6 @@ "jasmine-node": "3.0.0",

"JSONStream": "1.3.5",
"pg-query-stream": "3.4.2",
"pg-query-stream": "4.0.0",
"tslint": "6.1.3",
"typescript": "4.0.5"
"typescript": "4.1.2"
}
}

@@ -359,3 +359,5 @@ pg-promise

An alias is a lighter/simpler version of [SQL Names], which only supports a text string, and is used via the `:alias` filter.
An alias is a simpler, less-strict version of `:name` filter, which only supports a text string, i.e.
it does not support `*`, `this`, array or object as inputs, like `:name` does. However, it supports other
popular cases that are less strict, but cover at least 99% of all use cases, as shown below.

@@ -369,7 +371,8 @@ - It will skip adding surrounding double quotes when the name is a same-case single word:

- It will automatically split the name into multiple SQL names when encountering `.`:
- It will automatically split the name into multiple SQL names when encountering `.`, and then
escape each part separately, thus supporting auto-composite SQL names:
```js
await db.any('SELECT * FROM $1:alias', ['schema.table']);
//=> SELECT * FROM schema.table
await db.any('SELECT * FROM $1:alias', ['schemaName.table']);
//=> SELECT * FROM "schemaName".table
```

@@ -376,0 +379,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