Socket
Socket
Sign inDemoInstall

lodash.pad

Package Overview
Dependencies
2
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.2.1 to 3.2.2

53

index.js
/**
* lodash 3.2.1 (Custom Build) <https://lodash.com/>
* lodash 3.2.2 (Custom Build) <https://lodash.com/>
* Build: `lodash modularize exports="npm" -o ./`

@@ -62,6 +62,49 @@ * Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/>

/** Built-in method references without a dependency on `global`. */
/** Used to determine if values are of the language type `Object`. */
var objectTypes = {
'function': true,
'object': true
};
/** Built-in method references without a dependency on `root`. */
var freeParseInt = parseInt;
/** Detect free variable `exports`. */
var freeExports = (objectTypes[typeof exports] && exports && !exports.nodeType) ? exports : null;
/** Detect free variable `module`. */
var freeModule = (objectTypes[typeof module] && module && !module.nodeType) ? module : null;
/** Detect free variable `global` from Node.js. */
var freeGlobal = checkGlobal(freeExports && freeModule && typeof global == 'object' && global);
/** Detect free variable `self`. */
var freeSelf = checkGlobal(objectTypes[typeof self] && self);
/** Detect free variable `window`. */
var freeWindow = checkGlobal(objectTypes[typeof window] && window);
/** Detect `this` as the global object. */
var thisGlobal = checkGlobal(objectTypes[typeof this] && this);
/**
* Used as a reference to the global object.
*
* The `this` value is used if it's the global object to avoid Greasemonkey's
* restricted `window` object, otherwise the `window` object is used.
*/
var root = freeGlobal || ((freeWindow !== (thisGlobal && thisGlobal.window)) && freeWindow) || freeSelf || thisGlobal || Function('return this')();
/**
* Checks if `value` is a global object.
*
* @private
* @param {*} value The value to check.
* @returns {null|Object} Returns `value` if it's a global object, else `null`.
*/
function checkGlobal(value) {
return (value && value.Object === Object) ? value : null;
}
/**
* Gets the number of symbols in `string`.

@@ -96,3 +139,3 @@ *

/** Used for built-in method references. */
var objectProto = global.Object.prototype;
var objectProto = Object.prototype;

@@ -106,3 +149,3 @@ /**

/** Built-in value references. */
var Symbol = global.Symbol;
var Symbol = root.Symbol;

@@ -191,4 +234,2 @@ /* Built-in method references for those with the same name as other `lodash` methods. */

function isObject(value) {
// Avoid a V8 JIT bug in Chrome 19-20.
// See https://code.google.com/p/v8/issues/detail?id=2291 for more details.
var type = typeof value;

@@ -195,0 +236,0 @@ return !!value && (type == 'object' || type == 'function');

4

package.json
{
"name": "lodash.pad",
"version": "3.2.1",
"version": "3.2.2",
"description": "The lodash method `_.pad` exported as a module.",

@@ -8,3 +8,3 @@ "homepage": "https://lodash.com/",

"license": "MIT",
"keywords": "lodash, lodash-modularized, stdlib, util, pad",
"keywords": "lodash-modularized, pad",
"author": "John-David Dalton <john.david.dalton@gmail.com> (http://allyoucanleet.com/)",

@@ -11,0 +11,0 @@ "contributors": [

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

# lodash.pad v3.2.1
# lodash.pad v3.2.2

@@ -18,2 +18,2 @@ The [lodash](https://lodash.com/) method `_.pad` exported as a [Node.js](https://nodejs.org/) module.

See the [documentation](https://lodash.com/docs#pad) or [package source](https://github.com/lodash/lodash/blob/3.2.1-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.2.2-npm-packages/lodash.pad) for more details.
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc