@wordpress/is-shallow-equal 4.2.1-next.5df0cd52b7.0 → 4.2.1

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/build/index.js CHANGED
@@ -6,16 +6,16 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.default = isShallowEqual;
9
- Object.defineProperty(exports, "isShallowEqualObjects", {
9
+ Object.defineProperty(exports, "isShallowEqualArrays", {
10
10
  enumerable: true,
11
11
  get: function () {
12
- return _objects.default;
12
+ return _arrays.default;
13
13
  }
14
14
  });
15
- Object.defineProperty(exports, "isShallowEqualArrays", {
15
+ Object.defineProperty(exports, "isShallowEqualObjects", {
16
16
  enumerable: true,
17
17
  get: function () {
18
- return _arrays.default;
18
+ return _objects.default;
19
19
  }
20
20
  });
21
21
 
@@ -13,7 +13,5 @@
13
13
  export default function isShallowEqual(a: any[] | ComparableObject, b: any[] | ComparableObject): boolean;
14
14
  export { default as isShallowEqualObjects } from "./objects";
15
15
  export { default as isShallowEqualArrays } from "./arrays";
16
- export type ComparableObject = {
17
- [x: string]: any;
18
- };
16
+ export type ComparableObject = Record<string, any>;
19
17
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":"AASA;;GAEG;AAEH;;;;;;;;GAQG;AACH,0CALW,GAAG,EAAE,GAAC,gBAAgB,KACtB,GAAG,EAAE,GAAC,gBAAgB,GAErB,OAAO,CAYlB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":"AASA;;GAEG;AAEH;;;;;;;;GAQG;AACH,0CALW,GAAG,EAAE,GAAC,gBAAgB,KACtB,GAAG,EAAE,GAAC,gBAAgB,GAErB,OAAO,CAYlB;;;+BAtBY,OAAO,MAAM,EAAE,GAAG,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wordpress/is-shallow-equal",
3
- "version": "4.2.1-next.5df0cd52b7.0",
3
+ "version": "4.2.1",
4
4
  "description": "Test for shallow equality between two objects or arrays.",
5
5
  "author": "The WordPress Contributors",
6
6
  "license": "GPL-2.0-or-later",
@@ -36,10 +36,10 @@
36
36
  "types": "build-types",
37
37
  "sideEffects": false,
38
38
  "dependencies": {
39
- "@babel/runtime": "^7.13.10"
39
+ "@babel/runtime": "^7.16.0"
40
40
  },
41
41
  "publishConfig": {
42
42
  "access": "public"
43
43
  },
44
- "gitHead": "558d577d12bec15f05e694eb49a094836d885cca"
44
+ "gitHead": "9a1dd3474d937468e4cf9caf9886ad61ef0a8f50"
45
45
  }