vue-repl-enhance 1.1.7 → 1.1.9

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.
@@ -392,10 +392,10 @@ var ct;
392
392
  p = L(R.fire, R);
393
393
  },
394
394
  onDidRemoveLastListener() {
395
- p?.dispose();
395
+ p == null || p.dispose();
396
396
  }
397
397
  }, R = new re(x);
398
- return v?.add(R), R.event;
398
+ return v == null || v.add(R), R.event;
399
399
  }
400
400
  function f(L, v, p = 100, x = !1, R = !1, D, U) {
401
401
  let Y, ve, we, We = 0, be;
@@ -410,13 +410,13 @@ var ct;
410
410
  });
411
411
  },
412
412
  onWillRemoveListener() {
413
- R && We > 0 && be?.();
413
+ R && We > 0 && (be == null || be());
414
414
  },
415
415
  onDidRemoveLastListener() {
416
416
  be = void 0, Y.dispose();
417
417
  }
418
418
  }, $e = new re(Cr);
419
- return U?.add($e), $e.event;
419
+ return U == null || U.add($e), $e.event;
420
420
  }
421
421
  e.debounce = f;
422
422
  function h(L, v = 0, p) {
@@ -443,7 +443,7 @@ var ct;
443
443
  x ? x.push(Y) : U.fire(Y);
444
444
  });
445
445
  const D = () => {
446
- x?.forEach((Y) => U.fire(Y)), x = null;
446
+ x == null || x.forEach((Y) => U.fire(Y)), x = null;
447
447
  }, U = new re({
448
448
  onWillAddFirstListener() {
449
449
  R || (R = L((Y) => U.fire(Y)));
@@ -523,12 +523,12 @@ var ct;
523
523
  function C(L, v) {
524
524
  let p = null;
525
525
  function x(D) {
526
- p?.dispose(), p = new pe(), v(D, p);
526
+ p == null || p.dispose(), p = new pe(), v(D, p);
527
527
  }
528
528
  x(void 0);
529
529
  const R = L((D) => x(D));
530
530
  return Be(() => {
531
- R.dispose(), p?.dispose();
531
+ R.dispose(), p == null || p.dispose();
532
532
  });
533
533
  }
534
534
  e.runAndSubscribeWithStore = C;
@@ -676,7 +676,7 @@ class re {
676
676
  let h;
677
677
  this._leakageMon && this._size >= Math.ceil(this._leakageMon.threshold * 0.2) && (f.stack = Mt.create(), h = this._leakageMon.check(f.stack, this._size + 1)), this._listeners ? this._listeners instanceof tt ? ((u = this._deliveryQueue) !== null && u !== void 0 || (this._deliveryQueue = new qr()), this._listeners = [this._listeners, f]) : this._listeners.push(f) : ((l = (i = this._options) === null || i === void 0 ? void 0 : i.onWillAddFirstListener) === null || l === void 0 || l.call(i, this), this._listeners = f, (c = (o = this._options) === null || o === void 0 ? void 0 : o.onDidAddFirstListener) === null || c === void 0 || c.call(o, this)), this._size++;
678
678
  const d = Be(() => {
679
- h?.(), this._removeListener(f);
679
+ h == null || h(), this._removeListener(f);
680
680
  });
681
681
  return s instanceof pe ? s.add(d) : Array.isArray(s) && s.push(d), d;
682
682
  }), this._event;
@@ -795,9 +795,9 @@ let ft = !1, dt = !1, rt = !1, or = !1, ze, st = Ce, It = Ce, jr, ee;
795
795
  const ne = typeof self == "object" ? self : typeof global == "object" ? global : {};
796
796
  let z;
797
797
  typeof ne.vscode < "u" && typeof ne.vscode.process < "u" ? z = ne.vscode.process : typeof process < "u" && (z = process);
798
- const Qr = typeof ((nt = z?.versions) === null || nt === void 0 ? void 0 : nt.electron) == "string", Xr = Qr && z?.type === "renderer";
798
+ const Qr = typeof ((nt = z == null ? void 0 : z.versions) === null || nt === void 0 ? void 0 : nt.electron) == "string", Xr = Qr && (z == null ? void 0 : z.type) === "renderer";
799
799
  if (typeof navigator == "object" && !Xr)
800
- ee = navigator.userAgent, ft = ee.indexOf("Windows") >= 0, dt = ee.indexOf("Macintosh") >= 0, (ee.indexOf("Macintosh") >= 0 || ee.indexOf("iPad") >= 0 || ee.indexOf("iPhone") >= 0) && navigator.maxTouchPoints && navigator.maxTouchPoints > 0, rt = ee.indexOf("Linux") >= 0, ee?.indexOf("Mobi") >= 0, or = !0, // This call _must_ be done in the file that calls `nls.getConfiguredDefaultLocale`
800
+ ee = navigator.userAgent, ft = ee.indexOf("Windows") >= 0, dt = ee.indexOf("Macintosh") >= 0, (ee.indexOf("Macintosh") >= 0 || ee.indexOf("iPad") >= 0 || ee.indexOf("iPhone") >= 0) && navigator.maxTouchPoints && navigator.maxTouchPoints > 0, rt = ee.indexOf("Linux") >= 0, (ee == null ? void 0 : ee.indexOf("Mobi")) >= 0, or = !0, // This call _must_ be done in the file that calls `nls.getConfiguredDefaultLocale`
801
801
  // to ensure that the NLS AMD Loader plugin has been loaded and configured.
802
802
  // This is because the loader plugin decides what the default locale is based on
803
803
  // how it's able to resolve the strings.
@@ -5919,11 +5919,11 @@ function Si(e, t, n) {
5919
5919
  if (!s || !s.s1Range.containsRange(g) || !s.s2Range.containsRange(b))
5920
5920
  if (s && !(s.s1Range.endExclusive < g.start && s.s2Range.endExclusive < b.start)) {
5921
5921
  const F = B.tryCreate(s.s1Range.endExclusive, g.start), y = B.tryCreate(s.s2Range.endExclusive, b.start);
5922
- s.deleted += (S = F?.length) !== null && S !== void 0 ? S : 0, s.added += (_ = y?.length) !== null && _ !== void 0 ? _ : 0, s.s1Range = s.s1Range.join(g), s.s2Range = s.s2Range.join(b);
5922
+ s.deleted += (S = F == null ? void 0 : F.length) !== null && S !== void 0 ? S : 0, s.added += (_ = y == null ? void 0 : y.length) !== null && _ !== void 0 ? _ : 0, s.s1Range = s.s1Range.join(g), s.s2Range = s.s2Range.join(b);
5923
5923
  } else
5924
5924
  i(), s = { added: 0, deleted: 0, count: 0, s1Range: g, s2Range: b };
5925
5925
  const E = g.intersect(c.seq1Range), C = b.intersect(c.seq2Range);
5926
- s.count++, s.deleted += (N = E?.length) !== null && N !== void 0 ? N : 0, s.added += (w = C?.length) !== null && w !== void 0 ? w : 0;
5926
+ s.count++, s.deleted += (N = E == null ? void 0 : E.length) !== null && N !== void 0 ? N : 0, s.added += (w = C == null ? void 0 : C.length) !== null && w !== void 0 ? w : 0;
5927
5927
  };
5928
5928
  var o = u;
5929
5929
  const f = e.findWordContaining(c.seq1Range.start - 1), h = t.findWordContaining(c.seq2Range.start - 1), d = e.findWordContaining(c.seq1Range.endExclusive), m = t.findWordContaining(c.seq2Range.endExclusive);