Socket
Socket
Sign inDemoInstall

expect

Package Overview
Dependencies
39
Maintainers
5
Versions
236
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 27.3.0 to 27.3.1

15

build/asymmetricMatchers.js

@@ -150,19 +150,18 @@ 'use strict';

if (this.sample == Object) {
return typeof other == 'object';
}
if (this.sample == Boolean) {
return typeof other == 'boolean';
return typeof other == 'boolean' || other instanceof Boolean;
}
/* global BigInt */
if (this.sample == BigInt) {
return typeof other == 'bigint';
return typeof other == 'bigint' || other instanceof BigInt;
}
if (this.sample == Symbol) {
return typeof other == 'symbol';
return typeof other == 'symbol' || other instanceof Symbol;
}
if (this.sample == Object) {
return typeof other == 'object';
}
return other instanceof this.sample;

@@ -169,0 +168,0 @@ }

@@ -104,6 +104,12 @@ 'use strict';

Object.defineProperty(expect, key, {
value: (...sample) => new CustomMatcher(false, ...sample)
configurable: true,
enumerable: true,
value: (...sample) => new CustomMatcher(false, ...sample),
writable: true
});
Object.defineProperty(expect.not, key, {
value: (...sample) => new CustomMatcher(true, ...sample)
configurable: true,
enumerable: true,
value: (...sample) => new CustomMatcher(true, ...sample),
writable: true
});

@@ -110,0 +116,0 @@ }

{
"name": "expect",
"version": "27.3.0",
"version": "27.3.1",
"repository": {

@@ -21,9 +21,9 @@ "type": "git",

"ansi-styles": "^5.0.0",
"jest-get-type": "^27.0.6",
"jest-matcher-utils": "^27.3.0",
"jest-message-util": "^27.3.0",
"jest-get-type": "^27.3.1",
"jest-matcher-utils": "^27.3.1",
"jest-message-util": "^27.3.1",
"jest-regex-util": "^27.0.6"
},
"devDependencies": {
"@jest/test-utils": "^27.3.0",
"@jest/test-utils": "^27.3.1",
"chalk": "^4.0.0",

@@ -39,3 +39,3 @@ "fast-check": "^2.0.0",

},
"gitHead": "14b0c2c1d6f81b64adf8b827649ece80a4448cfc"
"gitHead": "4f3328f3227aa0668486f819b3353af5b6cc797b"
}
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