@burger-editor/utils 4.0.0-alpha.42 → 4.0.0-alpha.44

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.
@@ -79,8 +79,8 @@ function getNormalizedAttributes(el) {
79
79
  * @returns 属性が同じ場合true、異なる場合false
80
80
  */
81
81
  function compareAttributes(attrs1, attrs2) {
82
- const keys1 = Object.keys(attrs1).sort();
83
- const keys2 = Object.keys(attrs2).sort();
82
+ const keys1 = Object.keys(attrs1).toSorted();
83
+ const keys2 = Object.keys(attrs2).toSorted();
84
84
  // 属性名の数が異なる場合は異なる
85
85
  if (keys1.length !== keys2.length) {
86
86
  return false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burger-editor/utils",
3
- "version": "4.0.0-alpha.42",
3
+ "version": "4.0.0-alpha.44",
4
4
  "description": "BurgerEditor Editor Utility Functions",
5
5
  "author": "D-ZERO",
6
6
  "license": "(MIT OR Apache-2.0)",
@@ -33,5 +33,5 @@
33
33
  "devDependencies": {
34
34
  "@types/turndown": "5.0.6"
35
35
  },
36
- "gitHead": "2e7526f26cfb3e09f6dc57b66175dd88d209a45c"
36
+ "gitHead": "94726de640ddfdab08d12d7b799142d94862928f"
37
37
  }