@openfn/language-googlesheets 4.0.13 → 4.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 CHANGED
@@ -870,6 +870,55 @@
870
870
  ]
871
871
  },
872
872
  "valid": false
873
+ },
874
+ {
875
+ "name": "log",
876
+ "params": [
877
+ "args"
878
+ ],
879
+ "docs": {
880
+ "description": "Outputs a message, like calling `console.log`. Use this at the top level of your job code, but not inside callbacks.",
881
+ "tags": [
882
+ {
883
+ "title": "public",
884
+ "description": null,
885
+ "type": null
886
+ },
887
+ {
888
+ "title": "function",
889
+ "description": null,
890
+ "name": null
891
+ },
892
+ {
893
+ "title": "example",
894
+ "description": "log('Patient List::', $.patients);",
895
+ "caption": "Log values from state"
896
+ },
897
+ {
898
+ "title": "example",
899
+ "description": "fn((state) => {\n console.log(state.data);\n return state;\n})",
900
+ "caption": "Use console.log inside a callback or fn block"
901
+ },
902
+ {
903
+ "title": "param",
904
+ "description": "A value or message to display in the logs",
905
+ "type": {
906
+ "type": "NameExpression",
907
+ "name": "any"
908
+ },
909
+ "name": "args"
910
+ },
911
+ {
912
+ "title": "returns",
913
+ "description": null,
914
+ "type": {
915
+ "type": "NameExpression",
916
+ "name": "Operation"
917
+ }
918
+ }
919
+ ]
920
+ },
921
+ "valid": true
873
922
  }
874
923
  ]
875
924
  }
package/dist/index.cjs CHANGED
@@ -35,6 +35,7 @@ __export(src_exports, {
35
35
  fnIf: () => import_language_common2.fnIf,
36
36
  getValues: () => getValues,
37
37
  lastReferenceValue: () => import_language_common2.lastReferenceValue,
38
+ log: () => import_language_common2.log,
38
39
  merge: () => import_language_common2.merge,
39
40
  sourceValue: () => import_language_common2.sourceValue
40
41
  });
@@ -58,6 +59,7 @@ __export(Adaptor_exports, {
58
59
  fnIf: () => import_language_common2.fnIf,
59
60
  getValues: () => getValues,
60
61
  lastReferenceValue: () => import_language_common2.lastReferenceValue,
62
+ log: () => import_language_common2.log,
61
63
  merge: () => import_language_common2.merge,
62
64
  sourceValue: () => import_language_common2.sourceValue
63
65
  });
@@ -222,6 +224,7 @@ var src_default = Adaptor_exports;
222
224
  fnIf,
223
225
  getValues,
224
226
  lastReferenceValue,
227
+ log,
225
228
  merge,
226
229
  sourceValue
227
230
  });
package/dist/index.js CHANGED
@@ -22,6 +22,7 @@ __export(Adaptor_exports, {
22
22
  fnIf: () => fnIf,
23
23
  getValues: () => getValues,
24
24
  lastReferenceValue: () => lastReferenceValue,
25
+ log: () => log,
25
26
  merge: () => merge,
26
27
  sourceValue: () => sourceValue
27
28
  });
@@ -46,6 +47,7 @@ import {
46
47
  fn,
47
48
  fnIf,
48
49
  lastReferenceValue,
50
+ log,
49
51
  merge,
50
52
  sourceValue
51
53
  } from "@openfn/language-common";
@@ -206,6 +208,7 @@ export {
206
208
  fnIf,
207
209
  getValues,
208
210
  lastReferenceValue,
211
+ log,
209
212
  merge,
210
213
  sourceValue
211
214
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openfn/language-googlesheets",
3
3
  "label": "Google Sheets",
4
- "version": "4.0.13",
4
+ "version": "4.1.0",
5
5
  "description": "A Google Sheets Language Pack for OpenFn",
6
6
  "homepage": "https://docs.openfn.org",
7
7
  "repository": {
@@ -76,4 +76,4 @@ export function batchUpdateValues(params: {
76
76
  * @returns {Operation} spreadsheet information
77
77
  */
78
78
  export function getValues(spreadsheetId: string, range: string, callback?: Function): Operation;
79
- export { alterState, combine, cursor, dataPath, dataValue, each, field, fields, fn, fnIf, lastReferenceValue, merge, sourceValue } from "@openfn/language-common";
79
+ export { alterState, combine, cursor, dataPath, dataValue, each, field, fields, fn, fnIf, lastReferenceValue, log, merge, sourceValue } from "@openfn/language-common";