@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 +9 -14
- package/bundle/putout.min.js +1 -1
- package/bundle/putout.slim.js +9 -14
- package/package.json +2 -2
package/bundle/putout.slim.js
CHANGED
|
@@ -61945,7 +61945,7 @@ const isString$6 = (a) => typeof a === 'string';
|
|
|
61945
61945
|
const isUndefined = (a) => typeof a === 'undefined';
|
|
61946
61946
|
const isEmpty = (obj) => !Object.keys(obj).length;
|
|
61947
61947
|
|
|
61948
|
-
|
|
61948
|
+
function jessy(selector, divider, value) {
|
|
61949
61949
|
if (!value) {
|
|
61950
61950
|
value = divider;
|
|
61951
61951
|
divider = '.';
|
|
@@ -61982,7 +61982,7 @@ var jessy = (selector, divider, value) => {
|
|
|
61982
61982
|
}
|
|
61983
61983
|
|
|
61984
61984
|
return value;
|
|
61985
|
-
}
|
|
61985
|
+
}
|
|
61986
61986
|
|
|
61987
61987
|
function check$7(selector, obj) {
|
|
61988
61988
|
if (!isString$6(selector))
|
|
@@ -61992,14 +61992,12 @@ function check$7(selector, obj) {
|
|
|
61992
61992
|
throw Error('obj should be object!');
|
|
61993
61993
|
}
|
|
61994
61994
|
|
|
61995
|
-
var jessy$1 = jessy.default;
|
|
61996
|
-
|
|
61997
61995
|
const isNumber$1 = (a) => !Number.isNaN(a) && typeof a === 'number';
|
|
61998
61996
|
const isNumberLike = (a, b = Number(a)) => isNumber$1(b);
|
|
61999
61997
|
const isString$5 = (a) => typeof a === 'string';
|
|
62000
61998
|
const notSecure = (a) => /__proto__|prototype/.test(a);
|
|
62001
61999
|
|
|
62002
|
-
|
|
62000
|
+
function nessy(selector, value, divider, obj) {
|
|
62003
62001
|
if (!obj) {
|
|
62004
62002
|
obj = divider || {};
|
|
62005
62003
|
divider = '.';
|
|
@@ -62012,6 +62010,7 @@ var nessy = (selector, value, divider, obj) => {
|
|
|
62012
62010
|
const array = selector
|
|
62013
62011
|
.split(divider)
|
|
62014
62012
|
.filter(Boolean);
|
|
62013
|
+
|
|
62015
62014
|
const n = array.length - 1;
|
|
62016
62015
|
|
|
62017
62016
|
for (const [i, name] of array.entries()) {
|
|
@@ -62025,21 +62024,17 @@ var nessy = (selector, value, divider, obj) => {
|
|
|
62025
62024
|
|
|
62026
62025
|
obj[name] = isNumberLike(nextKey) ? [] : {};
|
|
62027
62026
|
}
|
|
62028
|
-
|
|
62029
62027
|
|
|
62030
62028
|
obj = obj[name];
|
|
62031
62029
|
}
|
|
62032
62030
|
|
|
62033
62031
|
return result;
|
|
62034
|
-
}
|
|
62035
|
-
|
|
62032
|
+
}
|
|
62036
62033
|
function check$6(selector) {
|
|
62037
62034
|
if (!isString$5(selector))
|
|
62038
62035
|
throw Error('selector should be string!');
|
|
62039
62036
|
}
|
|
62040
62037
|
|
|
62041
|
-
var nessy$1 = nessy.default;
|
|
62042
|
-
|
|
62043
62038
|
const TS_MODULE_REG = /\.body\.0\.expression$/;
|
|
62044
62039
|
const CLASS_BODY_REG = /\.body\.0\.key$/;
|
|
62045
62040
|
const BODY_REG = /\.body\.0$/;
|
|
@@ -62499,7 +62494,7 @@ function getValues({waysFrom, node}) {
|
|
|
62499
62494
|
if (isBodyStr(name))
|
|
62500
62495
|
way = prepareBodyWay(way);
|
|
62501
62496
|
|
|
62502
|
-
result[name] = result[name] || extractExpression$1(jessy
|
|
62497
|
+
result[name] = result[name] || extractExpression$1(jessy(way, node));
|
|
62503
62498
|
}
|
|
62504
62499
|
}
|
|
62505
62500
|
|
|
@@ -62534,14 +62529,14 @@ function setValues({waysTo, values, path}) {
|
|
|
62534
62529
|
raw: makeRaw(value),
|
|
62535
62530
|
});
|
|
62536
62531
|
|
|
62537
|
-
nessy
|
|
62532
|
+
nessy(way, element, node);
|
|
62538
62533
|
continue;
|
|
62539
62534
|
}
|
|
62540
62535
|
|
|
62541
62536
|
if (isBodyStr(name))
|
|
62542
62537
|
way = prepareBodyWay(way);
|
|
62543
62538
|
|
|
62544
|
-
const {extra} = jessy
|
|
62539
|
+
const {extra} = jessy(way, node);
|
|
62545
62540
|
|
|
62546
62541
|
if (extra) {
|
|
62547
62542
|
const valueExtra = values[name].extra;
|
|
@@ -62552,7 +62547,7 @@ function setValues({waysTo, values, path}) {
|
|
|
62552
62547
|
};
|
|
62553
62548
|
}
|
|
62554
62549
|
|
|
62555
|
-
nessy
|
|
62550
|
+
nessy(way, values[name], node);
|
|
62556
62551
|
}
|
|
62557
62552
|
}
|
|
62558
62553
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@putout/bundle",
|
|
3
|
-
"version": "5.2.
|
|
3
|
+
"version": "5.2.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
|
|
6
6
|
"description": "🐊Putout bundle suitable for Deno and Browsers",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"hermes-parser": "^0.33.0",
|
|
64
64
|
"madrun": "^12.0.0",
|
|
65
65
|
"nodemon": "^3.0.1",
|
|
66
|
-
"putout": "^41.6.
|
|
66
|
+
"putout": "^41.6.5",
|
|
67
67
|
"rollup": "^4.24.2",
|
|
68
68
|
"rollup-plugin-node-externals": "^8.0.0",
|
|
69
69
|
"rollup-plugin-polyfill-node": "^0.13.0",
|