From 708aec23f85fbcc67fef4a8bc50cdc950bb3342e Mon Sep 17 00:00:00 2001 From: James Wragg Date: Tue, 19 Nov 2024 11:12:11 +0000 Subject: [PATCH 1/2] Update marked to v12.x.x & marked-terminal to v7.x.x --- lib/print.js | 2 +- package.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/print.js b/lib/print.js index 2873efa..1c63f5a 100644 --- a/lib/print.js +++ b/lib/print.js @@ -2,7 +2,7 @@ const Os = require('os'); const Marked = require('marked'); -const TerminalRenderer = require('marked-terminal'); +const TerminalRenderer = require('marked-terminal').default; const Path = require('path'); const internals = {}; diff --git a/package.json b/package.json index 05ebddc..2884bfc 100644 --- a/package.json +++ b/package.json @@ -44,8 +44,8 @@ "@hapipal/toys": "3.x.x", "bin-v8-flags-filter": ">=1.2.0 <2", "glob": "7.x.x", - "marked": "1.x.x", - "marked-terminal": "4.x.x", + "marked": "12.x.x", + "marked-terminal": "7.x.x", "mkdirp": "1.x.x", "mo-walk": ">=1.1.0 <2", "pkg-dir": "5.x.x", From 522e70b712030d293108646346147ad8fb44434e Mon Sep 17 00:00:00 2001 From: James Wragg Date: Tue, 19 Nov 2024 11:13:01 +0000 Subject: [PATCH 2/2] Fix issue with test due to node error message format changing --- test/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/index.js b/test/index.js index 12b248c..9a4421f 100644 --- a/test/index.js +++ b/test/index.js @@ -1090,7 +1090,7 @@ describe('hpal', () => { expect(err).to.be.instanceof(Error); expect(err).to.not.be.instanceof(DisplayError); - expect(err.message).to.contain('Cannot read property \'version\' of null'); + expect(err.message).to.contain('Cannot read properties of null (reading \'version\')'); }); it('errors when can\'t find a manifest for an unknown reason.', async (flags) => {