Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

zero-md-docs

Package Overview
Dependencies
Maintainers
0
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zero-md-docs - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

dist/index.min.js

@@ -1,1 +0,1 @@

var W=Object.defineProperty;var D=(e,t,n)=>t in e?W(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var z=(e,t,n)=>(D(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const f of s.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&r(f)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function v(){}function B(e){return e()}function q(){return Object.create(null)}function x(e){e.forEach(B)}function H(e){return typeof e=="function"}function F(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let k;function A(e,t){return e===t?!0:(k||(k=document.createElement("a")),k.href=t,e===k.href)}function V(e){return Object.keys(e).length===0}function h(e,t){e.appendChild(t)}function N(e,t,n){e.insertBefore(t,n||null)}function L(e){e.parentNode&&e.parentNode.removeChild(e)}function p(e){return document.createElement(e)}function G(e){return document.createTextNode(e)}function C(){return G(" ")}function O(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function y(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function E(e,t,n){const r=t.toLowerCase();r in e?e[r]=typeof e[r]=="boolean"&&n===""?!0:n:t in e?e[t]=typeof e[t]=="boolean"&&n===""?!0:n:y(e,t,n)}function J(e){return Array.from(e.childNodes)}let j;function $(e){j=e}const g=[],I=[];let b=[];const M=[],Q=Promise.resolve();let R=!1;function X(){R||(R=!0,Q.then(K))}function U(e){b.push(e)}const P=new Set;let _=0;function K(){if(_!==0)return;const e=j;do{try{for(;_<g.length;){const t=g[_];_++,$(t),Y(t.$$)}}catch(t){throw g.length=0,_=0,t}for($(null),g.length=0,_=0;I.length;)I.pop()();for(let t=0;t<b.length;t+=1){const n=b[t];P.has(n)||(P.add(n),n())}b.length=0}while(g.length);for(;M.length;)M.pop()();R=!1,P.clear(),$(e)}function Y(e){if(e.fragment!==null){e.update(),x(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(U)}}function Z(e){const t=[],n=[];b.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),b=t}const ee=new Set;function te(e,t){e&&e.i&&(ee.delete(e),e.i(t))}function ne(e,t,n){const{fragment:r,after_update:o}=e.$$;r&&r.m(t,n),U(()=>{const s=e.$$.on_mount.map(B).filter(H);e.$$.on_destroy?e.$$.on_destroy.push(...s):x(s),e.$$.on_mount=[]}),o.forEach(U)}function re(e,t){const n=e.$$;n.fragment!==null&&(Z(n.after_update),x(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function oe(e,t){e.$$.dirty[0]===-1&&(g.push(e),X(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function se(e,t,n,r,o,s,f=null,u=[-1]){const d=j;$(e);const c=e.$$={fragment:null,ctx:[],props:s,update:v,not_equal:o,bound:q(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(d?d.$$.context:[])),callbacks:q(),dirty:u,skip_bound:!1,root:t.target||d.$$.root};f&&f(c.root);let m=!1;if(c.ctx=n?n(e,t.props||{},(i,l,...a)=>{const w=a.length?a[0]:l;return c.ctx&&o(c.ctx[i],c.ctx[i]=w)&&(!c.skip_bound&&c.bound[i]&&c.bound[i](w),m&&oe(e,i)),l}):[],c.update(),m=!0,x(c.before_update),c.fragment=r?r(c.ctx):!1,t.target){if(t.hydrate){const i=J(t.target);c.fragment&&c.fragment.l(i),i.forEach(L)}else c.fragment&&c.fragment.c();t.intro&&te(e.$$.fragment),ne(e,t.target,t.anchor),K()}$(d)}class ie{constructor(){z(this,"$$");z(this,"$$set")}$destroy(){re(this,1),this.$destroy=v}$on(t,n){if(!H(n))return v;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const o=r.indexOf(n);o!==-1&&r.splice(o,1)}}$set(t){this.$$set&&!V(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ce="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ce);function T(e){let t,n,r,o,s;return{c(){t=p("zero-md"),n=p("template"),n.innerHTML="<style>.markdown-body{box-sizing:border-box;padding:45px;}@media(max-width:767px){.markdown-body{padding:15px;}}</style>",r=C(),o=p("script"),o.textContent="Page not found!",y(n,"data-append",""),y(o,"type","text/markdown"),A(t.src,s=e[1])||E(t,"src",s)},m(f,u){N(f,t,u),h(t,n),h(t,r),h(t,o)},p(f,u){u&2&&!A(t.src,s=f[1])&&E(t,"src",s)},d(f){f&&L(t)}}}function le(e){let t,n,r,o,s,f,u,d,c,m;document.title=t=e[0];let i=e[2]&&T(e);return{c(){n=C(),r=p("div"),o=p("div"),s=p("zero-md"),s.innerHTML="<template></template>",u=C(),d=p("div"),i&&i.c(),A(s.src,f="readme.md")||E(s,"src",f),E(s,"no-shadow",""),y(o,"class","zmdocs-menu"),y(d,"class","zmdocs-content"),y(r,"class","zmdocs-container")},m(l,a){N(l,n,a),N(l,r,a),h(r,o),h(o,s),h(r,u),h(r,d),i&&i.m(d,null),c||(m=[O(window,"popstate",e[3]),O(window,"click",e[4]),O(s,"zero-md-rendered",e[5])],c=!0)},p(l,[a]){a&1&&t!==(t=l[0])&&(document.title=t),l[2]?i?i.p(l,a):(i=T(l),i.c(),i.m(d,null)):i&&(i.d(1),i=null)},i:v,o:v,d(l){l&&(L(n),L(r)),i&&i.d(),c=!1,x(m)}}}const S="a";function ae(e,t,n){let r=[],o="",s="",f=!1;function u(){const i=new URL(location.href).searchParams.get(S)||r[0].src;n(0,{title:o="404",src:s=""}=r.find(a=>a.src===i)||{},o,n(1,s));const l="font-bold";for(const a of r)a.src===i?a.a.classList.add(l):a.a.classList.remove(l)}function d(m){const i=m.composedPath()[0].closest("a");if(i){const l=new URL(i.href);if(l.pathname.startsWith(location.pathname)&&l.pathname.endsWith(".md")){m.preventDefault();const a=new URL(location.href),w=l.pathname.split(a.pathname).pop();w===r[0].src?a.searchParams.delete(S):a.searchParams.set(S,w),a.hash=l.hash,history.pushState({},"",a.toString()),u(),scrollTo(0,0)}}}function c(m){r=Array.from(m.target.querySelectorAll("a")).map(i=>({title:i.text,src:new URL(i.href).pathname.split(location.pathname).pop(),a:i})),u(),n(2,f=!0)}return[o,s,f,u,d,c]}class fe extends ie{constructor(t){super(),se(this,t,ae,le,F,{})}}new fe({target:document.getElementById("app")});
var W=Object.defineProperty;var D=(e,t,n)=>t in e?W(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var z=(e,t,n)=>D(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const f of s.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&r(f)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();function v(){}function B(e){return e()}function q(){return Object.create(null)}function x(e){e.forEach(B)}function H(e){return typeof e=="function"}function F(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}let k;function A(e,t){return e===t?!0:(k||(k=document.createElement("a")),k.href=t,e===k.href)}function V(e){return Object.keys(e).length===0}function h(e,t){e.appendChild(t)}function N(e,t,n){e.insertBefore(t,n||null)}function L(e){e.parentNode&&e.parentNode.removeChild(e)}function p(e){return document.createElement(e)}function G(e){return document.createTextNode(e)}function C(){return G(" ")}function O(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function y(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}function E(e,t,n){const r=t.toLowerCase();r in e?e[r]=typeof e[r]=="boolean"&&n===""?!0:n:t in e?e[t]=typeof e[t]=="boolean"&&n===""?!0:n:y(e,t,n)}function J(e){return Array.from(e.childNodes)}let j;function $(e){j=e}const g=[],I=[];let b=[];const M=[],Q=Promise.resolve();let R=!1;function X(){R||(R=!0,Q.then(K))}function U(e){b.push(e)}const P=new Set;let _=0;function K(){if(_!==0)return;const e=j;do{try{for(;_<g.length;){const t=g[_];_++,$(t),Y(t.$$)}}catch(t){throw g.length=0,_=0,t}for($(null),g.length=0,_=0;I.length;)I.pop()();for(let t=0;t<b.length;t+=1){const n=b[t];P.has(n)||(P.add(n),n())}b.length=0}while(g.length);for(;M.length;)M.pop()();R=!1,P.clear(),$(e)}function Y(e){if(e.fragment!==null){e.update(),x(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(U)}}function Z(e){const t=[],n=[];b.forEach(r=>e.indexOf(r)===-1?t.push(r):n.push(r)),n.forEach(r=>r()),b=t}const ee=new Set;function te(e,t){e&&e.i&&(ee.delete(e),e.i(t))}function ne(e,t,n){const{fragment:r,after_update:o}=e.$$;r&&r.m(t,n),U(()=>{const s=e.$$.on_mount.map(B).filter(H);e.$$.on_destroy?e.$$.on_destroy.push(...s):x(s),e.$$.on_mount=[]}),o.forEach(U)}function re(e,t){const n=e.$$;n.fragment!==null&&(Z(n.after_update),x(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function oe(e,t){e.$$.dirty[0]===-1&&(g.push(e),X(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function se(e,t,n,r,o,s,f=null,u=[-1]){const d=j;$(e);const c=e.$$={fragment:null,ctx:[],props:s,update:v,not_equal:o,bound:q(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(d?d.$$.context:[])),callbacks:q(),dirty:u,skip_bound:!1,root:t.target||d.$$.root};f&&f(c.root);let m=!1;if(c.ctx=n?n(e,t.props||{},(i,l,...a)=>{const w=a.length?a[0]:l;return c.ctx&&o(c.ctx[i],c.ctx[i]=w)&&(!c.skip_bound&&c.bound[i]&&c.bound[i](w),m&&oe(e,i)),l}):[],c.update(),m=!0,x(c.before_update),c.fragment=r?r(c.ctx):!1,t.target){if(t.hydrate){const i=J(t.target);c.fragment&&c.fragment.l(i),i.forEach(L)}else c.fragment&&c.fragment.c();t.intro&&te(e.$$.fragment),ne(e,t.target,t.anchor),K()}$(d)}class ie{constructor(){z(this,"$$");z(this,"$$set")}$destroy(){re(this,1),this.$destroy=v}$on(t,n){if(!H(n))return v;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const o=r.indexOf(n);o!==-1&&r.splice(o,1)}}$set(t){this.$$set&&!V(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}const ce="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(ce);function T(e){let t,n,r,o,s;return{c(){t=p("zero-md"),n=p("template"),n.innerHTML="<style>.markdown-body{box-sizing:border-box;padding:45px;}@media(max-width:767px){.markdown-body{padding:15px;}}</style>",r=C(),o=p("script"),o.textContent="Page not found!",y(n,"data-append",""),y(o,"type","text/markdown"),A(t.src,s=e[1])||E(t,"src",s)},m(f,u){N(f,t,u),h(t,n),h(t,r),h(t,o)},p(f,u){u&2&&!A(t.src,s=f[1])&&E(t,"src",s)},d(f){f&&L(t)}}}function le(e){let t,n,r,o,s,f,u,d,c,m;document.title=t=e[0];let i=e[2]&&T(e);return{c(){n=C(),r=p("div"),o=p("div"),s=p("zero-md"),s.innerHTML="<template></template>",u=C(),d=p("div"),i&&i.c(),A(s.src,f="readme.md")||E(s,"src",f),E(s,"no-shadow",""),y(o,"class","zmdocs-menu"),y(d,"class","zmdocs-content"),y(r,"class","zmdocs-container")},m(l,a){N(l,n,a),N(l,r,a),h(r,o),h(o,s),h(r,u),h(r,d),i&&i.m(d,null),c||(m=[O(window,"popstate",e[3]),O(window,"click",e[4]),O(s,"zero-md-rendered",e[5])],c=!0)},p(l,[a]){a&1&&t!==(t=l[0])&&(document.title=t),l[2]?i?i.p(l,a):(i=T(l),i.c(),i.m(d,null)):i&&(i.d(1),i=null)},i:v,o:v,d(l){l&&(L(n),L(r)),i&&i.d(),c=!1,x(m)}}}const S="a";function ae(e,t,n){let r=[],o="",s="",f=!1;function u(){const i=new URL(location.href).searchParams.get(S)||r[0].src;n(0,{title:o="404",src:s=""}=r.find(a=>a.src===i)||{},o,n(1,s));const l="font-bold";for(const a of r)a.src===i?a.a.classList.add(l):a.a.classList.remove(l)}function d(m){const i=m.composedPath()[0].closest("a");if(i){const l=new URL(i.href);if(l.pathname.startsWith(location.pathname)&&l.pathname.endsWith(".md")){m.preventDefault();const a=new URL(location.href),w=l.pathname.split(a.pathname).pop();w===r[0].src?a.searchParams.delete(S):a.searchParams.set(S,w),a.hash=l.hash,history.pushState({},"",a.toString()),u(),scrollTo(0,0)}}}function c(m){r=Array.from(m.target.querySelectorAll("a")).map(i=>({title:i.text,src:new URL(i.href).pathname.split(location.pathname).pop(),a:i})),u(),n(2,f=!0)}return[o,s,f,u,d,c]}class fe extends ie{constructor(t){super(),se(this,t,ae,le,F,{})}}new fe({target:document.getElementById("app")});
{
"name": "zero-md-docs",
"version": "1.0.0",
"version": "1.0.1",
"description": "Instantly publish markdown from Github docs folder",

@@ -11,17 +11,19 @@ "author": "Jason Lee <jason@zerodevx.com>",

"format": "prettier --write .",
"lint": "prettier --check . && eslint src/**/*.js"
"lint": "prettier --check . && eslint"
},
"devDependencies": {
"@sveltejs/vite-plugin-svelte": "^3.1.0",
"@eslint/js": "^9.5.0",
"@sveltejs/vite-plugin-svelte": "^3.1.1",
"autoprefixer": "^10.4.19",
"eslint": "^8.57.0",
"eslint": "^9.5.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.38.0",
"eslint-plugin-svelte": "^2.41.0",
"globals": "^15.6.0",
"postcss": "^8.4.38",
"prettier": "^3.2.5",
"prettier-plugin-svelte": "^3.2.3",
"prettier-plugin-tailwindcss": "^0.5.14",
"svelte": "^4.2.15",
"tailwindcss": "^3.4.3",
"vite": "^5.2.11"
"prettier": "^3.3.2",
"prettier-plugin-svelte": "^3.2.5",
"prettier-plugin-tailwindcss": "^0.6.5",
"svelte": "^4.2.18",
"tailwindcss": "^3.4.4",
"vite": "^5.3.1"
},

@@ -28,0 +30,0 @@ "type": "module",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc