handoff-app 1.2.1-0 → 1.2.1-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.
|
@@ -16,7 +16,7 @@ exports.stableStringify = stableStringify;
|
|
|
16
16
|
*/
|
|
17
17
|
const diffMapSnapshots = (oldSnapshot, newSnapshot) => {
|
|
18
18
|
const affected = new Set();
|
|
19
|
-
for (const [key, oldEntries] of oldSnapshot) {
|
|
19
|
+
for (const [key, oldEntries] of Array.from(oldSnapshot)) {
|
|
20
20
|
const newEntries = newSnapshot.get(key);
|
|
21
21
|
if (!newEntries) {
|
|
22
22
|
affected.add(key);
|
|
@@ -26,14 +26,14 @@ const diffMapSnapshots = (oldSnapshot, newSnapshot) => {
|
|
|
26
26
|
affected.add(key);
|
|
27
27
|
continue;
|
|
28
28
|
}
|
|
29
|
-
for (const [subKey, oldValue] of oldEntries) {
|
|
29
|
+
for (const [subKey, oldValue] of Array.from(oldEntries)) {
|
|
30
30
|
if (newEntries.get(subKey) !== oldValue) {
|
|
31
31
|
affected.add(key);
|
|
32
32
|
break;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
for (const key of newSnapshot.keys()) {
|
|
36
|
+
for (const key of Array.from(newSnapshot.keys())) {
|
|
37
37
|
if (!oldSnapshot.has(key)) {
|
|
38
38
|
affected.add(key);
|
|
39
39
|
}
|
package/package.json
CHANGED
|
@@ -23,7 +23,7 @@ export const diffMapSnapshots = (
|
|
|
23
23
|
): string[] => {
|
|
24
24
|
const affected = new Set<string>();
|
|
25
25
|
|
|
26
|
-
for (const [key, oldEntries] of oldSnapshot) {
|
|
26
|
+
for (const [key, oldEntries] of Array.from(oldSnapshot)) {
|
|
27
27
|
const newEntries = newSnapshot.get(key);
|
|
28
28
|
if (!newEntries) {
|
|
29
29
|
affected.add(key);
|
|
@@ -33,7 +33,7 @@ export const diffMapSnapshots = (
|
|
|
33
33
|
affected.add(key);
|
|
34
34
|
continue;
|
|
35
35
|
}
|
|
36
|
-
for (const [subKey, oldValue] of oldEntries) {
|
|
36
|
+
for (const [subKey, oldValue] of Array.from(oldEntries)) {
|
|
37
37
|
if (newEntries.get(subKey) !== oldValue) {
|
|
38
38
|
affected.add(key);
|
|
39
39
|
break;
|
|
@@ -41,7 +41,7 @@ export const diffMapSnapshots = (
|
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
for (const key of newSnapshot.keys()) {
|
|
44
|
+
for (const key of Array.from(newSnapshot.keys())) {
|
|
45
45
|
if (!oldSnapshot.has(key)) {
|
|
46
46
|
affected.add(key);
|
|
47
47
|
}
|