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

errs

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

errs - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

3

lib/errs.js
/*
* errs.js: Simple error creation and passing utilities.
*
* (C) 2012, Nodejitsu Inc.
* (C) 2012, Charlie Robbins, Nuno Job, and the Contributors.
* MIT LICENSE

@@ -23,2 +23,3 @@ *

enumerable: false,
writable: true,
value: function () {

@@ -25,0 +26,0 @@ return mixin({

{
"name": "errs",
"description": "Simple error creation and passing utilities",
"version": "0.3.0",
"author": "Nodejitsu Inc. <info@nodejitsu.com>",
"version": "0.3.1",
"author": "Charlie Robbins <charlie.robbins@gmail.com>",
"maintainers": [
"indexzero <charlie@nodejitsu.com>",
"dscape <nuno@nodejitsu.com>"

@@ -12,10 +11,11 @@ ],

"type": "git",
"url": "http://github.com/flatiron/errs.git"
"url": "http://github.com/indexzero/errs.git"
},
"keywords": [
"errors",
"error",
"utilities"
],
"devDependencies": {
"vows": "0.7.x"
"vows": "0.8.x"
},

@@ -22,0 +22,0 @@ "main": "./lib/errs",

/*
* errs-test.js: Tests for the `errs` module.
*
* (C) 2012, Nodejitsu Inc.
* (C) 2012, Charlie Robbins, Nuno Job, and the Contributors.
* MIT LICENSE

@@ -212,2 +212,12 @@ *

})
},
"should be writable": function () {
var orig = Error.prototype.toJSON;
Error.prototype.toJSON = function() {
return 'foo';
};
var json = (new Error('Testing 12345')).toJSON();
assert.equal(json, 'foo');
Error.prototype.toJSON = orig;
}

@@ -214,0 +224,0 @@ }

/*
* fixtures.js: Test fixtures for the `errs` module.
*
* (C) 2012, Nodejitsu Inc.
* (C) 2012, Charlie Robbins, Nuno Job, and the Contributors.
* MIT LICENSE

@@ -6,0 +6,0 @@ *

/*
* macros.js: Test macros for the `errs` module.
*
* (C) 2012, Nodejitsu Inc.
* (C) 2012, Charlie Robbins, Nuno Job, and the Contributors.
* MIT LICENSE
*
*/
var assert = require('assert'),

@@ -63,3 +63,3 @@ errs = require('../lib/errs');

var obj = fn();
return {

@@ -66,0 +66,0 @@ topic: errs.create(fn),

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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