@wordpress/is-shallow-equal 5.36.1-next.8fd3f8831.0 → 5.37.1-next.79a2f3cdd.0
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.md +1 -1
- package/build/index.cjs +2 -2
- package/build-module/{arrays.js → arrays.mjs} +1 -1
- package/build-module/{index.js → index.mjs} +3 -3
- package/build-module/{objects.js → objects.mjs} +1 -1
- package/package.json +7 -5
- /package/build-module/{arrays.js.map → arrays.mjs.map} +0 -0
- /package/build-module/{index.js.map → index.mjs.map} +0 -0
- /package/build-module/{objects.js.map → objects.mjs.map} +0 -0
package/LICENSE.md
CHANGED
package/build/index.cjs
CHANGED
|
@@ -36,8 +36,8 @@ __export(index_exports, {
|
|
|
36
36
|
isShallowEqualObjects: () => import_objects.default
|
|
37
37
|
});
|
|
38
38
|
module.exports = __toCommonJS(index_exports);
|
|
39
|
-
var import_objects = __toESM(require("./objects.cjs")
|
|
40
|
-
var import_arrays = __toESM(require("./arrays.cjs")
|
|
39
|
+
var import_objects = __toESM(require("./objects.cjs"));
|
|
40
|
+
var import_arrays = __toESM(require("./arrays.cjs"));
|
|
41
41
|
function isShallowEqual(a, b) {
|
|
42
42
|
if (a && b) {
|
|
43
43
|
if (a.constructor === Object && b.constructor === Object) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// packages/is-shallow-equal/src/index.ts
|
|
2
|
-
import isShallowEqualObjects from "./objects.
|
|
3
|
-
import isShallowEqualArrays from "./arrays.
|
|
2
|
+
import isShallowEqualObjects from "./objects.mjs";
|
|
3
|
+
import isShallowEqualArrays from "./arrays.mjs";
|
|
4
4
|
function isShallowEqual(a, b) {
|
|
5
5
|
if (a && b) {
|
|
6
6
|
if (a.constructor === Object && b.constructor === Object) {
|
|
@@ -17,4 +17,4 @@ export {
|
|
|
17
17
|
isShallowEqualArrays,
|
|
18
18
|
isShallowEqualObjects
|
|
19
19
|
};
|
|
20
|
-
//# sourceMappingURL=index.
|
|
20
|
+
//# sourceMappingURL=index.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wordpress/is-shallow-equal",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.37.1-next.79a2f3cdd.0",
|
|
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",
|
|
@@ -31,13 +31,12 @@
|
|
|
31
31
|
"build-types",
|
|
32
32
|
"*.md"
|
|
33
33
|
],
|
|
34
|
-
"type": "module",
|
|
35
34
|
"main": "build/index.cjs",
|
|
36
|
-
"module": "build-module/index.
|
|
35
|
+
"module": "build-module/index.mjs",
|
|
37
36
|
"exports": {
|
|
38
37
|
".": {
|
|
39
38
|
"types": "./build-types/index.d.ts",
|
|
40
|
-
"import": "./build-module/index.
|
|
39
|
+
"import": "./build-module/index.mjs",
|
|
41
40
|
"require": "./build/index.cjs"
|
|
42
41
|
},
|
|
43
42
|
"./package.json": "./package.json"
|
|
@@ -46,8 +45,11 @@
|
|
|
46
45
|
"wpScript": true,
|
|
47
46
|
"types": "build-types",
|
|
48
47
|
"sideEffects": false,
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"benchmark": "2.1.4"
|
|
50
|
+
},
|
|
49
51
|
"publishConfig": {
|
|
50
52
|
"access": "public"
|
|
51
53
|
},
|
|
52
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "6a324496a37d9a333a11d4d7fe5fb93b8152a5ba"
|
|
53
55
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|