Skip to content

Commit b059f4c

Browse files
fix(marked): 升级版本修复marked安全漏洞 (#190)
Co-authored-by: huaweidevcloud <devcloudmobile@huawei.com>
1 parent 6becbb8 commit b059f4c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

devui/shared/devui-api/devui-api.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { ActivatedRoute, Router } from '@angular/router';
44
import { I18nService } from 'ng-devui/i18n';
55
import { TranslateService, TranslationChangeEvent } from '@ngx-translate/core';
66
import * as hljs from 'highlight.js/lib/core';
7-
import * as marked from 'marked/lib/marked';
7+
import { marked } from 'marked';
88
import { Subscription } from 'rxjs';
99
@Component({
1010
selector: 'd-api',

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@
5454
"fastestsmallesttextencoderdecoder": "1.0.22",
5555
"gridstack": "2.0.1",
5656
"lodash-es": "^4.17.15",
57-
"marked": "^3.0.4",
57+
"marked": "^4.0.12",
5858
"tslib": "^2.0.0",
5959
"web-animations-js": "^2.3.2",
6060
"zone.js": "~0.11.4"
6161
},
6262
"devDependencies": {
6363
"@angular-builders/custom-webpack": "^13.0.0",
64-
"@angular-devkit/build-angular": "^13.1.3",
64+
"@angular-devkit/build-angular": "^13.2.0",
6565
"@angular-eslint/builder": "^13.0.0",
6666
"@angular-eslint/eslint-plugin": "^13.0.1",
6767
"@angular/cli": "^13.1.3",
@@ -72,7 +72,7 @@
7272
"@types/jasmine": "~3.6.0",
7373
"@types/jasminewd2": "~2.0.3",
7474
"@types/lodash-es": "^4.17.5",
75-
"@types/marked": "^1.2.2",
75+
"@types/marked": "^4.0.2",
7676
"@types/node": "^12.11.1",
7777
"@typescript-eslint/eslint-plugin": "^4.29.2",
7878
"@typescript-eslint/parser": "^4.30.0",

0 commit comments

Comments
 (0)