lodash.trim
Advanced tools
Comparing version 4.3.0 to 4.4.0
10
index.js
/** | ||
* lodash 4.3.0 (Custom Build) <https://lodash.com/> | ||
* lodash (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modularize exports="npm" -o ./` | ||
@@ -10,2 +10,3 @@ * Copyright jQuery Foundation and other contributors <https://jquery.org/> | ||
var baseSlice = require('lodash._baseslice'), | ||
baseToString = require('lodash._basetostring'), | ||
toString = require('lodash.tostring'); | ||
@@ -171,9 +172,6 @@ | ||
string = toString(string); | ||
if (!string) { | ||
return string; | ||
} | ||
if (guard || chars === undefined) { | ||
if (string && (guard || chars === undefined)) { | ||
return string.replace(reTrim, ''); | ||
} | ||
if (!(chars += '')) { | ||
if (!string || !(chars = baseToString(chars))) { | ||
return string; | ||
@@ -180,0 +178,0 @@ } |
{ | ||
"name": "lodash.trim", | ||
"version": "4.3.0", | ||
"version": "4.4.0", | ||
"description": "The lodash method `_.trim` exported as a module.", | ||
@@ -19,4 +19,5 @@ "homepage": "https://lodash.com/", | ||
"lodash._baseslice": "~4.0.0", | ||
"lodash._basetostring": "~4.12.0", | ||
"lodash.tostring": "^4.0.0" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# lodash.trim v4.3.0 | ||
# lodash.trim v4.4.0 | ||
@@ -18,2 +18,2 @@ The [lodash](https://lodash.com/) method `_.trim` exported as a [Node.js](https://nodejs.org/) module. | ||
See the [documentation](https://lodash.com/docs#trim) or [package source](https://github.com/lodash/lodash/blob/4.3.0-npm-packages/lodash.trim) for more details. | ||
See the [documentation](https://lodash.com/docs#trim) or [package source](https://github.com/lodash/lodash/blob/4.4.0-npm-packages/lodash.trim) for more details. |
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
9161
3
167
+ Addedlodash._basetostring@~4.12.0
+ Addedlodash._basetostring@4.12.0(transitive)