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

comerr

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

comerr - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

11

lib/index.js

@@ -13,3 +13,3 @@

429: "Too Many Requests",
500: "Unknown error",
500: "Unknown",
501: "Not Implemented", //use this for features not implemented yet

@@ -29,2 +29,3 @@

exports.codes = {};
exports.byCode = {};
exports.register = function(codes) {

@@ -62,3 +63,3 @@ Object.keys(codes).forEach(function(code) {

exports.byCode[code] = Err;
exports.codes[className] = code;

@@ -69,3 +70,9 @@ });

exports.fromCode = function(code, message) {
var clazz = exports.byCode[Number(code)] || Error;
return new clazz(message);
}
exports.register(DEFAULT_CODES);

4

package.json
{
"name": "comerr",
"version": "0.0.4",
"version": "0.0.5",
"description": "ERROR: No README.md file found!",

@@ -15,2 +15,2 @@ "main": "lib/index.js",

"license": "BSD"
}
}
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