Comparing version 0.3.0 to 0.3.1
/* | ||
* 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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27929
603