ide-assi 0.432.0 → 0.434.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.
@@ -202194,7 +202194,7 @@ const DocManager = () => {
202194
202194
  );
202195
202195
  };
202196
202196
 
202197
- export default DocManager;
202197
+ export default DocManager1;
202198
202198
  `;
202199
202199
  /**
202200
202200
  src1 = `
@@ -235072,9 +235072,6 @@ class IdeDiff extends HTMLElement {
235072
235072
  case diffMatchPatchExports.diff_match_patch.DIFF_INSERT:
235073
235073
  console.log(diffMatchPatchExports.diff_match_patch.DIFF_INSERT, text);
235074
235074
  const tobeLines = text.split('\n');
235075
- if (text.endsWith('\n')) ;
235076
-
235077
- console.log(tobeLines);
235078
235075
 
235079
235076
  for (let i = 0; i < tobeLines.length; i++) {
235080
235077
  // 빈 줄이 아니고, 마지막 줄이면서 줄바꿈이 없는 경우가 아니면 데코레이션
@@ -235084,7 +235081,6 @@ class IdeDiff extends HTMLElement {
235084
235081
  }
235085
235082
  tobeCursor += tobeLines[i].length + (i < tobeLines.length - 1 ? 1 : 0);
235086
235083
  */
235087
- console.log(tobeCursor);
235088
235084
  if (!(i === tobeLines.length - 1 && tobeLines[i] === '' && text.endsWith('\n'))) {
235089
235085
  tobeLineBuilder.add(tobeCursor, tobeCursor, insertedLineDeco);
235090
235086
  }
@@ -235096,7 +235092,7 @@ class IdeDiff extends HTMLElement {
235096
235092
  console.log(diffMatchPatchExports.diff_match_patch.DIFF_DELETE, text);
235097
235093
  const asisLines = text.split('\n');
235098
235094
  for (let i = 0; i < asisLines.length; i++) {
235099
- if (!(i === asisLines.length - 1 && asisLines[i] === '' && !text.endsWith('\n'))) {
235095
+ if (!(i === asisLines.length - 1 && asisLines[i] === '' && text.endsWith('\n'))) {
235100
235096
  asisLineBuilder.add(asisCursor, asisCursor, deletedLineDeco);
235101
235097
  }
235102
235098
  asisCursor += asisLines[i].length + (i < asisLines.length - 1 ? 1 : 0);
@@ -202190,7 +202190,7 @@ const DocManager = () => {
202190
202190
  );
202191
202191
  };
202192
202192
 
202193
- export default DocManager;
202193
+ export default DocManager1;
202194
202194
  `;
202195
202195
  /**
202196
202196
  src1 = `
@@ -235068,9 +235068,6 @@ class IdeDiff extends HTMLElement {
235068
235068
  case diffMatchPatchExports.diff_match_patch.DIFF_INSERT:
235069
235069
  console.log(diffMatchPatchExports.diff_match_patch.DIFF_INSERT, text);
235070
235070
  const tobeLines = text.split('\n');
235071
- if (text.endsWith('\n')) ;
235072
-
235073
- console.log(tobeLines);
235074
235071
 
235075
235072
  for (let i = 0; i < tobeLines.length; i++) {
235076
235073
  // 빈 줄이 아니고, 마지막 줄이면서 줄바꿈이 없는 경우가 아니면 데코레이션
@@ -235080,7 +235077,6 @@ class IdeDiff extends HTMLElement {
235080
235077
  }
235081
235078
  tobeCursor += tobeLines[i].length + (i < tobeLines.length - 1 ? 1 : 0);
235082
235079
  */
235083
- console.log(tobeCursor);
235084
235080
  if (!(i === tobeLines.length - 1 && tobeLines[i] === '' && text.endsWith('\n'))) {
235085
235081
  tobeLineBuilder.add(tobeCursor, tobeCursor, insertedLineDeco);
235086
235082
  }
@@ -235092,7 +235088,7 @@ class IdeDiff extends HTMLElement {
235092
235088
  console.log(diffMatchPatchExports.diff_match_patch.DIFF_DELETE, text);
235093
235089
  const asisLines = text.split('\n');
235094
235090
  for (let i = 0; i < asisLines.length; i++) {
235095
- if (!(i === asisLines.length - 1 && asisLines[i] === '' && !text.endsWith('\n'))) {
235091
+ if (!(i === asisLines.length - 1 && asisLines[i] === '' && text.endsWith('\n'))) {
235096
235092
  asisLineBuilder.add(asisCursor, asisCursor, deletedLineDeco);
235097
235093
  }
235098
235094
  asisCursor += asisLines[i].length + (i < asisLines.length - 1 ? 1 : 0);
@@ -464,7 +464,7 @@ const DocManager = () => {
464
464
  );
465
465
  };
466
466
 
467
- export default DocManager;
467
+ export default DocManager1;
468
468
  `;
469
469
  /**
470
470
  src1 = `
@@ -280,11 +280,6 @@ export class IdeDiff extends HTMLElement {
280
280
  case diff_match_patch.DIFF_INSERT:
281
281
  console.log(diff_match_patch.DIFF_INSERT, text);
282
282
  const tobeLines = text.split('\n');
283
- if (text.endsWith('\n')) {
284
- //tobeLines.splice(tobeLines.length - 1, 1);
285
- }
286
-
287
- console.log(tobeLines);
288
283
 
289
284
  for (let i = 0; i < tobeLines.length; i++) {
290
285
  // 빈 줄이 아니고, 마지막 줄이면서 줄바꿈이 없는 경우가 아니면 데코레이션
@@ -294,7 +289,6 @@ export class IdeDiff extends HTMLElement {
294
289
  }
295
290
  tobeCursor += tobeLines[i].length + (i < tobeLines.length - 1 ? 1 : 0);
296
291
  */
297
- console.log(tobeCursor);
298
292
  if (!(i === tobeLines.length - 1 && tobeLines[i] === '' && text.endsWith('\n'))) {
299
293
  tobeLineBuilder.add(tobeCursor, tobeCursor, insertedLineDeco);
300
294
  }
@@ -306,7 +300,7 @@ export class IdeDiff extends HTMLElement {
306
300
  console.log(diff_match_patch.DIFF_DELETE, text);
307
301
  const asisLines = text.split('\n');
308
302
  for (let i = 0; i < asisLines.length; i++) {
309
- if (!(i === asisLines.length - 1 && asisLines[i] === '' && !text.endsWith('\n'))) {
303
+ if (!(i === asisLines.length - 1 && asisLines[i] === '' && text.endsWith('\n'))) {
310
304
  asisLineBuilder.add(asisCursor, asisCursor, deletedLineDeco);
311
305
  }
312
306
  asisCursor += asisLines[i].length + (i < asisLines.length - 1 ? 1 : 0);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "ide-assi",
3
3
  "type": "module",
4
- "version": "0.432.0",
4
+ "version": "0.434.0",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "exports": {
@@ -464,7 +464,7 @@ const DocManager = () => {
464
464
  );
465
465
  };
466
466
 
467
- export default DocManager;
467
+ export default DocManager1;
468
468
  `;
469
469
  /**
470
470
  src1 = `
@@ -280,11 +280,6 @@ export class IdeDiff extends HTMLElement {
280
280
  case diff_match_patch.DIFF_INSERT:
281
281
  console.log(diff_match_patch.DIFF_INSERT, text);
282
282
  const tobeLines = text.split('\n');
283
- if (text.endsWith('\n')) {
284
- //tobeLines.splice(tobeLines.length - 1, 1);
285
- }
286
-
287
- console.log(tobeLines);
288
283
 
289
284
  for (let i = 0; i < tobeLines.length; i++) {
290
285
  // 빈 줄이 아니고, 마지막 줄이면서 줄바꿈이 없는 경우가 아니면 데코레이션
@@ -294,7 +289,6 @@ export class IdeDiff extends HTMLElement {
294
289
  }
295
290
  tobeCursor += tobeLines[i].length + (i < tobeLines.length - 1 ? 1 : 0);
296
291
  */
297
- console.log(tobeCursor);
298
292
  if (!(i === tobeLines.length - 1 && tobeLines[i] === '' && text.endsWith('\n'))) {
299
293
  tobeLineBuilder.add(tobeCursor, tobeCursor, insertedLineDeco);
300
294
  }
@@ -306,7 +300,7 @@ export class IdeDiff extends HTMLElement {
306
300
  console.log(diff_match_patch.DIFF_DELETE, text);
307
301
  const asisLines = text.split('\n');
308
302
  for (let i = 0; i < asisLines.length; i++) {
309
- if (!(i === asisLines.length - 1 && asisLines[i] === '' && !text.endsWith('\n'))) {
303
+ if (!(i === asisLines.length - 1 && asisLines[i] === '' && text.endsWith('\n'))) {
310
304
  asisLineBuilder.add(asisCursor, asisCursor, deletedLineDeco);
311
305
  }
312
306
  asisCursor += asisLines[i].length + (i < asisLines.length - 1 ? 1 : 0);