chore: up pg, pg-cursor (#13351)

* chore: up pg, pg-cursor

* test: check file directly
This commit is contained in:
Barış Uşaklı
2025-04-22 13:32:41 -04:00
committed by GitHub
parent 1a3e669b6f
commit b57ce29dc6
2 changed files with 5 additions and 3 deletions

View File

@@ -117,8 +117,8 @@
"passport": "0.7.0", "passport": "0.7.0",
"passport-http-bearer": "1.0.1", "passport-http-bearer": "1.0.1",
"passport-local": "1.0.0", "passport-local": "1.0.0",
"pg": "8.14.1", "pg": "8.15.0",
"pg-cursor": "2.13.1", "pg-cursor": "2.14.0",
"postcss": "8.5.3", "postcss": "8.5.3",
"postcss-clean": "1.2.0", "postcss-clean": "1.2.0",
"progress-webpack-plugin": "1.0.16", "progress-webpack-plugin": "1.0.16",

View File

@@ -1,5 +1,7 @@
'use strict'; 'use strict';
const fs = require('fs');
const path = require('path');
const winston = require('winston'); const winston = require('winston');
const nconf = require('nconf'); const nconf = require('nconf');
const session = require('express-session'); const session = require('express-session');
@@ -360,7 +362,7 @@ postgresModule.createIndices = async function () {
}; };
postgresModule.checkCompatibility = function (callback) { postgresModule.checkCompatibility = function (callback) {
const postgresPkg = require('pg/package.json'); const postgresPkg = JSON.parse(fs.readFileSync(path.join(__dirname, '../../node_modules/pg/package.json'), 'utf8'));
postgresModule.checkCompatibilityVersion(postgresPkg.version, callback); postgresModule.checkCompatibilityVersion(postgresPkg.version, callback);
}; };