diff --git a/package-lock.json b/package-lock.json index 3e249d5..967b9af 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,7 +22,7 @@ "highlight.js": "^11.9.0", "jsonpath-plus": "^10.3.0", "ngx-clipboard": "^16.0.0", - "ngx-highlight-js": "^20.0.1", + "ngx-highlight-js": "^21.0.0", "rxjs": "~7.8.0", "tslib": "^2.3.0", "zone.js": "~0.16.0" @@ -10418,12 +10418,12 @@ } }, "node_modules/ngx-highlight-js": { - "version": "20.0.1", - "resolved": "https://registry.npmjs.org/ngx-highlight-js/-/ngx-highlight-js-20.0.1.tgz", - "integrity": "sha512-ryRBw7MYxRg4itKTrBzBh4Trt2zcaO+4yyd9H5+CKBcgEU/fnAxna7UKMQD4ut/7+KAXY/pZB7k+LdurZCXREw==", + "version": "21.0.0", + "resolved": "https://registry.npmjs.org/ngx-highlight-js/-/ngx-highlight-js-21.0.0.tgz", + "integrity": "sha512-pEzQkwLkwT1CKn42YrVPvF5oz+D1rPwOfrxhkSD88LgnhOr+sJ5MZvIi4xXkHQIi+mVStNIiCZ+b05Pa+5oWBg==", "license": "MIT", "dependencies": { - "highlight.js": "^11.9.0", + "highlight.js": "^11.11.1", "tslib": "^2.3.0" } }, diff --git a/package.json b/package.json index ca59c4a..0f4f38d 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "highlight.js": "^11.9.0", "jsonpath-plus": "^10.3.0", "ngx-clipboard": "^16.0.0", - "ngx-highlight-js": "^20.0.1", + "ngx-highlight-js": "^21.0.0", "rxjs": "~7.8.0", "tslib": "^2.3.0", "zone.js": "~0.16.0" diff --git a/src/app/component/tools/json-validator/json-validator.component.ts b/src/app/component/tools/json-validator/json-validator.component.ts index a37ed19..72293df 100644 --- a/src/app/component/tools/json-validator/json-validator.component.ts +++ b/src/app/component/tools/json-validator/json-validator.component.ts @@ -1,14 +1,13 @@ -import {Component} from "@angular/core"; -import {HighlightJsModule} from "ngx-highlight-js"; -import {MatGridListModule} from "@angular/material/grid-list"; -import {TextAreaComponent} from "../../common/text-area/text-area.component"; -import {JsonViewerComponent} from "../../common/json-viewer/json-viewer.component"; +import { Component } from "@angular/core"; +import { MatGridListModule } from "@angular/material/grid-list"; +import { TextAreaComponent } from "../../common/text-area/text-area.component"; +import { JsonViewerComponent } from "../../common/json-viewer/json-viewer.component"; @Component({ - selector: "app-json-validator", - imports: [HighlightJsModule, MatGridListModule, TextAreaComponent, JsonViewerComponent], - templateUrl: "./json-validator.component.html", - styleUrls: ["./json-validator.component.scss", "../../../styles/tools-styles.scss"] + selector: "app-json-validator", + imports: [MatGridListModule, TextAreaComponent, JsonViewerComponent], + templateUrl: "./json-validator.component.html", + styleUrls: ["./json-validator.component.scss", "../../../styles/tools-styles.scss"] }) export class JsonValidatorComponent { jsonObject: object | string | undefined;