@openfn/language-commcare 4.0.14 → 4.1.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 +49 -0
- package/dist/index.cjs +3 -0
- package/dist/index.js +3 -0
- package/package.json +2 -2
- package/types/Adaptor.d.ts +1 -1
package/ast.json
CHANGED
|
@@ -1196,6 +1196,55 @@
|
|
|
1196
1196
|
},
|
|
1197
1197
|
"valid": false
|
|
1198
1198
|
},
|
|
1199
|
+
{
|
|
1200
|
+
"name": "log",
|
|
1201
|
+
"params": [
|
|
1202
|
+
"args"
|
|
1203
|
+
],
|
|
1204
|
+
"docs": {
|
|
1205
|
+
"description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.",
|
|
1206
|
+
"tags": [
|
|
1207
|
+
{
|
|
1208
|
+
"title": "public",
|
|
1209
|
+
"description": null,
|
|
1210
|
+
"type": null
|
|
1211
|
+
},
|
|
1212
|
+
{
|
|
1213
|
+
"title": "function",
|
|
1214
|
+
"description": null,
|
|
1215
|
+
"name": null
|
|
1216
|
+
},
|
|
1217
|
+
{
|
|
1218
|
+
"title": "example",
|
|
1219
|
+
"description": "log('Patient List::', $.patients);",
|
|
1220
|
+
"caption": "Log values from state"
|
|
1221
|
+
},
|
|
1222
|
+
{
|
|
1223
|
+
"title": "example",
|
|
1224
|
+
"description": "fn((state) => {\n console.log(state.data);\n return state;\n})",
|
|
1225
|
+
"caption": "Use console.log inside a callback or fn block"
|
|
1226
|
+
},
|
|
1227
|
+
{
|
|
1228
|
+
"title": "param",
|
|
1229
|
+
"description": "A value or message to display in the logs",
|
|
1230
|
+
"type": {
|
|
1231
|
+
"type": "NameExpression",
|
|
1232
|
+
"name": "any"
|
|
1233
|
+
},
|
|
1234
|
+
"name": "args"
|
|
1235
|
+
},
|
|
1236
|
+
{
|
|
1237
|
+
"title": "returns",
|
|
1238
|
+
"description": null,
|
|
1239
|
+
"type": {
|
|
1240
|
+
"type": "NameExpression",
|
|
1241
|
+
"name": "Operation"
|
|
1242
|
+
}
|
|
1243
|
+
}
|
|
1244
|
+
]
|
|
1245
|
+
},
|
|
1246
|
+
"valid": true
|
|
1247
|
+
},
|
|
1199
1248
|
{
|
|
1200
1249
|
"name": "as",
|
|
1201
1250
|
"params": [
|
package/dist/index.cjs
CHANGED
|
@@ -44,6 +44,7 @@ __export(src_exports, {
|
|
|
44
44
|
fnIf: () => import_language_common3.fnIf,
|
|
45
45
|
get: () => get,
|
|
46
46
|
lastReferenceValue: () => import_language_common3.lastReferenceValue,
|
|
47
|
+
log: () => import_language_common3.log,
|
|
47
48
|
map: () => import_language_common3.map,
|
|
48
49
|
merge: () => import_language_common3.merge,
|
|
49
50
|
post: () => post,
|
|
@@ -75,6 +76,7 @@ __export(Adaptor_exports, {
|
|
|
75
76
|
fnIf: () => import_language_common3.fnIf,
|
|
76
77
|
get: () => get,
|
|
77
78
|
lastReferenceValue: () => import_language_common3.lastReferenceValue,
|
|
79
|
+
log: () => import_language_common3.log,
|
|
78
80
|
map: () => import_language_common3.map,
|
|
79
81
|
merge: () => import_language_common3.merge,
|
|
80
82
|
post: () => post,
|
|
@@ -384,6 +386,7 @@ var src_default = Adaptor_exports;
|
|
|
384
386
|
fnIf,
|
|
385
387
|
get,
|
|
386
388
|
lastReferenceValue,
|
|
389
|
+
log,
|
|
387
390
|
map,
|
|
388
391
|
merge,
|
|
389
392
|
post,
|
package/dist/index.js
CHANGED
|
@@ -25,6 +25,7 @@ __export(Adaptor_exports, {
|
|
|
25
25
|
fnIf: () => fnIf,
|
|
26
26
|
get: () => get,
|
|
27
27
|
lastReferenceValue: () => lastReferenceValue,
|
|
28
|
+
log: () => log,
|
|
28
29
|
map: () => map,
|
|
29
30
|
merge: () => merge,
|
|
30
31
|
post: () => post,
|
|
@@ -109,6 +110,7 @@ import {
|
|
|
109
110
|
fn,
|
|
110
111
|
fnIf,
|
|
111
112
|
lastReferenceValue,
|
|
113
|
+
log,
|
|
112
114
|
map,
|
|
113
115
|
merge,
|
|
114
116
|
sourceValue
|
|
@@ -356,6 +358,7 @@ export {
|
|
|
356
358
|
fnIf,
|
|
357
359
|
get,
|
|
358
360
|
lastReferenceValue,
|
|
361
|
+
log,
|
|
359
362
|
map,
|
|
360
363
|
merge,
|
|
361
364
|
post,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfn/language-commcare",
|
|
3
3
|
"label": "CommCare",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.1.1",
|
|
5
5
|
"description": "OpenFn adaptor for CommCare (Dimagi)",
|
|
6
6
|
"homepage": "https://docs.openfn.org",
|
|
7
7
|
"repository": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"js2xmlparser": "^1.0.0",
|
|
23
23
|
"lodash-fp": "^0.10.4",
|
|
24
24
|
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz",
|
|
25
|
-
"@openfn/language-common": "3.3.
|
|
25
|
+
"@openfn/language-common": "3.3.3"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"assertion-error": "^1.1.0",
|
package/types/Adaptor.d.ts
CHANGED
|
@@ -190,4 +190,4 @@ export type CommcareHttpState = {
|
|
|
190
190
|
*/
|
|
191
191
|
references: any;
|
|
192
192
|
};
|
|
193
|
-
export { alterState, arrayToString, as, combine, cursor, dataPath, dataValue, dateFns, each, field, fields, fn, fnIf, lastReferenceValue, map, merge, sourceValue } from "@openfn/language-common";
|
|
193
|
+
export { alterState, arrayToString, as, combine, cursor, dataPath, dataValue, dateFns, each, field, fields, fn, fnIf, lastReferenceValue, log, map, merge, sourceValue } from "@openfn/language-common";
|