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

lodash.trim

Package Overview
Dependencies
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash.trim - npm Package Compare versions

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 @@ }

3

package.json
{
"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.
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