mq-web 0.2.8-1 → 0.2.8
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.
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var k=Object.defineProperty;var
|
|
2
|
-
${t.stack}`:r}function x(t,e){return t=t>>>0,R.decode(
|
|
1
|
+
"use strict";var k=Object.defineProperty;var G=Object.getOwnPropertyDescriptor;var K=Object.getOwnPropertyNames;var Q=Object.prototype.hasOwnProperty;var X=(t,e)=>()=>(t&&(e=t(t=0)),e);var E=(t,e)=>{for(var n in e)k(t,n,{get:e[n],enumerable:!0})},Y=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of K(e))!Q.call(t,i)&&i!==n&&k(t,i,{get:()=>e[i],enumerable:!(r=G(e,i))||r.enumerable});return t};var Z=t=>Y(k({},"__esModule",{value:!0}),t);var $={};E($,{RunOptions:()=>v,default:()=>M,definedValues:()=>st,diagnostics:()=>ot,format:()=>it,initSync:()=>at,run:()=>nt,toAst:()=>rt});function s(t){return p[t]}function j(){return(A===null||A.byteLength===0)&&(A=new Uint8Array(o.memory.buffer)),A}function y(t,e,n){if(n===void 0){let f=O.encode(t),u=e(f.length,1)>>>0;return j().subarray(u,u+f.length).set(f),b=f.length,u}let r=t.length,i=e(r,1)>>>0,a=j(),c=0;for(;c<r;c++){let f=t.charCodeAt(c);if(f>127)break;a[i+c]=f}if(c!==r){c!==0&&(t=t.slice(c)),i=n(i,r,r=c+t.length*3,1)>>>0;let f=j().subarray(i+c,i+r),u=tt(t,f);c+=u.written,i=n(i,r,c,1)>>>0}return b=c,i}function _(){return(h===null||h.buffer.detached===!0||h.buffer.detached===void 0&&h.buffer!==o.memory.buffer)&&(h=new DataView(o.memory.buffer)),h}function d(t){I===p.length&&p.push(p.length+1);let e=I;return I=p[e],p[e]=t,e}function et(t){t<132||(p[t]=I,I=t)}function w(t){let e=s(t);return et(t),e}function V(t){let e=typeof t;if(e=="number"||e=="boolean"||t==null)return`${t}`;if(e=="string")return`"${t}"`;if(e=="symbol"){let i=t.description;return i==null?"Symbol":`Symbol(${i})`}if(e=="function"){let i=t.name;return typeof i=="string"&&i.length>0?`Function(${i})`:"Function"}if(Array.isArray(t)){let i=t.length,a="[";i>0&&(a+=V(t[0]));for(let c=1;c<i;c++)a+=", "+V(t[c]);return a+="]",a}let n=/\[object ([^\]]+)\]/.exec(toString.call(t)),r;if(n&&n.length>1)r=n[1];else return toString.call(t);if(r=="Object")try{return"Object("+JSON.stringify(t)+")"}catch{return"Object"}return t instanceof Error?`${t.name}: ${t.message}
|
|
2
|
+
${t.stack}`:r}function x(t,e){return t=t>>>0,R.decode(j().subarray(t,t+e))}function D(t){return t==null}function nt(t,e,n){let r,i;try{let l=o.__wbindgen_add_to_stack_pointer(-16),N=y(t,o.__wbindgen_export_0,o.__wbindgen_export_1),C=b,H=y(e,o.__wbindgen_export_0,o.__wbindgen_export_1),J=b;o.run(l,N,C,H,J,d(n));var a=_().getInt32(l+4*0,!0),c=_().getInt32(l+4*1,!0),f=_().getInt32(l+4*2,!0),u=_().getInt32(l+4*3,!0),g=a,m=c;if(u)throw g=0,m=0,w(f);return r=g,i=m,x(g,m)}finally{o.__wbindgen_add_to_stack_pointer(16),o.__wbindgen_export_2(r,i,1)}}function rt(t){let e,n;try{let g=o.__wbindgen_add_to_stack_pointer(-16),m=y(t,o.__wbindgen_export_0,o.__wbindgen_export_1),l=b;o.toAst(g,m,l);var r=_().getInt32(g+4*0,!0),i=_().getInt32(g+4*1,!0),a=_().getInt32(g+4*2,!0),c=_().getInt32(g+4*3,!0),f=r,u=i;if(c)throw f=0,u=0,w(a);return e=f,n=u,x(f,u)}finally{o.__wbindgen_add_to_stack_pointer(16),o.__wbindgen_export_2(e,n,1)}}function it(t){let e,n;try{let g=o.__wbindgen_add_to_stack_pointer(-16),m=y(t,o.__wbindgen_export_0,o.__wbindgen_export_1),l=b;o.format(g,m,l);var r=_().getInt32(g+4*0,!0),i=_().getInt32(g+4*1,!0),a=_().getInt32(g+4*2,!0),c=_().getInt32(g+4*3,!0),f=r,u=i;if(c)throw f=0,u=0,w(a);return e=f,n=u,x(f,u)}finally{o.__wbindgen_add_to_stack_pointer(16),o.__wbindgen_export_2(e,n,1)}}function ot(t){let e=y(t,o.__wbindgen_export_0,o.__wbindgen_export_1),n=b,r=o.diagnostics(e,n);return w(r)}function st(t){try{let i=o.__wbindgen_add_to_stack_pointer(-16),a=y(t,o.__wbindgen_export_0,o.__wbindgen_export_1),c=b;o.definedValues(i,a,c);var e=_().getInt32(i+4*0,!0),n=_().getInt32(i+4*1,!0),r=_().getInt32(i+4*2,!0);if(r)throw w(n);return w(e)}finally{o.__wbindgen_add_to_stack_pointer(16)}}async function _t(t,e){if(typeof Response=="function"&&t instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(t,e)}catch(r){if(t.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r);else throw r}let n=await t.arrayBuffer();return await WebAssembly.instantiate(n,e)}else{let n=await WebAssembly.instantiate(t,e);return n instanceof WebAssembly.Instance?{instance:n,module:t}:n}}function F(){let t={};return t.wbg={},t.wbg.__wbg_String_8f0eb39a4a4c2f66=function(e,n){let r=String(s(n)),i=y(r,o.__wbindgen_export_0,o.__wbindgen_export_1),a=b;_().setInt32(e+4*1,a,!0),_().setInt32(e+4*0,i,!0)},t.wbg.__wbg_buffer_609cc3eee51ed158=function(e){let n=s(e).buffer;return d(n)},t.wbg.__wbg_entries_3265d4158b33e5dc=function(e){let n=Object.entries(s(e));return d(n)},t.wbg.__wbg_get_b9b93047fe3cf45b=function(e,n){let r=s(e)[n>>>0];return d(r)},t.wbg.__wbg_getwithrefkey_1dc361bd10053bfe=function(e,n){let r=s(e)[s(n)];return d(r)},t.wbg.__wbg_instanceof_ArrayBuffer_e14585432e3737fc=function(e){let n;try{n=s(e)instanceof ArrayBuffer}catch{n=!1}return n},t.wbg.__wbg_instanceof_Uint8Array_17156bcf118086a9=function(e){let n;try{n=s(e)instanceof Uint8Array}catch{n=!1}return n},t.wbg.__wbg_length_a446193dc22c12f8=function(e){return s(e).length},t.wbg.__wbg_length_e2d2a49132c1b256=function(e){return s(e).length},t.wbg.__wbg_new_405e22f390576ce2=function(){let e=new Object;return d(e)},t.wbg.__wbg_new_78feb108b6472713=function(){let e=new Array;return d(e)},t.wbg.__wbg_new_a12002a7f91c75be=function(e){let n=new Uint8Array(s(e));return d(n)},t.wbg.__wbg_set_37837023f3d740e8=function(e,n,r){s(e)[n>>>0]=w(r)},t.wbg.__wbg_set_3f1d0b984ed272ed=function(e,n,r){s(e)[w(n)]=w(r)},t.wbg.__wbg_set_65595bdd868b3009=function(e,n,r){s(e).set(s(n),r>>>0)},t.wbg.__wbindgen_boolean_get=function(e){let n=s(e);return typeof n=="boolean"?n?1:0:2},t.wbg.__wbindgen_debug_string=function(e,n){let r=V(s(n)),i=y(r,o.__wbindgen_export_0,o.__wbindgen_export_1),a=b;_().setInt32(e+4*1,a,!0),_().setInt32(e+4*0,i,!0)},t.wbg.__wbindgen_error_new=function(e,n){let r=new Error(x(e,n));return d(r)},t.wbg.__wbindgen_in=function(e,n){return s(e)in s(n)},t.wbg.__wbindgen_is_object=function(e){let n=s(e);return typeof n=="object"&&n!==null},t.wbg.__wbindgen_is_string=function(e){return typeof s(e)=="string"},t.wbg.__wbindgen_is_undefined=function(e){return s(e)===void 0},t.wbg.__wbindgen_jsval_loose_eq=function(e,n){return s(e)==s(n)},t.wbg.__wbindgen_memory=function(){let e=o.memory;return d(e)},t.wbg.__wbindgen_number_get=function(e,n){let r=s(n),i=typeof r=="number"?r:void 0;_().setFloat64(e+8*1,D(i)?0:i,!0),_().setInt32(e+4*0,!D(i),!0)},t.wbg.__wbindgen_number_new=function(e){return d(e)},t.wbg.__wbindgen_object_clone_ref=function(e){let n=s(e);return d(n)},t.wbg.__wbindgen_object_drop_ref=function(e){w(e)},t.wbg.__wbindgen_string_get=function(e,n){let r=s(n),i=typeof r=="string"?r:void 0;var a=D(i)?0:y(i,o.__wbindgen_export_0,o.__wbindgen_export_1),c=b;_().setInt32(e+4*1,c,!0),_().setInt32(e+4*0,a,!0)},t.wbg.__wbindgen_string_new=function(e,n){let r=x(e,n);return d(r)},t.wbg.__wbindgen_throw=function(e,n){throw new Error(x(e,n))},t}function U(t,e){return o=t.exports,P.__wbindgen_wasm_module=e,h=null,A=null,o}function at(t){if(o!==void 0)return o;typeof t<"u"&&(Object.getPrototypeOf(t)===Object.prototype?{module:t}=t:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let e=F();t instanceof WebAssembly.Module||(t=new WebAssembly.Module(t));let n=new WebAssembly.Instance(t,e);return U(n,t)}async function P(t){if(o!==void 0)return o;typeof t<"u"&&(Object.getPrototypeOf(t)===Object.prototype?{module_or_path:t}=t:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof t>"u"&&(t=new URL("mq_wasm_bg.wasm",ft.url));let e=F();(typeof t=="string"||typeof Request=="function"&&t instanceof Request||typeof URL=="function"&&t instanceof URL)&&(t=fetch(t));let{instance:n,module:r}=await _t(await t,e);return U(n,r)}var ft,o,p,b,A,O,tt,h,I,R,ct,v,M,T=X(()=>{"use strict";ft={},p=new Array(128).fill(void 0);p.push(void 0,null,!0,!1);b=0,A=null;O=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},tt=typeof O.encodeInto=="function"?function(t,e){return O.encodeInto(t,e)}:function(t,e){let n=O.encode(t);return e.set(n),{read:t.length,written:n.length}};h=null;I=p.length;R=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&R.decode();ct=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>o.__wbg_runoptions_free(t>>>0,1)),v=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,ct.unregister(this),e}free(){let e=this.__destroy_into_raw();o.__wbg_runoptions_free(e,0)}};M=P});var ut={};E(ut,{definedValues:()=>B,diagnostics:()=>L,format:()=>z,run:()=>q});module.exports=Z(ut);T();var S=null;async function W(){return S||(await(async()=>{try{await M();let t=await Promise.resolve().then(()=>(T(),$));S={run:t.run,toAst:t.toAst,format:t.format,diagnostics:t.diagnostics,definedValues:t.definedValues}}catch(t){throw new Error(`Failed to initialize mq WebAssembly module: ${t}`)}})(),S)}async function q(t,e,n={}){return await(await W()).run(t,e,{isUpdate:!1,inputFormat:"markdown",listStyle:"dash",linkUrlStyle:"none",linkTitleStyle:"paren",...n})}async function z(t){return await(await W()).format(t)}async function L(t){return await(await W()).diagnostics(t)}async function B(t){return await(await W()).definedValues(t)}0&&(module.exports={definedValues,diagnostics,format,run});
|
package/dist/index.d.cts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var L=Object.defineProperty;var B=(t,e)=>()=>(t&&(e=t(t=0)),e);var N=(t,e)=>{for(var n in e)L(t,n,{get:e[n],enumerable:!0})};var U={};N(U,{RunOptions:()=>V,default:()=>v,definedValues:()=>X,diagnostics:()=>Q,format:()=>K,initSync:()=>tt,run:()=>J,toAst:()=>G});function s(t){return p[t]}function
|
|
2
|
-
${t.stack}`:r}function x(t,e){return t=t>>>0,T.decode(
|
|
1
|
+
var L=Object.defineProperty;var B=(t,e)=>()=>(t&&(e=t(t=0)),e);var N=(t,e)=>{for(var n in e)L(t,n,{get:e[n],enumerable:!0})};var U={};N(U,{RunOptions:()=>V,default:()=>v,definedValues:()=>X,diagnostics:()=>Q,format:()=>K,initSync:()=>tt,run:()=>J,toAst:()=>G});function s(t){return p[t]}function j(){return(A===null||A.byteLength===0)&&(A=new Uint8Array(i.memory.buffer)),A}function y(t,e,n){if(n===void 0){let f=O.encode(t),u=e(f.length,1)>>>0;return j().subarray(u,u+f.length).set(f),b=f.length,u}let r=t.length,o=e(r,1)>>>0,a=j(),c=0;for(;c<r;c++){let f=t.charCodeAt(c);if(f>127)break;a[o+c]=f}if(c!==r){c!==0&&(t=t.slice(c)),o=n(o,r,r=c+t.length*3,1)>>>0;let f=j().subarray(o+c,o+r),u=C(t,f);c+=u.written,o=n(o,r,c,1)>>>0}return b=c,o}function _(){return(h===null||h.buffer.detached===!0||h.buffer.detached===void 0&&h.buffer!==i.memory.buffer)&&(h=new DataView(i.memory.buffer)),h}function d(t){I===p.length&&p.push(p.length+1);let e=I;return I=p[e],p[e]=t,e}function H(t){t<132||(p[t]=I,I=t)}function w(t){let e=s(t);return H(t),e}function D(t){let e=typeof t;if(e=="number"||e=="boolean"||t==null)return`${t}`;if(e=="string")return`"${t}"`;if(e=="symbol"){let o=t.description;return o==null?"Symbol":`Symbol(${o})`}if(e=="function"){let o=t.name;return typeof o=="string"&&o.length>0?`Function(${o})`:"Function"}if(Array.isArray(t)){let o=t.length,a="[";o>0&&(a+=D(t[0]));for(let c=1;c<o;c++)a+=", "+D(t[c]);return a+="]",a}let n=/\[object ([^\]]+)\]/.exec(toString.call(t)),r;if(n&&n.length>1)r=n[1];else return toString.call(t);if(r=="Object")try{return"Object("+JSON.stringify(t)+")"}catch{return"Object"}return t instanceof Error?`${t.name}: ${t.message}
|
|
2
|
+
${t.stack}`:r}function x(t,e){return t=t>>>0,T.decode(j().subarray(t,t+e))}function k(t){return t==null}function J(t,e,n){let r,o;try{let l=i.__wbindgen_add_to_stack_pointer(-16),P=y(t,i.__wbindgen_export_0,i.__wbindgen_export_1),$=b,q=y(e,i.__wbindgen_export_0,i.__wbindgen_export_1),z=b;i.run(l,P,$,q,z,d(n));var a=_().getInt32(l+4*0,!0),c=_().getInt32(l+4*1,!0),f=_().getInt32(l+4*2,!0),u=_().getInt32(l+4*3,!0),g=a,m=c;if(u)throw g=0,m=0,w(f);return r=g,o=m,x(g,m)}finally{i.__wbindgen_add_to_stack_pointer(16),i.__wbindgen_export_2(r,o,1)}}function G(t){let e,n;try{let g=i.__wbindgen_add_to_stack_pointer(-16),m=y(t,i.__wbindgen_export_0,i.__wbindgen_export_1),l=b;i.toAst(g,m,l);var r=_().getInt32(g+4*0,!0),o=_().getInt32(g+4*1,!0),a=_().getInt32(g+4*2,!0),c=_().getInt32(g+4*3,!0),f=r,u=o;if(c)throw f=0,u=0,w(a);return e=f,n=u,x(f,u)}finally{i.__wbindgen_add_to_stack_pointer(16),i.__wbindgen_export_2(e,n,1)}}function K(t){let e,n;try{let g=i.__wbindgen_add_to_stack_pointer(-16),m=y(t,i.__wbindgen_export_0,i.__wbindgen_export_1),l=b;i.format(g,m,l);var r=_().getInt32(g+4*0,!0),o=_().getInt32(g+4*1,!0),a=_().getInt32(g+4*2,!0),c=_().getInt32(g+4*3,!0),f=r,u=o;if(c)throw f=0,u=0,w(a);return e=f,n=u,x(f,u)}finally{i.__wbindgen_add_to_stack_pointer(16),i.__wbindgen_export_2(e,n,1)}}function Q(t){let e=y(t,i.__wbindgen_export_0,i.__wbindgen_export_1),n=b,r=i.diagnostics(e,n);return w(r)}function X(t){try{let o=i.__wbindgen_add_to_stack_pointer(-16),a=y(t,i.__wbindgen_export_0,i.__wbindgen_export_1),c=b;i.definedValues(o,a,c);var e=_().getInt32(o+4*0,!0),n=_().getInt32(o+4*1,!0),r=_().getInt32(o+4*2,!0);if(r)throw w(n);return w(e)}finally{i.__wbindgen_add_to_stack_pointer(16)}}async function Z(t,e){if(typeof Response=="function"&&t instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(t,e)}catch(r){if(t.headers.get("Content-Type")!="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",r);else throw r}let n=await t.arrayBuffer();return await WebAssembly.instantiate(n,e)}else{let n=await WebAssembly.instantiate(t,e);return n instanceof WebAssembly.Instance?{instance:n,module:t}:n}}function E(){let t={};return t.wbg={},t.wbg.__wbg_String_8f0eb39a4a4c2f66=function(e,n){let r=String(s(n)),o=y(r,i.__wbindgen_export_0,i.__wbindgen_export_1),a=b;_().setInt32(e+4*1,a,!0),_().setInt32(e+4*0,o,!0)},t.wbg.__wbg_buffer_609cc3eee51ed158=function(e){let n=s(e).buffer;return d(n)},t.wbg.__wbg_entries_3265d4158b33e5dc=function(e){let n=Object.entries(s(e));return d(n)},t.wbg.__wbg_get_b9b93047fe3cf45b=function(e,n){let r=s(e)[n>>>0];return d(r)},t.wbg.__wbg_getwithrefkey_1dc361bd10053bfe=function(e,n){let r=s(e)[s(n)];return d(r)},t.wbg.__wbg_instanceof_ArrayBuffer_e14585432e3737fc=function(e){let n;try{n=s(e)instanceof ArrayBuffer}catch{n=!1}return n},t.wbg.__wbg_instanceof_Uint8Array_17156bcf118086a9=function(e){let n;try{n=s(e)instanceof Uint8Array}catch{n=!1}return n},t.wbg.__wbg_length_a446193dc22c12f8=function(e){return s(e).length},t.wbg.__wbg_length_e2d2a49132c1b256=function(e){return s(e).length},t.wbg.__wbg_new_405e22f390576ce2=function(){let e=new Object;return d(e)},t.wbg.__wbg_new_78feb108b6472713=function(){let e=new Array;return d(e)},t.wbg.__wbg_new_a12002a7f91c75be=function(e){let n=new Uint8Array(s(e));return d(n)},t.wbg.__wbg_set_37837023f3d740e8=function(e,n,r){s(e)[n>>>0]=w(r)},t.wbg.__wbg_set_3f1d0b984ed272ed=function(e,n,r){s(e)[w(n)]=w(r)},t.wbg.__wbg_set_65595bdd868b3009=function(e,n,r){s(e).set(s(n),r>>>0)},t.wbg.__wbindgen_boolean_get=function(e){let n=s(e);return typeof n=="boolean"?n?1:0:2},t.wbg.__wbindgen_debug_string=function(e,n){let r=D(s(n)),o=y(r,i.__wbindgen_export_0,i.__wbindgen_export_1),a=b;_().setInt32(e+4*1,a,!0),_().setInt32(e+4*0,o,!0)},t.wbg.__wbindgen_error_new=function(e,n){let r=new Error(x(e,n));return d(r)},t.wbg.__wbindgen_in=function(e,n){return s(e)in s(n)},t.wbg.__wbindgen_is_object=function(e){let n=s(e);return typeof n=="object"&&n!==null},t.wbg.__wbindgen_is_string=function(e){return typeof s(e)=="string"},t.wbg.__wbindgen_is_undefined=function(e){return s(e)===void 0},t.wbg.__wbindgen_jsval_loose_eq=function(e,n){return s(e)==s(n)},t.wbg.__wbindgen_memory=function(){let e=i.memory;return d(e)},t.wbg.__wbindgen_number_get=function(e,n){let r=s(n),o=typeof r=="number"?r:void 0;_().setFloat64(e+8*1,k(o)?0:o,!0),_().setInt32(e+4*0,!k(o),!0)},t.wbg.__wbindgen_number_new=function(e){return d(e)},t.wbg.__wbindgen_object_clone_ref=function(e){let n=s(e);return d(n)},t.wbg.__wbindgen_object_drop_ref=function(e){w(e)},t.wbg.__wbindgen_string_get=function(e,n){let r=s(n),o=typeof r=="string"?r:void 0;var a=k(o)?0:y(o,i.__wbindgen_export_0,i.__wbindgen_export_1),c=b;_().setInt32(e+4*1,c,!0),_().setInt32(e+4*0,a,!0)},t.wbg.__wbindgen_string_new=function(e,n){let r=x(e,n);return d(r)},t.wbg.__wbindgen_throw=function(e,n){throw new Error(x(e,n))},t}function R(t,e){return i=t.exports,F.__wbindgen_wasm_module=e,h=null,A=null,i}function tt(t){if(i!==void 0)return i;typeof t<"u"&&(Object.getPrototypeOf(t)===Object.prototype?{module:t}=t:console.warn("using deprecated parameters for `initSync()`; pass a single object instead"));let e=E();t instanceof WebAssembly.Module||(t=new WebAssembly.Module(t));let n=new WebAssembly.Instance(t,e);return R(n,t)}async function F(t){if(i!==void 0)return i;typeof t<"u"&&(Object.getPrototypeOf(t)===Object.prototype?{module_or_path:t}=t:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof t>"u"&&(t=new URL("mq_wasm_bg.wasm",import.meta.url));let e=E();(typeof t=="string"||typeof Request=="function"&&t instanceof Request||typeof URL=="function"&&t instanceof URL)&&(t=fetch(t));let{instance:n,module:r}=await Z(await t,e);return R(n,r)}var i,p,b,A,O,C,h,I,T,Y,V,v,M=B(()=>{"use strict";p=new Array(128).fill(void 0);p.push(void 0,null,!0,!1);b=0,A=null;O=typeof TextEncoder<"u"?new TextEncoder("utf-8"):{encode:()=>{throw Error("TextEncoder not available")}},C=typeof O.encodeInto=="function"?function(t,e){return O.encodeInto(t,e)}:function(t,e){let n=O.encode(t);return e.set(n),{read:t.length,written:n.length}};h=null;I=p.length;T=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):{decode:()=>{throw Error("TextDecoder not available")}};typeof TextDecoder<"u"&&T.decode();Y=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(t=>i.__wbg_runoptions_free(t>>>0,1)),V=class{__destroy_into_raw(){let e=this.__wbg_ptr;return this.__wbg_ptr=0,Y.unregister(this),e}free(){let e=this.__destroy_into_raw();i.__wbg_runoptions_free(e,0)}};v=F});M();var S=null;async function W(){return S||(await(async()=>{try{await v();let t=await Promise.resolve().then(()=>(M(),U));S={run:t.run,toAst:t.toAst,format:t.format,diagnostics:t.diagnostics,definedValues:t.definedValues}}catch(t){throw new Error(`Failed to initialize mq WebAssembly module: ${t}`)}})(),S)}async function et(t,e,n={}){return await(await W()).run(t,e,{isUpdate:!1,inputFormat:"markdown",listStyle:"dash",linkUrlStyle:"none",linkTitleStyle:"paren",...n})}async function nt(t){return await(await W()).format(t)}async function rt(t){return await(await W()).diagnostics(t)}async function it(t){return await(await W()).definedValues(t)}export{it as definedValues,rt as diagnostics,nt as format,et as run};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mq-web",
|
|
3
3
|
"description": "A jq-like command-line tool for Markdown processing",
|
|
4
|
-
"version": "0.2.8
|
|
4
|
+
"version": "0.2.8",
|
|
5
5
|
"author": "harehare",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"bugs": {
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"main": "dist/index.js",
|
|
28
28
|
"repository": {
|
|
29
29
|
"type": "git",
|
|
30
|
-
"url": "
|
|
30
|
+
"url": "https://github.com/harehare/mq.git",
|
|
31
31
|
"directory": "packages/mq-web"
|
|
32
32
|
},
|
|
33
33
|
"scripts": {
|