Socket
Socket
Sign inDemoInstall

lodash.pad

Package Overview
Dependencies
4
Maintainers
5
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0 to 3.1.0

13

index.js
/**
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
* lodash 3.1.0 (Custom Build) <https://lodash.com/>
* Build: `lodash modern modularize exports="npm" -o ./`
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
* Based on Underscore.js 1.7.0 <http://underscorejs.org/LICENSE>
* Based on Underscore.js 1.8.2 <http://underscorejs.org/LICENSE>
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors

@@ -10,3 +10,3 @@ * Available under MIT license <https://lodash.com/license>

var baseToString = require('lodash._basetostring'),
createPad = require('lodash._createpad');
createPadding = require('lodash._createpadding');

@@ -21,5 +21,4 @@ /** Native method references. */

/**
* Pads `string` on the left and right sides if it is shorter then the given
* padding length. The `chars` string may be truncated if the number of padding
* characters can't be evenly divided by the padding length.
* Pads `string` on the left and right sides if it is shorter than `length`.
* Padding characters are truncated if they can't be evenly divided by `length`.
*

@@ -56,3 +55,3 @@ * @static

chars = createPad('', rightLength, chars);
chars = createPadding('', rightLength, chars);
return chars.slice(0, leftLength) + string + chars;

@@ -59,0 +58,0 @@ }

Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>
Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas,
Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas,
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>

@@ -4,0 +4,0 @@

{
"name": "lodash.pad",
"version": "3.0.0",
"version": "3.1.0",
"description": "The modern build of lodash’s `_.pad` as a module.",

@@ -21,4 +21,4 @@ "homepage": "https://lodash.com/",

"lodash._basetostring": "^3.0.0",
"lodash._createpad": "^3.0.0"
"lodash._createpadding": "^3.0.0"
}
}

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

# lodash.pad v3.0.0
# lodash.pad v3.1.0

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

See the [documentation](https://lodash.com/docs#pad) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.pad) for more details.
See the [documentation](https://lodash.com/docs#pad) or [package source](https://github.com/lodash/lodash/blob/3.1.0-npm-packages/lodash.pad) for more details.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc