aptechka 0.76.1 → 0.76.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.
@@ -1 +1 @@
1
- "use strict";var d=e=>{throw TypeError(e)};var a=(e,r,s)=>r.has(e)||d("Cannot "+s);var o=(e,r,s)=>(a(e,r,"read from private field"),s?s.call(e):r.get(e)),u=(e,r,s)=>r.has(e)?d("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,s),c=(e,r,s,n)=>(a(e,r,"write to private field"),n?n.call(e,s):r.set(e,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../order/index.cjs"),h=require("../window-resizer/index.cjs"),b=require("../Store-Cd1GlEmZ.cjs");require("construct-style-sheets-polyfill");require("../index-DekP7OZe.cjs");var i,t;class q extends b.Store{constructor(s){super(!1);u(this,i);u(this,t);c(this,i,s),c(this,t,h.windowResizer.subscribe(()=>{matchMedia(o(this,i)).matches?this.current=!0:this.current=!1},l.RESIZE_ORDER.MEDIA))}close(){super.close(),o(this,t).call(this)}}i=new WeakMap,t=new WeakMap;exports.Media=q;
1
+ "use strict";var a=e=>{throw TypeError(e)};var d=(e,r,s)=>r.has(e)||a("Cannot "+s);var o=(e,r,s)=>(d(e,r,"read from private field"),s?s.call(e):r.get(e)),u=(e,r,s)=>r.has(e)?a("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,s),n=(e,r,s,i)=>(d(e,r,"write to private field"),i?i.call(e,s):r.set(e,s),s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("../order/index.cjs"),h=require("../window-resizer/index.cjs"),b=require("../Store-Cd1GlEmZ.cjs");require("construct-style-sheets-polyfill");require("../index-DekP7OZe.cjs");var t,c;class q extends b.Store{constructor(s){super(!1);u(this,t);u(this,c);n(this,t,s);const i=()=>{matchMedia(o(this,t)).matches?this.current=!0:this.current=!1};n(this,c,h.windowResizer.subscribe(i,l.RESIZE_ORDER.MEDIA)),i()}close(){super.close(),o(this,c).call(this)}}t=new WeakMap,c=new WeakMap;exports.Media=q;
@@ -1,28 +1,33 @@
1
- var a = (e) => {
2
- throw TypeError(e);
1
+ var u = (s) => {
2
+ throw TypeError(s);
3
3
  };
4
- var h = (e, r, s) => r.has(e) || a("Cannot " + s);
5
- var o = (e, r, s) => (h(e, r, "read from private field"), s ? s.call(e) : r.get(e)), c = (e, r, s) => r.has(e) ? a("Cannot add the same private member more than once") : r instanceof WeakSet ? r.add(e) : r.set(e, s), m = (e, r, s, u) => (h(e, r, "write to private field"), u ? u.call(e, s) : r.set(e, s), s);
6
- import { RESIZE_ORDER as p } from "../order/index.js";
4
+ var h = (s, e, r) => e.has(s) || u("Cannot " + r);
5
+ var c = (s, e, r) => (h(s, e, "read from private field"), r ? r.call(s) : e.get(s)), m = (s, e, r) => e.has(s) ? u("Cannot add the same private member more than once") : e instanceof WeakSet ? e.add(s) : e.set(s, r), a = (s, e, r, t) => (h(s, e, "write to private field"), t ? t.call(s, r) : e.set(s, r), r);
6
+ import { RESIZE_ORDER as l } from "../order/index.js";
7
7
  import { windowResizer as n } from "../window-resizer/index.js";
8
- import { S as f } from "../Store-0BVty6AZ.js";
8
+ import { S as p } from "../Store-0BVty6AZ.js";
9
9
  import "construct-style-sheets-polyfill";
10
10
  import "../index-Bv9zgfdb.js";
11
- var t, i;
12
- class M extends f {
13
- constructor(s) {
11
+ var i, o;
12
+ class M extends p {
13
+ constructor(r) {
14
14
  super(!1);
15
- c(this, t);
16
- c(this, i);
17
- m(this, t, s), m(this, i, n.subscribe(() => {
18
- matchMedia(o(this, t)).matches ? this.current = !0 : this.current = !1;
19
- }, p.MEDIA));
15
+ m(this, i);
16
+ m(this, o);
17
+ a(this, i, r);
18
+ const t = () => {
19
+ matchMedia(c(this, i)).matches ? this.current = !0 : this.current = !1;
20
+ };
21
+ a(this, o, n.subscribe(
22
+ t,
23
+ l.MEDIA
24
+ )), t();
20
25
  }
21
26
  close() {
22
- super.close(), o(this, i).call(this);
27
+ super.close(), c(this, o).call(this);
23
28
  }
24
29
  }
25
- t = new WeakMap(), i = new WeakMap();
30
+ i = new WeakMap(), o = new WeakMap();
26
31
  export {
27
32
  M as Media
28
33
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aptechka",
3
- "version": "0.76.1",
3
+ "version": "0.76.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/denisavitski/aptechka.git"