@openfn/language-http 7.2.11 → 7.3.0

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/ast.json CHANGED
@@ -1556,6 +1556,55 @@
1556
1556
  },
1557
1557
  "valid": false
1558
1558
  },
1559
+ {
1560
+ "name": "log",
1561
+ "params": [
1562
+ "args"
1563
+ ],
1564
+ "docs": {
1565
+ "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.",
1566
+ "tags": [
1567
+ {
1568
+ "title": "public",
1569
+ "description": null,
1570
+ "type": null
1571
+ },
1572
+ {
1573
+ "title": "function",
1574
+ "description": null,
1575
+ "name": null
1576
+ },
1577
+ {
1578
+ "title": "example",
1579
+ "description": "log('Patient List::', $.patients);",
1580
+ "caption": "Log values from state"
1581
+ },
1582
+ {
1583
+ "title": "example",
1584
+ "description": "fn((state) => {\n console.log(state.data);\n return state;\n})",
1585
+ "caption": "Use console.log inside a callback or fn block"
1586
+ },
1587
+ {
1588
+ "title": "param",
1589
+ "description": "A value or message to display in the logs",
1590
+ "type": {
1591
+ "type": "NameExpression",
1592
+ "name": "any"
1593
+ },
1594
+ "name": "args"
1595
+ },
1596
+ {
1597
+ "title": "returns",
1598
+ "description": null,
1599
+ "type": {
1600
+ "type": "NameExpression",
1601
+ "name": "Operation"
1602
+ }
1603
+ }
1604
+ ]
1605
+ },
1606
+ "valid": true
1607
+ },
1559
1608
  {
1560
1609
  "name": "as",
1561
1610
  "params": [
package/dist/index.cjs CHANGED
@@ -46,6 +46,7 @@ __export(src_exports, {
46
46
  group: () => import_language_common3.group,
47
47
  humanProper: () => import_language_common3.humanProper,
48
48
  lastReferenceValue: () => import_language_common3.lastReferenceValue,
49
+ log: () => import_language_common3.log,
49
50
  map: () => import_language_common3.map,
50
51
  merge: () => import_language_common3.merge,
51
52
  parseCsv: () => import_language_common3.parseCsv,
@@ -85,6 +86,7 @@ __export(Adaptor_exports, {
85
86
  group: () => import_language_common3.group,
86
87
  humanProper: () => import_language_common3.humanProper,
87
88
  lastReferenceValue: () => import_language_common3.lastReferenceValue,
89
+ log: () => import_language_common3.log,
88
90
  map: () => import_language_common3.map,
89
91
  merge: () => import_language_common3.merge,
90
92
  parseCsv: () => import_language_common3.parseCsv,
@@ -287,6 +289,7 @@ var src_default = Adaptor_exports;
287
289
  group,
288
290
  humanProper,
289
291
  lastReferenceValue,
292
+ log,
290
293
  map,
291
294
  merge,
292
295
  parseCsv,
package/dist/index.js CHANGED
@@ -27,6 +27,7 @@ __export(Adaptor_exports, {
27
27
  group: () => group,
28
28
  humanProper: () => humanProper,
29
29
  lastReferenceValue: () => lastReferenceValue,
30
+ log: () => log,
30
31
  map: () => map,
31
32
  merge: () => merge,
32
33
  parseCsv: () => parseCsv,
@@ -200,6 +201,7 @@ import {
200
201
  group,
201
202
  humanProper,
202
203
  lastReferenceValue,
204
+ log,
203
205
  map,
204
206
  merge,
205
207
  parseCsv,
@@ -263,6 +265,7 @@ export {
263
265
  group,
264
266
  humanProper,
265
267
  lastReferenceValue,
268
+ log,
266
269
  map,
267
270
  merge,
268
271
  parseCsv,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openfn/language-http",
3
3
  "label": "HTTP",
4
- "version": "7.2.11",
4
+ "version": "7.3.0",
5
5
  "description": "An HTTP request language package for use with Open Function",
6
6
  "homepage": "https://docs.openfn.org",
7
7
  "repository": {
@@ -175,4 +175,4 @@ export type HttpState = {
175
175
  */
176
176
  references: any;
177
177
  };
178
- export { alterState, arrayToString, as, chunk, combine, cursor, dataPath, dataValue, dateFns, each, field, fields, fn, fnIf, group, humanProper, lastReferenceValue, map, merge, parseCsv, scrubEmojis, sourceValue, splitKeys, toArray } from "@openfn/language-common";
178
+ export { alterState, arrayToString, as, chunk, combine, cursor, dataPath, dataValue, dateFns, each, field, fields, fn, fnIf, group, humanProper, lastReferenceValue, log, map, merge, parseCsv, scrubEmojis, sourceValue, splitKeys, toArray } from "@openfn/language-common";