Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@abcnews/err

Package Overview
Dependencies
Maintainers
7
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@abcnews/err - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

20

lib/index.js

@@ -1,10 +0,22 @@

'use strict';
"use strict";
module.exports = function (tag, noRepeat) {
return function (err, msg) {
var stderr = (console || {}).error;
var logger = (((ABC || {}).News || {}).Logger || {}).log;
var stderr;
var logger;
try {
stderr = console.error;
} catch (e) {
stderr = false;
}
try {
logger = ABC.News.Logger.log;
} catch (e) {
logger = false;
}
if (stderr) stderr(err);
if (logger) logger(tag, err.name + ': ' + err.message, err, !!noRepeat);
if (logger) logger(tag, err.name + ": " + err.message, err, !!noRepeat);
};
};

14

package.json
{
"name": "@abcnews/err",
"version": "1.0.1",
"description":
"Light weight error reporting module which wraps ABC News built in logging.",
"version": "1.0.2",
"description": "Light weight error reporting module which wraps ABC News built in logging.",
"main": "lib/index.js",
"babel": {
"presets": ["es2015"]
"presets": [
"es2015"
]
},

@@ -18,3 +19,6 @@ "scripts": {

},
"keywords": ["error", "logging"],
"keywords": [
"error",
"logging"
],
"author": "Simon Elvery",

@@ -21,0 +25,0 @@ "license": "ISC",

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