Upgraded node.js and bumped version
This commit is contained in:
parent
ec2f6af1d0
commit
590f494f44
|
@ -28,5 +28,8 @@
|
|||
],
|
||||
"comma-dangle": 0,
|
||||
"no-trailing-spaces" :"warn"
|
||||
},
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 2020
|
||||
}
|
||||
}
|
|
@ -24,7 +24,7 @@ function ANSIEscapeParser(options) {
|
|||
this.scrollBack = 0;
|
||||
this.graphicRendition = {};
|
||||
|
||||
if(!_.isNil(options.startRow)) {
|
||||
if(!_.isNil(options?.startRow)) {
|
||||
this.row = options.startRow;
|
||||
}
|
||||
else {
|
||||
|
|
|
@ -105,7 +105,7 @@ exports.MenuModule = class MenuModule extends PluginModule {
|
|||
|
||||
const options = self.menuConfig.config;
|
||||
|
||||
if(!_.isNil(artData) && _.isNumber(artData.height)) {
|
||||
if(_.isNumber(artData?.height)) {
|
||||
options.startRow = artData.height + 1;
|
||||
}
|
||||
|
||||
|
|
|
@ -585,7 +585,7 @@ function displayThemedPrompt(name, client, options, cb) {
|
|||
return callback(null, promptConfig, artInfo);
|
||||
}
|
||||
|
||||
if(!_.isNil(options) && !_.isNil(options.position) && !_.isNil(options.position.row)) {
|
||||
if(!_.isNil(options?.position?.row)) {
|
||||
artInfo.startRow = options.position.row;
|
||||
if(client.term.termHeight > 0 && artInfo.startRow + artInfo.height > client.term.termHeight) {
|
||||
// in this case, we will have scrolled
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "enigma-bbs",
|
||||
"version": "0.0.12-beta",
|
||||
"version": "0.0.14-beta",
|
||||
"description": "ENiGMA½ Bulletin Board System",
|
||||
"author": "Bryan Ashby <bryan@l33t.codes>",
|
||||
"license": "BSD-2-Clause",
|
||||
|
@ -62,9 +62,9 @@
|
|||
"yazl": "^2.5.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"eslint": "7.19.0"
|
||||
"eslint": "8.12.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12"
|
||||
"node": ">=14"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue