Socket
Socket
Sign inDemoInstall

axe

Package Overview
Dependencies
Maintainers
3
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

axe - npm Package Compare versions

Comparing version 11.2.0 to 11.2.1

2

dist/axe.js

@@ -1245,3 +1245,3 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Axe = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){

"description": "Axe is a logger-agnostic wrapper that normalizes logs regardless of argument style. Great for large development teams, old and new projects, and works with Pino, Bunyan, Winston, console, and more. It is lightweight, performant, highly-configurable, and automatically adds OS, CPU, and Git information to your logs. It supports hooks (useful for masking sensitive data) and dot-notation remapping, omitting, and picking of log metadata properties. Made for Forward Email, Lad, and Cabin.",
"version": "11.2.0",
"version": "11.2.1",
"author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com)",

@@ -1248,0 +1248,0 @@ "browser": {

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

!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Axe=e()}}((function(){!function(e){"use strict";e.console||(e.console={});for(var t,r,n=e.console,o=function(){},i=["memory"],c="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");t=i.pop();)n[t]||(n[t]={});for(;r=c.pop();)n[r]||(n[r]=o)}("undefined"==typeof window?this:window);var e={hostname:function(){return"undefined"!=typeof location?location.hostname:""}};const t=Symbol("kErrors");class r extends Error{constructor(e){const r=new Set(e.map(c).filter(Boolean));super(Array.from(r).join("; ")),n(this,"name","CombinedError"),n(this,t,e),o(this,"stack",()=>e.map(s).join("\n\n")),o(this,"transient",()=>e.length>0&&e.every(f)),o(this,"expected",()=>e.length>0&&e.every(a))}[Symbol.iterator](){return this[t][Symbol.iterator]()}}function n(e,t,r){Object.defineProperty(e,t,{value:r})}function o(e,t,r){Object.defineProperty(e,t,{get:r})}function i(e){return null!=e}function c(e){return e.message}function s(e){return e.stack}function f(e){return!0===e.transient}function a(e){return!0===e.expected}var l=function(e){var t=Array.prototype.slice.call(arguments,1);return t.length&&(e=e.toString().replace(/(%?)(%([jds]))/g,(function(e,r,n,o){var i=t.shift();switch(o){case"s":i=""+i;break;case"d":i=Number(i);break;case"j":i=JSON.stringify(i)}return r?(t.unshift(i),e):i}))),t.length&&(e=e.toString()+" "+t.join(" ")),""+e.toString().replace(/%{2,2}/g,"%")},u=["%s","%d","%i","%f","%j","%o","%O","%%"],p=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(n=e,"[object Object]"!==Object.prototype.toString.call(n)||!t)return e;var n;const o=Array.isArray(t)?t:String(t).split(r),{length:i}=o;return i<2?e[o[0]]:((e,t,r)=>{for(let n=0;n<r;n++){if(null===e)return;const r=e[t[n]];if(void 0===r)return;e=r}return e})(e,o,i)},g=function(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}},y="undefined"!=typeof Symbol&&Symbol,h={},b=Object.prototype.toString;if("function"==typeof y&&"function"==typeof Symbol&&"symbol"==typeof y("foo")&&"symbol"==typeof Symbol("bar")&&function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}()){var d=Symbol.prototype.toString,m=/^Symbol\(.*\)$/;h=function(e){if("symbol"==typeof e)return!0;if("[object Symbol]"!==b.call(e))return!1;try{return function(e){return"symbol"==typeof e.valueOf()&&m.test(d.call(e))}(e)}catch(t){return!1}}}else h=function(e){return!1};var v=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype};const{hasOwnProperty:O}=Object.prototype,{propertyIsEnumerable:j}=Object,A=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0}),w=this,S={concatArrays:!1,ignoreUndefined:!1},E=e=>{const t=[];for(const r in e)O.call(e,r)&&t.push(r);if(Object.getOwnPropertySymbols){const r=Object.getOwnPropertySymbols(e);for(const n of r)j.call(e,n)&&t.push(n)}return t};function _(e){return Array.isArray(e)?function(e){const t=e.slice(0,0);return E(e).forEach(r=>{A(t,r,_(e[r]))}),t}(e):v(e)?function(e){const t=null===Object.getPrototypeOf(e)?Object.create(null):{};return E(e).forEach(r=>{A(t,r,_(e[r]))}),t}(e):e}const P=(e,t,r,n)=>(r.forEach(r=>{void 0===t[r]&&n.ignoreUndefined||(r in e&&e[r]!==Object.getPrototypeOf(e)?A(e,r,T(e[r],t[r],n)):A(e,r,_(t[r])))}),e);function T(e,t,r){return r.concatArrays&&Array.isArray(e)&&Array.isArray(t)?((e,t,r)=>{let n=e.slice(0,0),o=0;return[e,t].forEach(t=>{const i=[];for(let r=0;r<t.length;r++)O.call(t,r)&&(i.push(String(r)),A(n,o++,t===e?t[r]:_(t[r])));n=P(n,t,E(t).filter(e=>!i.includes(e)),r)}),n})(e,t,r):v(t)&&v(e)?P(e,t,E(t),r):_(t)}var k={};const x=async(e,t)=>{const r=[];let n=0;for(const o of e)r.push(await t(await o,n++));return r};(k=x).default=x;var I={},L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!g(e))throw new Error("`err` must be an Error");if(!Array.isArray(t))throw new Error("`fields` must be an Array");var r={};return Object.getOwnPropertyNames(Object.getPrototypeOf(e)).concat(Object.getOwnPropertyNames(e)).forEach((function(t){"function"!=typeof e[t]&&(r[t]=e[t])})),!r.name&&e.constructor.name&&(r.name=e.constructor.name),Array.isArray(t)&&0!==t.length?r.filter((function(e){return t.includes(e)})):r};const M=e=>"object"==typeof e||"function"==typeof e,F=(e,t)=>"__proto__"==e||"constructor"==e&&"function"==typeof t.constructor;var N=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".";if(!M(e)||!t||!t.length)return e;const o=Array.isArray(t)?t:String(t).split(n);if(F(o[0],e))return e;const{length:i}=o;return 1===i?(e[o[0]]=r,e):((e,t,r,n)=>{let o=e,i=0;for(;i<r-1;i++){const e=t[i];F(e,o)||(o=M(o[e])?o[e]:o[e]={})}return o[t[i]]=n,e})(e,o,i,r)},D=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)};function C(e,t,r){return"function"==typeof r.join?r.join(e):e[0]+t+e[1]}function X(e,t,r){return"function"!=typeof r.isValid||r.isValid(e,t)}function B(e){return D(e)||Array.isArray(e)||"function"==typeof e}var H=Object.prototype.toString;function R(e){return"function"==typeof e.constructor?e.constructor.name:null}var K=function e(t){switch(function(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=typeof e;if("boolean"===t)return"boolean";if("string"===t)return"string";if("number"===t)return"number";if("symbol"===t)return"symbol";if("function"===t)return"GeneratorFunction"===R(e)?"generatorfunction":"function";if(function(e){return Array.isArray?Array.isArray(e):e instanceof Array}(e))return"array";if(function(e){return!(!e.constructor||"function"!=typeof e.constructor.isBuffer)&&e.constructor.isBuffer(e)}(e))return"buffer";if(function(e){try{if("number"==typeof e.length&&"function"==typeof e.callee)return!0}catch(t){if(-1!==t.message.indexOf("callee"))return!0}return!1}(e))return"arguments";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(e))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(e))return"error";if(function(e){return e instanceof RegExp||"string"==typeof e.flags&&"boolean"==typeof e.ignoreCase&&"boolean"==typeof e.multiline&&"boolean"==typeof e.global}(e))return"regexp";switch(R(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function(e){return"function"==typeof e.throw&&"function"==typeof e.return&&"function"==typeof e.next}(e))return"generator";switch(t=H.call(e)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}(t)){case"boolean":case"date":case"function":case"null":case"number":return!0;case"undefined":return!1;case"regexp":return"(?:)"!==t.source&&""!==t.source;case"buffer":return""!==t.toString();case"error":return""!==t.message;case"string":case"arguments":return 0!==t.length;case"file":case"map":case"set":return 0!==t.size;case"array":case"object":for(const r of Object.keys(t))if(e(t[r]))return!0;return!1;default:return!0}},U=function(e,t,r){return!(null==(n=e)||"object"!=typeof n&&"function"!=typeof n&&!Array.isArray(n)||"string"!=typeof t&&!Array.isArray(t))&&K(function(e,t,r){if(D(r)||(r={default:r}),!B(e))return void 0!==r.default?r.default:e;"number"==typeof t&&(t=String(t));const n=Array.isArray(t),o="string"==typeof t,i=r.separator||".",c=r.joinChar||("string"==typeof i?i:".");if(!o&&!n)return e;if(o&&t in e)return X(t,e,r)?e[t]:r.default;let s=n?t:function(e,t,r){return"function"==typeof r.split?r.split(e):e.split(t)}(t,i,r),f=s.length,a=0;do{let t=s[a];for("number"==typeof t&&(t=String(t));t&&"\\"===t.slice(-1);)t=C([t.slice(0,-1),s[++a]||""],c,r);if(t in e){if(!X(t,e,r))return r.default;e=e[t]}else{let n=!1,o=a+1;for(;o<f;)if(n=(t=C([t,s[o++]],c,r))in e){if(!X(t,e,r))return r.default;e=e[t],a=o-1;break}if(!n)return r.default}}while(++a<f&&B(e));return a===f?e:r.default}(e,t,r));var n};const W=e=>{if((e=>"__proto__"===e||"constructor"===e||"prototype"===e)(e))throw new Error(`Cannot set unsafe key: "${e}"`)};var z=function(e,t){if(null==(r=e)||"object"!=typeof r||!1!==Array.isArray(r))throw new TypeError("expected an object.");var r,n=Array.isArray(t);if(!n&&e.hasOwnProperty(t))return delete e[t],!0;if(U(e,t)){for(var o=n?t.slice():t.split("."),i=o.pop();o.length&&"\\"===o[o.length-1].slice(-1);)i=o.pop().slice(0,-1)+"."+i;for(;o.length;)t=o.shift(),W(t),e=e[t];return delete e[i]}return!0},V={};Object.defineProperty(V,"__esModule",{value:!0}),V.boolean=void 0,V.boolean=function(e){switch(Object.prototype.toString.call(e)){case"[object String]":return["true","t","yes","y","on","1"].includes(e.trim().toLowerCase());case"[object Number]":return 1===e.valueOf();case"[object Boolean]":return e.valueOf();default:return!1}};var $={};Object.defineProperty($,"__esModule",{value:!0}),$.isBooleanable=void 0,$.isBooleanable=function(e){switch(Object.prototype.toString.call(e)){case"[object String]":return["true","t","yes","y","on","1","false","f","no","n","off","0"].includes(e.trim().toLowerCase());case"[object Number]":return[0,1].includes(e.valueOf());case"[object Boolean]":return!0;default:return!1}};var G={};Object.defineProperty(G,"__esModule",{value:!0}),G.boolean=void 0,Object.defineProperty(G,"boolean",{enumerable:!0,get:function(){return V.boolean}}),Object.defineProperty(G,"isBooleanable",{enumerable:!0,get:function(){return $.isBooleanable}});var J,q,Q,Y="11.2.0",Z=J={};function ee(){throw new Error("setTimeout has not been defined")}function te(){throw new Error("clearTimeout has not been defined")}function re(e){if(q===setTimeout)return setTimeout(e,0);if((q===ee||!q)&&setTimeout)return q=setTimeout,setTimeout(e,0);try{return q(e,0)}catch(t){try{return q.call(null,e,0)}catch(t){return q.call(this,e,0)}}}!function(){try{q="function"==typeof setTimeout?setTimeout:ee}catch(e){q=ee}try{Q="function"==typeof clearTimeout?clearTimeout:te}catch(e){Q=te}}();var ne,oe=[],ie=!1,ce=-1;function se(){ie&&ne&&(ie=!1,ne.length?oe=ne.concat(oe):ce=-1,oe.length&&fe())}function fe(){if(!ie){var e=re(se);ie=!0;for(var t=oe.length;t;){for(ne=oe,oe=[];++ce<t;)ne&&ne[ce].run();ce=-1,t=oe.length}ne=null,ie=!1,function(e){if(Q===clearTimeout)return clearTimeout(e);if((Q===te||!Q)&&clearTimeout)return Q=clearTimeout,clearTimeout(e);try{Q(e)}catch(t){try{return Q.call(null,e)}catch(t){return Q.call(this,e)}}}(e)}}function ae(e,t){this.fun=e,this.array=t}function le(){}Z.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];oe.push(new ae(e,t)),1!==oe.length||ie||re(fe)},ae.prototype.run=function(){this.fun.apply(null,this.array)},Z.title="browser",Z.browser=!0,Z.env={},Z.argv=[],Z.version="",Z.versions={},Z.on=le,Z.addListener=le,Z.once=le,Z.off=le,Z.removeListener=le,Z.removeAllListeners=le,Z.emit=le,Z.prependListener=le,Z.prependOnceListener=le,Z.listeners=function(e){return[]},Z.binding=function(e){throw new Error("process.binding is not supported")},Z.cwd=function(){return"/"},Z.chdir=function(e){throw new Error("process.chdir is not supported")},Z.umask=function(){return 0};var ue={};return function(t){(function(){const{boolean:n}=G,o=Symbol.for("axe.silent"),c=new Set(["config","log"]),s=["trace","debug","info","warn","error","fatal"],f={warning:"warn",err:"error"},a="`level` invalid, must be: "+s.join(", "),y=t.env.HOSTNAME||e.hostname();function b(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e||h(e))}function d(e){return null==e||"object"==typeof e&&0===Reflect.ownKeys(e).length||"string"==typeof e&&0===e.trim().length}function m(e){return void 0===e}function O(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function j(e){return"string"==typeof e}ue=class{constructor(){var e=this;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const o={};if(t.env.AXE_REMAPPED_META_FIELDS){const e=t.env.AXE_REMAPPED_META_FIELDS.split(",").map(e=>e.split(":"));for(const[t,r]of e)o[t]=r}let i=t.env.AXE_OMIT_META_FIELDS;"string"==typeof i&&(i=i.split(",").map(e=>e.trim())),Array.isArray(i)||(i=[]);let f=t.env.AXE_PICK_META_FIELDS;"string"==typeof f&&(f=f.split(",").map(e=>e.trim())),Array.isArray(f)||(f=[]),this.config=function(){const e=T(_(S),this!==w&&this||{},S);let t={_:{}};for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];for(const i of n)if(void 0!==i){if(!v(i))throw new TypeError("`"+i+"` is not an Option Object");t=T(t,{_:i},e)}return t._}({showStack:!t.env.AXE_SHOW_STACK||n(t.env.AXE_SHOW_STACK),meta:Object.assign({show:!t.env.AXE_SHOW_META||n(t.env.AXE_SHOW_META),remappedFields:o,omittedFields:i,pickedFields:f,cleanupRemapping:!0,hideHTTP:"is_http",hideMeta:"hide_meta"},"object"==typeof r.meta?r.meta:{}),version:Y,silent:!1,logger:console,name:y,level:"info",levels:["info","warn","error","fatal"],appInfo:!t.env.AXE_APP_INFO||n(t.env.AXE_APP_INFO),hooks:Object.assign({pre:[],post:[]},"object"==typeof r.hooks?r.hooks:{})},r),this.appInfo=!!this.config.appInfo&&"function"==typeof I&&I(),this.log=this.log.bind(this);const a=Object.keys(this.config.logger).filter(e=>!c.has(e));for(const t of a)this[t]=this.config.logger[t];for(const t of s)"function"!=typeof this.config.logger[t]&&("fatal"===t?this.config.logger.fatal=this.config.logger.error||this.config.logger.info||this.config.logger.log:this.config.logger[t]=this.config.logger.info||this.config.logger.log),this[t]=function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return e.log(t,...Array.prototype.slice.call(n))};this.setLevel=this.setLevel.bind(this),this.getNormalizedLevel=this.getNormalizedLevel.bind(this),this.setName=this.setName.bind(this),this.config.name&&this.setName(this.config.name),this.setLevel(this.config.level),this.err=this.error,this.warning=this.warn,this.pre=function(e,t){this.config.hooks.pre.push((function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return e!==r?[...o]:t(...o)}))},this.post=function(e,t){this.config.hooks.post.push((function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return e!==r?[...o]:t(...o)}))}}setLevel(e){if(!j(e)||-1===s.indexOf(e))throw new Error(a);j(this.config.logger.logLevel)?this.config.logger.logLevel=e:this.config.logger.level=e,this.config.levels=s.slice(s.indexOf(e))}getNormalizedLevel(e){return j(e)?j(f[e])?f[e]:-1===s.indexOf(e)?"info":e:"info"}setName(e){if(!j(e))throw new Error("`name` must be a String");j(this.config.logger.scope)?this.config.logger.scope=e:this.config.logger.name=e}log(e,t,c){const a=[],y=[];m(e)||a.push(e),m(t)||a.push(t),m(c)||a.push(c);for(var v=arguments.length,A=new Array(v>3?v-3:0),w=3;w<v;w++)A[w-3]=arguments[w];for(const r of Array.prototype.slice.call(A))a.push(r);let S=0;if(j(e)&&j(f[e])?e=f[e]:g(e)?(c=t,t=e,e="error"):j(e)&&-1!==s.indexOf(e)||(c=t,t=e,e=this.getNormalizedLevel(e),S=-1),-1===this.config.levels.indexOf(e))return;let E,_=!1;if((O(t)||Array.isArray(t))&&j(c)){_=!0;const e=c;c=t,t=j(e)&&a.length>=3+S?l(...a.slice(2+S)):e}if(m(t)&&(t=e),1!==a.slice(1+S).length||j(t)||g(t))if(!_&&a.length>=4+S){t=void 0,c={};const r=[];for(const e of a)g(e)?y.push(e):j(e)&&r.push(e);0===y.length&&r.length>0?t=l(...r):y.length>0&&"log"===e&&(e="error")}else if(!_&&a.length===3+S&&j(t)&&u.some(e=>-1!==t.indexOf(e)))t=l(t,c),c={};else if(g(t)){if(g(c)){y.push(c);for(const e of a.slice(2+S))c!==e&&g(e)&&y.push(e);c={}}}else g(c)?(y.push(c),c={}):O(c)||m(c)||null===c?j(t)||(t=l(t)):(t=l(t,c),c={});else c={message:t},t=e;m(c)||O(c)?O(c)||(c={}):c={original_meta:c},g(t)&&(y.unshift(t),t=void 0),O(c.err)&&(g(c.err)&&y.push(c.err),c.original_err=g(c.err)?L(c.err):c.err),y.length>0&&(E=function(e){if(0!==(e=e.filter(i)).length)return 1===e.length?e[0]:new r(e)}(y),c.err=L(E),j(t)||(t=E.message)),c.level=e,this.appInfo&&(c.app=this.appInfo);const P=-1===S?"log":e;for(const r of this.config.hooks.pre)[E,t,c]=r(P,E,t,c);const T=n(c[o]);if(!d(this.config.meta.remappedFields))for(const r of Reflect.ownKeys(this.config.meta.remappedFields))if(N(c,this.config.meta.remappedFields[r],p(c,r)),z(c,r),this.config.meta.cleanupRemapping){const e=r.lastIndexOf(".");if(-1===e)continue;const t=r.slice(0,e);d(p(c,t))&&z(c,t)}if(!d(this.config.meta.omittedFields)||!d(this.config.meta.pickedFields)){const e=function(e){const t=[];return function e(r,n){for(const o of Reflect.ownKeys(r)){const i=r[o],c=n?n+"."+o:o;b(i)?e(i,c):t.push(c)}}(e),t}(c);if(!d(this.config.meta.omittedFields))for(const r of this.config.meta.omittedFields){let t=e.length;for(;t--;)(e[t]===r||!h(e[t])&&0===e[t].indexOf(r+"."))&&e.splice(t,1)}const t=[];if(!d(this.config.meta.pickedFields))for(const r of this.config.meta.pickedFields){if(h(r))c[r]&&t.push([r,c[r]]);else{const t=r.indexOf("."),n=r.slice(0,t+1);if(-1!==t){let t=e.length;for(;t--;)h(e[t])||0!==e[t].indexOf(n)||e.splice(t,1)}}-1===e.indexOf(r)&&e.push(r)}for(const r of e)h(r)&&c[r]&&t.push([r,c[r]]);if(c=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(n=e,"[object Object]"!==Object.prototype.toString.call(n)||!t||!Array.isArray(t)&&"string"!=typeof t)return{};var n;const{length:o}=t;if("string"==typeof t||o<2){const n="string"==typeof t?t:t[0],o=p(e,n,r);return void 0!==o?N({},n,o,r):{}}return((e,t,r,n)=>{const o={};for(let i=0;i<r;i++){const r=t[i],c=p(e,r,n);void 0!==c&&N(o,r,c,n)}return o})(e,t,o,r)}(c,e),t.length>0)for(const[r,n]of t)c[r]=n}this.config.silent||T||(g(E)&&this.config.showStack?!this.config.meta.show||d(c)||this.config.meta.hideMeta&&c[this.config.meta.hideMeta]?this.config.logger[P](E):this.config.logger[P](E,c):!this.config.meta.show||d(c)||this.config.meta.hideMeta&&c[this.config.meta.hideMeta]||this.config.meta.hideHTTP&&c[this.config.meta.hideHTTP]?this.config.logger[P](t):this.config.logger[P](t,c)),k(this.config.hooks.post,e=>e(P,E,t,c)).then().catch(e=>{this.config.logger.error(e)})}}}).call(this)}.call(this,J),ue}));
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Axe=e()}}((function(){!function(e){"use strict";e.console||(e.console={});for(var t,r,n=e.console,o=function(){},i=["memory"],c="assert,clear,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profiles,profileEnd,show,table,time,timeEnd,timeline,timelineEnd,timeStamp,trace,warn".split(",");t=i.pop();)n[t]||(n[t]={});for(;r=c.pop();)n[r]||(n[r]=o)}("undefined"==typeof window?this:window);var e={hostname:function(){return"undefined"!=typeof location?location.hostname:""}};const t=Symbol("kErrors");class r extends Error{constructor(e){const r=new Set(e.map(c).filter(Boolean));super(Array.from(r).join("; ")),n(this,"name","CombinedError"),n(this,t,e),o(this,"stack",()=>e.map(s).join("\n\n")),o(this,"transient",()=>e.length>0&&e.every(f)),o(this,"expected",()=>e.length>0&&e.every(a))}[Symbol.iterator](){return this[t][Symbol.iterator]()}}function n(e,t,r){Object.defineProperty(e,t,{value:r})}function o(e,t,r){Object.defineProperty(e,t,{get:r})}function i(e){return null!=e}function c(e){return e.message}function s(e){return e.stack}function f(e){return!0===e.transient}function a(e){return!0===e.expected}var l=function(e){var t=Array.prototype.slice.call(arguments,1);return t.length&&(e=e.toString().replace(/(%?)(%([jds]))/g,(function(e,r,n,o){var i=t.shift();switch(o){case"s":i=""+i;break;case"d":i=Number(i);break;case"j":i=JSON.stringify(i)}return r?(t.unshift(i),e):i}))),t.length&&(e=e.toString()+" "+t.join(" ")),""+e.toString().replace(/%{2,2}/g,"%")},u=["%s","%d","%i","%f","%j","%o","%O","%%"],p=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(n=e,"[object Object]"!==Object.prototype.toString.call(n)||!t)return e;var n;const o=Array.isArray(t)?t:String(t).split(r),{length:i}=o;return i<2?e[o[0]]:((e,t,r)=>{for(let n=0;n<r;n++){if(null===e)return;const r=e[t[n]];if(void 0===r)return;e=r}return e})(e,o,i)},g=function(e){switch(Object.prototype.toString.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return e instanceof Error}},y="undefined"!=typeof Symbol&&Symbol,h={},b=Object.prototype.toString;if("function"==typeof y&&"function"==typeof Symbol&&"symbol"==typeof y("foo")&&"symbol"==typeof Symbol("bar")&&function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}()){var d=Symbol.prototype.toString,m=/^Symbol\(.*\)$/;h=function(e){if("symbol"==typeof e)return!0;if("[object Symbol]"!==b.call(e))return!1;try{return function(e){return"symbol"==typeof e.valueOf()&&m.test(d.call(e))}(e)}catch(t){return!1}}}else h=function(e){return!1};var v=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype};const{hasOwnProperty:O}=Object.prototype,{propertyIsEnumerable:j}=Object,A=(e,t,r)=>Object.defineProperty(e,t,{value:r,writable:!0,enumerable:!0,configurable:!0}),w=this,S={concatArrays:!1,ignoreUndefined:!1},E=e=>{const t=[];for(const r in e)O.call(e,r)&&t.push(r);if(Object.getOwnPropertySymbols){const r=Object.getOwnPropertySymbols(e);for(const n of r)j.call(e,n)&&t.push(n)}return t};function _(e){return Array.isArray(e)?function(e){const t=e.slice(0,0);return E(e).forEach(r=>{A(t,r,_(e[r]))}),t}(e):v(e)?function(e){const t=null===Object.getPrototypeOf(e)?Object.create(null):{};return E(e).forEach(r=>{A(t,r,_(e[r]))}),t}(e):e}const P=(e,t,r,n)=>(r.forEach(r=>{void 0===t[r]&&n.ignoreUndefined||(r in e&&e[r]!==Object.getPrototypeOf(e)?A(e,r,T(e[r],t[r],n)):A(e,r,_(t[r])))}),e);function T(e,t,r){return r.concatArrays&&Array.isArray(e)&&Array.isArray(t)?((e,t,r)=>{let n=e.slice(0,0),o=0;return[e,t].forEach(t=>{const i=[];for(let r=0;r<t.length;r++)O.call(t,r)&&(i.push(String(r)),A(n,o++,t===e?t[r]:_(t[r])));n=P(n,t,E(t).filter(e=>!i.includes(e)),r)}),n})(e,t,r):v(t)&&v(e)?P(e,t,E(t),r):_(t)}var k={};const x=async(e,t)=>{const r=[];let n=0;for(const o of e)r.push(await t(await o,n++));return r};(k=x).default=x;var I={},L=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(!g(e))throw new Error("`err` must be an Error");if(!Array.isArray(t))throw new Error("`fields` must be an Array");var r={};return Object.getOwnPropertyNames(Object.getPrototypeOf(e)).concat(Object.getOwnPropertyNames(e)).forEach((function(t){"function"!=typeof e[t]&&(r[t]=e[t])})),!r.name&&e.constructor.name&&(r.name=e.constructor.name),Array.isArray(t)&&0!==t.length?r.filter((function(e){return t.includes(e)})):r};const M=e=>"object"==typeof e||"function"==typeof e,F=(e,t)=>"__proto__"==e||"constructor"==e&&"function"==typeof t.constructor;var N=function(e,t,r){let n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:".";if(!M(e)||!t||!t.length)return e;const o=Array.isArray(t)?t:String(t).split(n);if(F(o[0],e))return e;const{length:i}=o;return 1===i?(e[o[0]]=r,e):((e,t,r,n)=>{let o=e,i=0;for(;i<r-1;i++){const e=t[i];F(e,o)||(o=M(o[e])?o[e]:o[e]={})}return o[t[i]]=n,e})(e,o,i,r)},D=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)};function C(e,t,r){return"function"==typeof r.join?r.join(e):e[0]+t+e[1]}function X(e,t,r){return"function"!=typeof r.isValid||r.isValid(e,t)}function B(e){return D(e)||Array.isArray(e)||"function"==typeof e}var H=Object.prototype.toString;function R(e){return"function"==typeof e.constructor?e.constructor.name:null}var K=function e(t){switch(function(e){if(void 0===e)return"undefined";if(null===e)return"null";var t=typeof e;if("boolean"===t)return"boolean";if("string"===t)return"string";if("number"===t)return"number";if("symbol"===t)return"symbol";if("function"===t)return"GeneratorFunction"===R(e)?"generatorfunction":"function";if(function(e){return Array.isArray?Array.isArray(e):e instanceof Array}(e))return"array";if(function(e){return!(!e.constructor||"function"!=typeof e.constructor.isBuffer)&&e.constructor.isBuffer(e)}(e))return"buffer";if(function(e){try{if("number"==typeof e.length&&"function"==typeof e.callee)return!0}catch(t){if(-1!==t.message.indexOf("callee"))return!0}return!1}(e))return"arguments";if(function(e){return e instanceof Date||"function"==typeof e.toDateString&&"function"==typeof e.getDate&&"function"==typeof e.setDate}(e))return"date";if(function(e){return e instanceof Error||"string"==typeof e.message&&e.constructor&&"number"==typeof e.constructor.stackTraceLimit}(e))return"error";if(function(e){return e instanceof RegExp||"string"==typeof e.flags&&"boolean"==typeof e.ignoreCase&&"boolean"==typeof e.multiline&&"boolean"==typeof e.global}(e))return"regexp";switch(R(e)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function(e){return"function"==typeof e.throw&&"function"==typeof e.return&&"function"==typeof e.next}(e))return"generator";switch(t=H.call(e)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}(t)){case"boolean":case"date":case"function":case"null":case"number":return!0;case"undefined":return!1;case"regexp":return"(?:)"!==t.source&&""!==t.source;case"buffer":return""!==t.toString();case"error":return""!==t.message;case"string":case"arguments":return 0!==t.length;case"file":case"map":case"set":return 0!==t.size;case"array":case"object":for(const r of Object.keys(t))if(e(t[r]))return!0;return!1;default:return!0}},U=function(e,t,r){return!(null==(n=e)||"object"!=typeof n&&"function"!=typeof n&&!Array.isArray(n)||"string"!=typeof t&&!Array.isArray(t))&&K(function(e,t,r){if(D(r)||(r={default:r}),!B(e))return void 0!==r.default?r.default:e;"number"==typeof t&&(t=String(t));const n=Array.isArray(t),o="string"==typeof t,i=r.separator||".",c=r.joinChar||("string"==typeof i?i:".");if(!o&&!n)return e;if(o&&t in e)return X(t,e,r)?e[t]:r.default;let s=n?t:function(e,t,r){return"function"==typeof r.split?r.split(e):e.split(t)}(t,i,r),f=s.length,a=0;do{let t=s[a];for("number"==typeof t&&(t=String(t));t&&"\\"===t.slice(-1);)t=C([t.slice(0,-1),s[++a]||""],c,r);if(t in e){if(!X(t,e,r))return r.default;e=e[t]}else{let n=!1,o=a+1;for(;o<f;)if(n=(t=C([t,s[o++]],c,r))in e){if(!X(t,e,r))return r.default;e=e[t],a=o-1;break}if(!n)return r.default}}while(++a<f&&B(e));return a===f?e:r.default}(e,t,r));var n};const W=e=>{if((e=>"__proto__"===e||"constructor"===e||"prototype"===e)(e))throw new Error(`Cannot set unsafe key: "${e}"`)};var z=function(e,t){if(null==(r=e)||"object"!=typeof r||!1!==Array.isArray(r))throw new TypeError("expected an object.");var r,n=Array.isArray(t);if(!n&&e.hasOwnProperty(t))return delete e[t],!0;if(U(e,t)){for(var o=n?t.slice():t.split("."),i=o.pop();o.length&&"\\"===o[o.length-1].slice(-1);)i=o.pop().slice(0,-1)+"."+i;for(;o.length;)t=o.shift(),W(t),e=e[t];return delete e[i]}return!0},V={};Object.defineProperty(V,"__esModule",{value:!0}),V.boolean=void 0,V.boolean=function(e){switch(Object.prototype.toString.call(e)){case"[object String]":return["true","t","yes","y","on","1"].includes(e.trim().toLowerCase());case"[object Number]":return 1===e.valueOf();case"[object Boolean]":return e.valueOf();default:return!1}};var $={};Object.defineProperty($,"__esModule",{value:!0}),$.isBooleanable=void 0,$.isBooleanable=function(e){switch(Object.prototype.toString.call(e)){case"[object String]":return["true","t","yes","y","on","1","false","f","no","n","off","0"].includes(e.trim().toLowerCase());case"[object Number]":return[0,1].includes(e.valueOf());case"[object Boolean]":return!0;default:return!1}};var G={};Object.defineProperty(G,"__esModule",{value:!0}),G.boolean=void 0,Object.defineProperty(G,"boolean",{enumerable:!0,get:function(){return V.boolean}}),Object.defineProperty(G,"isBooleanable",{enumerable:!0,get:function(){return $.isBooleanable}});var J,q,Q,Y="11.2.1",Z=J={};function ee(){throw new Error("setTimeout has not been defined")}function te(){throw new Error("clearTimeout has not been defined")}function re(e){if(q===setTimeout)return setTimeout(e,0);if((q===ee||!q)&&setTimeout)return q=setTimeout,setTimeout(e,0);try{return q(e,0)}catch(t){try{return q.call(null,e,0)}catch(t){return q.call(this,e,0)}}}!function(){try{q="function"==typeof setTimeout?setTimeout:ee}catch(e){q=ee}try{Q="function"==typeof clearTimeout?clearTimeout:te}catch(e){Q=te}}();var ne,oe=[],ie=!1,ce=-1;function se(){ie&&ne&&(ie=!1,ne.length?oe=ne.concat(oe):ce=-1,oe.length&&fe())}function fe(){if(!ie){var e=re(se);ie=!0;for(var t=oe.length;t;){for(ne=oe,oe=[];++ce<t;)ne&&ne[ce].run();ce=-1,t=oe.length}ne=null,ie=!1,function(e){if(Q===clearTimeout)return clearTimeout(e);if((Q===te||!Q)&&clearTimeout)return Q=clearTimeout,clearTimeout(e);try{Q(e)}catch(t){try{return Q.call(null,e)}catch(t){return Q.call(this,e)}}}(e)}}function ae(e,t){this.fun=e,this.array=t}function le(){}Z.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];oe.push(new ae(e,t)),1!==oe.length||ie||re(fe)},ae.prototype.run=function(){this.fun.apply(null,this.array)},Z.title="browser",Z.browser=!0,Z.env={},Z.argv=[],Z.version="",Z.versions={},Z.on=le,Z.addListener=le,Z.once=le,Z.off=le,Z.removeListener=le,Z.removeAllListeners=le,Z.emit=le,Z.prependListener=le,Z.prependOnceListener=le,Z.listeners=function(e){return[]},Z.binding=function(e){throw new Error("process.binding is not supported")},Z.cwd=function(){return"/"},Z.chdir=function(e){throw new Error("process.chdir is not supported")},Z.umask=function(){return 0};var ue={};return function(t){(function(){const{boolean:n}=G,o=Symbol.for("axe.silent"),c=new Set(["config","log"]),s=["trace","debug","info","warn","error","fatal"],f={warning:"warn",err:"error"},a="`level` invalid, must be: "+s.join(", "),y=t.env.HOSTNAME||e.hostname();function b(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Symbol.toStringTag in e||Symbol.iterator in e||h(e))}function d(e){return null==e||"object"==typeof e&&0===Reflect.ownKeys(e).length||"string"==typeof e&&0===e.trim().length}function m(e){return void 0===e}function O(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function j(e){return"string"==typeof e}ue=class{constructor(){var e=this;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const o={};if(t.env.AXE_REMAPPED_META_FIELDS){const e=t.env.AXE_REMAPPED_META_FIELDS.split(",").map(e=>e.split(":"));for(const[t,r]of e)o[t]=r}let i=t.env.AXE_OMIT_META_FIELDS;"string"==typeof i&&(i=i.split(",").map(e=>e.trim())),Array.isArray(i)||(i=[]);let f=t.env.AXE_PICK_META_FIELDS;"string"==typeof f&&(f=f.split(",").map(e=>e.trim())),Array.isArray(f)||(f=[]),this.config=function(){const e=T(_(S),this!==w&&this||{},S);let t={_:{}};for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];for(const i of n)if(void 0!==i){if(!v(i))throw new TypeError("`"+i+"` is not an Option Object");t=T(t,{_:i},e)}return t._}({showStack:!t.env.AXE_SHOW_STACK||n(t.env.AXE_SHOW_STACK),meta:Object.assign({show:!t.env.AXE_SHOW_META||n(t.env.AXE_SHOW_META),remappedFields:o,omittedFields:i,pickedFields:f,cleanupRemapping:!0,hideHTTP:"is_http",hideMeta:"hide_meta"},"object"==typeof r.meta?r.meta:{}),version:Y,silent:!1,logger:console,name:y,level:"info",levels:["info","warn","error","fatal"],appInfo:!t.env.AXE_APP_INFO||n(t.env.AXE_APP_INFO),hooks:Object.assign({pre:[],post:[]},"object"==typeof r.hooks?r.hooks:{})},r),this.appInfo=!!this.config.appInfo&&"function"==typeof I&&I(),this.log=this.log.bind(this);const a=Object.keys(this.config.logger).filter(e=>!c.has(e));for(const t of a)this[t]=this.config.logger[t];for(const t of s)"function"!=typeof this.config.logger[t]&&("fatal"===t?this.config.logger.fatal=this.config.logger.error||this.config.logger.info||this.config.logger.log:this.config.logger[t]=this.config.logger.info||this.config.logger.log),this[t]=function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return e.log(t,...Array.prototype.slice.call(n))};this.setLevel=this.setLevel.bind(this),this.getNormalizedLevel=this.getNormalizedLevel.bind(this),this.setName=this.setName.bind(this),this.config.name&&this.setName(this.config.name),this.setLevel(this.config.level),this.err=this.error,this.warning=this.warn,this.pre=function(e,t){this.config.hooks.pre.push((function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return e!==r?[...o]:t(...o)}))},this.post=function(e,t){this.config.hooks.post.push((function(r){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return e!==r?[...o]:t(...o)}))}}setLevel(e){if(!j(e)||-1===s.indexOf(e))throw new Error(a);j(this.config.logger.logLevel)?this.config.logger.logLevel=e:this.config.logger.level=e,this.config.levels=s.slice(s.indexOf(e))}getNormalizedLevel(e){return j(e)?j(f[e])?f[e]:-1===s.indexOf(e)?"info":e:"info"}setName(e){if(!j(e))throw new Error("`name` must be a String");j(this.config.logger.scope)?this.config.logger.scope=e:this.config.logger.name=e}log(e,t,c){const a=[],y=[];m(e)||a.push(e),m(t)||a.push(t),m(c)||a.push(c);for(var v=arguments.length,A=new Array(v>3?v-3:0),w=3;w<v;w++)A[w-3]=arguments[w];for(const r of Array.prototype.slice.call(A))a.push(r);let S=0;if(j(e)&&j(f[e])?e=f[e]:g(e)?(c=t,t=e,e="error"):j(e)&&-1!==s.indexOf(e)||(c=t,t=e,e=this.getNormalizedLevel(e),S=-1),-1===this.config.levels.indexOf(e))return;let E,_=!1;if((O(t)||Array.isArray(t))&&j(c)){_=!0;const e=c;c=t,t=j(e)&&a.length>=3+S?l(...a.slice(2+S)):e}if(m(t)&&(t=e),1!==a.slice(1+S).length||j(t)||g(t))if(!_&&a.length>=4+S){t=void 0,c={};const r=[];for(const e of a)g(e)?y.push(e):j(e)&&r.push(e);0===y.length&&r.length>0?t=l(...r):y.length>0&&"log"===e&&(e="error")}else if(!_&&a.length===3+S&&j(t)&&u.some(e=>-1!==t.indexOf(e)))t=l(t,c),c={};else if(g(t)){if(g(c)){y.push(c);for(const e of a.slice(2+S))c!==e&&g(e)&&y.push(e);c={}}}else g(c)?(y.push(c),c={}):O(c)||m(c)||null===c?j(t)||(t=l(t)):(t=l(t,c),c={});else c={message:t},t=e;m(c)||O(c)?O(c)||(c={}):c={original_meta:c},g(t)&&(y.unshift(t),t=void 0),O(c.err)&&(g(c.err)&&y.push(c.err),c.original_err=g(c.err)?L(c.err):c.err),y.length>0&&(E=function(e){if(0!==(e=e.filter(i)).length)return 1===e.length?e[0]:new r(e)}(y),c.err=L(E),j(t)||(t=E.message)),c.level=e,this.appInfo&&(c.app=this.appInfo);const P=-1===S?"log":e;for(const r of this.config.hooks.pre)[E,t,c]=r(P,E,t,c);const T=n(c[o]);if(!d(this.config.meta.remappedFields))for(const r of Reflect.ownKeys(this.config.meta.remappedFields))if(N(c,this.config.meta.remappedFields[r],p(c,r)),z(c,r),this.config.meta.cleanupRemapping){const e=r.lastIndexOf(".");if(-1===e)continue;const t=r.slice(0,e);d(p(c,t))&&z(c,t)}if(!d(this.config.meta.omittedFields)||!d(this.config.meta.pickedFields)){const e=function(e){const t=[];return function e(r,n){for(const o of Reflect.ownKeys(r)){const i=r[o],c=n?n+"."+o:o;b(i)?e(i,c):t.push(c)}}(e),t}(c);if(!d(this.config.meta.omittedFields))for(const r of this.config.meta.omittedFields){let t=e.length;for(;t--;)(e[t]===r||!h(e[t])&&0===e[t].indexOf(r+"."))&&e.splice(t,1)}const t=[];if(!d(this.config.meta.pickedFields))for(const r of this.config.meta.pickedFields){if(h(r))c[r]&&t.push([r,c[r]]);else{const t=r.indexOf("."),n=r.slice(0,t+1);if(-1!==t){let t=e.length;for(;t--;)h(e[t])||0!==e[t].indexOf(n)||e.splice(t,1)}}-1===e.indexOf(r)&&e.push(r)}for(const r of e)h(r)&&c[r]&&t.push([r,c[r]]);if(c=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(n=e,"[object Object]"!==Object.prototype.toString.call(n)||!t||!Array.isArray(t)&&"string"!=typeof t)return{};var n;const{length:o}=t;if("string"==typeof t||o<2){const n="string"==typeof t?t:t[0],o=p(e,n,r);return void 0!==o?N({},n,o,r):{}}return((e,t,r,n)=>{const o={};for(let i=0;i<r;i++){const r=t[i],c=p(e,r,n);void 0!==c&&N(o,r,c,n)}return o})(e,t,o,r)}(c,e),t.length>0)for(const[r,n]of t)c[r]=n}this.config.silent||T||(g(E)&&this.config.showStack?!this.config.meta.show||d(c)||this.config.meta.hideMeta&&c[this.config.meta.hideMeta]?this.config.logger[P](E):this.config.logger[P](E,c):!this.config.meta.show||d(c)||this.config.meta.hideMeta&&c[this.config.meta.hideMeta]||this.config.meta.hideHTTP&&c[this.config.meta.hideHTTP]?this.config.logger[P](t):this.config.logger[P](t,c)),k(this.config.hooks.post,e=>e(P,E,t,c)).then().catch(e=>{this.config.logger.error(e)})}}}).call(this)}.call(this,J),ue}));
{
"name": "axe",
"description": "Axe is a logger-agnostic wrapper that normalizes logs regardless of argument style. Great for large development teams, old and new projects, and works with Pino, Bunyan, Winston, console, and more. It is lightweight, performant, highly-configurable, and automatically adds OS, CPU, and Git information to your logs. It supports hooks (useful for masking sensitive data) and dot-notation remapping, omitting, and picking of log metadata properties. Made for Forward Email, Lad, and Cabin.",
"version": "11.2.0",
"version": "11.2.1",
"author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com)",

@@ -6,0 +6,0 @@ "browser": {

@@ -454,8 +454,12 @@ # Axe

if (
meta?.is_http &&
meta?.response?.status_code < 400 &&
meta?.response?.headers?.['content-type'] &&
IGNORED_CONTENT_TYPES.some((c) =>
meta.response.headers['content-type'].startsWith(c)
)
meta.is_http &&
meta.response &&
meta.response.status_code &&
meta.response.status_code < 400 &&
(meta.response.status_code === 304 ||
(meta.response.headers &&
meta.response.headers['content-type'] &&
IGNORED_CONTENT_TYPES.some((c) =>
meta.response.headers['content-type'].startsWith(c)
)))
)

@@ -462,0 +466,0 @@ meta[silentSymbol] = true;

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