@spscommerce/positioning 8.12.0 → 8.12.2

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.
Files changed (2) hide show
  1. package/lib/index.es.js +10 -19
  2. package/package.json +2 -2
package/lib/index.es.js CHANGED
@@ -157,8 +157,7 @@ const N = {
157
157
  if (window.getComputedStyle(t).display != "none") {
158
158
  for (var s = e, l = _(t), O = !1; !O && l; ) {
159
159
  var E = null, I = l.nodeType == 1 ? window.getComputedStyle(l) : {};
160
- if (I.display == "none")
161
- return null;
160
+ if (I.display == "none") return null;
162
161
  if (l == this.root || l.nodeType == /* DOCUMENT */
163
162
  9)
164
163
  if (O = !0, l == this.root || l == n)
@@ -171,8 +170,7 @@ const N = {
171
170
  var B = l.ownerDocument;
172
171
  l != B.body && l != B.documentElement && I.overflow != "visible" && (E = T(l));
173
172
  }
174
- if (E && (s = v(E, s)), !s)
175
- break;
173
+ if (E && (s = v(E, s)), !s) break;
176
174
  l = l && _(l);
177
175
  }
178
176
  return s;
@@ -300,8 +298,7 @@ const N = {
300
298
  }
301
299
  function h(t, e) {
302
300
  for (var o = e; o; ) {
303
- if (o == t)
304
- return !0;
301
+ if (o == t) return !0;
305
302
  o = _(o);
306
303
  }
307
304
  return !1;
@@ -339,17 +336,14 @@ var A = { exports: {} };
339
336
  }
340
337
  m.prototype.eventNames = function() {
341
338
  var c = [], u, v;
342
- if (this._eventsCount === 0)
343
- return c;
339
+ if (this._eventsCount === 0) return c;
344
340
  for (v in u = this._events)
345
341
  n.call(u, v) && c.push(i ? v.slice(1) : v);
346
342
  return Object.getOwnPropertySymbols ? c.concat(Object.getOwnPropertySymbols(u)) : c;
347
343
  }, m.prototype.listeners = function(c) {
348
344
  var u = i ? i + c : c, v = this._events[u];
349
- if (!v)
350
- return [];
351
- if (v.fn)
352
- return [v.fn];
345
+ if (!v) return [];
346
+ if (v.fn) return [v.fn];
353
347
  for (var T = 0, y = v.length, b = new Array(y); T < y; T++)
354
348
  b[T] = v[T].fn;
355
349
  return b;
@@ -358,8 +352,7 @@ var A = { exports: {} };
358
352
  return v ? v.fn ? 1 : v.length : 0;
359
353
  }, m.prototype.emit = function(c, u, v, T, y, b) {
360
354
  var x = i ? i + c : c;
361
- if (!this._events[x])
362
- return !1;
355
+ if (!this._events[x]) return !1;
363
356
  var h = this._events[x], _ = arguments.length, R, t;
364
357
  if (h.fn) {
365
358
  switch (h.once && this.removeListener(c, h.fn, void 0, !0), _) {
@@ -396,9 +389,8 @@ var A = { exports: {} };
396
389
  h[t].fn.call(h[t].context, u, v, T);
397
390
  break;
398
391
  default:
399
- if (!R)
400
- for (o = 1, R = new Array(_ - 1); o < _; o++)
401
- R[o - 1] = arguments[o];
392
+ if (!R) for (o = 1, R = new Array(_ - 1); o < _; o++)
393
+ R[o - 1] = arguments[o];
402
394
  h[t].fn.apply(h[t].context, R);
403
395
  }
404
396
  }
@@ -409,8 +401,7 @@ var A = { exports: {} };
409
401
  return w(this, c, u, v, !0);
410
402
  }, m.prototype.removeListener = function(c, u, v, T) {
411
403
  var y = i ? i + c : c;
412
- if (!this._events[y])
413
- return this;
404
+ if (!this._events[y]) return this;
414
405
  if (!u)
415
406
  return a(this, y), this;
416
407
  var b = this._events[y];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@spscommerce/positioning",
3
3
  "description": "Service for positioning dropdown/popup elements.",
4
- "version": "8.12.0",
4
+ "version": "8.12.2",
5
5
  "author": "SPS Commerce",
6
6
  "license": "UNLICENSED",
7
7
  "repository": "https://github.com/spscommerce/woodland/tree/main/packages/@spscommerce/positioning",
@@ -36,6 +36,6 @@
36
36
  "build:types": "tsc --emitDeclarationOnly --declaration --declarationDir lib",
37
37
  "watch": "vite build --watch",
38
38
  "clean": "git clean -fdX",
39
- "pub": "node ../../scripts/publish-package.js"
39
+ "pub": "node ../../scripts/publish-package.mjs"
40
40
  }
41
41
  }