@openfn/language-lamisplus 0.1.4 → 0.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.
package/ast.json CHANGED
@@ -795,6 +795,55 @@
795
795
  },
796
796
  "valid": false
797
797
  },
798
+ {
799
+ "name": "log",
800
+ "params": [
801
+ "args"
802
+ ],
803
+ "docs": {
804
+ "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.",
805
+ "tags": [
806
+ {
807
+ "title": "public",
808
+ "description": null,
809
+ "type": null
810
+ },
811
+ {
812
+ "title": "function",
813
+ "description": null,
814
+ "name": null
815
+ },
816
+ {
817
+ "title": "example",
818
+ "description": "log('Patient List::', $.patients);",
819
+ "caption": "Log values from state"
820
+ },
821
+ {
822
+ "title": "example",
823
+ "description": "fn((state) => {\n console.log(state.data);\n return state;\n})",
824
+ "caption": "Use console.log inside a callback or fn block"
825
+ },
826
+ {
827
+ "title": "param",
828
+ "description": "A value or message to display in the logs",
829
+ "type": {
830
+ "type": "NameExpression",
831
+ "name": "any"
832
+ },
833
+ "name": "args"
834
+ },
835
+ {
836
+ "title": "returns",
837
+ "description": null,
838
+ "type": {
839
+ "type": "NameExpression",
840
+ "name": "Operation"
841
+ }
842
+ }
843
+ ]
844
+ },
845
+ "valid": true
846
+ },
798
847
  {
799
848
  "name": "as",
800
849
  "params": [
package/dist/index.cjs CHANGED
@@ -42,6 +42,7 @@ __export(src_exports, {
42
42
  group: () => import_language_common3.group,
43
43
  http: () => http_exports,
44
44
  lastReferenceValue: () => import_language_common3.lastReferenceValue,
45
+ log: () => import_language_common3.log,
45
46
  map: () => import_language_common3.map,
46
47
  merge: () => import_language_common3.merge,
47
48
  scrubEmojis: () => import_language_common3.scrubEmojis,
@@ -68,6 +69,7 @@ __export(Adaptor_exports, {
68
69
  getPatients: () => getPatients,
69
70
  group: () => import_language_common3.group,
70
71
  lastReferenceValue: () => import_language_common3.lastReferenceValue,
72
+ log: () => import_language_common3.log,
71
73
  map: () => import_language_common3.map,
72
74
  merge: () => import_language_common3.merge,
73
75
  scrubEmojis: () => import_language_common3.scrubEmojis,
@@ -249,6 +251,7 @@ var src_default = Adaptor_exports;
249
251
  group,
250
252
  http,
251
253
  lastReferenceValue,
254
+ log,
252
255
  map,
253
256
  merge,
254
257
  scrubEmojis,
package/dist/index.js CHANGED
@@ -22,6 +22,7 @@ __export(Adaptor_exports, {
22
22
  getPatients: () => getPatients,
23
23
  group: () => group,
24
24
  lastReferenceValue: () => lastReferenceValue,
25
+ log: () => log,
25
26
  map: () => map,
26
27
  merge: () => merge,
27
28
  scrubEmojis: () => scrubEmojis,
@@ -103,6 +104,7 @@ import {
103
104
  fnIf,
104
105
  group,
105
106
  lastReferenceValue,
107
+ log,
106
108
  map,
107
109
  merge,
108
110
  scrubEmojis,
@@ -225,6 +227,7 @@ export {
225
227
  group,
226
228
  http_exports as http,
227
229
  lastReferenceValue,
230
+ log,
228
231
  map,
229
232
  merge,
230
233
  scrubEmojis,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openfn/language-lamisplus",
3
- "version": "0.1.4",
3
+ "version": "0.2.1",
4
4
  "description": "OpenFn lamisplus adaptor",
5
5
  "type": "module",
6
6
  "exports": {
@@ -20,7 +20,7 @@
20
20
  "configuration-schema.json"
21
21
  ],
22
22
  "dependencies": {
23
- "@openfn/language-common": "3.3.2"
23
+ "@openfn/language-common": "3.3.3"
24
24
  },
25
25
  "devDependencies": {
26
26
  "assertion-error": "2.0.0",
@@ -59,4 +59,4 @@ export type HttpState = {
59
59
  * Options provided to the HTTP request
60
60
  */
61
61
  export type RequestOptions = any;
62
- export { as, combine, cursor, dataPath, dataValue, dateFns, each, field, fields, fn, fnIf, group, lastReferenceValue, map, merge, scrubEmojis, sourceValue, util } from "@openfn/language-common";
62
+ export { as, combine, cursor, dataPath, dataValue, dateFns, each, field, fields, fn, fnIf, group, lastReferenceValue, log, map, merge, scrubEmojis, sourceValue, util } from "@openfn/language-common";