Bump to v4.1.4.

This commit is contained in:
John-David Dalton
2016-04-02 20:16:50 -07:00
parent 4e2d859e65
commit b334d7a573
59 changed files with 537 additions and 3027 deletions

View File

@@ -1,4 +1,4 @@
# lodash.replace v4.1.3
# lodash.replace v4.1.4
The [lodash](https://lodash.com/) method `_.replace` exported as a [Node.js](https://nodejs.org/) module.
@@ -15,4 +15,4 @@ In Node.js:
var replace = require('lodash.replace');
```
See the [documentation](https://lodash.com/docs#replace) or [package source](https://github.com/lodash/lodash/blob/4.1.3-npm-packages/lodash.replace) for more details.
See the [documentation](https://lodash.com/docs#replace) or [package source](https://github.com/lodash/lodash/blob/4.1.4-npm-packages/lodash.replace) for more details.

View File

@@ -23,12 +23,11 @@ var freeSelf = typeof self == 'object' && self && self.Object === Object && self
var root = freeGlobal || freeSelf || Function('return this')();
/** Used for built-in method references. */
var objectProto = Object.prototype,
stringProto = String.prototype;
var objectProto = Object.prototype;
/**
* Used to resolve the
* [`toStringTag`](http://ecma-international.org/ecma-262/6.0/#sec-object.prototype.tostring)
* [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
* of values.
*/
var objectToString = objectProto.toString;
@@ -36,9 +35,6 @@ var objectToString = objectProto.toString;
/** Built-in value references. */
var Symbol = root.Symbol;
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeReplace = stringProto.replace;
/** Used to convert symbols to primitives and strings. */
var symbolProto = Symbol ? Symbol.prototype : undefined,
symbolToString = symbolProto ? symbolProto.toString : undefined;
@@ -161,7 +157,7 @@ function replace() {
var args = arguments,
string = toString(args[0]);
return args.length < 3 ? string : nativeReplace.call(string, args[1], args[2]);
return args.length < 3 ? string : string.replace(args[1], args[2]);
}
module.exports = replace;

View File

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