Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@jest/expect-utils

Package Overview
Dependencies
Maintainers
6
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jest/expect-utils - npm Package Compare versions

Comparing version 28.0.2 to 28.1.0

8

build/jasmineUtils.js

@@ -8,2 +8,3 @@ 'use strict';

exports.isA = isA;
exports.isImmutableList = isImmutableList;
exports.isImmutableUnorderedKeyed = isImmutableUnorderedKeyed;

@@ -239,6 +240,7 @@ exports.isImmutableUnorderedSet = isImmutableUnorderedSet;

);
} // SENTINEL constants are from https://github.com/facebook/immutable-js
} // SENTINEL constants are from https://github.com/immutable-js/immutable-js/tree/main/src/predicates
const IS_KEYED_SENTINEL = '@@__IMMUTABLE_KEYED__@@';
const IS_SET_SENTINEL = '@@__IMMUTABLE_SET__@@';
const IS_LIST_SENTINEL = '@@__IMMUTABLE_LIST__@@';
const IS_ORDERED_SENTINEL = '@@__IMMUTABLE_ORDERED__@@';

@@ -261,1 +263,5 @@

}
function isImmutableList(maybeList) {
return !!(maybeList && maybeList[IS_LIST_SENTINEL]);
}

10

build/utils.js

@@ -281,7 +281,9 @@ 'use strict';

const aEntries = Object.entries(a);
const bEntries = Object.entries(b);
if (!(0, _jasmineUtils.isImmutableList)(a)) {
const aEntries = Object.entries(a);
const bEntries = Object.entries(b);
if (!(0, _jasmineUtils.equals)(aEntries, bEntries)) {
return false;
if (!(0, _jasmineUtils.equals)(aEntries, bEntries)) {
return false;
}
} // Remove the first value from the stack of traversed values.

@@ -288,0 +290,0 @@

{
"name": "@jest/expect-utils",
"version": "28.0.2",
"version": "28.1.0",
"repository": {

@@ -23,3 +23,4 @@ "type": "git",

"devDependencies": {
"jest-matcher-utils": "^28.0.2"
"immutable": "^4.0.0",
"jest-matcher-utils": "^28.1.0"
},

@@ -32,3 +33,3 @@ "engines": {

},
"gitHead": "279ee6658d763f024d51f340fab6a37c17d94502"
"gitHead": "f5db241312f46528389e55c38221e6b6968622cf"
}
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