@jest/expect-utils 29.4.2 → 29.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) Facebook, Inc. and its affiliates.
3
+ Copyright (c) Meta Platforms, Inc. and affiliates.
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -10,7 +10,7 @@ exports.isImmutableRecord = isImmutableRecord;
10
10
  exports.isImmutableUnorderedKeyed = isImmutableUnorderedKeyed;
11
11
  exports.isImmutableUnorderedSet = isImmutableUnorderedSet;
12
12
  /**
13
- * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
13
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
package/build/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
2
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
3
3
  *
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
package/build/utils.js CHANGED
@@ -39,8 +39,6 @@ const hasPropertyInObject = (object, key) => {
39
39
  // the prototype chain for string keys but not for symbols. (Otherwise, it
40
40
  // could find values such as a Set or Map's Symbol.toStringTag, with unexpected
41
41
  // results.)
42
- //
43
- // Compare with subsetEquality's use of Reflect.ownKeys.
44
42
  const getObjectKeys = object => [
45
43
  ...Object.keys(object),
46
44
  ...Object.getOwnPropertySymbols(object)
@@ -317,7 +315,7 @@ const subsetEquality = (object, subset, customTesters = []) => {
317
315
  if (!isObjectWithKeys(subset)) {
318
316
  return undefined;
319
317
  }
320
- return Reflect.ownKeys(subset).every(key => {
318
+ return getObjectKeys(subset).every(key => {
321
319
  if (isObjectWithKeys(subset[key])) {
322
320
  if (seenReferences.has(subset[key])) {
323
321
  return (0, _jasmineUtils.equals)(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jest/expect-utils",
3
- "version": "29.4.2",
3
+ "version": "29.4.3",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/facebook/jest.git",
@@ -17,12 +17,12 @@
17
17
  "./package.json": "./package.json"
18
18
  },
19
19
  "dependencies": {
20
- "jest-get-type": "^29.4.2"
20
+ "jest-get-type": "^29.4.3"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@tsd/typescript": "^4.9.0",
24
24
  "immutable": "^4.0.0",
25
- "jest-matcher-utils": "^29.4.2",
25
+ "jest-matcher-utils": "^29.4.3",
26
26
  "tsd-lite": "^0.6.0"
27
27
  },
28
28
  "engines": {
@@ -31,5 +31,5 @@
31
31
  "publishConfig": {
32
32
  "access": "public"
33
33
  },
34
- "gitHead": "f0fc92e8443f09546c7ec0472bf9bce44fe5898f"
34
+ "gitHead": "a49c88610e49a3242576160740a32a2fe11161e1"
35
35
  }