bare-script 2.0.2 → 2.0.3
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/lib/library.js +1 -2
- package/package.json +1 -1
package/lib/library.js
CHANGED
|
@@ -932,7 +932,6 @@ export const expressionFunctionMap = {
|
|
|
932
932
|
'date': 'datetimeNew',
|
|
933
933
|
'day': 'datetimeDay',
|
|
934
934
|
'endsWith': 'stringEndsWith',
|
|
935
|
-
'if': 'if',
|
|
936
935
|
'indexOf': 'stringIndexOf',
|
|
937
936
|
'fixed': 'numberToFixed',
|
|
938
937
|
'floor': 'mathFloor',
|
|
@@ -974,5 +973,5 @@ export const expressionFunctionMap = {
|
|
|
974
973
|
|
|
975
974
|
// The built-in expression functions
|
|
976
975
|
export const expressionFunctions = Object.fromEntries(Object.entries(expressionFunctionMap).map(
|
|
977
|
-
([exprFnName, scriptFnName]) => [exprFnName, scriptFunctions[scriptFnName]
|
|
976
|
+
([exprFnName, scriptFnName]) => [exprFnName, scriptFunctions[scriptFnName]]
|
|
978
977
|
).filter(([, exprFn]) => exprFn !== null));
|