@kawaz/mdp 0.1.11 → 0.1.12
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/mdp.js +1 -1
- package/package.json +4 -4
package/dist/mdp.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{createRequire as OJ}from"node:module";var dz=OJ(import.meta.url);function QA(z){this._0=z}QA.prototype.$tag=0;function DA(z,A){this._0=z,this._1=A}DA.prototype.$tag=1;class AG extends Error{}function c(){throw new AG}function r(z,A){if(A<0||A>=z.length)throw Error("Index out of bounds")}function RA(z,A){return(z>=A)-(z<=A)}function az(z){this._0=z}az.prototype.$tag=0;function BG(z){this._0=z}BG.prototype.$tag=1;var FJ={$tag:1},pA={$tag:0},TJ=(z,A)=>{return z.toString(A)};function jJ(z,A){return String.fromCodePoint(A).repeat(z)}function GG(z,A){let B=Array(z);return B.fill(A),B}var Gz=(z,A)=>{z.push(A)},yJ=(z)=>z.slice(0),vJ=(z)=>z.pop(),wJ=(z,A,B)=>z.splice(A,B),kJ={$tag:0};function JG(z){this._0=z}JG.prototype.$tag=1;function f(z,A){this._0=z,this._1=A}f.prototype.$tag=0;function OA(z){this._0=z}OA.prototype.$tag=1;function UA(z,A){this._0=z,this._1=A}UA.prototype.$tag=2;function FA(z,A,B){this._0=z,this._1=A,this._2=B}FA.prototype.$tag=3;function TA(z,A,B){this._0=z,this._1=A,this._2=B}TA.prototype.$tag=4;function KG(z,A){this._0=z,this._1=A}KG.prototype.$tag=5;function jA(z,A,B){this._0=z,this._1=A,this._2=B}jA.prototype.$tag=6;function NG(z,A,B,G){this._0=z,this._1=A,this._2=B,this._3=G}NG.prototype.$tag=7;function QG(z,A,B){this._0=z,this._1=A,this._2=B}QG.prototype.$tag=8;function UG(z,A,B){this._0=z,this._1=A,this._2=B}UG.prototype.$tag=9;function VG(z,A,B,G){this._0=z,this._1=A,this._2=B,this._3=G}VG.prototype.$tag=10;function XG(z,A,B){this._0=z,this._1=A,this._2=B}XG.prototype.$tag=11;function LJ(z,A){this._0=z,this._1=A}LJ.prototype.$tag=12;function YG(z,A){this._0=z,this._1=A}YG.prototype.$tag=13;function ZG(z,A,B,G,K){this._0=z,this._1=A,this._2=B,this._3=G,this._4=K}ZG.prototype.$tag=0;function yA(z,A,B,G,K,J,N){this._0=z,this._1=A,this._2=B,this._3=G,this._4=K,this._5=J,this._6=N}yA.prototype.$tag=1;function VA(z,A,B,G){this._0=z,this._1=A,this._2=B,this._3=G}VA.prototype.$tag=2;function EG(z,A,B,G,K,J,N,Q){this._0=z,this._1=A,this._2=B,this._3=G,this._4=K,this._5=J,this._6=N,this._7=Q}EG.prototype.$tag=3;function MG(z,A,B,G){this._0=z,this._1=A,this._2=B,this._3=G}MG.prototype.$tag=4;function SG(z,A,B,G){this._0=z,this._1=A,this._2=B,this._3=G}SG.prototype.$tag=5;function vA(z,A,B,G,K,J){this._0=z,this._1=A,this._2=B,this._3=G,this._4=K,this._5=J}vA.prototype.$tag=6;function DG(z,A,B,G,K,J,N){this._0=z,this._1=A,this._2=B,this._3=G,this._4=K,this._5=J,this._6=N}DG.prototype.$tag=7;function PG(z,A,B,G){this._0=z,this._1=A,this._2=B,this._3=G}PG.prototype.$tag=8;function WG(z,A,B,G,K,J){this._0=z,this._1=A,this._2=B,this._3=G,this._4=K,this._5=J}WG.prototype.$tag=9;function qG(z,A){this._0=z,this._1=A}qG.prototype.$tag=10;function CG(z,A,B,G,K){this._0=z,this._1=A,this._2=B,this._3=G,this._4=K}CG.prototype.$tag=11;var gJ=()=>process.argv.slice(2),hJ=()=>"0.1.
|
|
1
|
+
import{createRequire as OJ}from"node:module";var dz=OJ(import.meta.url);function QA(z){this._0=z}QA.prototype.$tag=0;function DA(z,A){this._0=z,this._1=A}DA.prototype.$tag=1;class AG extends Error{}function c(){throw new AG}function r(z,A){if(A<0||A>=z.length)throw Error("Index out of bounds")}function RA(z,A){return(z>=A)-(z<=A)}function az(z){this._0=z}az.prototype.$tag=0;function BG(z){this._0=z}BG.prototype.$tag=1;var FJ={$tag:1},pA={$tag:0},TJ=(z,A)=>{return z.toString(A)};function jJ(z,A){return String.fromCodePoint(A).repeat(z)}function GG(z,A){let B=Array(z);return B.fill(A),B}var Gz=(z,A)=>{z.push(A)},yJ=(z)=>z.slice(0),vJ=(z)=>z.pop(),wJ=(z,A,B)=>z.splice(A,B),kJ={$tag:0};function JG(z){this._0=z}JG.prototype.$tag=1;function f(z,A){this._0=z,this._1=A}f.prototype.$tag=0;function OA(z){this._0=z}OA.prototype.$tag=1;function UA(z,A){this._0=z,this._1=A}UA.prototype.$tag=2;function FA(z,A,B){this._0=z,this._1=A,this._2=B}FA.prototype.$tag=3;function TA(z,A,B){this._0=z,this._1=A,this._2=B}TA.prototype.$tag=4;function KG(z,A){this._0=z,this._1=A}KG.prototype.$tag=5;function jA(z,A,B){this._0=z,this._1=A,this._2=B}jA.prototype.$tag=6;function NG(z,A,B,G){this._0=z,this._1=A,this._2=B,this._3=G}NG.prototype.$tag=7;function QG(z,A,B){this._0=z,this._1=A,this._2=B}QG.prototype.$tag=8;function UG(z,A,B){this._0=z,this._1=A,this._2=B}UG.prototype.$tag=9;function VG(z,A,B,G){this._0=z,this._1=A,this._2=B,this._3=G}VG.prototype.$tag=10;function XG(z,A,B){this._0=z,this._1=A,this._2=B}XG.prototype.$tag=11;function LJ(z,A){this._0=z,this._1=A}LJ.prototype.$tag=12;function YG(z,A){this._0=z,this._1=A}YG.prototype.$tag=13;function ZG(z,A,B,G,K){this._0=z,this._1=A,this._2=B,this._3=G,this._4=K}ZG.prototype.$tag=0;function yA(z,A,B,G,K,J,N){this._0=z,this._1=A,this._2=B,this._3=G,this._4=K,this._5=J,this._6=N}yA.prototype.$tag=1;function VA(z,A,B,G){this._0=z,this._1=A,this._2=B,this._3=G}VA.prototype.$tag=2;function EG(z,A,B,G,K,J,N,Q){this._0=z,this._1=A,this._2=B,this._3=G,this._4=K,this._5=J,this._6=N,this._7=Q}EG.prototype.$tag=3;function MG(z,A,B,G){this._0=z,this._1=A,this._2=B,this._3=G}MG.prototype.$tag=4;function SG(z,A,B,G){this._0=z,this._1=A,this._2=B,this._3=G}SG.prototype.$tag=5;function vA(z,A,B,G,K,J){this._0=z,this._1=A,this._2=B,this._3=G,this._4=K,this._5=J}vA.prototype.$tag=6;function DG(z,A,B,G,K,J,N){this._0=z,this._1=A,this._2=B,this._3=G,this._4=K,this._5=J,this._6=N}DG.prototype.$tag=7;function PG(z,A,B,G){this._0=z,this._1=A,this._2=B,this._3=G}PG.prototype.$tag=8;function WG(z,A,B,G,K,J){this._0=z,this._1=A,this._2=B,this._3=G,this._4=K,this._5=J}WG.prototype.$tag=9;function qG(z,A){this._0=z,this._1=A}qG.prototype.$tag=10;function CG(z,A,B,G,K){this._0=z,this._1=A,this._2=B,this._3=G,this._4=K}CG.prototype.$tag=11;var gJ=()=>process.argv.slice(2),hJ=()=>"0.1.12",cA=(z)=>process.stdout.write(z),xJ=(z)=>{let A=dz("node:fs");try{return A.readFileSync(z,"utf-8")}catch(B){return process.stderr.write("Error: "+(B.message||String(B))+`
|
|
2
2
|
`),"\x00"}},uJ=()=>{let z=dz("node:fs"),A=[],B=Buffer.allocUnsafe(65536);for(;;)try{let G=z.readSync(0,B,0,B.length);if(G===0)break;A.push(Uint8Array.prototype.slice.call(B,0,G))}catch(G){if(G.code==="EAGAIN"){Atomics.wait(new Int32Array(new SharedArrayBuffer(4)),0,0,1);continue}if(G.code==="EOF")break;return""}return Buffer.concat(A).toString("utf-8")},aA=()=>{if(!process.stdout.isTTY||!process.env.PAGER||globalThis.__mdp_pager)return;let{spawn:z}=dz("node:child_process");if(!process.env.LESS)process.env.LESS="-R";try{let A=z(process.env.PAGER,[],{stdio:["pipe","inherit","inherit"],shell:!0}),B=process.stdout.write.bind(process.stdout),G=()=>{process.stdout.write=B,globalThis.__mdp_pager=void 0};A.on("error",G),A.stdin.on("error",()=>{}),process.stdout.write=function(K,J,N){if(A.stdin&&!A.stdin.destroyed)return A.stdin.write(K,J,N);return B(K,J,N)},globalThis.__mdp_pager=A}catch{}},bJ=()=>!dz("node:tty").isatty(0),HG={method_0:V,method_1:oG,method_2:iG,method_3:w},Yz=65535,iA="@",rA="http",nA=" ",tA=`
|
|
3
3
|
\r`,lA=" \t",fA=" \t",sA=" \t",_A=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","svg","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],eA="/>",zB=`
|
|
4
4
|
`,AB="[ ] ",BB="[x] ",GB="[X] ",JB=`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kawaz/mdp",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"description": "Terminal Markdown Preview CLI powered by MoonBit",
|
|
5
5
|
"bin": {
|
|
6
6
|
"mdp": "./bin/mdp.js"
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
"dist/mdp.js"
|
|
11
11
|
],
|
|
12
12
|
"scripts": {
|
|
13
|
-
"build": "
|
|
14
|
-
"test": "
|
|
15
|
-
"version": "
|
|
13
|
+
"build": "just build",
|
|
14
|
+
"test": "just test",
|
|
15
|
+
"version": "just sync-version",
|
|
16
16
|
"prepublishOnly": "npm run build"
|
|
17
17
|
},
|
|
18
18
|
"keywords": [
|