From de5f11054192ac550d06f8b0c45926f84b8cabac Mon Sep 17 00:00:00 2001 From: Zvi Grinberg Date: Sun, 5 May 2024 14:13:57 +0300 Subject: [PATCH] fix: replace deprecated 'assert' keyword to fix breakage of unitests in latest NodeJS versions ( >= 22.0.0) Signed-off-by: Zvi Grinberg --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 04288bf..c87e865 100644 --- a/src/index.js +++ b/src/index.js @@ -4,7 +4,7 @@ import {AnalysisReport} from '../generated/backend/AnalysisReport.js' import analysis from './analysis.js' import fs from 'node:fs' import {getCustom} from "./tools.js"; -import PackageJson from '../package.json' assert {type: 'json'}; +import PackageJson from '../package.json' with { type: 'json'}; export default { AnalysisReport, componentAnalysis, stackAnalysis, validateToken }