pg-promise
Advanced tools
Comparing version 11.5.5 to 11.6.0
@@ -173,3 +173,3 @@ /* | ||
return query.replace(npm.patterns.multipleValues, name => { | ||
const v = formatAs.stripName(name.substr(1), raw); | ||
const v = formatAs.stripName(name.substring(1), raw); | ||
const idx = v.name - 1; | ||
@@ -204,3 +204,3 @@ if (idx >= maxVariable) { | ||
return { | ||
name: name.substr(0, mod.index), | ||
name: name.substring(0, mod.index), | ||
fm: fmMap[mod[0]] | (raw ? fmFlags.raw : 0) | ||
@@ -207,0 +207,0 @@ }; |
@@ -269,7 +269,7 @@ /* | ||
res.cnd = true; | ||
name = name.substr(1); | ||
name = name.substring(1); | ||
} | ||
const mod = name.match(npm.patterns.hasValidModifier); | ||
if (mod) { | ||
res.name = name.substr(0, mod.index); | ||
res.name = name.substring(0, mod.index); | ||
res.mod = mod[0]; | ||
@@ -276,0 +276,0 @@ } else { |
@@ -165,3 +165,3 @@ /* | ||
const code = err && typeof err.code === 'string' && err.code; | ||
const cls = code && code.substr(0, 2); // Error Class | ||
const cls = code && code.substring(0, 2); // Error Class | ||
// istanbul ignore next (we cannot test-cover all error cases): | ||
@@ -168,0 +168,0 @@ return code === 'ECONNRESET' || (cls === '08' && code !== '08P01') || (cls === '57' && code !== '57014'); |
@@ -42,3 +42,3 @@ /* | ||
text = text.replace(/[-_\s.]+(.)?/g, (_, c) => c ? c.toUpperCase() : ''); | ||
return text.substr(0, 1).toLowerCase() + text.substr(1); | ||
return text.substring(0, 1).toLowerCase() + text.substring(1); | ||
} | ||
@@ -45,0 +45,0 @@ |
{ | ||
"name": "pg-promise", | ||
"version": "11.5.5", | ||
"version": "11.6.0", | ||
"description": "PostgreSQL interface for Node.js", | ||
@@ -45,3 +45,3 @@ "main": "lib/index.js", | ||
"assert-options": "0.8.1", | ||
"pg": "8.11.3", | ||
"pg": "8.11.5", | ||
"pg-minify": "1.6.3", | ||
@@ -51,6 +51,6 @@ "spex": "3.3.0" | ||
"devDependencies": { | ||
"@types/node": "20.5.2", | ||
"@types/node": "20.12.5", | ||
"bluebird": "3.7.2", | ||
"coveralls": "3.1.1", | ||
"cspell": "8.6.0", | ||
"cspell": "8.6.1", | ||
"eslint": "8.57.0", | ||
@@ -61,6 +61,6 @@ "istanbul": "0.4.5", | ||
"JSONStream": "1.3.5", | ||
"pg-query-stream": "4.5.3", | ||
"pg-query-stream": "4.5.5", | ||
"tslint": "6.1.3", | ||
"typescript": "5.4.3" | ||
"typescript": "5.4.4" | ||
} | ||
} |
@@ -5,4 +5,4 @@ pg-promise | ||
[![Build Status](https://github.com/vitaly-t/pg-promise/workflows/ci/badge.svg?branch=master)](https://github.com/vitaly-t/pg-promise/actions?query=workflow%3Aci+branch%3Amaster) | ||
[![Node Version](https://img.shields.io/badge/nodejs-14%20--%2018-green.svg?logo=node.js&style=flat)](https://nodejs.org) | ||
[![Postgres Version](https://img.shields.io/badge/postgresql-10%20--%2015-green.svg?logo=postgresql&style=flat)](https://www.postgresql.org) | ||
[![Node Version](https://img.shields.io/badge/nodejs-14%20--%2020-green.svg?logo=node.js&style=flat)](https://nodejs.org) | ||
[![Postgres Version](https://img.shields.io/badge/postgresql-10%20--%2016-green.svg?logo=postgresql&style=flat)](https://www.postgresql.org) | ||
@@ -9,0 +9,0 @@ --- |
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
423003
+ Addedpg@8.11.5(transitive)
- Removedbuffer-writer@2.0.0(transitive)
- Removedpacket-reader@1.0.0(transitive)
- Removedpg@8.11.3(transitive)
Updatedpg@8.11.5