@openfn/language-collections 0.8.5 → 0.8.6

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openfn/language-collections",
3
3
  "label": "Collections",
4
- "version": "0.8.5",
4
+ "version": "0.8.6",
5
5
  "description": "Collections Adaptor for OpenFn",
6
6
  "type": "module",
7
7
  "exports": {
@@ -37,7 +37,7 @@ export function get(name: string, query?: string | QueryOptions): (state: any) =
37
37
  * @public
38
38
  * @function
39
39
  * @param {string} name - The name of the collection to fetch from
40
- * @param keygen - a function which generates a key for each value: (value, index) => key. Pass a string to set a static key for a single item.
40
+ * @param keygen - a function which generates a key for each value: (value, state, index) => key. Pass a string to set a static key for a single item.
41
41
  * @param values - an array of values to set, or a single value.
42
42
  * @example <caption>Set a number of values using each value's id property as a key</caption>
43
43
  * collections.set('my-collection', (item) => item.id, $.data)