@tko/builder 4.0.0-beta1.0 → 4.0.0-beta1.4
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/dist/Builder.js +1 -1
- package/dist/index.cjs +15 -1
- package/dist/index.cjs.map +2 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +9 -9
package/dist/Builder.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @tko/builder 🥊 4.0.0-beta1.
|
|
1
|
+
// @tko/builder 🥊 4.0.0-beta1.4 CommonJS
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
@@ -2009,6 +2009,7 @@ function visitPropertiesOrArrayEntries(rootObject, visitorCallback) {
|
|
|
2009
2009
|
}
|
|
2010
2010
|
|
|
2011
2011
|
// ../utils.parser/dist/operators.js
|
|
2012
|
+
var __pow = Math.pow;
|
|
2012
2013
|
function LAMBDA() {
|
|
2013
2014
|
}
|
|
2014
2015
|
function unwrapOrCall(a, b) {
|
|
@@ -2033,6 +2034,9 @@ var operators = {
|
|
|
2033
2034
|
"--": function preinc2(a, b) {
|
|
2034
2035
|
return --b;
|
|
2035
2036
|
},
|
|
2037
|
+
"**": function exp(a, b) {
|
|
2038
|
+
return __pow(a, b);
|
|
2039
|
+
},
|
|
2036
2040
|
"*": function mul(a, b) {
|
|
2037
2041
|
return a * b;
|
|
2038
2042
|
},
|
|
@@ -2090,9 +2094,15 @@ var operators = {
|
|
|
2090
2094
|
"||": function logicOr(a, b) {
|
|
2091
2095
|
return a || b;
|
|
2092
2096
|
},
|
|
2097
|
+
"??": function nullishCoalesce(a, b) {
|
|
2098
|
+
return a != null ? a : b;
|
|
2099
|
+
},
|
|
2093
2100
|
".": function member(a, b) {
|
|
2094
2101
|
return a[b];
|
|
2095
2102
|
},
|
|
2103
|
+
"?.": function optionalMember(a, b) {
|
|
2104
|
+
return a == null ? void 0 : a[b];
|
|
2105
|
+
},
|
|
2096
2106
|
"[": function member2(a, b) {
|
|
2097
2107
|
return a[b];
|
|
2098
2108
|
},
|
|
@@ -2107,11 +2117,13 @@ operators["@"].precedence = 21;
|
|
|
2107
2117
|
operators["#"].precedence = 21;
|
|
2108
2118
|
operators["."].precedence = 19;
|
|
2109
2119
|
operators["["].precedence = 19;
|
|
2120
|
+
operators["?."].precedence = 19;
|
|
2110
2121
|
operators["!"].precedence = 16;
|
|
2111
2122
|
operators["!!"].precedence = 16;
|
|
2112
2123
|
operators["++"].precedence = 16;
|
|
2113
2124
|
operators["--"].precedence = 16;
|
|
2114
2125
|
operators["&-"].precedence = 16;
|
|
2126
|
+
operators["**"].precedent = 15;
|
|
2115
2127
|
operators["%"].precedence = 14;
|
|
2116
2128
|
operators["*"].precedence = 14;
|
|
2117
2129
|
operators["/"].precedence = 14;
|
|
@@ -2130,8 +2142,10 @@ operators["==="].precedence = 10;
|
|
|
2130
2142
|
operators["!=="].precedence = 10;
|
|
2131
2143
|
operators["&&"].precedence = 6;
|
|
2132
2144
|
operators["||"].precedence = 5;
|
|
2145
|
+
operators["??"].precedence = 5;
|
|
2133
2146
|
operators["&&"].earlyOut = (a) => !a;
|
|
2134
2147
|
operators["||"].earlyOut = (a) => a;
|
|
2148
|
+
operators["??"].earlyOut = (a) => a;
|
|
2135
2149
|
operators[","].precedence = 2;
|
|
2136
2150
|
operators["call"].precedence = 1;
|
|
2137
2151
|
operators["=>"].precedence = 1;
|