Skip to content

Commit

Permalink
chore: add resolutions for marked
Browse files Browse the repository at this point in the history
  • Loading branch information
F-loat committed Jan 11, 2022
1 parent 8b61003 commit fe44925
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion hack.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const html = fs.readFileSync('dist/demo.html').toString();
const hackedHtml = html.replace('<script src="https://unpkg.com/vue"></script>', `
<link rel="stylesheet" href="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.css">
<script src="https://unpkg.com/vue"></script>
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/marked@3.0.8/marked.min.js"></script>
<script src="https://cdn.jsdelivr.net/simplemde/latest/simplemde.min.js"></script>
`);

Expand Down
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,8 @@
"eslint": "^7.4.0",
"eslint-plugin-vue": "^6.2.2",
"vue-template-compiler": "^2.6.11"
},
"resolutions": {
"marked": "^3.0.8"
}
}
7 changes: 1 addition & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5186,12 +5186,7 @@ map-visit@^1.0.0:
dependencies:
object-visit "^1.0.0"

marked@*:
version "1.1.1"
resolved "https://registry.yarnpkg.com/marked/-/marked-1.1.1.tgz#e5d61b69842210d5df57b05856e0c91572703e6a"
integrity sha512-mJzT8D2yPxoPh7h0UXkB+dBj4FykPJ2OIfxAWeIHrvoHDkFxukV/29QxoFQoPM6RLEwhIFdJpmKBlqVM3s2ZIw==

marked@^3.0.8:
marked@*, marked@^3.0.8:
version "3.0.8"
resolved "https://registry.yarnpkg.com/marked/-/marked-3.0.8.tgz#2785f0dc79cbdc6034be4bb4f0f0a396bd3f8aeb"
integrity sha512-0gVrAjo5m0VZSJb4rpL59K1unJAMb/hm8HRXqasD8VeC8m91ytDPMritgFSlKonfdt+rRYYpP/JfLxgIX8yoSw==
Expand Down

0 comments on commit fe44925

Please sign in to comment.