]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: bump marked
authorEvan You <yyx990803@gmail.com>
Mon, 17 Jan 2022 23:57:00 +0000 (07:57 +0800)
committerEvan You <yyx990803@gmail.com>
Tue, 18 Jan 2022 01:22:41 +0000 (09:22 +0800)
package.json
packages/vue/examples/classic/markdown.html
packages/vue/examples/composition/markdown.html
pnpm-lock.yaml

index 6fabb1c3bcc266c625bc4e4c4783d1b09ec28dd9..de73907e213610b93ca4894dbfb5a86b35dc797f 100644 (file)
@@ -74,7 +74,7 @@
     "jest": "^27.1.0",
     "lint-staged": "^10.2.10",
     "lodash": "^4.17.15",
-    "marked": "^0.7.0",
+    "marked": "^4.0.10",
     "minimist": "^1.2.0",
     "npm-run-all": "^4.1.5",
     "prettier": "^2.3.1",
index 61e64f6e3cb567fdc72c50fc9d2df2f30b5746fa..f70a75d692e515e2930cbe712d19d4c2944f811a 100644 (file)
@@ -14,7 +14,7 @@ Vue.createApp({
   }),
   computed: {
     compiledMarkdown() {
-      return marked(this.input, { sanitize: true })
+      return marked.marked(this.input, { sanitize: true })
     }
   },
   methods: {
index 8734cf6aed2272cbf593373a9a36236a851d3e1b..151a8a8c14166cd89c39c81dad8c475308c110df 100644 (file)
@@ -13,7 +13,7 @@ const { ref, computed } = Vue
 Vue.createApp({
   setup() {
     const input = ref('# hello')
-    const output = computed(() => marked(input.value, { sanitize: true }))
+    const output = computed(() => marked.marked(input.value, { sanitize: true }))
     const update = _.debounce(e => { input.value = e.target.value }, 50)
 
     return {
index 79f5d7964202a3bc8974a0335719712435dcca52..424319db61ae6447084c798516e301c909871223 100644 (file)
@@ -31,7 +31,7 @@ importers:
       jest: ^27.1.0
       lint-staged: ^10.2.10
       lodash: ^4.17.15
-      marked: ^0.7.0
+      marked: ^4.0.10
       minimist: ^1.2.0
       npm-run-all: ^4.1.5
       prettier: ^2.3.1
@@ -79,7 +79,7 @@ importers:
       jest: 27.4.4
       lint-staged: 10.5.4
       lodash: 4.17.21
-      marked: 0.7.0
+      marked: 4.0.10
       minimist: 1.2.5
       npm-run-all: 4.1.5
       prettier: 2.5.1
@@ -4978,9 +4978,9 @@ packages:
     engines: {node: '>=8'}
     dev: true
 
-  /marked/0.7.0:
-    resolution: {integrity: sha512-c+yYdCZJQrsRjTPhUx7VKkApw9bwDkNbHUKo1ovgcfDjb2kc8rLuRbIFyXL5WOEUwzSSKo3IXpph2K6DqB/KZg==}
-    engines: {node: '>=0.10.0'}
+  /marked/4.0.10:
+    resolution: {integrity: sha512-+QvuFj0nGgO970fySghXGmuw+Fd0gD2x3+MqCWLIPf5oxdv1Ka6b2q+z9RP01P/IaKPMEramy+7cNy/Lw8c3hw==}
+    engines: {node: '>= 12'}
     hasBin: true
     dev: true