Socket
Socket
Sign inDemoInstall

lodash-es

Package Overview
Dependencies
Maintainers
5
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lodash-es - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

3

chain/wrapperReverse.js

@@ -28,2 +28,5 @@ import LazyWrapper from '../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 @@ import arrayEach from '../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 @@ import MapCache from '../internal/MapCache';

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

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

import baseMatches from './baseMatches';
import baseProperty from './baseProperty';
import baseToString from './baseToString';
import bindCallback from './bindCallback';

@@ -31,5 +30,5 @@ import identity from '../utility/identity';

? baseMatches(func, !argCount)
: baseProperty(argCount ? baseToString(func) : func);
: baseProperty(func + '');
}
export default baseCallback;

@@ -50,2 +50,5 @@ import arrayCopy from './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,2 +0,1 @@

import baseToString from './baseToString';
import repeat from '../string/repeat';

@@ -30,3 +29,3 @@ import root from './root';

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

@@ -33,0 +32,0 @@ }

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

import baseToString from './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;

@@ -12,7 +12,10 @@ import LazyWrapper from './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 @@ import baseWrapperValue from './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;
}
export default lazyValue;
/**
* @license
* lodash 3.0.0 (Custom Build) <https://lodash.com/>
* lodash 3.0.1 (Custom Build) <https://lodash.com/>
* Build: `lodash modularize modern exports="es" -o ./`

@@ -40,3 +40,3 @@ * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/>

/** Used as the semantic version number. */
var VERSION = '3.0.0';
var VERSION = '3.0.1';

@@ -420,3 +420,4 @@ /** Used to indicate the type of lazy iteratees. */

baseForOwn(LazyWrapper.prototype, function(func, methodName) {
var retUnwrapped = /^(?:first|last)$/.test(methodName);
var lodashFunc = lodash[methodName],
retUnwrapped = /^(?:first|last)$/.test(methodName);

@@ -434,3 +435,3 @@ lodash.prototype[methodName] = function() {

? func.call(value)
: lodash[methodName](this.value());
: lodashFunc.call(lodash, this.value());
}

@@ -440,3 +441,3 @@ var interceptor = function(value) {

push.apply(otherArgs, args);
return lodash[methodName].apply(lodash, otherArgs);
return lodashFunc.apply(lodash, otherArgs);
};

@@ -443,0 +444,0 @@ if (isLazy || isArray(value)) {

{
"name": "lodash-es",
"version": "3.0.0",
"version": "3.0.1",
"description": "The modern build of lodash exported as ES modules.",

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

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

# lodash-es v3.0.0
# lodash-es v3.0.1

@@ -3,0 +3,0 @@ The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash](https://lodash.com/) exported as [ES](https://people.mozilla.org/~jorendorff/es6-draft.html) modules.

@@ -5,3 +5,3 @@ import createCompounder from '../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 @@ *

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