@openfn/language-telerivet 0.3.14 → 0.3.15

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/dist/index.cjs CHANGED
@@ -58,6 +58,7 @@ __export(Adaptor_exports, {
58
58
  sourceValue: () => import_language_common2.sourceValue
59
59
  });
60
60
  var import_language_common = require("@openfn/language-common");
61
+ var import_util = require("@openfn/language-common/util");
61
62
 
62
63
  // src/Client.js
63
64
  var import_superagent = __toESM(require("superagent"), 1);
@@ -85,7 +86,7 @@ function execute(...operations) {
85
86
  }
86
87
  function send(sendData) {
87
88
  return (state) => {
88
- const body = (0, import_language_common.expandReferences)(sendData)(state);
89
+ const [body] = (0, import_util.expandReferences)(state, sendData);
89
90
  const { projectId, apiKey } = state.configuration;
90
91
  const url = "https://api.telerivet.com/v1/projects/".concat(
91
92
  projectId,
package/dist/index.js CHANGED
@@ -20,10 +20,8 @@ __export(Adaptor_exports, {
20
20
  send: () => send,
21
21
  sourceValue: () => sourceValue
22
22
  });
23
- import {
24
- execute as commonExecute,
25
- expandReferences
26
- } from "@openfn/language-common";
23
+ import { execute as commonExecute } from "@openfn/language-common";
24
+ import { expandReferences } from "@openfn/language-common/util";
27
25
 
28
26
  // src/Client.js
29
27
  import request from "superagent";
@@ -62,7 +60,7 @@ function execute(...operations) {
62
60
  }
63
61
  function send(sendData) {
64
62
  return (state) => {
65
- const body = expandReferences(sendData)(state);
63
+ const [body] = expandReferences(state, sendData);
66
64
  const { projectId, apiKey } = state.configuration;
67
65
  const url = "https://api.telerivet.com/v1/projects/".concat(
68
66
  projectId,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@openfn/language-telerivet",
3
3
  "label": "Telerivet",
4
- "version": "0.3.14",
4
+ "version": "0.3.15",
5
5
  "description": "telerivet Language Pack for OpenFn",
6
6
  "main": "dist/index.cjs",
7
7
  "author": "Open Function Group",
@@ -16,7 +16,7 @@
16
16
  "JSONPath": "^0.10.0",
17
17
  "lodash-fp": "^0.10.4",
18
18
  "superagent": "^3.7.0",
19
- "@openfn/language-common": "2.5.0"
19
+ "@openfn/language-common": "3.0.0"
20
20
  },
21
21
  "devDependencies": {
22
22
  "assertion-error": "^1.1.0",