@putout/bundle 5.2.1 → 5.2.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.
package/bundle/putout.js CHANGED
@@ -62388,7 +62388,7 @@ const isString$6 = (a) => typeof a === 'string';
62388
62388
  const isUndefined = (a) => typeof a === 'undefined';
62389
62389
  const isEmpty = (obj) => !Object.keys(obj).length;
62390
62390
 
62391
- var jessy = (selector, divider, value) => {
62391
+ function jessy(selector, divider, value) {
62392
62392
  if (!value) {
62393
62393
  value = divider;
62394
62394
  divider = '.';
@@ -62425,7 +62425,7 @@ var jessy = (selector, divider, value) => {
62425
62425
  }
62426
62426
 
62427
62427
  return value;
62428
- };
62428
+ }
62429
62429
 
62430
62430
  function check$7(selector, obj) {
62431
62431
  if (!isString$6(selector))
@@ -62435,14 +62435,12 @@ function check$7(selector, obj) {
62435
62435
  throw Error('obj should be object!');
62436
62436
  }
62437
62437
 
62438
- var jessy$1 = jessy.default;
62439
-
62440
62438
  const isNumber$1 = (a) => !Number.isNaN(a) && typeof a === 'number';
62441
62439
  const isNumberLike = (a, b = Number(a)) => isNumber$1(b);
62442
62440
  const isString$5 = (a) => typeof a === 'string';
62443
62441
  const notSecure = (a) => /__proto__|prototype/.test(a);
62444
62442
 
62445
- var nessy = (selector, value, divider, obj) => {
62443
+ function nessy(selector, value, divider, obj) {
62446
62444
  if (!obj) {
62447
62445
  obj = divider || {};
62448
62446
  divider = '.';
@@ -62455,6 +62453,7 @@ var nessy = (selector, value, divider, obj) => {
62455
62453
  const array = selector
62456
62454
  .split(divider)
62457
62455
  .filter(Boolean);
62456
+
62458
62457
  const n = array.length - 1;
62459
62458
 
62460
62459
  for (const [i, name] of array.entries()) {
@@ -62468,21 +62467,17 @@ var nessy = (selector, value, divider, obj) => {
62468
62467
 
62469
62468
  obj[name] = isNumberLike(nextKey) ? [] : {};
62470
62469
  }
62471
-
62472
62470
 
62473
62471
  obj = obj[name];
62474
62472
  }
62475
62473
 
62476
62474
  return result;
62477
- };
62478
-
62475
+ }
62479
62476
  function check$6(selector) {
62480
62477
  if (!isString$5(selector))
62481
62478
  throw Error('selector should be string!');
62482
62479
  }
62483
62480
 
62484
- var nessy$1 = nessy.default;
62485
-
62486
62481
  const TS_MODULE_REG = /\.body\.0\.expression$/;
62487
62482
  const CLASS_BODY_REG = /\.body\.0\.key$/;
62488
62483
  const BODY_REG = /\.body\.0$/;
@@ -62942,7 +62937,7 @@ function getValues({waysFrom, node}) {
62942
62937
  if (isBodyStr(name))
62943
62938
  way = prepareBodyWay(way);
62944
62939
 
62945
- result[name] = result[name] || extractExpression$1(jessy$1(way, node));
62940
+ result[name] = result[name] || extractExpression$1(jessy(way, node));
62946
62941
  }
62947
62942
  }
62948
62943
 
@@ -62977,14 +62972,14 @@ function setValues({waysTo, values, path}) {
62977
62972
  raw: makeRaw(value),
62978
62973
  });
62979
62974
 
62980
- nessy$1(way, element, node);
62975
+ nessy(way, element, node);
62981
62976
  continue;
62982
62977
  }
62983
62978
 
62984
62979
  if (isBodyStr(name))
62985
62980
  way = prepareBodyWay(way);
62986
62981
 
62987
- const {extra} = jessy$1(way, node);
62982
+ const {extra} = jessy(way, node);
62988
62983
 
62989
62984
  if (extra) {
62990
62985
  const valueExtra = values[name].extra;
@@ -62995,7 +62990,7 @@ function setValues({waysTo, values, path}) {
62995
62990
  };
62996
62991
  }
62997
62992
 
62998
- nessy$1(way, values[name], node);
62993
+ nessy(way, values[name], node);
62999
62994
  }
63000
62995
  }
63001
62996
  }