aptechka 0.88.0 → 0.88.1

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,3 +1,14 @@
1
+ export interface ColorToStringOptions extends Partial<ColorRGBA> {
2
+ }
3
+ export interface ColorMixOptions {
4
+ opacityMult?: number;
5
+ }
6
+ export interface ColorRGBA {
7
+ r: number;
8
+ g: number;
9
+ b: number;
10
+ a: number;
11
+ }
1
12
  export declare class Color {
2
13
  #private;
3
14
  constructor(color: string);
@@ -12,8 +23,15 @@ export declare class Color {
12
23
  b: number;
13
24
  a: number;
14
25
  };
15
- mix(otherColor: Color, ratio?: number): Color;
16
- toString(): string;
17
- toRGBString(): string;
18
- toRGBAString(): string;
26
+ toString(options?: ColorToStringOptions): string;
27
+ toRGBString(options?: Omit<ColorToStringOptions, 'a'>): string;
28
+ toRGBAString(options?: ColorToStringOptions): string;
29
+ mix(otherColor: Color, ratio?: number, options?: ColorMixOptions): Color;
30
+ mixToRGBAString(otherColor: Color, ratio?: number, options?: ColorMixOptions): string;
31
+ mixToRGBA(otherColor: Color, ratio?: number, options?: ColorMixOptions): {
32
+ r: number;
33
+ g: number;
34
+ b: number;
35
+ a: number;
36
+ };
19
37
  }
@@ -1 +1 @@
1
- "use strict";var __defProp=Object.defineProperty;var __getOwnPropSymbols=Object.getOwnPropertySymbols;var __hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable;var __typeError=msg=>{throw TypeError(msg)};var __defNormalProp=(obj,key,value)=>key in obj?__defProp(obj,key,{enumerable:!0,configurable:!0,writable:!0,value}):obj[key]=value,__spreadValues=(a,b)=>{for(var prop in b||(b={}))__hasOwnProp.call(b,prop)&&__defNormalProp(a,prop,b[prop]);if(__getOwnPropSymbols)for(var prop of __getOwnPropSymbols(b))__propIsEnum.call(b,prop)&&__defNormalProp(a,prop,b[prop]);return a};var __name=(target,value)=>__defProp(target,"name",{value,configurable:!0});var __accessCheck=(obj,member,msg)=>member.has(obj)||__typeError("Cannot "+msg);var __privateGet=(obj,member,getter)=>(__accessCheck(obj,member,"read from private field"),getter?getter.call(obj):member.get(obj)),__privateAdd=(obj,member,value)=>member.has(obj)?__typeError("Cannot add the same private member more than once"):member instanceof WeakSet?member.add(obj):member.set(obj,value),__privateSet=(obj,member,value,setter)=>(__accessCheck(obj,member,"write to private field"),setter?setter.call(obj,value):member.set(obj,value),value),__privateMethod=(obj,member,method)=>(__accessCheck(obj,member,"access private method"),method);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var _hex,_rgba,_Color_instances,parseColor_fn,parseHex_fn,parseRgb_fn,setRGBA_fn,setHexFromRGBA_fn;const _Color=class _Color{constructor(color){__privateAdd(this,_Color_instances);__privateAdd(this,_hex,"");__privateAdd(this,_rgba,{r:0,g:0,b:0,a:1});__privateMethod(this,_Color_instances,parseColor_fn).call(this,color)}get r(){return __privateGet(this,_rgba).r}get g(){return __privateGet(this,_rgba).g}get b(){return __privateGet(this,_rgba).b}get a(){return __privateGet(this,_rgba).a}get hex(){return __privateGet(this,_hex)}get rgba(){return __spreadValues({},__privateGet(this,_rgba))}mix(otherColor,ratio=.5){if(!(otherColor instanceof _Color))throw new Error("Argument must be an instance of Color");if(ratio<0||ratio>1)throw new Error("Ratio must be between 0 and 1");const r=Math.round(this.r*(1-ratio)+otherColor.r*ratio),g=Math.round(this.g*(1-ratio)+otherColor.g*ratio),b=Math.round(this.b*(1-ratio)+otherColor.b*ratio),a=this.a*(1-ratio)+otherColor.a*ratio;return new _Color(`rgba(${r}, ${g}, ${b}, ${a})`)}toString(){return this.a===1?this.hex:`rgba(${this.r}, ${this.g}, ${this.b}, ${this.a})`}toRGBString(){return`rgb(${this.r}, ${this.g}, ${this.b})`}toRGBAString(){return`rgba(${this.r}, ${this.g}, ${this.b}, ${this.a})`}};_hex=new WeakMap,_rgba=new WeakMap,_Color_instances=new WeakSet,parseColor_fn=__name(function(color){if(typeof color!="string")throw new Error("Color must be a string");const trimmedColor=color.trim().toLowerCase();if(trimmedColor.startsWith("#"))__privateMethod(this,_Color_instances,parseHex_fn).call(this,trimmedColor);else if(trimmedColor.startsWith("rgb"))__privateMethod(this,_Color_instances,parseRgb_fn).call(this,trimmedColor);else throw new Error("Unsupported color format. Use hex, rgb, or rgba.")},"#parseColor"),parseHex_fn=__name(function(hexColor){let hex=hexColor.replace("#","");if(hex.length===3&&(hex=hex.split("").map(char=>char+char).join("")),hex.length===8){const r=parseInt(hex.substring(0,2),16),g=parseInt(hex.substring(2,4),16),b=parseInt(hex.substring(4,6),16),a=parseInt(hex.substring(6,8),16)/255;__privateMethod(this,_Color_instances,setRGBA_fn).call(this,r,g,b,a),__privateMethod(this,_Color_instances,setHexFromRGBA_fn).call(this);return}if(hex.length===6){const r=parseInt(hex.substring(0,2),16),g=parseInt(hex.substring(2,4),16),b=parseInt(hex.substring(4,6),16);__privateMethod(this,_Color_instances,setRGBA_fn).call(this,r,g,b,1),__privateMethod(this,_Color_instances,setHexFromRGBA_fn).call(this);return}throw new Error("Invalid HEX color format")},"#parseHex"),parseRgb_fn=__name(function(rgbColor){const match=rgbColor.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*([\d.]+))?\)/);if(!match)throw new Error("Invalid RGB/RGBA color format");const r=Math.max(0,Math.min(255,parseInt(match[1]))),g=Math.max(0,Math.min(255,parseInt(match[2]))),b=Math.max(0,Math.min(255,parseInt(match[3]))),a=match[4]?Math.max(0,Math.min(1,parseFloat(match[4]))):1;__privateMethod(this,_Color_instances,setRGBA_fn).call(this,r,g,b,a),__privateMethod(this,_Color_instances,setHexFromRGBA_fn).call(this)},"#parseRgb"),setRGBA_fn=__name(function(r,g,b,a){__privateSet(this,_rgba,{r:Math.round(r),g:Math.round(g),b:Math.round(b),a:Math.round(a*100)/100})},"#setRGBA"),setHexFromRGBA_fn=__name(function(){const{r,g,b,a}=__privateGet(this,_rgba),hexR=r.toString(16).padStart(2,"0"),hexG=g.toString(16).padStart(2,"0"),hexB=b.toString(16).padStart(2,"0");if(__privateSet(this,_hex,`#${hexR}${hexG}${hexB}`),a<1){const hexA=Math.round(a*255).toString(16).padStart(2,"0");__privateSet(this,_hex,__privateGet(this,_hex)+hexA)}},"#setHexFromRGBA"),__name(_Color,"Color");let Color=_Color;var _colorMap,_DocumentColors_instances,collectColors_fn;const _DocumentColors=class _DocumentColors{constructor(){__privateAdd(this,_DocumentColors_instances);__privateAdd(this,_colorMap);__privateSet(this,_colorMap,new Map),__privateMethod(this,_DocumentColors_instances,collectColors_fn).call(this)}get size(){return __privateGet(this,_colorMap).size}get(variableName){return __privateGet(this,_colorMap).get(variableName)}getAll(){return new Map(__privateGet(this,_colorMap))}getAllAsObject(){const result={};return __privateGet(this,_colorMap).forEach((color,variableName)=>{result[variableName]=color}),result}getVariableNames(){return Array.from(__privateGet(this,_colorMap).keys())}refresh(){__privateGet(this,_colorMap).clear(),__privateMethod(this,_DocumentColors_instances,collectColors_fn).call(this)}getColor(variableName){const color=__privateGet(this,_colorMap).get(variableName);if(!color)throw new Error(`Цветовая переменная ${variableName} не найдена`);return color}has(variableName){return __privateGet(this,_colorMap).has(variableName)}};_colorMap=new WeakMap,_DocumentColors_instances=new WeakSet,collectColors_fn=__name(function(){const styles=getComputedStyle(document.documentElement);Array.from(document.styleSheets).forEach(stylesheet=>{Array.from(stylesheet.cssRules).forEach(rule=>{rule instanceof CSSStyleRule&&rule.selectorText==="html"&&Array.from(rule.style).forEach(variableName=>{const value=styles.getPropertyValue(variableName).trim();try{const color=new Color(value);__privateGet(this,_colorMap).set(variableName,color)}catch(error){console.warn(`Не удалось распарсить цвет ${variableName}: ${value}`,error)}})})})},"#collectColors"),__name(_DocumentColors,"DocumentColors");let DocumentColors=_DocumentColors;exports.Color=Color;exports.DocumentColors=DocumentColors;
1
+ "use strict";var __defProp=Object.defineProperty;var __getOwnPropSymbols=Object.getOwnPropertySymbols;var __hasOwnProp=Object.prototype.hasOwnProperty,__propIsEnum=Object.prototype.propertyIsEnumerable;var __typeError=msg=>{throw TypeError(msg)};var __defNormalProp=(obj,key,value)=>key in obj?__defProp(obj,key,{enumerable:!0,configurable:!0,writable:!0,value}):obj[key]=value,__spreadValues=(a,b)=>{for(var prop in b||(b={}))__hasOwnProp.call(b,prop)&&__defNormalProp(a,prop,b[prop]);if(__getOwnPropSymbols)for(var prop of __getOwnPropSymbols(b))__propIsEnum.call(b,prop)&&__defNormalProp(a,prop,b[prop]);return a};var __name=(target,value)=>__defProp(target,"name",{value,configurable:!0});var __accessCheck=(obj,member,msg)=>member.has(obj)||__typeError("Cannot "+msg);var __privateGet=(obj,member,getter)=>(__accessCheck(obj,member,"read from private field"),getter?getter.call(obj):member.get(obj)),__privateAdd=(obj,member,value)=>member.has(obj)?__typeError("Cannot add the same private member more than once"):member instanceof WeakSet?member.add(obj):member.set(obj,value),__privateSet=(obj,member,value,setter)=>(__accessCheck(obj,member,"write to private field"),setter?setter.call(obj,value):member.set(obj,value),value),__privateMethod=(obj,member,method)=>(__accessCheck(obj,member,"access private method"),method);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var _hex,_rgba,_Color_instances,rgbaChannelsToString_fn,parseColor_fn,parseHex_fn,parseRgb_fn,setRGBA_fn,setHexFromRGBA_fn;const _Color=class _Color{constructor(color){__privateAdd(this,_Color_instances);__privateAdd(this,_hex,"");__privateAdd(this,_rgba,{r:0,g:0,b:0,a:1});__privateMethod(this,_Color_instances,parseColor_fn).call(this,color)}get r(){return __privateGet(this,_rgba).r}get g(){return __privateGet(this,_rgba).g}get b(){return __privateGet(this,_rgba).b}get a(){return __privateGet(this,_rgba).a}get hex(){return __privateGet(this,_hex)}get rgba(){return __spreadValues({},__privateGet(this,_rgba))}toString(options){return this.a===1&&!options?this.hex:this.toRGBAString(options)}toRGBString(options){return`rgb(${(options==null?void 0:options.r)||this.r}, ${(options==null?void 0:options.g)||this.g}, ${(options==null?void 0:options.b)||this.b})`}toRGBAString(options){return`rgba(${(options==null?void 0:options.r)||this.r}, ${(options==null?void 0:options.g)||this.g}, ${(options==null?void 0:options.b)||this.b}, ${(options==null?void 0:options.a)||this.a})`}mix(otherColor,ratio=.5,options){const rgba=this.mixToRGBA(otherColor,ratio,options);return new _Color(__privateMethod(this,_Color_instances,rgbaChannelsToString_fn).call(this,rgba))}mixToRGBAString(otherColor,ratio=.5,options){const rgba=this.mixToRGBA(otherColor,ratio,options);return __privateMethod(this,_Color_instances,rgbaChannelsToString_fn).call(this,rgba)}mixToRGBA(otherColor,ratio=.5,options){if(!(otherColor instanceof _Color))throw new Error("Argument must be an instance of Color");if(ratio<0||ratio>1)throw new Error("Ratio must be between 0 and 1");const r=Math.round(this.r*(1-ratio)+otherColor.r*ratio),g=Math.round(this.g*(1-ratio)+otherColor.g*ratio),b=Math.round(this.b*(1-ratio)+otherColor.b*ratio),a=(this.a*(1-ratio)+otherColor.a*ratio)*((options==null?void 0:options.opacityMult)||1);return{r,g,b,a}}};_hex=new WeakMap,_rgba=new WeakMap,_Color_instances=new WeakSet,rgbaChannelsToString_fn=__name(function(rgba){return`rgba(${rgba.r}, ${rgba.g}, ${rgba.b}, ${rgba.a})`},"#rgbaChannelsToString"),parseColor_fn=__name(function(color){if(typeof color!="string")throw new Error("Color must be a string");const trimmedColor=color.trim().toLowerCase();if(trimmedColor.startsWith("#"))__privateMethod(this,_Color_instances,parseHex_fn).call(this,trimmedColor);else if(trimmedColor.startsWith("rgb"))__privateMethod(this,_Color_instances,parseRgb_fn).call(this,trimmedColor);else throw new Error("Unsupported color format. Use hex, rgb, or rgba.")},"#parseColor"),parseHex_fn=__name(function(hexColor){let hex=hexColor.replace("#","");if(hex.length===3&&(hex=hex.split("").map(char=>char+char).join("")),hex.length===8){const r=parseInt(hex.substring(0,2),16),g=parseInt(hex.substring(2,4),16),b=parseInt(hex.substring(4,6),16),a=parseInt(hex.substring(6,8),16)/255;__privateMethod(this,_Color_instances,setRGBA_fn).call(this,r,g,b,a),__privateMethod(this,_Color_instances,setHexFromRGBA_fn).call(this);return}if(hex.length===6){const r=parseInt(hex.substring(0,2),16),g=parseInt(hex.substring(2,4),16),b=parseInt(hex.substring(4,6),16);__privateMethod(this,_Color_instances,setRGBA_fn).call(this,r,g,b,1),__privateMethod(this,_Color_instances,setHexFromRGBA_fn).call(this);return}throw new Error("Invalid HEX color format")},"#parseHex"),parseRgb_fn=__name(function(rgbColor){const match=rgbColor.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*([\d.]+))?\)/);if(!match)throw new Error("Invalid RGB/RGBA color format");const r=Math.max(0,Math.min(255,parseInt(match[1]))),g=Math.max(0,Math.min(255,parseInt(match[2]))),b=Math.max(0,Math.min(255,parseInt(match[3]))),a=match[4]?Math.max(0,Math.min(1,parseFloat(match[4]))):1;__privateMethod(this,_Color_instances,setRGBA_fn).call(this,r,g,b,a),__privateMethod(this,_Color_instances,setHexFromRGBA_fn).call(this)},"#parseRgb"),setRGBA_fn=__name(function(r,g,b,a){__privateSet(this,_rgba,{r:Math.round(r),g:Math.round(g),b:Math.round(b),a:Math.round(a*100)/100})},"#setRGBA"),setHexFromRGBA_fn=__name(function(){const{r,g,b,a}=__privateGet(this,_rgba),hexR=r.toString(16).padStart(2,"0"),hexG=g.toString(16).padStart(2,"0"),hexB=b.toString(16).padStart(2,"0");if(__privateSet(this,_hex,`#${hexR}${hexG}${hexB}`),a<1){const hexA=Math.round(a*255).toString(16).padStart(2,"0");__privateSet(this,_hex,__privateGet(this,_hex)+hexA)}},"#setHexFromRGBA"),__name(_Color,"Color");let Color=_Color;var _colorMap,_DocumentColors_instances,collectColors_fn;const _DocumentColors=class _DocumentColors{constructor(){__privateAdd(this,_DocumentColors_instances);__privateAdd(this,_colorMap);__privateSet(this,_colorMap,new Map),__privateMethod(this,_DocumentColors_instances,collectColors_fn).call(this)}get size(){return __privateGet(this,_colorMap).size}get(variableName){return __privateGet(this,_colorMap).get(variableName)}getAll(){return new Map(__privateGet(this,_colorMap))}getAllAsObject(){const result={};return __privateGet(this,_colorMap).forEach((color,variableName)=>{result[variableName]=color}),result}getVariableNames(){return Array.from(__privateGet(this,_colorMap).keys())}refresh(){__privateGet(this,_colorMap).clear(),__privateMethod(this,_DocumentColors_instances,collectColors_fn).call(this)}getColor(variableName){const color=__privateGet(this,_colorMap).get(variableName);if(!color)throw new Error(`Цветовая переменная ${variableName} не найдена`);return color}has(variableName){return __privateGet(this,_colorMap).has(variableName)}};_colorMap=new WeakMap,_DocumentColors_instances=new WeakSet,collectColors_fn=__name(function(){const styles=getComputedStyle(document.documentElement);Array.from(document.styleSheets).forEach(stylesheet=>{Array.from(stylesheet.cssRules).forEach(rule=>{rule instanceof CSSStyleRule&&rule.selectorText==="html"&&Array.from(rule.style).forEach(variableName=>{if(variableName.startsWith("--color")){const value=styles.getPropertyValue(variableName).trim();try{const color=new Color(value);__privateGet(this,_colorMap).set(variableName,color)}catch(error){console.warn(`Не удалось распарсить цвет ${variableName}: ${value}`,error)}}})})})},"#collectColors"),__name(_DocumentColors,"DocumentColors");let DocumentColors=_DocumentColors;exports.Color=Color;exports.DocumentColors=DocumentColors;
@@ -15,7 +15,7 @@ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { en
15
15
  var __name = (target, value) => __defProp(target, "name", { value, configurable: !0 });
16
16
  var __accessCheck = (obj, member, msg) => member.has(obj) || __typeError("Cannot " + msg);
17
17
  var __privateGet = (obj, member, getter) => (__accessCheck(obj, member, "read from private field"), getter ? getter.call(obj) : member.get(obj)), __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot add the same private member more than once") : member instanceof WeakSet ? member.add(obj) : member.set(obj, value), __privateSet = (obj, member, value, setter) => (__accessCheck(obj, member, "write to private field"), setter ? setter.call(obj, value) : member.set(obj, value), value), __privateMethod = (obj, member, method) => (__accessCheck(obj, member, "access private method"), method);
18
- var _hex, _rgba, _Color_instances, parseColor_fn, parseHex_fn, parseRgb_fn, setRGBA_fn, setHexFromRGBA_fn;
18
+ var _hex, _rgba, _Color_instances, rgbaChannelsToString_fn, parseColor_fn, parseHex_fn, parseRgb_fn, setRGBA_fn, setHexFromRGBA_fn;
19
19
  const _Color = class _Color {
20
20
  constructor(color) {
21
21
  __privateAdd(this, _Color_instances);
@@ -41,25 +41,35 @@ const _Color = class _Color {
41
41
  get rgba() {
42
42
  return __spreadValues({}, __privateGet(this, _rgba));
43
43
  }
44
- mix(otherColor, ratio = 0.5) {
44
+ toString(options) {
45
+ return this.a === 1 && !options ? this.hex : this.toRGBAString(options);
46
+ }
47
+ toRGBString(options) {
48
+ return `rgb(${(options == null ? void 0 : options.r) || this.r}, ${(options == null ? void 0 : options.g) || this.g}, ${(options == null ? void 0 : options.b) || this.b})`;
49
+ }
50
+ toRGBAString(options) {
51
+ return `rgba(${(options == null ? void 0 : options.r) || this.r}, ${(options == null ? void 0 : options.g) || this.g}, ${(options == null ? void 0 : options.b) || this.b}, ${(options == null ? void 0 : options.a) || this.a})`;
52
+ }
53
+ mix(otherColor, ratio = 0.5, options) {
54
+ const rgba = this.mixToRGBA(otherColor, ratio, options);
55
+ return new _Color(__privateMethod(this, _Color_instances, rgbaChannelsToString_fn).call(this, rgba));
56
+ }
57
+ mixToRGBAString(otherColor, ratio = 0.5, options) {
58
+ const rgba = this.mixToRGBA(otherColor, ratio, options);
59
+ return __privateMethod(this, _Color_instances, rgbaChannelsToString_fn).call(this, rgba);
60
+ }
61
+ mixToRGBA(otherColor, ratio = 0.5, options) {
45
62
  if (!(otherColor instanceof _Color))
46
63
  throw new Error("Argument must be an instance of Color");
47
64
  if (ratio < 0 || ratio > 1)
48
65
  throw new Error("Ratio must be between 0 and 1");
49
- const r = Math.round(this.r * (1 - ratio) + otherColor.r * ratio), g = Math.round(this.g * (1 - ratio) + otherColor.g * ratio), b = Math.round(this.b * (1 - ratio) + otherColor.b * ratio), a = this.a * (1 - ratio) + otherColor.a * ratio;
50
- return new _Color(`rgba(${r}, ${g}, ${b}, ${a})`);
51
- }
52
- toString() {
53
- return this.a === 1 ? this.hex : `rgba(${this.r}, ${this.g}, ${this.b}, ${this.a})`;
54
- }
55
- toRGBString() {
56
- return `rgb(${this.r}, ${this.g}, ${this.b})`;
57
- }
58
- toRGBAString() {
59
- return `rgba(${this.r}, ${this.g}, ${this.b}, ${this.a})`;
66
+ const r = Math.round(this.r * (1 - ratio) + otherColor.r * ratio), g = Math.round(this.g * (1 - ratio) + otherColor.g * ratio), b = Math.round(this.b * (1 - ratio) + otherColor.b * ratio), a = (this.a * (1 - ratio) + otherColor.a * ratio) * ((options == null ? void 0 : options.opacityMult) || 1);
67
+ return { r, g, b, a };
60
68
  }
61
69
  };
62
- _hex = new WeakMap(), _rgba = new WeakMap(), _Color_instances = new WeakSet(), parseColor_fn = /* @__PURE__ */ __name(function(color) {
70
+ _hex = new WeakMap(), _rgba = new WeakMap(), _Color_instances = new WeakSet(), rgbaChannelsToString_fn = /* @__PURE__ */ __name(function(rgba) {
71
+ return `rgba(${rgba.r}, ${rgba.g}, ${rgba.b}, ${rgba.a})`;
72
+ }, "#rgbaChannelsToString"), parseColor_fn = /* @__PURE__ */ __name(function(color) {
63
73
  if (typeof color != "string")
64
74
  throw new Error("Color must be a string");
65
75
  const trimmedColor = color.trim().toLowerCase();
@@ -148,15 +158,17 @@ _colorMap = new WeakMap(), _DocumentColors_instances = new WeakSet(), collectCol
148
158
  Array.from(document.styleSheets).forEach((stylesheet) => {
149
159
  Array.from(stylesheet.cssRules).forEach((rule) => {
150
160
  rule instanceof CSSStyleRule && rule.selectorText === "html" && Array.from(rule.style).forEach((variableName) => {
151
- const value = styles.getPropertyValue(variableName).trim();
152
- try {
153
- const color = new Color(value);
154
- __privateGet(this, _colorMap).set(variableName, color);
155
- } catch (error) {
156
- console.warn(
157
- `Не удалось распарсить цвет ${variableName}: ${value}`,
158
- error
159
- );
161
+ if (variableName.startsWith("--color")) {
162
+ const value = styles.getPropertyValue(variableName).trim();
163
+ try {
164
+ const color = new Color(value);
165
+ __privateGet(this, _colorMap).set(variableName, color);
166
+ } catch (error) {
167
+ console.warn(
168
+ `Не удалось распарсить цвет ${variableName}: ${value}`,
169
+ error
170
+ );
171
+ }
160
172
  }
161
173
  });
162
174
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aptechka",
3
- "version": "0.88.0",
3
+ "version": "0.88.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/denisavitski/aptechka.git"