zeed 0.7.97 → 0.7.98
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/chunk-7JBAYE5X.js +7 -0
- package/dist/{chunk-7YV5VFZP.js.map → chunk-7JBAYE5X.js.map} +1 -1
- package/dist/chunk-7Y3767YF.js +5 -0
- package/dist/chunk-7Y3767YF.js.map +1 -0
- package/dist/{chunk-JL5GA55T.js → chunk-GLNZJHZB.js} +2 -2
- package/dist/{chunk-JL5GA55T.js.map → chunk-GLNZJHZB.js.map} +1 -1
- package/dist/chunk-JGD3KNXY.js +2 -0
- package/dist/{chunk-LNZLD7Y3.js.map → chunk-JGD3KNXY.js.map} +1 -1
- package/dist/{chunk-H5ICAAIH.js → chunk-Z6YJI5EY.js} +2 -2
- package/dist/{chunk-H5ICAAIH.js.map → chunk-Z6YJI5EY.js.map} +1 -1
- package/dist/index.all.cjs +9 -9
- package/dist/index.all.cjs.map +1 -1
- package/dist/index.all.d.ts +3 -3
- package/dist/index.all.js +1 -1
- package/dist/index.browser.cjs +4 -4
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.d.ts +2 -2
- package/dist/index.browser.js +1 -1
- package/dist/index.log.cjs +1 -1
- package/dist/index.log.cjs.map +1 -1
- package/dist/index.log.js +1 -1
- package/dist/index.node.cjs +9 -9
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.d.ts +2 -2
- package/dist/index.node.js +1 -1
- package/dist/{log-colors-1600acaa.d.ts → log-colors-b7e5d323.d.ts} +1 -1
- package/dist/{log-util-0c3d62ff.d.ts → log-util-4271fe11.d.ts} +1 -1
- package/dist/{uuid-349b7a26.d.ts → uuid-6c269ea2.d.ts} +3 -1
- package/package.json +1 -1
- package/dist/chunk-7YV5VFZP.js +0 -7
- package/dist/chunk-BHQJ5YK3.js +0 -5
- package/dist/chunk-BHQJ5YK3.js.map +0 -1
- package/dist/chunk-LNZLD7Y3.js +0 -2
package/dist/chunk-LNZLD7Y3.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var H=Object.defineProperty,_=Object.defineProperties;var M=Object.getOwnPropertyDescriptors;var k=Object.getOwnPropertySymbols;var z=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var C=(e,n,r)=>n in e?H(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,K=(e,n)=>{for(var r in n||(n={}))z.call(n,r)&&C(e,r,n[r]);if(k)for(var r of k(n))B.call(n,r)&&C(e,r,n[r]);return e},N=(e,n)=>_(e,M(n));var o=(e,n)=>H(e,"name",{value:n,configurable:!0});function m(e){return e!=null&&typeof e=="object"}o(m,"isObject");function j(e){return Object(e)!==e}o(j,"isPrimitive");function V(e){return Array.isArray(e)}o(V,"isArray");function X(e){return m(e)&&!V(e)}o(X,"isRecord");function Y(e){return typeof e=="string"}o(Y,"isString");function ee(e){return typeof e=="number"}o(ee,"isNumber");function ne(e){return typeof e=="number"&&Number.isInteger(e)}o(ne,"isInteger");function re(e){return typeof e=="number"&&Number.isSafeInteger(e)}o(re,"isSafeInteger");function oe(e){return typeof e=="boolean"}o(oe,"isBoolean");function te(e){return e==null}o(te,"isNullOrUndefined");function x(e,n,r=new WeakSet){if(e===n||r.has(n))return!0;if(j(n)||r.add(n),!(e instanceof Object)||!(n instanceof Object)||e.constructor!==n.constructor||e.length!==n.length)return!1;for(let i in e){if(!e.hasOwnProperty(i))continue;if(!n.hasOwnProperty(i))return!1;let f=e[i],u=n[i];if(!x(f,u,r))return!1}for(let i in n)if(n.hasOwnProperty(i)&&!e.hasOwnProperty(i))return!1;return!0}o(x,"deepEqual");function T(e,...n){for(let r of n)m(e)||(e={}),r!=null&&Object.keys(r).forEach(i=>{let f=e[i],u=r[i];Array.isArray(f)&&Array.isArray(u)?e[i]=f.concat(u):m(f)&&m(u)?e[i]=T(Object.assign({},f),u):e[i]=u});return e}o(T,"deepMerge");function E(e={}){let{level:n=void 0,filter:r=void 0,colors:i=!0,levelHelper:f=!1,nameBrackets:u=!0,padding:b=16}=e,l=w(r),t=G(n);return s=>{if(!t(s.level)||!l(s.name))return;let g=s.name?`[${s.name}]`:"";switch(s.level){case p.info:console.info(`I|* ${g}`,...s.messages);break;case p.warn:console.warn(`W|** ${g}`,...s.messages);break;case p.error:console.error(`E|*** ${g}`,...s.messages);break;default:console.debug(`D| ${g}`,...s.messages);break}}}o(E,"LoggerConsoleHandler");var p=(l=>(l[l.all=-1]="all",l[l.debug=0]="debug",l[l.info=1]="info",l[l.warn=2]="warn",l[l.error=3]="error",l[l.fatal=4]="fatal",l[l.off=1/0]="off",l))(p||{}),A={"*":-1,a:-1,all:-1,d:0,dbg:0,debug:0,i:1,inf:1,info:1,w:2,warn:2,warning:2,e:3,err:3,error:3,fatal:4,off:1/0,"-":1/0};function O(e=""){let n=[E()],r=2,i=o(t=>!0,"logCheckNamespace"),f=!1,u=b;function b(t=""){g.extend=function(a){return u(t?`${t}:${a}`:a)};let s=o(a=>{if(g.active===!0&&a.level>=l.level&&a.level>=g.level&&i(t))for(let c of n)c&&c(a)},"emit");function g(...a){s({name:t,messages:a,level:0})}return o(g,"log"),g.active=!0,g.level=-1,g.debug=function(...a){s({name:t,messages:a,level:0})},g.info=function(...a){s({name:t,messages:a,level:1})},g.warn=function(...a){s({name:t,messages:a,level:2})},g.error=function(...a){s({name:t,messages:a,level:3})},g.assert=function(a,...c){a||(typeof console!==void 0&&(console.assert?console.assert(a,...c):console.error(`Assert did fail with: ${a}`,...c)),s({name:t,messages:c||[`Assert did fail with: ${a}`],level:r}))},g.assertEqual=function(a,c,...h){let y=x(a,c);y||g.assert(y,`Assert did fail. Expected ${c} got ${a}`,c,a,...h)},g.assertNotEqual=function(a,c,...h){let y=x(a,c);y&&g.assert(y,`Assert did fail. Expected ${c} not to be equal with ${a}`,c,a,...h)},g}o(b,"LoggerBaseFactory");function l(t=""){return u(t)}return o(l,"Logger"),l.registerHandler=function(t){n.push(t)},l.setFilter=function(t){i=w(t)},l.setLock=(t=!0)=>f=t,l.setHandlers=function(t=[]){u!==b&&(u=b),!f&&(n=[...t].filter(s=>typeof s=="function"))},l.level=-1,l.setLogLevel=function(t=-1){f||(l.level=t)},l.setFactory=function(t){f||(u=t)},l}o(O,"LoggerContext");function F(e){return e===!0||e==="true"||e==="1"||typeof e=="number"&&e!==0?e="*":e===!1||e==="false"||e===0||e==="0"||e==null||e==="null"||e==="undefined"?e="":e=String(e),e}o(F,"getNamespaceFilterString");var $,D,U=F(typeof process!="undefined"?($=process.env.ZEED)!=null?$:process.env.DEBUG:typeof localStorage!="undefined"?(D=localStorage.zeed)!=null?D:localStorage.debug:"*");function w(e=U){let n,r=[],i=[];if(!e)n=o(function(f){return!1},"fn");else if(e==="*")n=o(function(f){return!0},"fn");else{let f,u=e.split(/[\s,]+/),b=u.length;for(f=0;f<b;f++){if(!u[f])continue;let l=u[f].replace(/\*/g,".*?");l[0]==="-"?r.push(new RegExp("^"+l.substr(1)+"$")):i.push(new RegExp("^"+l+"$"))}n=o(function(l){if(r.length===0&&i.length===0)return!0;let t,s;for(t=0,s=r.length;t<s;t++)if(r[t].test(l))return!1;for(t=0,s=i.length;t<s;t++)if(i[t].test(l))return!0;return!1},"fn")}return n.accept=i,n.reject=r,n.filter=e,n}o(w,"useNamespaceFilter");var S,Z,q,R,W=typeof process!="undefined"?(Z=(S=process.env.ZEED_LEVEL)!=null?S:process.env.LEVEL)!=null?Z:process.env.DEBUG_LEVEL:typeof localStorage!="undefined"?(R=(q=localStorage.zeed_level)!=null?q:localStorage.level)!=null?R:localStorage.debug_level:void 0;function G(e=W){let n=p.all;if(typeof e=="string"){let r=A[e.toLocaleLowerCase().trim()];r!=null&&(n=r)}else typeof e=="number"&&(n=e);return r=>r>=n}o(G,"useLevelFilter");function J(){if(typeof self!="undefined")return self;if(typeof window!="undefined")return window;if(typeof global!="undefined")return global;if(typeof globalThis!="undefined")return globalThis;throw new Error("unable to locate global object")}o(J,"_global");function P(){let e=J();return e._zeedGlobal==null&&(e._zeedGlobal={}),e._zeedGlobal}o(P,"getGlobalContext");var v;function I(){let e=O();return e.setHandlers([E()]),e}o(I,"getLoggerContext");try{let e=P();e!=null?(e==null?void 0:e.logger)==null?(v=I(),e.logger=v):v=e.logger:v=I()}catch{v=I()}var He=v;var Ce=o(()=>typeof performance!="undefined"?performance.now():new Date().getTime(),"getTimestamp");function je(e){return e>999?(e/1e3).toFixed(1)+"s":e.toFixed(2)+"ms"}o(je,"formatMilliseconds");function Ge(...e){for(let n of e){if(n instanceof Date)return n;if(typeof n=="string"){let r=null;if(n.includes(":"))try{r=new Date(n)}catch{}if(!(r instanceof Date)){let i=/(\d\d\d\d)-(\d\d)-(\d\d)/.exec(n);i&&(r=new Date(+i[1],+i[2]-1,+i[3],12,0))}if(r instanceof Date)return r}}}o(Ge,"parseDate");export{K as a,N as b,o as c,m as d,j as e,V as f,X as g,Y as h,ee as i,ne as j,re as k,oe as l,te as m,x as n,T as o,F as p,w as q,G as r,p as s,A as t,O as u,E as v,P as w,He as x,Ce as y,je as z,Ge as A};
|
|
2
|
-
//# sourceMappingURL=chunk-LNZLD7Y3.js.map
|