New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

moderndash

Package Overview
Dependencies
Maintainers
1
Versions
108
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moderndash - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

42

dist/index.d.ts

@@ -777,3 +777,3 @@ /**

* // => false
* @category Lang
* @category Validate
* @param value - The value to check.

@@ -794,6 +794,2 @@ * @returns Returns `true` if given vlaue is empty, else `false`.

*
* @category Lang
* @param value1 - The value to compare.
* @param value2 - The other value to compare.
* @returns Returns `true` if the values are equivalent, else `false`.
* @example

@@ -808,35 +804,9 @@ * var object = { 'a': 1 };

* // => false
* @category Validate
* @param value1 - The value to compare.
* @param value2 - The other value to compare.
* @returns Returns `true` if the values are equivalent, else `false`.
*/
declare function isEqual(value1: unknown, value2: unknown): boolean;
/**
* This method is like `_.isEqual` except that it accepts `customizer` which
* is invoked to compare values. If `customizer` returns `undefined`, comparisons
* are handled by the method instead. The `customizer` is invoked with up to
* six arguments: (objValue, othValue [, index|key, object, other, stack]).
*
* @category Lang
* @example
* function isGreeting(value) {
* return /^h(?:i|ello)$/.test(value);
* }
*
* function customizer(objValue, othValue) {
* if (isGreeting(objValue) && isGreeting(othValue)) {
* return true;
* }
* }
*
* var array = ['hello', 'goodbye'];
* var other = ['hi', 'goodbye'];
*
* isEqualWith(array, other, customizer);
* // => true
* @param a - The value to compare.
* @param b - The other value to compare.
* @param customizer - The function to customize comparisons.
* @returns Returns `true` if the values are equivalent, else `false`.
*/
declare function isEqualWith<T>(a: T, b: T, customizer: (value: T) => unknown): boolean;
declare function isPlainObject(value: unknown): value is object;

@@ -857,2 +827,2 @@

export { GenericFunction, IterateeFunction, MinimumTwoArrays, NoUnion, PropertyShorthand, RecordKey, after, before, camelCase, capitalize, chunk, count, debounce, deburr, difference, differenceBy, differenceWith, dropRightWhile, dropWhile, escapeHtml, escapeRegExp, group, intersection, intersectionBy, intersectionWith, isEmpty, isEqual, isEqualWith, isPlainObject, isUrl, kebabCase, memoize, omit, once, pascalCase, pick, sample, sampleSize, shuffle, sleep, snakeCase, sort, startCase, stripSpecial, takeRightWhile, takeWhile, throttle, times, unescapeHtml, uniq, uniqBy, uniqWith, unzip, unzipWith, zip, zipWith };
export { GenericFunction, IterateeFunction, MinimumTwoArrays, NoUnion, PropertyShorthand, RecordKey, after, before, camelCase, capitalize, chunk, count, debounce, deburr, difference, differenceBy, differenceWith, dropRightWhile, dropWhile, escapeHtml, escapeRegExp, group, intersection, intersectionBy, intersectionWith, isEmpty, isEqual, isPlainObject, isUrl, kebabCase, memoize, omit, once, pascalCase, pick, sample, sampleSize, shuffle, sleep, snakeCase, sort, startCase, stripSpecial, takeRightWhile, takeWhile, throttle, times, unescapeHtml, uniq, uniqBy, uniqWith, unzip, unzipWith, zip, zipWith };

14

dist/index.js

@@ -105,11 +105,6 @@ // src/array/chunk.ts

// src/validate/isEqualWith.ts
function isEqualWith(a, b, customizer) {
return isEqual(customizer(a), customizer(b));
}
// src/array/differenceBy.ts
function differenceBy(iteratee, ...arrays) {
const iterateeFunction = getIterateFunction(iteratee);
return differenceWith((a, b) => isEqualWith(a, b, iterateeFunction), ...arrays);
const iterateeFn = getIterateFunction(iteratee);
return differenceWith((a, b) => isEqual(iterateeFn(a), iterateeFn(b)), ...arrays);
}

@@ -162,4 +157,4 @@

function intersectionBy(iteratee, ...arrays) {
const iterateeFunction = getIterateFunction(iteratee);
return intersectionWith((a, b) => isEqualWith(a, b, iterateeFunction), ...arrays);
const iterateeFn = getIterateFunction(iteratee);
return intersectionWith((a, b) => isEqual(iterateeFn(a), iterateeFn(b)), ...arrays);
}

@@ -628,3 +623,2 @@

isEqual,
isEqualWith,
isPlainObject,

@@ -631,0 +625,0 @@ isUrl,

@@ -51,3 +51,3 @@ {

},
"version": "0.1.0"
"version": "0.1.1"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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