Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgraded packages to resolve audit vulnerabilities #17

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 1.2.6

- Add support for Angular 8, 9, 10 & 11.
- Fixed outdated dependencies.

## 1.2.5

- Add support for Angular 6 and 7 #13 (thanks to @macjohnny)
Expand Down
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "markdown-to-html-pipe",
"version": "1.2.5",
"version": "1.2.6",
"description": "Angular Pipe that transforms a markdown string to HTML",
"main": "index.js",
"scripts": {
"test": "npm run lint && npm run build && tape tests/*.js",
"prepublish": "npm run build && npm test",
"prepare": "npm run build && npm test",
"build": "ngc",
"lint": "tslint -e src/*.d.ts src/**/*.ts tests/**/*.ts index.ts"
},
Expand Down Expand Up @@ -35,22 +35,22 @@
},
"homepage": "https://github.com/conclurer/markdown-to-html-pipe#readme",
"devDependencies": {
"@angular/compiler": "4.1.3",
"@angular/compiler-cli": "4.1.3",
"@angular/core": "4.1.3",
"@types/tape": "^4.2.27",
"reflect-metadata": "^0.1.8",
"rxjs": "^5.0.0-beta.12",
"tape": "^4.6.0",
"tslint": "^3.14.0",
"typescript": "2.3.4",
"zone.js": "^0.8.4"
"@angular/compiler": "11.1.1",
"@angular/compiler-cli": "11.1.1",
"@angular/core": "^11.1.1",
"@types/tape": "^4.13.0",
"reflect-metadata": "^0.1.13",
"rxjs": "^6.6.3",
"tape": "^5.1.1",
"tslint": "^6.1.3",
"typescript": "4.1.3",
"zone.js": "^0.11.3"
},
"peerDependencies": {
"@angular/core": "^2.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0"
"@angular/core": "^2.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0"
},
"dependencies": {
"@types/marked": "^0.0.27",
"marked": "^0.x"
"@types/marked": "^1.2.1",
"marked": "^1.x"
}
}
4 changes: 2 additions & 2 deletions src/markdown-to-html.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ import * as marked from 'marked';
})

export class MarkdownToHtmlPipe implements PipeTransform {
public transform(markdown: string, options?: MarkedOptions): string {
public transform(markdown: string, options?: marked.MarkedOptions): string {
if (markdown == null) return '';
return marked(markdown, options);
}

public static setOptions(options: MarkedOptions): void {
public static setOptions(options: marked.MarkedOptions): void {
marked.setOptions(options);
}
}