@openfn/language-browserless 1.0.5 → 1.1.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 +49 -0
- package/dist/index.cjs +3 -0
- package/dist/index.js +3 -0
- package/package.json +1 -1
- package/types/Adaptor.d.ts +1 -1
package/ast.json
CHANGED
|
@@ -853,6 +853,55 @@
|
|
|
853
853
|
},
|
|
854
854
|
"valid": false
|
|
855
855
|
},
|
|
856
|
+
{
|
|
857
|
+
"name": "log",
|
|
858
|
+
"params": [
|
|
859
|
+
"args"
|
|
860
|
+
],
|
|
861
|
+
"docs": {
|
|
862
|
+
"description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.",
|
|
863
|
+
"tags": [
|
|
864
|
+
{
|
|
865
|
+
"title": "public",
|
|
866
|
+
"description": null,
|
|
867
|
+
"type": null
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
"title": "function",
|
|
871
|
+
"description": null,
|
|
872
|
+
"name": null
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
"title": "example",
|
|
876
|
+
"description": "log('Patient List::', $.patients);",
|
|
877
|
+
"caption": "Log values from state"
|
|
878
|
+
},
|
|
879
|
+
{
|
|
880
|
+
"title": "example",
|
|
881
|
+
"description": "fn((state) => {\n console.log(state.data);\n return state;\n})",
|
|
882
|
+
"caption": "Use console.log inside a callback or fn block"
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
"title": "param",
|
|
886
|
+
"description": "A value or message to display in the logs",
|
|
887
|
+
"type": {
|
|
888
|
+
"type": "NameExpression",
|
|
889
|
+
"name": "any"
|
|
890
|
+
},
|
|
891
|
+
"name": "args"
|
|
892
|
+
},
|
|
893
|
+
{
|
|
894
|
+
"title": "returns",
|
|
895
|
+
"description": null,
|
|
896
|
+
"type": {
|
|
897
|
+
"type": "NameExpression",
|
|
898
|
+
"name": "Operation"
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
]
|
|
902
|
+
},
|
|
903
|
+
"valid": true
|
|
904
|
+
},
|
|
856
905
|
{
|
|
857
906
|
"name": "as",
|
|
858
907
|
"params": [
|
package/dist/index.cjs
CHANGED
|
@@ -34,6 +34,7 @@ __export(src_exports, {
|
|
|
34
34
|
fnIf: () => import_language_common2.fnIf,
|
|
35
35
|
group: () => import_language_common2.group,
|
|
36
36
|
lastReferenceValue: () => import_language_common2.lastReferenceValue,
|
|
37
|
+
log: () => import_language_common2.log,
|
|
37
38
|
map: () => import_language_common2.map,
|
|
38
39
|
merge: () => import_language_common2.merge,
|
|
39
40
|
request: () => request2,
|
|
@@ -61,6 +62,7 @@ __export(Adaptor_exports, {
|
|
|
61
62
|
fnIf: () => import_language_common2.fnIf,
|
|
62
63
|
group: () => import_language_common2.group,
|
|
63
64
|
lastReferenceValue: () => import_language_common2.lastReferenceValue,
|
|
65
|
+
log: () => import_language_common2.log,
|
|
64
66
|
map: () => import_language_common2.map,
|
|
65
67
|
merge: () => import_language_common2.merge,
|
|
66
68
|
request: () => request2,
|
|
@@ -178,6 +180,7 @@ var src_default = Adaptor_exports;
|
|
|
178
180
|
fnIf,
|
|
179
181
|
group,
|
|
180
182
|
lastReferenceValue,
|
|
183
|
+
log,
|
|
181
184
|
map,
|
|
182
185
|
merge,
|
|
183
186
|
request,
|
package/dist/index.js
CHANGED
|
@@ -21,6 +21,7 @@ __export(Adaptor_exports, {
|
|
|
21
21
|
fnIf: () => fnIf,
|
|
22
22
|
group: () => group,
|
|
23
23
|
lastReferenceValue: () => lastReferenceValue,
|
|
24
|
+
log: () => log,
|
|
24
25
|
map: () => map,
|
|
25
26
|
merge: () => merge,
|
|
26
27
|
request: () => request2,
|
|
@@ -113,6 +114,7 @@ import {
|
|
|
113
114
|
fnIf,
|
|
114
115
|
group,
|
|
115
116
|
lastReferenceValue,
|
|
117
|
+
log,
|
|
116
118
|
map,
|
|
117
119
|
merge,
|
|
118
120
|
scrubEmojis,
|
|
@@ -158,6 +160,7 @@ export {
|
|
|
158
160
|
fnIf,
|
|
159
161
|
group,
|
|
160
162
|
lastReferenceValue,
|
|
163
|
+
log,
|
|
161
164
|
map,
|
|
162
165
|
merge,
|
|
163
166
|
request2 as request,
|
package/package.json
CHANGED
package/types/Adaptor.d.ts
CHANGED
|
@@ -7,4 +7,4 @@
|
|
|
7
7
|
*/
|
|
8
8
|
export function createPDF(input: string, options: object): Operation;
|
|
9
9
|
export { request } from "./http.js";
|
|
10
|
-
export { as, combine, cursor, dataPath, dataValue, dateFns, each, field, fields, fn, fnIf, group, lastReferenceValue, map, merge, scrubEmojis, source, sourceValue, util } from "@openfn/language-common";
|
|
10
|
+
export { as, combine, cursor, dataPath, dataValue, dateFns, each, field, fields, fn, fnIf, group, lastReferenceValue, log, map, merge, scrubEmojis, source, sourceValue, util } from "@openfn/language-common";
|