Bump to v3.1.1.

This commit is contained in:
jdalton
2015-02-04 20:53:49 -08:00
committed by John-David Dalton
parent 27d65e814a
commit 971ec866a8
208 changed files with 1053 additions and 846 deletions

View File

@@ -1,4 +1,4 @@
# lodash.iserror v3.1.0
# lodash.iserror v3.1.1
The [lodash](https://lodash.com/) method `_.isError` exported as a [Node.js](https://nodejs.org/) module.
@@ -15,4 +15,4 @@ In Node.js:
var isError = require('lodash.iserror');
```
See the [documentation](https://lodash.com/docs#isError) or [package source](https://github.com/lodash/lodash/blob/3.1.0-npm-packages/lodash.iserror) for more details.
See the [documentation](https://lodash.com/docs#isError) or [package source](https://github.com/lodash/lodash/blob/3.1.1-npm-packages/lodash.iserror) for more details.

View File

@@ -1,5 +1,5 @@
/**
* lodash 3.1.0 (Custom Build) <https://lodash.com/>
* lodash (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="npm" -o ./`
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
@@ -14,7 +14,8 @@ var errorTag = '[object Error]';
var objectProto = Object.prototype;
/**
* Used to resolve the [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
* Used to resolve the
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
* of values.
*/
var objectToString = objectProto.toString;
@@ -25,6 +26,7 @@ var objectToString = objectProto.toString;
*
* @static
* @memberOf _
* @since 3.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is an error object, else `false`.
@@ -40,9 +42,8 @@ function isError(value) {
if (!isObjectLike(value)) {
return false;
}
var Ctor = value.constructor;
return (objectToString.call(value) == errorTag) ||
(typeof Ctor == 'function' && objectToString.call(Ctor.prototype) == errorTag);
(typeof value.message == 'string' && typeof value.name == 'string');
}
/**
@@ -51,6 +52,7 @@ function isError(value) {
*
* @static
* @memberOf _
* @since 4.0.0
* @category Lang
* @param {*} value The value to check.
* @returns {boolean} Returns `true` if `value` is object-like, else `false`.

View File

@@ -1,6 +1,6 @@
{
"name": "lodash.iserror",
"version": "3.1.0",
"version": "3.1.1",
"description": "The lodash method `_.isError` exported as a module.",
"homepage": "https://lodash.com/",
"icon": "https://lodash.com/icon.svg",