From 7303e4f57c6bd7152a288a6e1f35480f8cb5eee1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 16 Jun 2023 16:43:26 +0200 Subject: [PATCH] chore(deps): bump ngx-highlightjs from 7.0.1 to 9.0.0 in /springwolf-ui (#210) * chore(deps): bump ngx-highlightjs from 7.0.1 to 9.0.0 in /springwolf-ui Bumps [ngx-highlightjs](https://github.com/murhafsousli/ngx-highlightjs) from 7.0.1 to 9.0.0. - [Release notes](https://github.com/murhafsousli/ngx-highlightjs/releases) - [Changelog](https://github.com/MurhafSousli/ngx-highlightjs/blob/master/CHANGELOG.md) - [Commits](https://github.com/murhafsousli/ngx-highlightjs/compare/v7.0.1...v9.0.0) --- updated-dependencies: - dependency-name: ngx-highlightjs dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * regression: Enable json highlighting in ui --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Timon Back --- springwolf-ui/package-lock.json | 11 +++++++---- springwolf-ui/package.json | 2 +- springwolf-ui/src/app/app.module.ts | 5 +++-- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/springwolf-ui/package-lock.json b/springwolf-ui/package-lock.json index ab162d9ba..3cf75fdf8 100644 --- a/springwolf-ui/package-lock.json +++ b/springwolf-ui/package-lock.json @@ -17,7 +17,7 @@ "@angular/platform-browser-dynamic": "^16.0.4", "@angular/router": "^16.0.4", "font-awesome": "^4.7.0", - "ngx-highlightjs": "^7.0.1", + "ngx-highlightjs": "^9.0.0", "rxjs": "^7.8.1", "zone.js": "^0.13.0" }, @@ -8316,8 +8316,9 @@ "license": "MIT" }, "node_modules/ngx-highlightjs": { - "version": "7.0.1", - "license": "MIT", + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/ngx-highlightjs/-/ngx-highlightjs-9.0.0.tgz", + "integrity": "sha512-XoswRTPeRtGrDiuiOkb4sOD4kZNsBxto5I6CqvRQKB2WfB77CyUk9llAAVTBJVabNRwkiHTJCQX4jKnbD1hCuQ==", "dependencies": { "highlight.js": "^11.5.1", "highlightjs-line-numbers.js": "^2.8.0", @@ -17605,7 +17606,9 @@ "dev": true }, "ngx-highlightjs": { - "version": "7.0.1", + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/ngx-highlightjs/-/ngx-highlightjs-9.0.0.tgz", + "integrity": "sha512-XoswRTPeRtGrDiuiOkb4sOD4kZNsBxto5I6CqvRQKB2WfB77CyUk9llAAVTBJVabNRwkiHTJCQX4jKnbD1hCuQ==", "requires": { "highlight.js": "^11.5.1", "highlightjs-line-numbers.js": "^2.8.0", diff --git a/springwolf-ui/package.json b/springwolf-ui/package.json index 85d0ebd5c..a6ca6c73a 100644 --- a/springwolf-ui/package.json +++ b/springwolf-ui/package.json @@ -21,7 +21,7 @@ "@angular/platform-browser-dynamic": "^16.0.4", "@angular/router": "^16.0.4", "font-awesome": "^4.7.0", - "ngx-highlightjs": "^7.0.1", + "ngx-highlightjs": "^9.0.0", "rxjs": "^7.8.1", "zone.js": "^0.13.0" }, diff --git a/springwolf-ui/src/app/app.module.ts b/springwolf-ui/src/app/app.module.ts index 227300e00..b00ec3cc0 100644 --- a/springwolf-ui/src/app/app.module.ts +++ b/springwolf-ui/src/app/app.module.ts @@ -49,8 +49,9 @@ import {AsyncApiMapperService} from "./shared/asyncapi-mapper.service"; { provide: HIGHLIGHT_OPTIONS, useValue: { - languages: function () { - return { typescript: () => import('highlight.js/lib/languages/typescript') }; + coreLibraryLoader: () => import('highlight.js/lib/core'), + languages: { + json: () => import('highlight.js/lib/languages/json'), } } }