@openfn/language-mogli 0.5.15 → 0.6.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
@@ -825,69 +825,6 @@
825
825
  ]
826
826
  },
827
827
  "valid": true
828
- },
829
- {
830
- "name": "map",
831
- "params": [
832
- "path",
833
- "operation",
834
- "state"
835
- ],
836
- "docs": {
837
- "description": "Scopes an array of data based on a JSONPath.\nUseful when the source data has `n` items you would like to map to\nan operation.\nThe operation will receive a slice of the data based of each item\nof the JSONPath provided.",
838
- "tags": [
839
- {
840
- "title": "public",
841
- "description": null,
842
- "type": null
843
- },
844
- {
845
- "title": "function",
846
- "description": null,
847
- "name": null
848
- },
849
- {
850
- "title": "example",
851
- "description": "map(\"$.[*]\",\n create(\"SObject\",\n field(\"FirstName\", sourceValue(\"$.firstName\"))\n )\n)"
852
- },
853
- {
854
- "title": "param",
855
- "description": "JSONPath referencing a point in `state.data`.",
856
- "type": {
857
- "type": "NameExpression",
858
- "name": "string"
859
- },
860
- "name": "path"
861
- },
862
- {
863
- "title": "param",
864
- "description": "The operation needed to be repeated.",
865
- "type": {
866
- "type": "NameExpression",
867
- "name": "function"
868
- },
869
- "name": "operation"
870
- },
871
- {
872
- "title": "param",
873
- "description": "Runtime state.",
874
- "type": {
875
- "type": "NameExpression",
876
- "name": "State"
877
- },
878
- "name": "state"
879
- },
880
- {
881
- "title": "returns",
882
- "description": null,
883
- "type": {
884
- "type": "NameExpression",
885
- "name": "State"
886
- }
887
- }
888
- ]
889
- },
890
- "valid": true
891
828
  }
892
829
  ]
893
830
  }
package/dist/index.cjs CHANGED
@@ -43,7 +43,6 @@ __export(src_exports, {
43
43
  join: () => import_language_common3.join,
44
44
  lastReferenceValue: () => import_language_common3.lastReferenceValue,
45
45
  lookup: () => lookup,
46
- map: () => import_language_common3.map,
47
46
  merge: () => import_language_common3.merge,
48
47
  reference: () => reference,
49
48
  referencePath: () => import_language_common3.referencePath,
@@ -76,7 +75,6 @@ __export(Adaptor_exports, {
76
75
  join: () => import_language_common3.join,
77
76
  lastReferenceValue: () => import_language_common3.lastReferenceValue,
78
77
  lookup: () => lookup,
79
- map: () => import_language_common3.map,
80
78
  merge: () => import_language_common3.merge,
81
79
  reference: () => reference,
82
80
  referencePath: () => import_language_common3.referencePath,
@@ -278,7 +276,6 @@ var src_default = Adaptor_exports;
278
276
  join,
279
277
  lastReferenceValue,
280
278
  lookup,
281
- map,
282
279
  merge,
283
280
  reference,
284
281
  referencePath,
package/dist/index.js CHANGED
@@ -24,7 +24,6 @@ __export(Adaptor_exports, {
24
24
  join: () => join,
25
25
  lastReferenceValue: () => lastReferenceValue,
26
26
  lookup: () => lookup,
27
- map: () => map,
28
27
  merge: () => merge,
29
28
  reference: () => reference,
30
29
  referencePath: () => referencePath,
@@ -64,7 +63,6 @@ import {
64
63
  field as field2,
65
64
  source,
66
65
  sourceValue as sourceValue2,
67
- map,
68
66
  combine,
69
67
  merge,
70
68
  dataPath,
@@ -247,7 +245,6 @@ export {
247
245
  join,
248
246
  lastReferenceValue,
249
247
  lookup,
250
- map,
251
248
  merge,
252
249
  reference,
253
250
  referencePath,
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@openfn/language-mogli",
3
- "version": "0.5.15",
3
+ "label": "Mogli",
4
+ "version": "0.6.0",
4
5
  "description": "A Mogli SMS Language Pack for OpenFn",
5
6
  "main": "dist/index.cjs",
6
7
  "author": "Open Function Group",
@@ -18,13 +19,12 @@
18
19
  "mustache": "^2.3.2",
19
20
  "request": "^2.88.2",
20
21
  "yargs": "^3.32.0",
21
- "@openfn/language-common": "2.4.0"
22
+ "@openfn/language-common": "3.0.0"
22
23
  },
23
24
  "devDependencies": {
24
25
  "assertion-error": "^2.0.0",
25
26
  "chai": "^4.3.7",
26
27
  "deep-eql": "^0.1.3",
27
- "esno": "^0.16.3",
28
28
  "rimraf": "^3.0.2",
29
29
  "sinon": "^14.0.2",
30
30
  "type-detect": "^4.0.8"
@@ -26,4 +26,4 @@ export type State = {
26
26
  };
27
27
  export type Operation = Function;
28
28
  export { lookup, relationship } from "./sourceHelpers";
29
- export { each, join, fields, field, source, sourceValue, map, combine, merge, dataPath, dataValue, referencePath, lastReferenceValue, index, beta, toArray, arrayToString, alterState, fn, fnIf } from "@openfn/language-common";
29
+ export { each, join, fields, field, source, sourceValue, combine, merge, dataPath, dataValue, referencePath, lastReferenceValue, index, beta, toArray, arrayToString, alterState, fn, fnIf } from "@openfn/language-common";