Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Commit

Permalink
update marked and @types/marked, fix docs.ts (#184)
Browse files Browse the repository at this point in the history
This PR updates `marked` to address a dependabot security alert, aas well as type definitions and usage.
  • Loading branch information
threepointone committed Jan 18, 2022
1 parent 5b739a4 commit f1c3c40
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 20 deletions.
5 changes: 5 additions & 0 deletions .changeset/poor-ears-search.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@cloudflare/workers-types": patch
---

chore: update marked to 4.0.10
2 changes: 1 addition & 1 deletion export/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as fs from "fs";
import * as path from "path";
// marked is great for this: it includes the raw text in its tokens so
// we don't need to write code that renders tokens back to markdown
import marked from "marked";
import { marked } from "marked";
import { Comment, CommentParam } from "./types";

interface CommentedField {
Expand Down
34 changes: 17 additions & 17 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"devDependencies": {
"@changesets/changelog-github": "^0.4.2",
"@changesets/cli": "^2.18.1",
"@types/marked": "^3.0.0",
"@types/marked": "^4.0.1",
"@types/node": "^16.6.1",
"esbuild": "^0.12.22",
"esbuild-register": "^3.0.0",
"marked": "^3.0.2",
"marked": "^4.0.10",
"prettier": "^2.5.1",
"typescript": "^4.3.5"
}
Expand Down

0 comments on commit f1c3c40

Please sign in to comment.