aptechka 0.64.5 → 0.64.6

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.
@@ -1 +1 @@
1
- "use strict";var f=e=>{throw TypeError(e)};var w=(e,i,s)=>i.has(e)||f("Cannot "+s);var t=(e,i,s)=>(w(e,i,"read from private field"),s?s.call(e):i.get(e)),u=(e,i,s)=>i.has(e)?f("Cannot add the same private member more than once"):i instanceof WeakSet?i.add(e):i.set(e,s),c=(e,i,s,o)=>(w(e,i,"write to private field"),o?o.call(e,s):i.set(e,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../notifier/index.cjs"),l=require("../index-DekP7OZe.cjs"),R=require("../function-MthRj-GJ.cjs");require("construct-style-sheets-polyfill");var r,n,d;class h extends b.Notifier{constructor(){super();u(this,r,!1);u(this,n,()=>{t(this,r)||(c(this,r,!0),t(this,d).call(this))});u(this,d,R.debounce(()=>{this.notify(),c(this,r,!1)},0));l.isBrowser&&(window.addEventListener("resize",t(this,n)),t(this,n).call(this))}subscribe(s,o){const z=super.subscribe(s,o);return t(this,r)||s(),z}}r=new WeakMap,n=new WeakMap,d=new WeakMap;const a=new h;exports.WindowResizer=h;exports.windowResizer=a;
1
+ "use strict";var f=i=>{throw TypeError(i)};var w=(i,s,e)=>s.has(i)||f("Cannot "+e);var t=(i,s,e)=>(w(i,s,"read from private field"),e?e.call(i):s.get(i)),u=(i,s,e)=>s.has(i)?f("Cannot add the same private member more than once"):s instanceof WeakSet?s.add(i):s.set(i,e),c=(i,s,e,o)=>(w(i,s,"write to private field"),o?o.call(i,e):s.set(i,e),e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../notifier/index.cjs"),l=require("../index-DekP7OZe.cjs"),R=require("../function-MthRj-GJ.cjs");require("construct-style-sheets-polyfill");var r,n,d;class h extends b.Notifier{constructor(){super();u(this,r,!1);u(this,n,e=>{t(this,r)||(c(this,r,!0),t(this,d).call(this,e))});u(this,d,R.debounce(e=>{this.notify(e),c(this,r,!1)},0));l.isBrowser&&(window.addEventListener("resize",t(this,n)),t(this,n).call(this))}subscribe(e,o){const z=super.subscribe(e,o);return t(this,r)||e(),z}}r=new WeakMap,n=new WeakMap,d=new WeakMap;const a=new h;exports.WindowResizer=h;exports.windowResizer=a;
@@ -1,5 +1,5 @@
1
1
  import { Notifier } from '../notifier';
2
- export type WindowResizerCallback = () => void;
2
+ export type WindowResizerCallback = (event?: Event) => void;
3
3
  export declare class WindowResizer extends Notifier<WindowResizerCallback> {
4
4
  #private;
5
5
  constructor();
@@ -1,8 +1,8 @@
1
- var h = (s) => {
2
- throw TypeError(s);
1
+ var h = (e) => {
2
+ throw TypeError(e);
3
3
  };
4
- var c = (s, e, i) => e.has(s) || h("Cannot " + i);
5
- var t = (s, e, i) => (c(s, e, "read from private field"), i ? i.call(s) : e.get(s)), u = (s, e, i) => e.has(s) ? h("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(s) : e.set(s, i), f = (s, e, i, n) => (c(s, e, "write to private field"), n ? n.call(s, i) : e.set(s, i), i);
4
+ var c = (e, i, s) => i.has(e) || h("Cannot " + s);
5
+ var t = (e, i, s) => (c(e, i, "read from private field"), s ? s.call(e) : i.get(e)), u = (e, i, s) => i.has(e) ? h("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(e) : i.set(e, s), f = (e, i, s, n) => (c(e, i, "write to private field"), n ? n.call(e, s) : i.set(e, s), s);
6
6
  import { Notifier as p } from "../notifier/index.js";
7
7
  import { i as w } from "../index-Bv9zgfdb.js";
8
8
  import { d as z } from "../function-C10DGppn.js";
@@ -12,17 +12,17 @@ class b extends p {
12
12
  constructor() {
13
13
  super();
14
14
  u(this, r, !1);
15
- u(this, o, () => {
16
- t(this, r) || (f(this, r, !0), t(this, d).call(this));
15
+ u(this, o, (s) => {
16
+ t(this, r) || (f(this, r, !0), t(this, d).call(this, s));
17
17
  });
18
- u(this, d, z(() => {
19
- this.notify(), f(this, r, !1);
18
+ u(this, d, z((s) => {
19
+ this.notify(s), f(this, r, !1);
20
20
  }, 0));
21
21
  w && (window.addEventListener("resize", t(this, o)), t(this, o).call(this));
22
22
  }
23
- subscribe(i, n) {
24
- const m = super.subscribe(i, n);
25
- return t(this, r) || i(), m;
23
+ subscribe(s, n) {
24
+ const m = super.subscribe(s, n);
25
+ return t(this, r) || s(), m;
26
26
  }
27
27
  }
28
28
  r = new WeakMap(), o = new WeakMap(), d = new WeakMap();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aptechka",
3
- "version": "0.64.5",
3
+ "version": "0.64.6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/denisavitski/aptechka.git"