mq-nodejs 0.5.30 → 0.6.0
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/core.js +2 -2
- package/dist/core.mjs +2 -2
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/dist/mq_wasm.js +59 -53
- package/dist/mq_wasm_bg.wasm +0 -0
- package/package.json +2 -2
package/dist/core.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var v=Object.create;var M=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var E=Object.getOwnPropertyNames;var U=Object.getPrototypeOf,z=Object.prototype.hasOwnProperty;var C=(n,t)=>()=>(t||n((t={exports:{}}).exports,t),t.exports),W=(n,t)=>{for(var e in t)M(n,e,{get:t[e],enumerable:!0})},P=(n,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of E(t))!z.call(n,o)&&o!==e&&M(n,o,{get:()=>t[o],enumerable:!(r=R(t,o))||r.enumerable});return n};var q=(n,t,e)=>(e=n!=null?v(U(n)):{},P(t||!n||!n.__esModule?M(e,"default",{value:n,enumerable:!0}):e,n)),L=n=>P(M({},"__esModule",{value:!0}),n);var D=C(l=>{"use strict";var A=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,et.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_conversionoptions_free(t,0)}get extract_scripts_as_code_blocks(){return _.__wbg_get_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr)!==0}get generate_front_matter(){return _.__wbg_get_conversionoptions_generate_front_matter(this.__wbg_ptr)!==0}get use_title_as_h1(){return _.__wbg_get_conversionoptions_use_title_as_h1(this.__wbg_ptr)!==0}set extract_scripts_as_code_blocks(t){_.__wbg_set_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr,t)}set generate_front_matter(t){_.__wbg_set_conversionoptions_generate_front_matter(this.__wbg_ptr,t)}set use_title_as_h1(t){_.__wbg_set_conversionoptions_use_title_as_h1(this.__wbg_ptr,t)}};Symbol.dispose&&(A.prototype[Symbol.dispose]=A.prototype.free);l.ConversionOptions=A;var O=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,rt.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_runoptions_free(t,0)}};Symbol.dispose&&(O.prototype[Symbol.dispose]=O.prototype.free);l.RunOptions=O;function $(n,t){let e=
|
|
2
|
-
${n.stack}`:r}function _t(n){n<1028||(m[n]=I,I=n)}function it(n,t){return n=n>>>0,F().subarray(n/1,n/1+t)}var x=null;function p(){return(x===null||x.buffer.detached===!0||x.buffer.detached===void 0&&x.buffer!==_.memory.buffer)&&(x=new DataView(_.memory.buffer)),x}function T(n,t){return n
|
|
1
|
+
"use strict";var v=Object.create;var M=Object.defineProperty;var R=Object.getOwnPropertyDescriptor;var E=Object.getOwnPropertyNames;var U=Object.getPrototypeOf,z=Object.prototype.hasOwnProperty;var C=(n,t)=>()=>(t||n((t={exports:{}}).exports,t),t.exports),W=(n,t)=>{for(var e in t)M(n,e,{get:t[e],enumerable:!0})},P=(n,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of E(t))!z.call(n,o)&&o!==e&&M(n,o,{get:()=>t[o],enumerable:!(r=R(t,o))||r.enumerable});return n};var q=(n,t,e)=>(e=n!=null?v(U(n)):{},P(t||!n||!n.__esModule?M(e,"default",{value:n,enumerable:!0}):e,n)),L=n=>P(M({},"__esModule",{value:!0}),n);var D=C(l=>{"use strict";var A=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,et.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_conversionoptions_free(t,0)}get extract_scripts_as_code_blocks(){return _.__wbg_get_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr)!==0}get generate_front_matter(){return _.__wbg_get_conversionoptions_generate_front_matter(this.__wbg_ptr)!==0}get use_title_as_h1(){return _.__wbg_get_conversionoptions_use_title_as_h1(this.__wbg_ptr)!==0}set extract_scripts_as_code_blocks(t){_.__wbg_set_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr,t)}set generate_front_matter(t){_.__wbg_set_conversionoptions_generate_front_matter(this.__wbg_ptr,t)}set use_title_as_h1(t){_.__wbg_set_conversionoptions_use_title_as_h1(this.__wbg_ptr,t)}};Symbol.dispose&&(A.prototype[Symbol.dispose]=A.prototype.free);l.ConversionOptions=A;var O=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,rt.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_runoptions_free(t,0)}};Symbol.dispose&&(O.prototype[Symbol.dispose]=O.prototype.free);l.RunOptions=O;function $(n,t){let e=d(n,_.__wbindgen_export,_.__wbindgen_export2),r=u;var o=w(t)?0:d(t,_.__wbindgen_export,_.__wbindgen_export2),s=u;let c=_.definedValues(e,r,o,s);return g(c)}l.definedValues=$;function B(n,t){let e=d(n,_.__wbindgen_export,_.__wbindgen_export2),r=u,o=_.diagnostics(e,r,w(t)?16777215:t?1:0);return g(o)}l.diagnostics=B;function N(n){let t=d(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.format(t,e);return g(r)}l.format=N;function G(n,t,e){let r=d(n,_.__wbindgen_export,_.__wbindgen_export2),o=u,s=_.hover(r,o,t,e);return g(s)}l.hover=G;function J(n,t){let e=d(n,_.__wbindgen_export,_.__wbindgen_export2),r=u,o=0;w(t)||(ot(t,A),o=t.__destroy_into_raw());let s=_.htmlToMarkdown(e,r,o);return g(s)}l.htmlToMarkdown=J;function K(n){let t=d(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.inlayHints(t,e);return g(r)}l.inlayHints=K;function Q(n,t,e){let r=d(n,_.__wbindgen_export,_.__wbindgen_export2),o=u,s=d(t,_.__wbindgen_export,_.__wbindgen_export2),c=u,b=_.run(r,o,s,c,a(e));return g(b)}l.run=Q;function X(n){let t=d(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.toAst(t,e);return g(r)}l.toAst=X;function Y(n){let t=d(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.toHtml(t,e);return g(r)}l.toHtml=Y;function Z(){return{__proto__:null,"./mq_wasm_bg.js":{__proto__:null,__wbg_Error_ef53bc310eb298a0:function(t,e){let r=Error(T(t,e));return a(r)},__wbg_String_8564e559799eccda:function(t,e){let r=String(i(e)),o=d(r,_.__wbindgen_export,_.__wbindgen_export2),s=u;p().setInt32(t+4,s,!0),p().setInt32(t+0,o,!0)},__wbg___wbindgen_boolean_get_1a45e2c38d4d41b9:function(t){let e=i(t),r=typeof e=="boolean"?e:void 0;return w(r)?16777215:r?1:0},__wbg___wbindgen_debug_string_0accd80f45e5faa2:function(t,e){let r=H(i(e)),o=d(r,_.__wbindgen_export,_.__wbindgen_export2),s=u;p().setInt32(t+4,s,!0),p().setInt32(t+0,o,!0)},__wbg___wbindgen_in_70a403a56e771704:function(t,e){return i(t)in i(e)},__wbg___wbindgen_is_function_754e9f305ff6029e:function(t){return typeof i(t)=="function"},__wbg___wbindgen_is_object_56732c2bc353f41d:function(t){let e=i(t);return typeof e=="object"&&e!==null},__wbg___wbindgen_is_string_c236cabd84a4d769:function(t){return typeof i(t)=="string"},__wbg___wbindgen_is_undefined_67b456be8673d3d7:function(t){return i(t)===void 0},__wbg___wbindgen_jsval_loose_eq_2c56564c75129511:function(t,e){return i(t)==i(e)},__wbg___wbindgen_number_get_9bb1761122181af2:function(t,e){let r=i(e),o=typeof r=="number"?r:void 0;p().setFloat64(t+8,w(o)?0:o,!0),p().setInt32(t+0,!w(o),!0)},__wbg___wbindgen_string_get_72bdf95d3ae505b1:function(t,e){let r=i(e),o=typeof r=="string"?r:void 0;var s=w(o)?0:d(o,_.__wbindgen_export,_.__wbindgen_export2),c=u;p().setInt32(t+4,c,!0),p().setInt32(t+0,s,!0)},__wbg___wbindgen_throw_1506f2235d1bdba0:function(t,e){throw new Error(T(t,e))},__wbg__wbg_cb_unref_61db23ac97f16c31:function(t){i(t)._wbg_cb_unref()},__wbg_call_9c758de292015997:function(){return st(function(t,e,r){let o=i(t).call(i(e),i(r));return a(o)},arguments)},__wbg_entries_04b37a02507f1713:function(t){let e=Object.entries(i(t));return a(e)},__wbg_error_78ff5b3a29b770e0:function(t){console.error(i(t))},__wbg_getTimezoneOffset_08e2892156231088:function(t){return i(t).getTimezoneOffset()},__wbg_get_2b48c7d0d006a781:function(t,e){let r=i(t)[e>>>0];return a(r)},__wbg_get_with_ref_key_6412cf3094599694:function(t,e){let r=i(t)[i(e)];return a(r)},__wbg_instanceof_ArrayBuffer_8f49811467741499:function(t){let e;try{e=i(t)instanceof ArrayBuffer}catch{e=!1}return e},__wbg_instanceof_Uint8Array_86f30649f63ef9c2:function(t){let e;try{e=i(t)instanceof Uint8Array}catch{e=!1}return e},__wbg_length_4a591ecaa01354d9:function(t){return i(t).length},__wbg_length_66f1a4b2e9026940:function(t){return i(t).length},__wbg_log_cf2e968649f3384e:function(t){console.log(i(t))},__wbg_new_578aeef4b6b94378:function(t){let e=new Uint8Array(i(t));return a(e)},__wbg_new_6d75fd236f920a62:function(t){let e=new Date(i(t));return a(e)},__wbg_new_ce1ab61c1c2b300d:function(){let t=new Object;return a(t)},__wbg_new_d90091b82fdf5b91:function(){let t=new Array;return a(t)},__wbg_new_typed_bf31d18f92484486:function(t,e){try{var r={a:t,b:e},o=(c,b)=>{let y=r.a;r.a=0;try{return nt(y,r.b,c,b)}finally{r.a=y}};let s=new Promise(o);return a(s)}finally{r.a=0}},__wbg_prototypesetcall_3249fc62a0fafa30:function(t,e,r){Uint8Array.prototype.set.call(it(t,e),i(r))},__wbg_queueMicrotask_35c611f4a14830b2:function(t){queueMicrotask(i(t))},__wbg_queueMicrotask_404ed0a58e0b63cc:function(t){let e=i(t).queueMicrotask;return a(e)},__wbg_resolve_25a7e548d5881dca:function(t){let e=Promise.resolve(i(t));return a(e)},__wbg_set_6be42768c690e380:function(t,e,r){i(t)[g(e)]=g(r)},__wbg_set_dca99999bba88a9a:function(t,e,r){i(t)[e>>>0]=g(r)},__wbg_static_accessor_GLOBAL_9d53f2689e622ca1:function(){let t=typeof global>"u"?null:global;return w(t)?0:a(t)},__wbg_static_accessor_GLOBAL_THIS_a1a35cec07001a8a:function(){let t=typeof globalThis>"u"?null:globalThis;return w(t)?0:a(t)},__wbg_static_accessor_SELF_4c59f6c7ea29a144:function(){let t=typeof self>"u"?null:self;return w(t)?0:a(t)},__wbg_static_accessor_WINDOW_e70ae9f2eb052253:function(){let t=typeof window>"u"?null:window;return w(t)?0:a(t)},__wbg_then_ac7b025999b52837:function(t,e){let r=i(t).then(i(e));return a(r)},__wbindgen_cast_0000000000000001:function(t,e){let r=ct(t,e,tt);return a(r)},__wbindgen_cast_0000000000000002:function(t){return a(t)},__wbindgen_cast_0000000000000003:function(t,e){let r=T(t,e);return a(r)},__wbindgen_object_clone_ref:function(t){let e=i(t);return a(e)},__wbindgen_object_drop_ref:function(t){g(t)}}}}function tt(n,t,e){try{let s=_.__wbindgen_add_to_stack_pointer(-16);_.__wasm_bindgen_func_elem_1102(s,n,t,a(e));var r=p().getInt32(s+0,!0),o=p().getInt32(s+4,!0);if(o)throw g(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}function nt(n,t,e,r){_.__wasm_bindgen_func_elem_1389(n,t,a(e),a(r))}var et=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbg_conversionoptions_free(n,1)),rt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbg_runoptions_free(n,1));function a(n){I===m.length&&m.push(m.length+1);let t=I;return I=m[t],m[t]=n,t}function ot(n,t){if(!(n instanceof t))throw new Error(`expected instance of ${t.name}`)}var j=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbindgen_export4(n.a,n.b));function H(n){let t=typeof n;if(t=="number"||t=="boolean"||n==null)return`${n}`;if(t=="string")return`"${n}"`;if(t=="symbol"){let o=n.description;return o==null?"Symbol":`Symbol(${o})`}if(t=="function"){let o=n.name;return typeof o=="string"&&o.length>0?`Function(${o})`:"Function"}if(Array.isArray(n)){let o=n.length,s="[";o>0&&(s+=H(n[0]));for(let c=1;c<o;c++)s+=", "+H(n[c]);return s+="]",s}let e=/\[object ([^\]]+)\]/.exec(toString.call(n)),r;if(e&&e.length>1)r=e[1];else return toString.call(n);if(r=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message}
|
|
2
|
+
${n.stack}`:r}function _t(n){n<1028||(m[n]=I,I=n)}function it(n,t){return n=n>>>0,F().subarray(n/1,n/1+t)}var x=null;function p(){return(x===null||x.buffer.detached===!0||x.buffer.detached===void 0&&x.buffer!==_.memory.buffer)&&(x=new DataView(_.memory.buffer)),x}function T(n,t){return at(n>>>0,t)}var S=null;function F(){return(S===null||S.byteLength===0)&&(S=new Uint8Array(_.memory.buffer)),S}function i(n){return m[n]}function st(n,t){try{return n.apply(this,t)}catch(e){_.__wbindgen_export3(a(e))}}var m=new Array(1024).fill(void 0);m.push(void 0,null,!0,!1);var I=m.length;function w(n){return n==null}function ct(n,t,e){let r={a:n,b:t,cnt:1},o=(...s)=>{r.cnt++;let c=r.a;r.a=0;try{return e(c,r.b,...s)}finally{r.a=c,o._wbg_cb_unref()}};return o._wbg_cb_unref=()=>{--r.cnt===0&&(_.__wbindgen_export4(r.a,r.b),r.a=0,j.unregister(r))},j.register(o,r,r),o}function d(n,t,e){if(e===void 0){let b=k.encode(n),y=t(b.length,1)>>>0;return F().subarray(y,y+b.length).set(b),u=b.length,y}let r=n.length,o=t(r,1)>>>0,s=F(),c=0;for(;c<r;c++){let b=n.charCodeAt(c);if(b>127)break;s[o+c]=b}if(c!==r){c!==0&&(n=n.slice(c)),o=e(o,r,r=c+n.length*3,1)>>>0;let b=F().subarray(o+c,o+r),y=k.encodeInto(n,b);c+=y.written,o=e(o,r,c,1)>>>0}return u=c,o}function g(n){let t=i(n);return _t(n),t}var V=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});V.decode();function at(n,t){return V.decode(F().subarray(n,n+t))}var k=new TextEncoder;"encodeInto"in k||(k.encodeInto=function(n,t){let e=k.encode(n);return t.set(e),{read:n.length,written:e.length}});var u=0,ut=`${__dirname}/mq_wasm_bg.wasm`,ft=require("fs").readFileSync(ut),gt=new WebAssembly.Module(ft),dt=new WebAssembly.Instance(gt,Z()),_=dt.exports});var At={};W(At,{definedValues:()=>yt,diagnostics:()=>pt,format:()=>wt,htmlToMarkdown:()=>ht,inlayHints:()=>mt,run:()=>bt,toAst:()=>lt,toHtml:()=>xt});module.exports=L(At);var f=q(D()),h={run:f.run,toAst:f.toAst,format:f.format,diagnostics:f.diagnostics,inlayHints:f.inlayHints,definedValues:f.definedValues,htmlToMarkdown:f.htmlToMarkdown,toHtml:f.toHtml};async function bt(n,t,e={}){return await h.run(n,t,{isUpdate:!1,inputFormat:"markdown",listStyle:"dash",linkUrlStyle:"none",linkTitleStyle:"paren",...e})}async function lt(n){return await h.toAst(n)}async function wt(n){return await h.format(n)}async function pt(n,t){return await h.diagnostics(n,t)}async function mt(n){return await h.inlayHints(n)}async function yt(n,t){return await h.definedValues(n,t)}async function ht(n,t){return await h.htmlToMarkdown(n,t)}async function xt(n){return await h.toHtml(n)}0&&(module.exports={definedValues,diagnostics,format,htmlToMarkdown,inlayHints,run,toAst,toHtml});
|
package/dist/core.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var D=Object.create;var H=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var R=Object.getOwnPropertyNames;var E=Object.getPrototypeOf,U=Object.prototype.hasOwnProperty;var z=(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(t,e)=>(typeof require<"u"?require:t)[e]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});var C=(n,t)=>()=>(t||n((t={exports:{}}).exports,t),t.exports);var W=(n,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of R(t))!U.call(n,o)&&o!==e&&H(n,o,{get:()=>t[o],enumerable:!(r=v(t,o))||r.enumerable});return n};var q=(n,t,e)=>(e=n!=null?D(E(n)):{},W(t||!n||!n.__esModule?H(e,"default",{value:n,enumerable:!0}):e,n));var V=C(l=>{"use strict";var A=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,nt.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_conversionoptions_free(t,0)}get extract_scripts_as_code_blocks(){return _.__wbg_get_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr)!==0}get generate_front_matter(){return _.__wbg_get_conversionoptions_generate_front_matter(this.__wbg_ptr)!==0}get use_title_as_h1(){return _.__wbg_get_conversionoptions_use_title_as_h1(this.__wbg_ptr)!==0}set extract_scripts_as_code_blocks(t){_.__wbg_set_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr,t)}set generate_front_matter(t){_.__wbg_set_conversionoptions_generate_front_matter(this.__wbg_ptr,t)}set use_title_as_h1(t){_.__wbg_set_conversionoptions_use_title_as_h1(this.__wbg_ptr,t)}};Symbol.dispose&&(A.prototype[Symbol.dispose]=A.prototype.free);l.ConversionOptions=A;var O=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,et.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_runoptions_free(t,0)}};Symbol.dispose&&(O.prototype[Symbol.dispose]=O.prototype.free);l.RunOptions=O;function L(n,t){let e=
|
|
2
|
-
${n.stack}`:r}function ot(n){n<1028||(m[n]=I,I=n)}function _t(n,t){return n=n>>>0,F().subarray(n/1,n/1+t)}var x=null;function p(){return(x===null||x.buffer.detached===!0||x.buffer.detached===void 0&&x.buffer!==_.memory.buffer)&&(x=new DataView(_.memory.buffer)),x}function S(n,t){return n
|
|
1
|
+
var D=Object.create;var H=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var R=Object.getOwnPropertyNames;var E=Object.getPrototypeOf,U=Object.prototype.hasOwnProperty;var z=(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(t,e)=>(typeof require<"u"?require:t)[e]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});var C=(n,t)=>()=>(t||n((t={exports:{}}).exports,t),t.exports);var W=(n,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of R(t))!U.call(n,o)&&o!==e&&H(n,o,{get:()=>t[o],enumerable:!(r=v(t,o))||r.enumerable});return n};var q=(n,t,e)=>(e=n!=null?D(E(n)):{},W(t||!n||!n.__esModule?H(e,"default",{value:n,enumerable:!0}):e,n));var V=C(l=>{"use strict";var A=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,nt.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_conversionoptions_free(t,0)}get extract_scripts_as_code_blocks(){return _.__wbg_get_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr)!==0}get generate_front_matter(){return _.__wbg_get_conversionoptions_generate_front_matter(this.__wbg_ptr)!==0}get use_title_as_h1(){return _.__wbg_get_conversionoptions_use_title_as_h1(this.__wbg_ptr)!==0}set extract_scripts_as_code_blocks(t){_.__wbg_set_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr,t)}set generate_front_matter(t){_.__wbg_set_conversionoptions_generate_front_matter(this.__wbg_ptr,t)}set use_title_as_h1(t){_.__wbg_set_conversionoptions_use_title_as_h1(this.__wbg_ptr,t)}};Symbol.dispose&&(A.prototype[Symbol.dispose]=A.prototype.free);l.ConversionOptions=A;var O=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,et.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_runoptions_free(t,0)}};Symbol.dispose&&(O.prototype[Symbol.dispose]=O.prototype.free);l.RunOptions=O;function L(n,t){let e=d(n,_.__wbindgen_export,_.__wbindgen_export2),r=u;var o=w(t)?0:d(t,_.__wbindgen_export,_.__wbindgen_export2),s=u;let c=_.definedValues(e,r,o,s);return g(c)}l.definedValues=L;function $(n,t){let e=d(n,_.__wbindgen_export,_.__wbindgen_export2),r=u,o=_.diagnostics(e,r,w(t)?16777215:t?1:0);return g(o)}l.diagnostics=$;function B(n){let t=d(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.format(t,e);return g(r)}l.format=B;function N(n,t,e){let r=d(n,_.__wbindgen_export,_.__wbindgen_export2),o=u,s=_.hover(r,o,t,e);return g(s)}l.hover=N;function G(n,t){let e=d(n,_.__wbindgen_export,_.__wbindgen_export2),r=u,o=0;w(t)||(rt(t,A),o=t.__destroy_into_raw());let s=_.htmlToMarkdown(e,r,o);return g(s)}l.htmlToMarkdown=G;function J(n){let t=d(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.inlayHints(t,e);return g(r)}l.inlayHints=J;function K(n,t,e){let r=d(n,_.__wbindgen_export,_.__wbindgen_export2),o=u,s=d(t,_.__wbindgen_export,_.__wbindgen_export2),c=u,b=_.run(r,o,s,c,a(e));return g(b)}l.run=K;function Q(n){let t=d(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.toAst(t,e);return g(r)}l.toAst=Q;function X(n){let t=d(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.toHtml(t,e);return g(r)}l.toHtml=X;function Y(){return{__proto__:null,"./mq_wasm_bg.js":{__proto__:null,__wbg_Error_ef53bc310eb298a0:function(t,e){let r=Error(S(t,e));return a(r)},__wbg_String_8564e559799eccda:function(t,e){let r=String(i(e)),o=d(r,_.__wbindgen_export,_.__wbindgen_export2),s=u;p().setInt32(t+4,s,!0),p().setInt32(t+0,o,!0)},__wbg___wbindgen_boolean_get_1a45e2c38d4d41b9:function(t){let e=i(t),r=typeof e=="boolean"?e:void 0;return w(r)?16777215:r?1:0},__wbg___wbindgen_debug_string_0accd80f45e5faa2:function(t,e){let r=T(i(e)),o=d(r,_.__wbindgen_export,_.__wbindgen_export2),s=u;p().setInt32(t+4,s,!0),p().setInt32(t+0,o,!0)},__wbg___wbindgen_in_70a403a56e771704:function(t,e){return i(t)in i(e)},__wbg___wbindgen_is_function_754e9f305ff6029e:function(t){return typeof i(t)=="function"},__wbg___wbindgen_is_object_56732c2bc353f41d:function(t){let e=i(t);return typeof e=="object"&&e!==null},__wbg___wbindgen_is_string_c236cabd84a4d769:function(t){return typeof i(t)=="string"},__wbg___wbindgen_is_undefined_67b456be8673d3d7:function(t){return i(t)===void 0},__wbg___wbindgen_jsval_loose_eq_2c56564c75129511:function(t,e){return i(t)==i(e)},__wbg___wbindgen_number_get_9bb1761122181af2:function(t,e){let r=i(e),o=typeof r=="number"?r:void 0;p().setFloat64(t+8,w(o)?0:o,!0),p().setInt32(t+0,!w(o),!0)},__wbg___wbindgen_string_get_72bdf95d3ae505b1:function(t,e){let r=i(e),o=typeof r=="string"?r:void 0;var s=w(o)?0:d(o,_.__wbindgen_export,_.__wbindgen_export2),c=u;p().setInt32(t+4,c,!0),p().setInt32(t+0,s,!0)},__wbg___wbindgen_throw_1506f2235d1bdba0:function(t,e){throw new Error(S(t,e))},__wbg__wbg_cb_unref_61db23ac97f16c31:function(t){i(t)._wbg_cb_unref()},__wbg_call_9c758de292015997:function(){return it(function(t,e,r){let o=i(t).call(i(e),i(r));return a(o)},arguments)},__wbg_entries_04b37a02507f1713:function(t){let e=Object.entries(i(t));return a(e)},__wbg_error_78ff5b3a29b770e0:function(t){console.error(i(t))},__wbg_getTimezoneOffset_08e2892156231088:function(t){return i(t).getTimezoneOffset()},__wbg_get_2b48c7d0d006a781:function(t,e){let r=i(t)[e>>>0];return a(r)},__wbg_get_with_ref_key_6412cf3094599694:function(t,e){let r=i(t)[i(e)];return a(r)},__wbg_instanceof_ArrayBuffer_8f49811467741499:function(t){let e;try{e=i(t)instanceof ArrayBuffer}catch{e=!1}return e},__wbg_instanceof_Uint8Array_86f30649f63ef9c2:function(t){let e;try{e=i(t)instanceof Uint8Array}catch{e=!1}return e},__wbg_length_4a591ecaa01354d9:function(t){return i(t).length},__wbg_length_66f1a4b2e9026940:function(t){return i(t).length},__wbg_log_cf2e968649f3384e:function(t){console.log(i(t))},__wbg_new_578aeef4b6b94378:function(t){let e=new Uint8Array(i(t));return a(e)},__wbg_new_6d75fd236f920a62:function(t){let e=new Date(i(t));return a(e)},__wbg_new_ce1ab61c1c2b300d:function(){let t=new Object;return a(t)},__wbg_new_d90091b82fdf5b91:function(){let t=new Array;return a(t)},__wbg_new_typed_bf31d18f92484486:function(t,e){try{var r={a:t,b:e},o=(c,b)=>{let y=r.a;r.a=0;try{return tt(y,r.b,c,b)}finally{r.a=y}};let s=new Promise(o);return a(s)}finally{r.a=0}},__wbg_prototypesetcall_3249fc62a0fafa30:function(t,e,r){Uint8Array.prototype.set.call(_t(t,e),i(r))},__wbg_queueMicrotask_35c611f4a14830b2:function(t){queueMicrotask(i(t))},__wbg_queueMicrotask_404ed0a58e0b63cc:function(t){let e=i(t).queueMicrotask;return a(e)},__wbg_resolve_25a7e548d5881dca:function(t){let e=Promise.resolve(i(t));return a(e)},__wbg_set_6be42768c690e380:function(t,e,r){i(t)[g(e)]=g(r)},__wbg_set_dca99999bba88a9a:function(t,e,r){i(t)[e>>>0]=g(r)},__wbg_static_accessor_GLOBAL_9d53f2689e622ca1:function(){let t=typeof global>"u"?null:global;return w(t)?0:a(t)},__wbg_static_accessor_GLOBAL_THIS_a1a35cec07001a8a:function(){let t=typeof globalThis>"u"?null:globalThis;return w(t)?0:a(t)},__wbg_static_accessor_SELF_4c59f6c7ea29a144:function(){let t=typeof self>"u"?null:self;return w(t)?0:a(t)},__wbg_static_accessor_WINDOW_e70ae9f2eb052253:function(){let t=typeof window>"u"?null:window;return w(t)?0:a(t)},__wbg_then_ac7b025999b52837:function(t,e){let r=i(t).then(i(e));return a(r)},__wbindgen_cast_0000000000000001:function(t,e){let r=st(t,e,Z);return a(r)},__wbindgen_cast_0000000000000002:function(t){return a(t)},__wbindgen_cast_0000000000000003:function(t,e){let r=S(t,e);return a(r)},__wbindgen_object_clone_ref:function(t){let e=i(t);return a(e)},__wbindgen_object_drop_ref:function(t){g(t)}}}}function Z(n,t,e){try{let s=_.__wbindgen_add_to_stack_pointer(-16);_.__wasm_bindgen_func_elem_1102(s,n,t,a(e));var r=p().getInt32(s+0,!0),o=p().getInt32(s+4,!0);if(o)throw g(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}function tt(n,t,e,r){_.__wasm_bindgen_func_elem_1389(n,t,a(e),a(r))}var nt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbg_conversionoptions_free(n,1)),et=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbg_runoptions_free(n,1));function a(n){I===m.length&&m.push(m.length+1);let t=I;return I=m[t],m[t]=n,t}function rt(n,t){if(!(n instanceof t))throw new Error(`expected instance of ${t.name}`)}var P=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbindgen_export4(n.a,n.b));function T(n){let t=typeof n;if(t=="number"||t=="boolean"||n==null)return`${n}`;if(t=="string")return`"${n}"`;if(t=="symbol"){let o=n.description;return o==null?"Symbol":`Symbol(${o})`}if(t=="function"){let o=n.name;return typeof o=="string"&&o.length>0?`Function(${o})`:"Function"}if(Array.isArray(n)){let o=n.length,s="[";o>0&&(s+=T(n[0]));for(let c=1;c<o;c++)s+=", "+T(n[c]);return s+="]",s}let e=/\[object ([^\]]+)\]/.exec(toString.call(n)),r;if(e&&e.length>1)r=e[1];else return toString.call(n);if(r=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message}
|
|
2
|
+
${n.stack}`:r}function ot(n){n<1028||(m[n]=I,I=n)}function _t(n,t){return n=n>>>0,F().subarray(n/1,n/1+t)}var x=null;function p(){return(x===null||x.buffer.detached===!0||x.buffer.detached===void 0&&x.buffer!==_.memory.buffer)&&(x=new DataView(_.memory.buffer)),x}function S(n,t){return ct(n>>>0,t)}var M=null;function F(){return(M===null||M.byteLength===0)&&(M=new Uint8Array(_.memory.buffer)),M}function i(n){return m[n]}function it(n,t){try{return n.apply(this,t)}catch(e){_.__wbindgen_export3(a(e))}}var m=new Array(1024).fill(void 0);m.push(void 0,null,!0,!1);var I=m.length;function w(n){return n==null}function st(n,t,e){let r={a:n,b:t,cnt:1},o=(...s)=>{r.cnt++;let c=r.a;r.a=0;try{return e(c,r.b,...s)}finally{r.a=c,o._wbg_cb_unref()}};return o._wbg_cb_unref=()=>{--r.cnt===0&&(_.__wbindgen_export4(r.a,r.b),r.a=0,P.unregister(r))},P.register(o,r,r),o}function d(n,t,e){if(e===void 0){let b=k.encode(n),y=t(b.length,1)>>>0;return F().subarray(y,y+b.length).set(b),u=b.length,y}let r=n.length,o=t(r,1)>>>0,s=F(),c=0;for(;c<r;c++){let b=n.charCodeAt(c);if(b>127)break;s[o+c]=b}if(c!==r){c!==0&&(n=n.slice(c)),o=e(o,r,r=c+n.length*3,1)>>>0;let b=F().subarray(o+c,o+r),y=k.encodeInto(n,b);c+=y.written,o=e(o,r,c,1)>>>0}return u=c,o}function g(n){let t=i(n);return ot(n),t}var j=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});j.decode();function ct(n,t){return j.decode(F().subarray(n,n+t))}var k=new TextEncoder;"encodeInto"in k||(k.encodeInto=function(n,t){let e=k.encode(n);return t.set(e),{read:n.length,written:e.length}});var u=0,at=`${__dirname}/mq_wasm_bg.wasm`,ut=z("fs").readFileSync(at),ft=new WebAssembly.Module(ut),gt=new WebAssembly.Instance(ft,Y()),_=gt.exports});var f=q(V()),h={run:f.run,toAst:f.toAst,format:f.format,diagnostics:f.diagnostics,inlayHints:f.inlayHints,definedValues:f.definedValues,htmlToMarkdown:f.htmlToMarkdown,toHtml:f.toHtml};async function lt(n,t,e={}){return await h.run(n,t,{isUpdate:!1,inputFormat:"markdown",listStyle:"dash",linkUrlStyle:"none",linkTitleStyle:"paren",...e})}async function wt(n){return await h.toAst(n)}async function pt(n){return await h.format(n)}async function mt(n,t){return await h.diagnostics(n,t)}async function yt(n){return await h.inlayHints(n)}async function ht(n,t){return await h.definedValues(n,t)}async function xt(n,t){return await h.htmlToMarkdown(n,t)}async function At(n){return await h.toHtml(n)}export{ht as definedValues,mt as diagnostics,pt as format,xt as htmlToMarkdown,yt as inlayHints,lt as run,wt as toAst,At as toHtml};
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var L=Object.create;var M=Object.defineProperty;var $=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var N=Object.getPrototypeOf,G=Object.prototype.hasOwnProperty;var J=(n,t)=>()=>(t||n((t={exports:{}}).exports,t),t.exports),K=(n,t)=>{for(var e in t)M(n,e,{get:t[e],enumerable:!0})},j=(n,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of B(t))!G.call(n,o)&&o!==e&&M(n,o,{get:()=>t[o],enumerable:!(r=$(t,o))||r.enumerable});return n};var Q=(n,t,e)=>(e=n!=null?L(N(n)):{},j(t||!n||!n.__esModule?M(e,"default",{value:n,enumerable:!0}):e,n)),X=n=>j(M({},"__esModule",{value:!0}),n);var D=J(l=>{"use strict";var A=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,ut.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_conversionoptions_free(t,0)}get extract_scripts_as_code_blocks(){return _.__wbg_get_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr)!==0}get generate_front_matter(){return _.__wbg_get_conversionoptions_generate_front_matter(this.__wbg_ptr)!==0}get use_title_as_h1(){return _.__wbg_get_conversionoptions_use_title_as_h1(this.__wbg_ptr)!==0}set extract_scripts_as_code_blocks(t){_.__wbg_set_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr,t)}set generate_front_matter(t){_.__wbg_set_conversionoptions_generate_front_matter(this.__wbg_ptr,t)}set use_title_as_h1(t){_.__wbg_set_conversionoptions_use_title_as_h1(this.__wbg_ptr,t)}};Symbol.dispose&&(A.prototype[Symbol.dispose]=A.prototype.free);l.ConversionOptions=A;var O=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,ft.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_runoptions_free(t,0)}};Symbol.dispose&&(O.prototype[Symbol.dispose]=O.prototype.free);l.RunOptions=O;function Y(n,t){let e=
|
|
2
|
-
${n.stack}`:r}function
|
|
1
|
+
"use strict";var L=Object.create;var M=Object.defineProperty;var $=Object.getOwnPropertyDescriptor;var B=Object.getOwnPropertyNames;var N=Object.getPrototypeOf,G=Object.prototype.hasOwnProperty;var J=(n,t)=>()=>(t||n((t={exports:{}}).exports,t),t.exports),K=(n,t)=>{for(var e in t)M(n,e,{get:t[e],enumerable:!0})},j=(n,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of B(t))!G.call(n,o)&&o!==e&&M(n,o,{get:()=>t[o],enumerable:!(r=$(t,o))||r.enumerable});return n};var Q=(n,t,e)=>(e=n!=null?L(N(n)):{},j(t||!n||!n.__esModule?M(e,"default",{value:n,enumerable:!0}):e,n)),X=n=>j(M({},"__esModule",{value:!0}),n);var D=J(l=>{"use strict";var A=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,ut.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_conversionoptions_free(t,0)}get extract_scripts_as_code_blocks(){return _.__wbg_get_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr)!==0}get generate_front_matter(){return _.__wbg_get_conversionoptions_generate_front_matter(this.__wbg_ptr)!==0}get use_title_as_h1(){return _.__wbg_get_conversionoptions_use_title_as_h1(this.__wbg_ptr)!==0}set extract_scripts_as_code_blocks(t){_.__wbg_set_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr,t)}set generate_front_matter(t){_.__wbg_set_conversionoptions_generate_front_matter(this.__wbg_ptr,t)}set use_title_as_h1(t){_.__wbg_set_conversionoptions_use_title_as_h1(this.__wbg_ptr,t)}};Symbol.dispose&&(A.prototype[Symbol.dispose]=A.prototype.free);l.ConversionOptions=A;var O=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,ft.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_runoptions_free(t,0)}};Symbol.dispose&&(O.prototype[Symbol.dispose]=O.prototype.free);l.RunOptions=O;function Y(n,t){let e=d(n,_.__wbindgen_export,_.__wbindgen_export2),r=u;var o=w(t)?0:d(t,_.__wbindgen_export,_.__wbindgen_export2),s=u;let c=_.definedValues(e,r,o,s);return g(c)}l.definedValues=Y;function Z(n,t){let e=d(n,_.__wbindgen_export,_.__wbindgen_export2),r=u,o=_.diagnostics(e,r,w(t)?16777215:t?1:0);return g(o)}l.diagnostics=Z;function tt(n){let t=d(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.format(t,e);return g(r)}l.format=tt;function nt(n,t,e){let r=d(n,_.__wbindgen_export,_.__wbindgen_export2),o=u,s=_.hover(r,o,t,e);return g(s)}l.hover=nt;function et(n,t){let e=d(n,_.__wbindgen_export,_.__wbindgen_export2),r=u,o=0;w(t)||(gt(t,A),o=t.__destroy_into_raw());let s=_.htmlToMarkdown(e,r,o);return g(s)}l.htmlToMarkdown=et;function rt(n){let t=d(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.inlayHints(t,e);return g(r)}l.inlayHints=rt;function ot(n,t,e){let r=d(n,_.__wbindgen_export,_.__wbindgen_export2),o=u,s=d(t,_.__wbindgen_export,_.__wbindgen_export2),c=u,b=_.run(r,o,s,c,a(e));return g(b)}l.run=ot;function _t(n){let t=d(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.toAst(t,e);return g(r)}l.toAst=_t;function it(n){let t=d(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.toHtml(t,e);return g(r)}l.toHtml=it;function st(){return{__proto__:null,"./mq_wasm_bg.js":{__proto__:null,__wbg_Error_ef53bc310eb298a0:function(t,e){let r=Error(H(t,e));return a(r)},__wbg_String_8564e559799eccda:function(t,e){let r=String(i(e)),o=d(r,_.__wbindgen_export,_.__wbindgen_export2),s=u;p().setInt32(t+4,s,!0),p().setInt32(t+0,o,!0)},__wbg___wbindgen_boolean_get_1a45e2c38d4d41b9:function(t){let e=i(t),r=typeof e=="boolean"?e:void 0;return w(r)?16777215:r?1:0},__wbg___wbindgen_debug_string_0accd80f45e5faa2:function(t,e){let r=S(i(e)),o=d(r,_.__wbindgen_export,_.__wbindgen_export2),s=u;p().setInt32(t+4,s,!0),p().setInt32(t+0,o,!0)},__wbg___wbindgen_in_70a403a56e771704:function(t,e){return i(t)in i(e)},__wbg___wbindgen_is_function_754e9f305ff6029e:function(t){return typeof i(t)=="function"},__wbg___wbindgen_is_object_56732c2bc353f41d:function(t){let e=i(t);return typeof e=="object"&&e!==null},__wbg___wbindgen_is_string_c236cabd84a4d769:function(t){return typeof i(t)=="string"},__wbg___wbindgen_is_undefined_67b456be8673d3d7:function(t){return i(t)===void 0},__wbg___wbindgen_jsval_loose_eq_2c56564c75129511:function(t,e){return i(t)==i(e)},__wbg___wbindgen_number_get_9bb1761122181af2:function(t,e){let r=i(e),o=typeof r=="number"?r:void 0;p().setFloat64(t+8,w(o)?0:o,!0),p().setInt32(t+0,!w(o),!0)},__wbg___wbindgen_string_get_72bdf95d3ae505b1:function(t,e){let r=i(e),o=typeof r=="string"?r:void 0;var s=w(o)?0:d(o,_.__wbindgen_export,_.__wbindgen_export2),c=u;p().setInt32(t+4,c,!0),p().setInt32(t+0,s,!0)},__wbg___wbindgen_throw_1506f2235d1bdba0:function(t,e){throw new Error(H(t,e))},__wbg__wbg_cb_unref_61db23ac97f16c31:function(t){i(t)._wbg_cb_unref()},__wbg_call_9c758de292015997:function(){return lt(function(t,e,r){let o=i(t).call(i(e),i(r));return a(o)},arguments)},__wbg_entries_04b37a02507f1713:function(t){let e=Object.entries(i(t));return a(e)},__wbg_error_78ff5b3a29b770e0:function(t){console.error(i(t))},__wbg_getTimezoneOffset_08e2892156231088:function(t){return i(t).getTimezoneOffset()},__wbg_get_2b48c7d0d006a781:function(t,e){let r=i(t)[e>>>0];return a(r)},__wbg_get_with_ref_key_6412cf3094599694:function(t,e){let r=i(t)[i(e)];return a(r)},__wbg_instanceof_ArrayBuffer_8f49811467741499:function(t){let e;try{e=i(t)instanceof ArrayBuffer}catch{e=!1}return e},__wbg_instanceof_Uint8Array_86f30649f63ef9c2:function(t){let e;try{e=i(t)instanceof Uint8Array}catch{e=!1}return e},__wbg_length_4a591ecaa01354d9:function(t){return i(t).length},__wbg_length_66f1a4b2e9026940:function(t){return i(t).length},__wbg_log_cf2e968649f3384e:function(t){console.log(i(t))},__wbg_new_578aeef4b6b94378:function(t){let e=new Uint8Array(i(t));return a(e)},__wbg_new_6d75fd236f920a62:function(t){let e=new Date(i(t));return a(e)},__wbg_new_ce1ab61c1c2b300d:function(){let t=new Object;return a(t)},__wbg_new_d90091b82fdf5b91:function(){let t=new Array;return a(t)},__wbg_new_typed_bf31d18f92484486:function(t,e){try{var r={a:t,b:e},o=(c,b)=>{let y=r.a;r.a=0;try{return at(y,r.b,c,b)}finally{r.a=y}};let s=new Promise(o);return a(s)}finally{r.a=0}},__wbg_prototypesetcall_3249fc62a0fafa30:function(t,e,r){Uint8Array.prototype.set.call(bt(t,e),i(r))},__wbg_queueMicrotask_35c611f4a14830b2:function(t){queueMicrotask(i(t))},__wbg_queueMicrotask_404ed0a58e0b63cc:function(t){let e=i(t).queueMicrotask;return a(e)},__wbg_resolve_25a7e548d5881dca:function(t){let e=Promise.resolve(i(t));return a(e)},__wbg_set_6be42768c690e380:function(t,e,r){i(t)[g(e)]=g(r)},__wbg_set_dca99999bba88a9a:function(t,e,r){i(t)[e>>>0]=g(r)},__wbg_static_accessor_GLOBAL_9d53f2689e622ca1:function(){let t=typeof global>"u"?null:global;return w(t)?0:a(t)},__wbg_static_accessor_GLOBAL_THIS_a1a35cec07001a8a:function(){let t=typeof globalThis>"u"?null:globalThis;return w(t)?0:a(t)},__wbg_static_accessor_SELF_4c59f6c7ea29a144:function(){let t=typeof self>"u"?null:self;return w(t)?0:a(t)},__wbg_static_accessor_WINDOW_e70ae9f2eb052253:function(){let t=typeof window>"u"?null:window;return w(t)?0:a(t)},__wbg_then_ac7b025999b52837:function(t,e){let r=i(t).then(i(e));return a(r)},__wbindgen_cast_0000000000000001:function(t,e){let r=wt(t,e,ct);return a(r)},__wbindgen_cast_0000000000000002:function(t){return a(t)},__wbindgen_cast_0000000000000003:function(t,e){let r=H(t,e);return a(r)},__wbindgen_object_clone_ref:function(t){let e=i(t);return a(e)},__wbindgen_object_drop_ref:function(t){g(t)}}}}function ct(n,t,e){try{let s=_.__wbindgen_add_to_stack_pointer(-16);_.__wasm_bindgen_func_elem_1102(s,n,t,a(e));var r=p().getInt32(s+0,!0),o=p().getInt32(s+4,!0);if(o)throw g(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}function at(n,t,e,r){_.__wasm_bindgen_func_elem_1389(n,t,a(e),a(r))}var ut=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbg_conversionoptions_free(n,1)),ft=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbg_runoptions_free(n,1));function a(n){F===m.length&&m.push(m.length+1);let t=F;return F=m[t],m[t]=n,t}function gt(n,t){if(!(n instanceof t))throw new Error(`expected instance of ${t.name}`)}var P=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbindgen_export4(n.a,n.b));function S(n){let t=typeof n;if(t=="number"||t=="boolean"||n==null)return`${n}`;if(t=="string")return`"${n}"`;if(t=="symbol"){let o=n.description;return o==null?"Symbol":`Symbol(${o})`}if(t=="function"){let o=n.name;return typeof o=="string"&&o.length>0?`Function(${o})`:"Function"}if(Array.isArray(n)){let o=n.length,s="[";o>0&&(s+=S(n[0]));for(let c=1;c<o;c++)s+=", "+S(n[c]);return s+="]",s}let e=/\[object ([^\]]+)\]/.exec(toString.call(n)),r;if(e&&e.length>1)r=e[1];else return toString.call(n);if(r=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message}
|
|
2
|
+
${n.stack}`:r}function dt(n){n<1028||(m[n]=F,F=n)}function bt(n,t){return n=n>>>0,I().subarray(n/1,n/1+t)}var x=null;function p(){return(x===null||x.buffer.detached===!0||x.buffer.detached===void 0&&x.buffer!==_.memory.buffer)&&(x=new DataView(_.memory.buffer)),x}function H(n,t){return pt(n>>>0,t)}var T=null;function I(){return(T===null||T.byteLength===0)&&(T=new Uint8Array(_.memory.buffer)),T}function i(n){return m[n]}function lt(n,t){try{return n.apply(this,t)}catch(e){_.__wbindgen_export3(a(e))}}var m=new Array(1024).fill(void 0);m.push(void 0,null,!0,!1);var F=m.length;function w(n){return n==null}function wt(n,t,e){let r={a:n,b:t,cnt:1},o=(...s)=>{r.cnt++;let c=r.a;r.a=0;try{return e(c,r.b,...s)}finally{r.a=c,o._wbg_cb_unref()}};return o._wbg_cb_unref=()=>{--r.cnt===0&&(_.__wbindgen_export4(r.a,r.b),r.a=0,P.unregister(r))},P.register(o,r,r),o}function d(n,t,e){if(e===void 0){let b=k.encode(n),y=t(b.length,1)>>>0;return I().subarray(y,y+b.length).set(b),u=b.length,y}let r=n.length,o=t(r,1)>>>0,s=I(),c=0;for(;c<r;c++){let b=n.charCodeAt(c);if(b>127)break;s[o+c]=b}if(c!==r){c!==0&&(n=n.slice(c)),o=e(o,r,r=c+n.length*3,1)>>>0;let b=I().subarray(o+c,o+r),y=k.encodeInto(n,b);c+=y.written,o=e(o,r,c,1)>>>0}return u=c,o}function g(n){let t=i(n);return dt(n),t}var V=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});V.decode();function pt(n,t){return V.decode(I().subarray(n,n+t))}var k=new TextEncoder;"encodeInto"in k||(k.encodeInto=function(n,t){let e=k.encode(n);return t.set(e),{read:n.length,written:e.length}});var u=0,mt=`${__dirname}/mq_wasm_bg.wasm`,yt=require("fs").readFileSync(mt),ht=new WebAssembly.Module(yt),xt=new WebAssembly.Instance(ht,st()),_=xt.exports});var At={};K(At,{definedValues:()=>z,diagnostics:()=>U,format:()=>E,htmlToMarkdown:()=>C,inlayHints:()=>q,run:()=>v,toAst:()=>R,toHtml:()=>W});module.exports=X(At);var f=Q(D()),h={run:f.run,toAst:f.toAst,format:f.format,diagnostics:f.diagnostics,inlayHints:f.inlayHints,definedValues:f.definedValues,htmlToMarkdown:f.htmlToMarkdown,toHtml:f.toHtml};async function v(n,t,e={}){return await h.run(n,t,{isUpdate:!1,inputFormat:"markdown",listStyle:"dash",linkUrlStyle:"none",linkTitleStyle:"paren",...e})}async function R(n){return await h.toAst(n)}async function E(n){return await h.format(n)}async function U(n,t){return await h.diagnostics(n,t)}async function q(n){return await h.inlayHints(n)}async function z(n,t){return await h.definedValues(n,t)}async function C(n,t){return await h.htmlToMarkdown(n,t)}async function W(n){return await h.toHtml(n)}0&&(module.exports={definedValues,diagnostics,format,htmlToMarkdown,inlayHints,run,toAst,toHtml});
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var D=Object.create;var S=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var R=Object.getOwnPropertyNames;var E=Object.getPrototypeOf,U=Object.prototype.hasOwnProperty;var q=(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(t,e)=>(typeof require<"u"?require:t)[e]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});var z=(n,t)=>()=>(t||n((t={exports:{}}).exports,t),t.exports);var C=(n,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of R(t))!U.call(n,o)&&o!==e&&S(n,o,{get:()=>t[o],enumerable:!(r=v(t,o))||r.enumerable});return n};var W=(n,t,e)=>(e=n!=null?D(E(n)):{},C(t||!n||!n.__esModule?S(e,"default",{value:n,enumerable:!0}):e,n));var V=z(l=>{"use strict";var A=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,nt.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_conversionoptions_free(t,0)}get extract_scripts_as_code_blocks(){return _.__wbg_get_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr)!==0}get generate_front_matter(){return _.__wbg_get_conversionoptions_generate_front_matter(this.__wbg_ptr)!==0}get use_title_as_h1(){return _.__wbg_get_conversionoptions_use_title_as_h1(this.__wbg_ptr)!==0}set extract_scripts_as_code_blocks(t){_.__wbg_set_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr,t)}set generate_front_matter(t){_.__wbg_set_conversionoptions_generate_front_matter(this.__wbg_ptr,t)}set use_title_as_h1(t){_.__wbg_set_conversionoptions_use_title_as_h1(this.__wbg_ptr,t)}};Symbol.dispose&&(A.prototype[Symbol.dispose]=A.prototype.free);l.ConversionOptions=A;var O=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,et.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_runoptions_free(t,0)}};Symbol.dispose&&(O.prototype[Symbol.dispose]=O.prototype.free);l.RunOptions=O;function L(n,t){let e=
|
|
2
|
-
${n.stack}`:r}function ot(n){n<1028||(m[n]=
|
|
1
|
+
var D=Object.create;var S=Object.defineProperty;var v=Object.getOwnPropertyDescriptor;var R=Object.getOwnPropertyNames;var E=Object.getPrototypeOf,U=Object.prototype.hasOwnProperty;var q=(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(t,e)=>(typeof require<"u"?require:t)[e]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});var z=(n,t)=>()=>(t||n((t={exports:{}}).exports,t),t.exports);var C=(n,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of R(t))!U.call(n,o)&&o!==e&&S(n,o,{get:()=>t[o],enumerable:!(r=v(t,o))||r.enumerable});return n};var W=(n,t,e)=>(e=n!=null?D(E(n)):{},C(t||!n||!n.__esModule?S(e,"default",{value:n,enumerable:!0}):e,n));var V=z(l=>{"use strict";var A=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,nt.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_conversionoptions_free(t,0)}get extract_scripts_as_code_blocks(){return _.__wbg_get_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr)!==0}get generate_front_matter(){return _.__wbg_get_conversionoptions_generate_front_matter(this.__wbg_ptr)!==0}get use_title_as_h1(){return _.__wbg_get_conversionoptions_use_title_as_h1(this.__wbg_ptr)!==0}set extract_scripts_as_code_blocks(t){_.__wbg_set_conversionoptions_extract_scripts_as_code_blocks(this.__wbg_ptr,t)}set generate_front_matter(t){_.__wbg_set_conversionoptions_generate_front_matter(this.__wbg_ptr,t)}set use_title_as_h1(t){_.__wbg_set_conversionoptions_use_title_as_h1(this.__wbg_ptr,t)}};Symbol.dispose&&(A.prototype[Symbol.dispose]=A.prototype.free);l.ConversionOptions=A;var O=class{__destroy_into_raw(){let t=this.__wbg_ptr;return this.__wbg_ptr=0,et.unregister(this),t}free(){let t=this.__destroy_into_raw();_.__wbg_runoptions_free(t,0)}};Symbol.dispose&&(O.prototype[Symbol.dispose]=O.prototype.free);l.RunOptions=O;function L(n,t){let e=d(n,_.__wbindgen_export,_.__wbindgen_export2),r=u;var o=w(t)?0:d(t,_.__wbindgen_export,_.__wbindgen_export2),s=u;let c=_.definedValues(e,r,o,s);return g(c)}l.definedValues=L;function $(n,t){let e=d(n,_.__wbindgen_export,_.__wbindgen_export2),r=u,o=_.diagnostics(e,r,w(t)?16777215:t?1:0);return g(o)}l.diagnostics=$;function B(n){let t=d(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.format(t,e);return g(r)}l.format=B;function N(n,t,e){let r=d(n,_.__wbindgen_export,_.__wbindgen_export2),o=u,s=_.hover(r,o,t,e);return g(s)}l.hover=N;function G(n,t){let e=d(n,_.__wbindgen_export,_.__wbindgen_export2),r=u,o=0;w(t)||(rt(t,A),o=t.__destroy_into_raw());let s=_.htmlToMarkdown(e,r,o);return g(s)}l.htmlToMarkdown=G;function J(n){let t=d(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.inlayHints(t,e);return g(r)}l.inlayHints=J;function K(n,t,e){let r=d(n,_.__wbindgen_export,_.__wbindgen_export2),o=u,s=d(t,_.__wbindgen_export,_.__wbindgen_export2),c=u,b=_.run(r,o,s,c,a(e));return g(b)}l.run=K;function Q(n){let t=d(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.toAst(t,e);return g(r)}l.toAst=Q;function X(n){let t=d(n,_.__wbindgen_export,_.__wbindgen_export2),e=u,r=_.toHtml(t,e);return g(r)}l.toHtml=X;function Y(){return{__proto__:null,"./mq_wasm_bg.js":{__proto__:null,__wbg_Error_ef53bc310eb298a0:function(t,e){let r=Error(T(t,e));return a(r)},__wbg_String_8564e559799eccda:function(t,e){let r=String(i(e)),o=d(r,_.__wbindgen_export,_.__wbindgen_export2),s=u;p().setInt32(t+4,s,!0),p().setInt32(t+0,o,!0)},__wbg___wbindgen_boolean_get_1a45e2c38d4d41b9:function(t){let e=i(t),r=typeof e=="boolean"?e:void 0;return w(r)?16777215:r?1:0},__wbg___wbindgen_debug_string_0accd80f45e5faa2:function(t,e){let r=H(i(e)),o=d(r,_.__wbindgen_export,_.__wbindgen_export2),s=u;p().setInt32(t+4,s,!0),p().setInt32(t+0,o,!0)},__wbg___wbindgen_in_70a403a56e771704:function(t,e){return i(t)in i(e)},__wbg___wbindgen_is_function_754e9f305ff6029e:function(t){return typeof i(t)=="function"},__wbg___wbindgen_is_object_56732c2bc353f41d:function(t){let e=i(t);return typeof e=="object"&&e!==null},__wbg___wbindgen_is_string_c236cabd84a4d769:function(t){return typeof i(t)=="string"},__wbg___wbindgen_is_undefined_67b456be8673d3d7:function(t){return i(t)===void 0},__wbg___wbindgen_jsval_loose_eq_2c56564c75129511:function(t,e){return i(t)==i(e)},__wbg___wbindgen_number_get_9bb1761122181af2:function(t,e){let r=i(e),o=typeof r=="number"?r:void 0;p().setFloat64(t+8,w(o)?0:o,!0),p().setInt32(t+0,!w(o),!0)},__wbg___wbindgen_string_get_72bdf95d3ae505b1:function(t,e){let r=i(e),o=typeof r=="string"?r:void 0;var s=w(o)?0:d(o,_.__wbindgen_export,_.__wbindgen_export2),c=u;p().setInt32(t+4,c,!0),p().setInt32(t+0,s,!0)},__wbg___wbindgen_throw_1506f2235d1bdba0:function(t,e){throw new Error(T(t,e))},__wbg__wbg_cb_unref_61db23ac97f16c31:function(t){i(t)._wbg_cb_unref()},__wbg_call_9c758de292015997:function(){return it(function(t,e,r){let o=i(t).call(i(e),i(r));return a(o)},arguments)},__wbg_entries_04b37a02507f1713:function(t){let e=Object.entries(i(t));return a(e)},__wbg_error_78ff5b3a29b770e0:function(t){console.error(i(t))},__wbg_getTimezoneOffset_08e2892156231088:function(t){return i(t).getTimezoneOffset()},__wbg_get_2b48c7d0d006a781:function(t,e){let r=i(t)[e>>>0];return a(r)},__wbg_get_with_ref_key_6412cf3094599694:function(t,e){let r=i(t)[i(e)];return a(r)},__wbg_instanceof_ArrayBuffer_8f49811467741499:function(t){let e;try{e=i(t)instanceof ArrayBuffer}catch{e=!1}return e},__wbg_instanceof_Uint8Array_86f30649f63ef9c2:function(t){let e;try{e=i(t)instanceof Uint8Array}catch{e=!1}return e},__wbg_length_4a591ecaa01354d9:function(t){return i(t).length},__wbg_length_66f1a4b2e9026940:function(t){return i(t).length},__wbg_log_cf2e968649f3384e:function(t){console.log(i(t))},__wbg_new_578aeef4b6b94378:function(t){let e=new Uint8Array(i(t));return a(e)},__wbg_new_6d75fd236f920a62:function(t){let e=new Date(i(t));return a(e)},__wbg_new_ce1ab61c1c2b300d:function(){let t=new Object;return a(t)},__wbg_new_d90091b82fdf5b91:function(){let t=new Array;return a(t)},__wbg_new_typed_bf31d18f92484486:function(t,e){try{var r={a:t,b:e},o=(c,b)=>{let y=r.a;r.a=0;try{return tt(y,r.b,c,b)}finally{r.a=y}};let s=new Promise(o);return a(s)}finally{r.a=0}},__wbg_prototypesetcall_3249fc62a0fafa30:function(t,e,r){Uint8Array.prototype.set.call(_t(t,e),i(r))},__wbg_queueMicrotask_35c611f4a14830b2:function(t){queueMicrotask(i(t))},__wbg_queueMicrotask_404ed0a58e0b63cc:function(t){let e=i(t).queueMicrotask;return a(e)},__wbg_resolve_25a7e548d5881dca:function(t){let e=Promise.resolve(i(t));return a(e)},__wbg_set_6be42768c690e380:function(t,e,r){i(t)[g(e)]=g(r)},__wbg_set_dca99999bba88a9a:function(t,e,r){i(t)[e>>>0]=g(r)},__wbg_static_accessor_GLOBAL_9d53f2689e622ca1:function(){let t=typeof global>"u"?null:global;return w(t)?0:a(t)},__wbg_static_accessor_GLOBAL_THIS_a1a35cec07001a8a:function(){let t=typeof globalThis>"u"?null:globalThis;return w(t)?0:a(t)},__wbg_static_accessor_SELF_4c59f6c7ea29a144:function(){let t=typeof self>"u"?null:self;return w(t)?0:a(t)},__wbg_static_accessor_WINDOW_e70ae9f2eb052253:function(){let t=typeof window>"u"?null:window;return w(t)?0:a(t)},__wbg_then_ac7b025999b52837:function(t,e){let r=i(t).then(i(e));return a(r)},__wbindgen_cast_0000000000000001:function(t,e){let r=st(t,e,Z);return a(r)},__wbindgen_cast_0000000000000002:function(t){return a(t)},__wbindgen_cast_0000000000000003:function(t,e){let r=T(t,e);return a(r)},__wbindgen_object_clone_ref:function(t){let e=i(t);return a(e)},__wbindgen_object_drop_ref:function(t){g(t)}}}}function Z(n,t,e){try{let s=_.__wbindgen_add_to_stack_pointer(-16);_.__wasm_bindgen_func_elem_1102(s,n,t,a(e));var r=p().getInt32(s+0,!0),o=p().getInt32(s+4,!0);if(o)throw g(r)}finally{_.__wbindgen_add_to_stack_pointer(16)}}function tt(n,t,e,r){_.__wasm_bindgen_func_elem_1389(n,t,a(e),a(r))}var nt=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbg_conversionoptions_free(n,1)),et=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbg_runoptions_free(n,1));function a(n){F===m.length&&m.push(m.length+1);let t=F;return F=m[t],m[t]=n,t}function rt(n,t){if(!(n instanceof t))throw new Error(`expected instance of ${t.name}`)}var j=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(n=>_.__wbindgen_export4(n.a,n.b));function H(n){let t=typeof n;if(t=="number"||t=="boolean"||n==null)return`${n}`;if(t=="string")return`"${n}"`;if(t=="symbol"){let o=n.description;return o==null?"Symbol":`Symbol(${o})`}if(t=="function"){let o=n.name;return typeof o=="string"&&o.length>0?`Function(${o})`:"Function"}if(Array.isArray(n)){let o=n.length,s="[";o>0&&(s+=H(n[0]));for(let c=1;c<o;c++)s+=", "+H(n[c]);return s+="]",s}let e=/\[object ([^\]]+)\]/.exec(toString.call(n)),r;if(e&&e.length>1)r=e[1];else return toString.call(n);if(r=="Object")try{return"Object("+JSON.stringify(n)+")"}catch{return"Object"}return n instanceof Error?`${n.name}: ${n.message}
|
|
2
|
+
${n.stack}`:r}function ot(n){n<1028||(m[n]=F,F=n)}function _t(n,t){return n=n>>>0,I().subarray(n/1,n/1+t)}var x=null;function p(){return(x===null||x.buffer.detached===!0||x.buffer.detached===void 0&&x.buffer!==_.memory.buffer)&&(x=new DataView(_.memory.buffer)),x}function T(n,t){return ct(n>>>0,t)}var M=null;function I(){return(M===null||M.byteLength===0)&&(M=new Uint8Array(_.memory.buffer)),M}function i(n){return m[n]}function it(n,t){try{return n.apply(this,t)}catch(e){_.__wbindgen_export3(a(e))}}var m=new Array(1024).fill(void 0);m.push(void 0,null,!0,!1);var F=m.length;function w(n){return n==null}function st(n,t,e){let r={a:n,b:t,cnt:1},o=(...s)=>{r.cnt++;let c=r.a;r.a=0;try{return e(c,r.b,...s)}finally{r.a=c,o._wbg_cb_unref()}};return o._wbg_cb_unref=()=>{--r.cnt===0&&(_.__wbindgen_export4(r.a,r.b),r.a=0,j.unregister(r))},j.register(o,r,r),o}function d(n,t,e){if(e===void 0){let b=k.encode(n),y=t(b.length,1)>>>0;return I().subarray(y,y+b.length).set(b),u=b.length,y}let r=n.length,o=t(r,1)>>>0,s=I(),c=0;for(;c<r;c++){let b=n.charCodeAt(c);if(b>127)break;s[o+c]=b}if(c!==r){c!==0&&(n=n.slice(c)),o=e(o,r,r=c+n.length*3,1)>>>0;let b=I().subarray(o+c,o+r),y=k.encodeInto(n,b);c+=y.written,o=e(o,r,c,1)>>>0}return u=c,o}function g(n){let t=i(n);return ot(n),t}var P=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0});P.decode();function ct(n,t){return P.decode(I().subarray(n,n+t))}var k=new TextEncoder;"encodeInto"in k||(k.encodeInto=function(n,t){let e=k.encode(n);return t.set(e),{read:n.length,written:e.length}});var u=0,at=`${__dirname}/mq_wasm_bg.wasm`,ut=q("fs").readFileSync(at),ft=new WebAssembly.Module(ut),gt=new WebAssembly.Instance(ft,Y()),_=gt.exports});var f=W(V()),h={run:f.run,toAst:f.toAst,format:f.format,diagnostics:f.diagnostics,inlayHints:f.inlayHints,definedValues:f.definedValues,htmlToMarkdown:f.htmlToMarkdown,toHtml:f.toHtml};async function dt(n,t,e={}){return await h.run(n,t,{isUpdate:!1,inputFormat:"markdown",listStyle:"dash",linkUrlStyle:"none",linkTitleStyle:"paren",...e})}async function bt(n){return await h.toAst(n)}async function lt(n){return await h.format(n)}async function wt(n,t){return await h.diagnostics(n,t)}async function pt(n){return await h.inlayHints(n)}async function mt(n,t){return await h.definedValues(n,t)}async function yt(n,t){return await h.htmlToMarkdown(n,t)}async function ht(n){return await h.toHtml(n)}export{mt as definedValues,wt as diagnostics,lt as format,yt as htmlToMarkdown,pt as inlayHints,dt as run,bt as toAst,ht as toHtml};
|
package/dist/mq_wasm.js
CHANGED
|
@@ -198,7 +198,7 @@ exports.toHtml = toHtml;
|
|
|
198
198
|
function __wbg_get_imports() {
|
|
199
199
|
const import0 = {
|
|
200
200
|
__proto__: null,
|
|
201
|
-
|
|
201
|
+
__wbg_Error_ef53bc310eb298a0: function(arg0, arg1) {
|
|
202
202
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
203
203
|
return addHeapObject(ret);
|
|
204
204
|
},
|
|
@@ -209,50 +209,50 @@ function __wbg_get_imports() {
|
|
|
209
209
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
210
210
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
211
211
|
},
|
|
212
|
-
|
|
212
|
+
__wbg___wbindgen_boolean_get_1a45e2c38d4d41b9: function(arg0) {
|
|
213
213
|
const v = getObject(arg0);
|
|
214
214
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
215
215
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
216
216
|
},
|
|
217
|
-
|
|
217
|
+
__wbg___wbindgen_debug_string_0accd80f45e5faa2: function(arg0, arg1) {
|
|
218
218
|
const ret = debugString(getObject(arg1));
|
|
219
219
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
220
220
|
const len1 = WASM_VECTOR_LEN;
|
|
221
221
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
222
222
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
223
223
|
},
|
|
224
|
-
|
|
224
|
+
__wbg___wbindgen_in_70a403a56e771704: function(arg0, arg1) {
|
|
225
225
|
const ret = getObject(arg0) in getObject(arg1);
|
|
226
226
|
return ret;
|
|
227
227
|
},
|
|
228
|
-
|
|
228
|
+
__wbg___wbindgen_is_function_754e9f305ff6029e: function(arg0) {
|
|
229
229
|
const ret = typeof(getObject(arg0)) === 'function';
|
|
230
230
|
return ret;
|
|
231
231
|
},
|
|
232
|
-
|
|
232
|
+
__wbg___wbindgen_is_object_56732c2bc353f41d: function(arg0) {
|
|
233
233
|
const val = getObject(arg0);
|
|
234
234
|
const ret = typeof(val) === 'object' && val !== null;
|
|
235
235
|
return ret;
|
|
236
236
|
},
|
|
237
|
-
|
|
237
|
+
__wbg___wbindgen_is_string_c236cabd84a4d769: function(arg0) {
|
|
238
238
|
const ret = typeof(getObject(arg0)) === 'string';
|
|
239
239
|
return ret;
|
|
240
240
|
},
|
|
241
|
-
|
|
241
|
+
__wbg___wbindgen_is_undefined_67b456be8673d3d7: function(arg0) {
|
|
242
242
|
const ret = getObject(arg0) === undefined;
|
|
243
243
|
return ret;
|
|
244
244
|
},
|
|
245
|
-
|
|
245
|
+
__wbg___wbindgen_jsval_loose_eq_2c56564c75129511: function(arg0, arg1) {
|
|
246
246
|
const ret = getObject(arg0) == getObject(arg1);
|
|
247
247
|
return ret;
|
|
248
248
|
},
|
|
249
|
-
|
|
249
|
+
__wbg___wbindgen_number_get_9bb1761122181af2: function(arg0, arg1) {
|
|
250
250
|
const obj = getObject(arg1);
|
|
251
251
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
252
252
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
253
253
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
254
254
|
},
|
|
255
|
-
|
|
255
|
+
__wbg___wbindgen_string_get_72bdf95d3ae505b1: function(arg0, arg1) {
|
|
256
256
|
const obj = getObject(arg1);
|
|
257
257
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
258
258
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
@@ -260,25 +260,28 @@ function __wbg_get_imports() {
|
|
|
260
260
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
261
261
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
262
262
|
},
|
|
263
|
-
|
|
263
|
+
__wbg___wbindgen_throw_1506f2235d1bdba0: function(arg0, arg1) {
|
|
264
264
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
265
265
|
},
|
|
266
|
-
|
|
266
|
+
__wbg__wbg_cb_unref_61db23ac97f16c31: function(arg0) {
|
|
267
267
|
getObject(arg0)._wbg_cb_unref();
|
|
268
268
|
},
|
|
269
|
-
|
|
269
|
+
__wbg_call_9c758de292015997: function() { return handleError(function (arg0, arg1, arg2) {
|
|
270
270
|
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
|
|
271
271
|
return addHeapObject(ret);
|
|
272
272
|
}, arguments); },
|
|
273
|
-
|
|
273
|
+
__wbg_entries_04b37a02507f1713: function(arg0) {
|
|
274
274
|
const ret = Object.entries(getObject(arg0));
|
|
275
275
|
return addHeapObject(ret);
|
|
276
276
|
},
|
|
277
|
-
|
|
277
|
+
__wbg_error_78ff5b3a29b770e0: function(arg0) {
|
|
278
|
+
console.error(getObject(arg0));
|
|
279
|
+
},
|
|
280
|
+
__wbg_getTimezoneOffset_08e2892156231088: function(arg0) {
|
|
278
281
|
const ret = getObject(arg0).getTimezoneOffset();
|
|
279
282
|
return ret;
|
|
280
283
|
},
|
|
281
|
-
|
|
284
|
+
__wbg_get_2b48c7d0d006a781: function(arg0, arg1) {
|
|
282
285
|
const ret = getObject(arg0)[arg1 >>> 0];
|
|
283
286
|
return addHeapObject(ret);
|
|
284
287
|
},
|
|
@@ -286,7 +289,7 @@ function __wbg_get_imports() {
|
|
|
286
289
|
const ret = getObject(arg0)[getObject(arg1)];
|
|
287
290
|
return addHeapObject(ret);
|
|
288
291
|
},
|
|
289
|
-
|
|
292
|
+
__wbg_instanceof_ArrayBuffer_8f49811467741499: function(arg0) {
|
|
290
293
|
let result;
|
|
291
294
|
try {
|
|
292
295
|
result = getObject(arg0) instanceof ArrayBuffer;
|
|
@@ -296,7 +299,7 @@ function __wbg_get_imports() {
|
|
|
296
299
|
const ret = result;
|
|
297
300
|
return ret;
|
|
298
301
|
},
|
|
299
|
-
|
|
302
|
+
__wbg_instanceof_Uint8Array_86f30649f63ef9c2: function(arg0) {
|
|
300
303
|
let result;
|
|
301
304
|
try {
|
|
302
305
|
result = getObject(arg0) instanceof Uint8Array;
|
|
@@ -306,38 +309,41 @@ function __wbg_get_imports() {
|
|
|
306
309
|
const ret = result;
|
|
307
310
|
return ret;
|
|
308
311
|
},
|
|
309
|
-
|
|
312
|
+
__wbg_length_4a591ecaa01354d9: function(arg0) {
|
|
310
313
|
const ret = getObject(arg0).length;
|
|
311
314
|
return ret;
|
|
312
315
|
},
|
|
313
|
-
|
|
316
|
+
__wbg_length_66f1a4b2e9026940: function(arg0) {
|
|
314
317
|
const ret = getObject(arg0).length;
|
|
315
318
|
return ret;
|
|
316
319
|
},
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
return addHeapObject(ret);
|
|
320
|
+
__wbg_log_cf2e968649f3384e: function(arg0) {
|
|
321
|
+
console.log(getObject(arg0));
|
|
320
322
|
},
|
|
321
|
-
|
|
322
|
-
const ret = new
|
|
323
|
+
__wbg_new_578aeef4b6b94378: function(arg0) {
|
|
324
|
+
const ret = new Uint8Array(getObject(arg0));
|
|
323
325
|
return addHeapObject(ret);
|
|
324
326
|
},
|
|
325
|
-
|
|
327
|
+
__wbg_new_6d75fd236f920a62: function(arg0) {
|
|
326
328
|
const ret = new Date(getObject(arg0));
|
|
327
329
|
return addHeapObject(ret);
|
|
328
330
|
},
|
|
329
|
-
|
|
331
|
+
__wbg_new_ce1ab61c1c2b300d: function() {
|
|
330
332
|
const ret = new Object();
|
|
331
333
|
return addHeapObject(ret);
|
|
332
334
|
},
|
|
333
|
-
|
|
335
|
+
__wbg_new_d90091b82fdf5b91: function() {
|
|
336
|
+
const ret = new Array();
|
|
337
|
+
return addHeapObject(ret);
|
|
338
|
+
},
|
|
339
|
+
__wbg_new_typed_bf31d18f92484486: function(arg0, arg1) {
|
|
334
340
|
try {
|
|
335
341
|
var state0 = {a: arg0, b: arg1};
|
|
336
342
|
var cb0 = (arg0, arg1) => {
|
|
337
343
|
const a = state0.a;
|
|
338
344
|
state0.a = 0;
|
|
339
345
|
try {
|
|
340
|
-
return
|
|
346
|
+
return __wasm_bindgen_func_elem_1389(a, state0.b, arg0, arg1);
|
|
341
347
|
} finally {
|
|
342
348
|
state0.a = a;
|
|
343
349
|
}
|
|
@@ -348,49 +354,49 @@ function __wbg_get_imports() {
|
|
|
348
354
|
state0.a = 0;
|
|
349
355
|
}
|
|
350
356
|
},
|
|
351
|
-
|
|
357
|
+
__wbg_prototypesetcall_3249fc62a0fafa30: function(arg0, arg1, arg2) {
|
|
352
358
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
353
359
|
},
|
|
354
|
-
|
|
360
|
+
__wbg_queueMicrotask_35c611f4a14830b2: function(arg0) {
|
|
355
361
|
queueMicrotask(getObject(arg0));
|
|
356
362
|
},
|
|
357
|
-
|
|
363
|
+
__wbg_queueMicrotask_404ed0a58e0b63cc: function(arg0) {
|
|
358
364
|
const ret = getObject(arg0).queueMicrotask;
|
|
359
365
|
return addHeapObject(ret);
|
|
360
366
|
},
|
|
361
|
-
|
|
367
|
+
__wbg_resolve_25a7e548d5881dca: function(arg0) {
|
|
362
368
|
const ret = Promise.resolve(getObject(arg0));
|
|
363
369
|
return addHeapObject(ret);
|
|
364
370
|
},
|
|
365
|
-
__wbg_set_3bf1de9fab0cd644: function(arg0, arg1, arg2) {
|
|
366
|
-
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
367
|
-
},
|
|
368
371
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
369
372
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
370
373
|
},
|
|
371
|
-
|
|
374
|
+
__wbg_set_dca99999bba88a9a: function(arg0, arg1, arg2) {
|
|
375
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
376
|
+
},
|
|
377
|
+
__wbg_static_accessor_GLOBAL_9d53f2689e622ca1: function() {
|
|
372
378
|
const ret = typeof global === 'undefined' ? null : global;
|
|
373
379
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
374
380
|
},
|
|
375
|
-
|
|
381
|
+
__wbg_static_accessor_GLOBAL_THIS_a1a35cec07001a8a: function() {
|
|
376
382
|
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
377
383
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
378
384
|
},
|
|
379
|
-
|
|
385
|
+
__wbg_static_accessor_SELF_4c59f6c7ea29a144: function() {
|
|
380
386
|
const ret = typeof self === 'undefined' ? null : self;
|
|
381
387
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
382
388
|
},
|
|
383
|
-
|
|
389
|
+
__wbg_static_accessor_WINDOW_e70ae9f2eb052253: function() {
|
|
384
390
|
const ret = typeof window === 'undefined' ? null : window;
|
|
385
391
|
return isLikeNone(ret) ? 0 : addHeapObject(ret);
|
|
386
392
|
},
|
|
387
|
-
|
|
393
|
+
__wbg_then_ac7b025999b52837: function(arg0, arg1) {
|
|
388
394
|
const ret = getObject(arg0).then(getObject(arg1));
|
|
389
395
|
return addHeapObject(ret);
|
|
390
396
|
},
|
|
391
397
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
392
|
-
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx:
|
|
393
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
398
|
+
// Cast intrinsic for `Closure(Closure { owned: true, function: Function { arguments: [Externref], shim_idx: 163, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
399
|
+
const ret = makeMutClosure(arg0, arg1, __wasm_bindgen_func_elem_1102);
|
|
394
400
|
return addHeapObject(ret);
|
|
395
401
|
},
|
|
396
402
|
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
@@ -417,10 +423,10 @@ function __wbg_get_imports() {
|
|
|
417
423
|
};
|
|
418
424
|
}
|
|
419
425
|
|
|
420
|
-
function
|
|
426
|
+
function __wasm_bindgen_func_elem_1102(arg0, arg1, arg2) {
|
|
421
427
|
try {
|
|
422
428
|
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
423
|
-
wasm.
|
|
429
|
+
wasm.__wasm_bindgen_func_elem_1102(retptr, arg0, arg1, addHeapObject(arg2));
|
|
424
430
|
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
425
431
|
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
426
432
|
if (r1) {
|
|
@@ -431,16 +437,16 @@ function __wasm_bindgen_func_elem_1070(arg0, arg1, arg2) {
|
|
|
431
437
|
}
|
|
432
438
|
}
|
|
433
439
|
|
|
434
|
-
function
|
|
435
|
-
wasm.
|
|
440
|
+
function __wasm_bindgen_func_elem_1389(arg0, arg1, arg2, arg3) {
|
|
441
|
+
wasm.__wasm_bindgen_func_elem_1389(arg0, arg1, addHeapObject(arg2), addHeapObject(arg3));
|
|
436
442
|
}
|
|
437
443
|
|
|
438
444
|
const ConversionOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
439
445
|
? { register: () => {}, unregister: () => {} }
|
|
440
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_conversionoptions_free(ptr
|
|
446
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_conversionoptions_free(ptr, 1));
|
|
441
447
|
const RunOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
442
448
|
? { register: () => {}, unregister: () => {} }
|
|
443
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_runoptions_free(ptr
|
|
449
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_runoptions_free(ptr, 1));
|
|
444
450
|
|
|
445
451
|
function addHeapObject(obj) {
|
|
446
452
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
@@ -546,8 +552,7 @@ function getDataViewMemory0() {
|
|
|
546
552
|
}
|
|
547
553
|
|
|
548
554
|
function getStringFromWasm0(ptr, len) {
|
|
549
|
-
|
|
550
|
-
return decodeText(ptr, len);
|
|
555
|
+
return decodeText(ptr >>> 0, len);
|
|
551
556
|
}
|
|
552
557
|
|
|
553
558
|
let cachedUint8ArrayMemory0 = null;
|
|
@@ -672,4 +677,5 @@ let WASM_VECTOR_LEN = 0;
|
|
|
672
677
|
const wasmPath = `${__dirname}/mq_wasm_bg.wasm`;
|
|
673
678
|
const wasmBytes = require('fs').readFileSync(wasmPath);
|
|
674
679
|
const wasmModule = new WebAssembly.Module(wasmBytes);
|
|
675
|
-
let
|
|
680
|
+
let wasmInstance = new WebAssembly.Instance(wasmModule, __wbg_get_imports());
|
|
681
|
+
let wasm = wasmInstance.exports;
|
package/dist/mq_wasm_bg.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mq-nodejs",
|
|
3
3
|
"description": "A jq-like command-line tool for Markdown processing for Node.js",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.6.0",
|
|
5
5
|
"author": "harehare",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"bugs": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"oxlint": "^1.31.0",
|
|
13
13
|
"tsup": "^8.5.1",
|
|
14
14
|
"typescript": "^6.0.2",
|
|
15
|
-
"vitest": "^
|
|
15
|
+
"vitest": "^4.1.0"
|
|
16
16
|
},
|
|
17
17
|
"files": [
|
|
18
18
|
"dist"
|