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.
Files changed (2) hide show
  1. package/lib/library.js +1 -2
  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] ?? null]
976
+ ([exprFnName, scriptFnName]) => [exprFnName, scriptFunctions[scriptFnName]]
978
977
  ).filter(([, exprFn]) => exprFn !== null));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "bare-script",
4
- "version": "2.0.2",
4
+ "version": "2.0.3",
5
5
  "description": "BareScript; a lightweight scripting and expression language",
6
6
  "keywords": [
7
7
  "expression",