You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

axe

Package Overview
Dependencies
Maintainers
1
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.8 to 3.0.9

7

lib/index.js

@@ -66,4 +66,3 @@ "use strict";

return o['Header Field Name'].toLowerCase();
});
var hasWindow = typeof window !== 'undefined' && typeof window.document !== 'undefined'; // eslint-disable-next-line import/no-unassigned-import
}); // eslint-disable-next-line import/no-unassigned-import

@@ -97,3 +96,3 @@ require('console-polyfill');

levels: ['info', 'warn', 'error', 'fatal'],
capture: env === 'production'
capture: process.browser ? false : env === 'production'
}, config);

@@ -211,3 +210,3 @@ Object.assign(this, omit(this.config.logger, ['config', 'log'])); // we could have used `auto-bind` but it's not compiled for browser

var headers = config.headers;
if (hasWindow) headers = Object.keys(config.headers).reduce(function (memo, header) {
if (process.browser) headers = Object.keys(config.headers).reduce(function (memo, header) {
if (!includes(standardHeaders, config.headers[header].toLowerCase())) memo[header] = config.headers[header];

@@ -214,0 +213,0 @@ return memo;

{
"name": "axe",
"description": "Logging add-on to send logs over HTTP to your server in Node and Browser environments. Works with any logger! Chop up your logs consistently! Made for Cabin and Lad.",
"version": "3.0.8",
"version": "3.0.9",
"author": "Nick Baugh <niftylettuce@gmail.com> (http://niftylettuce.com)",

@@ -41,3 +41,3 @@ "ava": {

"@babel/core": "^7.2.2",
"@babel/preset-env": "^7.2.3",
"@babel/preset-env": "^7.3.1",
"@commitlint/cli": "^7.3.2",

@@ -48,3 +48,3 @@ "@commitlint/config-conventional": "^7.3.1",

"browserify": "^16.2.3",
"caniuse-lite": "^1.0.30000929",
"caniuse-lite": "^1.0.30000930",
"codecov": "^3.1.0",

@@ -60,7 +60,7 @@ "consola": "^2.3.2",

"husky": "^1.3.1",
"jsdom": "13.1.0",
"jsdom": "13.2.0",
"koa": "^2.6.2",
"lint-staged": "^8.1.0",
"nyc": "^13.1.0",
"pino": "^5.10.8",
"pino": "^5.10.10",
"remark-cli": "^6.0.1",

@@ -67,0 +67,0 @@ "remark-preset-github": "^0.0.13",

@@ -204,4 +204,3 @@ # Axe

const logger = new Axe({
logger: isProduction ? pino : consola,
capture: false
logger: isProduction ? pino : consola
});

@@ -253,3 +252,3 @@

* `levels` (Array) - an Array of levels to capture (defaults to `[ 'info', 'warn', 'error', 'fatal' ]`
* `capture` (Boolean) - defaults to `false` in non-production environments, whether or not to `POST` logs to the `endpoint` (takes into consideration the `config.levels` to only send valid capture levels)
* `capture` (Boolean) - defaults to `false` in browser (all environments) and server-side (non-production only) environments, whether or not to `POST` logs to the `endpoint` (takes into consideration the `config.levels` to only send valid capture levels)

@@ -256,0 +255,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc