New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@emartech/json-logger

Package Overview
Dependencies
Maintainers
187
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@emartech/json-logger - npm Package Compare versions

Comparing version 6.0.0 to 6.0.1

.eslintrc

2

dist/formatter/logentries.js

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

'use strict';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });

@@ -3,0 +3,0 @@ exports.logentriesFormatter = void 0;

@@ -79,5 +79,5 @@ "use strict";

}
return stack.length > STACK_TRACE_LIMIT
? stack.substring(0, STACK_TRACE_LIMIT) + ' ...'
: stack;
return stack.length > STACK_TRACE_LIMIT ?
stack.substring(0, STACK_TRACE_LIMIT) + ' ...' :
stack;
}

@@ -89,5 +89,5 @@ _shortenData(data) {

const stringifiedData = typeof data === 'object' ? JSON.stringify(data) : data;
return stringifiedData.length > DATA_LIMIT
? stringifiedData.substring(0, DATA_LIMIT) + ' ...'
: stringifiedData;
return stringifiedData.length > DATA_LIMIT ?
stringifiedData.substring(0, DATA_LIMIT) + ' ...' :
stringifiedData;
}

@@ -107,4 +107,5 @@ _getErrorDetails(error) {

_getAxiosErrorDetails(error) {
if (!error.isAxiosError)
if (!error.isAxiosError) {
return {};
}
return {

@@ -111,0 +112,0 @@ request_method: error.config.method,

{
"name": "@emartech/json-logger",
"version": "6.0.0",
"version": "6.0.1",
"description": "Tiny and fast json logger with namespace support",
"main": "dist/index.js",
"scripts": {
"test": "mocha --require ts-node/register ./src/ --recursive",
"test:watch": "mocha --require ts-node/register ./src/ --recursive --watch",
"test": "mocha --require ts-node/register ./src --recursive",
"test:watch": "mocha --require ts-node/register ./src --recursive --watch",
"lint": "eslint ./src/**/*.{ts,js}",
"build": "rm -rf dist && tsc --project ./tsconfig.json",

@@ -36,3 +37,8 @@ "semantic-release": "CI=true semantic-release",

"@types/node": "18.7.2",
"@typescript-eslint/parser": "5.35.1",
"chai": "4.3.6",
"eslint": "7.21.0",
"eslint-config-emarsys": "5.1.0",
"eslint-plugin-no-only-tests": "2.4.0",
"eslint-plugin-security": "1.4.0",
"express": "4.18.1",

@@ -39,0 +45,0 @@ "koa": "2.13.4",

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