@markweave/vue2 0.10.2 → 0.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -62635,7 +62635,7 @@ function Ay(e, t) {
62635
62635
  async function jy(e, t) {
62636
62636
  var n;
62637
62637
  let r = typeof window > "u" ? null : window;
62638
- if (!(r != null && r.Worker) || !r.Blob || !((n = r.URL) != null && n.createObjectURL)) return Promise.resolve(null);
62638
+ if (!(r != null && r.Worker) || !/^https?:$/.test(r.location.protocol) || !r.Blob || !((n = r.URL) != null && n.createObjectURL)) return null;
62639
62639
  let i;
62640
62640
  try {
62641
62641
  ({markweaveMarkdownParserWorkerSource: i} = await import("./chunks/markdown-parser-worker-source.generated-Csu6jOOf.js"));
@@ -62647,17 +62647,16 @@ async function jy(e, t) {
62647
62647
  try {
62648
62648
  a = r.URL.createObjectURL(new r.Blob([i], { type: "text/javascript" })), o = new r.Worker(a);
62649
62649
  } catch {
62650
- return Promise.resolve(null);
62650
+ return null;
62651
62651
  }
62652
62652
  return new Promise((n, i) => {
62653
62653
  let s = ++Dy, c = !1, l = (e) => {
62654
62654
  c || (c = !0, r.clearTimeout(f), t == null || t.removeEventListener("abort", u), o.terminate(), r.URL.revokeObjectURL(a), e());
62655
62655
  }, u = () => l(() => i(new DOMException("Document load cancelled.", "AbortError"))), d = () => l(() => n(null)), f = r.setTimeout(d, yy);
62656
62656
  if (o.onerror = d, o.onmessage = (e) => {
62657
- e.data.id === s && (e.data.type === "result" && e.data.tokens ? l(() => {
62658
- var t;
62659
- return n((t = e.data.tokens) == null ? [] : t);
62660
- }) : d());
62657
+ if (e.data.id !== s) return;
62658
+ let t = e.data.tokens;
62659
+ e.data.type === "result" && t ? l(() => n(t)) : d();
62661
62660
  }, t == null || t.addEventListener("abort", u, { once: !0 }), t != null && t.aborted) {
62662
62661
  u();
62663
62662
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markweave/vue2",
3
- "version": "0.10.2",
3
+ "version": "0.10.3",
4
4
  "type": "module",
5
5
  "description": "Vue 2 adapter for the Markweave Markdown-first WYSIWYG editor.",
6
6
  "license": "MIT",
@@ -69,7 +69,7 @@
69
69
  "prosemirror-model": "1.25.11",
70
70
  "prosemirror-state": "1.4.4",
71
71
  "prosemirror-view": "1.42.2",
72
- "markweave": "^0.10.2"
72
+ "markweave": "^0.10.3"
73
73
  },
74
74
  "peerDependencies": {
75
75
  "vue": "^2.6.12"