@fangzhongya/vue-archive 0.0.2-13 → 0.0.2-14

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.
@@ -74,7 +74,7 @@ function v(t, e) {
74
74
  return e ? new RegExp(e + ".+\\.(js|ts)$").test(t) : !1;
75
75
  }
76
76
  function K(t, e) {
77
- return e ? new RegExp(e + ".+\\.(js|ts)$").test(t) : !1;
77
+ return e ? new RegExp(e + "\\.(js|ts)$").test(t) : !1;
78
78
  }
79
79
  function U(t, e, n, i, r) {
80
80
  const p = [], l = [], f = $(
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./storage.js"),S=require("../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-14/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js"),R=require("../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-14/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js"),d=require("../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-14/node_modules/@fangzhongya/utils/dist/chunk-SNABGVNO.js"),x=require("../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-14/node_modules/@fangzhongya/utils/dist/chunk-UOADEBDH.js"),E=["vue","js"];function q(t,e){let n=S.humpToLine(t.name),i=[];return t.alias&&i.push(t.alias+"-"+n),e&&e.length>0&&e.forEach(s=>{t.alias&&i.push(t.alias+"-"+s+"-"+n),i.push(s+"-"+n)}),i}function K(t){return t.sort((e,n)=>{let i=d.appearNum(e,"/"),s=d.appearNum(n,"/");return i==s?n.length-e.length:s-i}),t}function w(t=[],e=[],n=[]){let i=e;(!i||i.length==0)&&(i=E);let s=[];return t&&t.length>0&&(s=t),n&&n.length>0&&n.forEach(a=>{i==null||i.forEach(l=>{s.push(a+"."+l)})}),s=[...new Set(s)],K(s)}function A(t,e,n={},i=""){for(let s=0;s<e.length;s++){const a=e[s],l=new RegExp("^.*/([^/]+)"+a+"$");let c=t.match(l);if(c){const p=[],u={};let f="";Object.keys(n).forEach(g=>{let h=n[g];t.startsWith(h+"/")&&(f=h,u[g]=h,p.push(g))});let o=c[1],r={dir:"",suffix:x.getSuffix(t),name:R.lineToLargeHump(o),value:o,key:"",tdir:"",adir:f,alias:i,aliass:u,aliasNames:[],raw:"",getRaw:null,mds:[],tests:void 0};return r.aliasNames=q(r,p),r}}}function T(t){m.setSession("aside.key",t)}function D(){return m.getSession("aside.key")}function H(t){let e=t.match(/\/([^\/]+)\/$/);return e&&e.length>1?e[1]:""}function C(t,e){return e?new RegExp(e+".+\\.(js|ts)$").test(t):!1}function N(t,e){return e?new RegExp(e+".+\\.(js|ts)$").test(t):!1}function M(t,e,n,i,s){const a=[],l=[],c=w(e.matchexts,e.extensions,e.matchs),p=H(e.dir);return t.forEach(u=>{const f=new RegExp("^"+e.dir);let o=u.replace(f,"");if(s.comprops&&C(o,s.comprops)||s.curprops&&N(o,s.curprops)){let r={};r.comprops=s.comprops||"",r.curprops=s.curprops||"",r.value=o,r.dir=e.dir,r.suffix=x.getSuffix(u),r.tdir=p,r.key=u,r.raw="",r.getRaw=n[u],a.push(r)}else{let r=A(o,c,e.aliass,e.alias);r&&(r.comprops=s.comprops,r.curprops=s.curprops,r.dir=e.dir,r.tdir=p,r.key=u,r.component=i[u],r.getRaw=n[u],l.push(r))}}),{props:a,components:l}}exports.defaultExtensions=E;exports.getAsideKey=D;exports.getComponentsArr=M;exports.getMatchs=w;exports.getUrlName=A;exports.isComprops=C;exports.isCurprops=N;exports.setAsideKey=T;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./storage.js"),S=require("../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-14/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js"),R=require("../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-14/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js"),d=require("../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-14/node_modules/@fangzhongya/utils/dist/chunk-SNABGVNO.js"),x=require("../../node_modules/.pnpm/@fangzhongya_utils@0.0.7-14/node_modules/@fangzhongya/utils/dist/chunk-UOADEBDH.js"),E=["vue","js"];function q(t,e){let n=S.humpToLine(t.name),i=[];return t.alias&&i.push(t.alias+"-"+n),e&&e.length>0&&e.forEach(s=>{t.alias&&i.push(t.alias+"-"+s+"-"+n),i.push(s+"-"+n)}),i}function K(t){return t.sort((e,n)=>{let i=d.appearNum(e,"/"),s=d.appearNum(n,"/");return i==s?n.length-e.length:s-i}),t}function w(t=[],e=[],n=[]){let i=e;(!i||i.length==0)&&(i=E);let s=[];return t&&t.length>0&&(s=t),n&&n.length>0&&n.forEach(a=>{i==null||i.forEach(l=>{s.push(a+"."+l)})}),s=[...new Set(s)],K(s)}function A(t,e,n={},i=""){for(let s=0;s<e.length;s++){const a=e[s],l=new RegExp("^.*/([^/]+)"+a+"$");let c=t.match(l);if(c){const p=[],u={};let f="";Object.keys(n).forEach(g=>{let h=n[g];t.startsWith(h+"/")&&(f=h,u[g]=h,p.push(g))});let o=c[1],r={dir:"",suffix:x.getSuffix(t),name:R.lineToLargeHump(o),value:o,key:"",tdir:"",adir:f,alias:i,aliass:u,aliasNames:[],raw:"",getRaw:null,mds:[],tests:void 0};return r.aliasNames=q(r,p),r}}}function T(t){m.setSession("aside.key",t)}function D(){return m.getSession("aside.key")}function H(t){let e=t.match(/\/([^\/]+)\/$/);return e&&e.length>1?e[1]:""}function C(t,e){return e?new RegExp(e+".+\\.(js|ts)$").test(t):!1}function N(t,e){return e?new RegExp(e+"\\.(js|ts)$").test(t):!1}function M(t,e,n,i,s){const a=[],l=[],c=w(e.matchexts,e.extensions,e.matchs),p=H(e.dir);return t.forEach(u=>{const f=new RegExp("^"+e.dir);let o=u.replace(f,"");if(s.comprops&&C(o,s.comprops)||s.curprops&&N(o,s.curprops)){let r={};r.comprops=s.comprops||"",r.curprops=s.curprops||"",r.value=o,r.dir=e.dir,r.suffix=x.getSuffix(u),r.tdir=p,r.key=u,r.raw="",r.getRaw=n[u],a.push(r)}else{let r=A(o,c,e.aliass,e.alias);r&&(r.comprops=s.comprops,r.curprops=s.curprops,r.dir=e.dir,r.tdir=p,r.key=u,r.component=i[u],r.getRaw=n[u],l.push(r))}}),{props:a,components:l}}exports.defaultExtensions=E;exports.getAsideKey=D;exports.getComponentsArr=M;exports.getMatchs=w;exports.getUrlName=A;exports.isComprops=C;exports.isCurprops=N;exports.setAsideKey=T;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fangzhongya/vue-archive",
3
3
  "private": false,
4
- "version": "0.0.2-13",
4
+ "version": "0.0.2-14",
5
5
  "type": "module",
6
6
  "description ": "vue 组件注释生成文档",
7
7
  "author": "fangzhongya ",