mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
chore: up pg, pg-cursor (#13351)
* chore: up pg, pg-cursor * test: check file directly
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
@@ -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);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user