@manuscripts/track-changes-plugin 1.9.4 → 1.9.5-LEAN-4312.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.
|
@@ -39,7 +39,8 @@ function trackTransaction(tr, oldState, newTr, authorID) {
|
|
|
39
39
|
logger_1.log.info('transaction step', step);
|
|
40
40
|
iters += 1;
|
|
41
41
|
const uiEvent = tr.getMeta('uiEvent');
|
|
42
|
-
|
|
42
|
+
const isMassReplace = tr.getMeta('massSearchReplace');
|
|
43
|
+
if (iters > 20 && uiEvent != 'cut' && !isMassReplace) {
|
|
43
44
|
console.error('@manuscripts/track-changes-plugin: Possible infinite loop in iterating tr.steps, tracking skipped!\n' +
|
|
44
45
|
'This is probably an error with the library, please report back to maintainers with a reproduction if possible', newTr);
|
|
45
46
|
continue;
|
|
@@ -33,7 +33,8 @@ export function trackTransaction(tr, oldState, newTr, authorID) {
|
|
|
33
33
|
log.info('transaction step', step);
|
|
34
34
|
iters += 1;
|
|
35
35
|
const uiEvent = tr.getMeta('uiEvent');
|
|
36
|
-
|
|
36
|
+
const isMassReplace = tr.getMeta('massSearchReplace');
|
|
37
|
+
if (iters > 20 && uiEvent != 'cut' && !isMassReplace) {
|
|
37
38
|
console.error('@manuscripts/track-changes-plugin: Possible infinite loop in iterating tr.steps, tracking skipped!\n' +
|
|
38
39
|
'This is probably an error with the library, please report back to maintainers with a reproduction if possible', newTr);
|
|
39
40
|
continue;
|
package/package.json
CHANGED