bare-script 2.2.0 → 2.2.1

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 +2 -2
  2. package/package.json +1 -1
package/lib/library.js CHANGED
@@ -160,7 +160,7 @@ export const scriptFunctions = {
160
160
  // $group: Data
161
161
  // $doc: Aggregate a data array
162
162
  // $arg data: The data array
163
- // $arg aggregation: The [aggregation model](model.html#var.vName='Aggregation')
163
+ // $arg aggregation: The [aggregation model](https://craigahobbs.github.io/bare-script/library/model.html#var.vName='Aggregation')
164
164
  // $return: The aggregated data array
165
165
  'dataAggregate': ([data, aggregation]) => aggregateData(data, validateAggregation(aggregation)),
166
166
 
@@ -599,7 +599,7 @@ export const scriptFunctions = {
599
599
  // $arg defaultValue: The default value (optional)
600
600
  // $return: The value or null if the key does not exist
601
601
  'objectGet': ([object, key, defaultValue = null]) => (
602
- object !== null && typeof object === 'object' ? (Object.hasOwn(object, key) ? object[key] : defaultValue) : null
602
+ object !== null && typeof object === 'object' ? (Object.hasOwn(object, key) ? object[key] : defaultValue) : defaultValue
603
603
  ),
604
604
 
605
605
  // $function: objectHas
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "bare-script",
4
- "version": "2.2.0",
4
+ "version": "2.2.1",
5
5
  "description": "BareScript; a lightweight scripting and expression language",
6
6
  "keywords": [
7
7
  "expression",