Node.js based forum software built for the modern web
chore: up pg, pg-cursor (#13351)
Barış Uşaklıb57ce29dc633
diff --git a/install/package.json b/install/package.jsonindex 519fd97a77..0b552cc350 100644--- a/install/package.json+++ b/install/package.json@@ -117,8 +117,8 @@"passport": "0.7.0","passport-http-bearer": "1.0.1","passport-local": "1.0.0",- "pg": "8.14.1",- "pg-cursor": "2.13.1",+ "pg": "8.15.0",+ "pg-cursor": "2.14.0","postcss": "8.5.3","postcss-clean": "1.2.0","progress-webpack-plugin": "1.0.16",diff --git a/src/database/postgres.js b/src/database/postgres.jsindex 84a456ca86..a625b5e498 100644--- a/src/database/postgres.js+++ b/src/database/postgres.js@@ -1,5 +1,7 @@'use strict';+const fs = require('fs');+const path = require('path');const winston = require('winston');const nconf = require('nconf');const session = require('express-session');@@ -360,7 +362,7 @@ postgresModule.createIndices = async function () {};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);};