Socket
Socket
Sign inDemoInstall

lodash._createpad

Package Overview
Dependencies
Maintainers
5
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash._createpad - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

17

index.js

@@ -11,17 +11,2 @@ /**

/**
* Converts `value` to a string if it is not one. An empty string is returned
* for `null` or `undefined` values.
*
* @private
* @param {*} value The value to process.
* @returns {string} Returns the string.
*/
function baseToString(value) {
if (typeof value == 'string') {
return value;
}
return value == null ? '' : (value + '');
}
/** Native method references. */

@@ -52,3 +37,3 @@ var ceil = Math.ceil;

var padLength = length - strLength;
chars = chars == null ? ' ' : baseToString(chars);
chars = chars == null ? ' ' : (chars + '');
return repeat(chars, ceil(padLength / chars.length)).slice(0, padLength);

@@ -55,0 +40,0 @@ }

2

package.json
{
"name": "lodash._createpad",
"version": "3.0.0",
"version": "3.0.1",
"description": "The modern build of lodash’s internal `createPad` as a module.",

@@ -5,0 +5,0 @@ "homepage": "https://lodash.com/",

@@ -1,2 +0,2 @@

# lodash._createpad v3.0.0
# lodash._createpad v3.0.1

@@ -20,2 +20,2 @@ The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) internal `createPad` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module.

See the [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash._createpad) for more details.
See the [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash._createpad) 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