Socket
Socket
Sign inDemoInstall

lodash-compat

Package Overview
Dependencies
Maintainers
5
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash-compat - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

3

chain/wrapperReverse.js

@@ -28,2 +28,5 @@ var LazyWrapper = require('../internal/LazyWrapper'),

if (value instanceof LazyWrapper) {
if (this.__actions__.length) {
value = new LazyWrapper(this);
}
return new LodashWrapper(value.reverse());

@@ -30,0 +33,0 @@ }

2

collection/forEach.js

@@ -26,3 +26,3 @@ var arrayEach = require('../internal/arrayEach'),

*
* _([1, 2, 3]).forEach(function(n) { console.log(n); });
* _([1, 2, 3]).forEach(function(n) { console.log(n); }).value();
* // => logs each value from left to right and returns the array

@@ -29,0 +29,0 @@ *

@@ -38,3 +38,3 @@ var MapCache = require('../internal/MapCache'),

* // modifying the result cache
* upperCase.cache.set('fred, 'BARNEY');
* upperCase.cache.set('fred', 'BARNEY');
* upperCase('fred');

@@ -41,0 +41,0 @@ * // => 'BARNEY'

var baseMatches = require('./baseMatches'),
baseProperty = require('./baseProperty'),
baseToString = require('./baseToString'),
bindCallback = require('./bindCallback'),

@@ -31,5 +30,5 @@ identity = require('../utility/identity'),

? baseMatches(func, !argCount)
: baseProperty(argCount ? baseToString(func) : func);
: baseProperty(func + '');
}
module.exports = baseCallback;

@@ -50,2 +50,5 @@ var arrayCopy = require('./arrayCopy'),

}
else {
isCommon = false;
}
}

@@ -52,0 +55,0 @@ // Add the source value to the stack of traversed objects and associate

@@ -22,3 +22,4 @@ /**

}
length = start > end ? 0 : (end - start);
length = start > end ? 0 : (end - start) >>> 0;
start >>>= 0;

@@ -25,0 +26,0 @@ var result = Array(length);

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

var baseToString = require('./baseToString'),
repeat = require('../string/repeat');
var repeat = require('../string/repeat');

@@ -29,3 +28,3 @@ /** Native method references. */

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

@@ -32,0 +31,0 @@ }

@@ -1,3 +0,1 @@

var baseToString = require('./baseToString');
/** `Object#toString` result references. */

@@ -46,3 +44,3 @@ var boolTag = '[object Boolean]',

// objects as equal. See https://es5.github.io/#x15.10.6.4 for more details.
return object == baseToString(other);
return object == (other + '');
}

@@ -49,0 +47,0 @@ return false;

@@ -1,3 +0,1 @@

var baseToString = require('./baseToString');
/**

@@ -12,3 +10,3 @@ * Checks if `value` is a host object in IE < 9.

try {
baseToString({ 'toString': 0 });
Object({ 'toString': 0 } + '');
} catch(e) {

@@ -15,0 +13,0 @@ return function() { return false; };

@@ -12,7 +12,10 @@ var LazyWrapper = require('./LazyWrapper');

function lazyReverse() {
var filtered = this.filtered,
result = filtered ? new LazyWrapper(this) : this.clone();
result.dir = this.dir * -1;
result.filtered = filtered;
if (this.filtered) {
var result = new LazyWrapper(this);
result.dir = -1;
result.filtered = true;
} else {
result = this.clone();
result.dir *= -1;
}
return result;

@@ -19,0 +22,0 @@ }

@@ -27,8 +27,8 @@ var baseWrapperValue = require('./baseWrapperValue'),

isRight = dir < 0,
length = array.length,
view = getView(0, length, this.views),
view = getView(0, array.length, this.views),
start = view.start,
end = view.end,
length = end - start,
dropCount = this.dropCount,
takeCount = nativeMin(end - start, this.takeCount - dropCount),
takeCount = nativeMin(length, this.takeCount - dropCount),
index = isRight ? end : start - 1,

@@ -69,5 +69,5 @@ iteratees = this.iteratees,

}
return isRight ? result.reverse() : result;
return result;
}
module.exports = lazyValue;
{
"name": "lodash-compat",
"version": "3.0.0",
"version": "3.0.1",
"description": "The compatibility build of lodash modular utilities.",

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

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

# lodash-compat v3.0.0
# lodash-compat v3.0.1

@@ -25,6 +25,4 @@ The [compatibility build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash](https://lodash.com/) exported as [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) modules.

var _ = require('lodash-compat');
// or a method category
var array = require('lodash-compat/array');
// or a method

@@ -34,3 +32,3 @@ var chunk = require('lodash-compat/array/chunk');

See the [package source](https://github.com/lodash/lodash-compat/tree/3.0.0-npm) for more details.
See the [package source](https://github.com/lodash/lodash-compat/tree/3.0.1-npm) for more details.

@@ -37,0 +35,0 @@ **Note:**<br>

@@ -5,3 +5,3 @@ var createCompounder = require('../internal/createCompounder');

* Converts `string` to kebab case (a.k.a. spinal case).
* See [Wikipedia](https://en.wikipedia.org/wiki/Letter_case#Computers) for
* See [Wikipedia](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles) for
* more details.

@@ -8,0 +8,0 @@ *

Sorry, the diff of this file is too big to display

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