@openfn/language-resourcemap 0.4.15 → 0.4.17

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
@@ -60,6 +60,7 @@ __export(Adaptor_exports, {
60
60
  submitSite: () => submitSite
61
61
  });
62
62
  var import_language_common = require("@openfn/language-common");
63
+ var import_util = require("@openfn/language-common/util");
63
64
  var import_request = __toESM(require("request"), 1);
64
65
  var import_language_common2 = require("@openfn/language-common");
65
66
  function execute(...operations) {
@@ -83,7 +84,7 @@ function submitSite(collection_id, submissionData) {
83
84
  );
84
85
  }
85
86
  return (state) => {
86
- const body = (0, import_language_common.expandReferences)(submissionData)(state);
87
+ const [body] = (0, import_util.expandReferences)(state, submissionData);
87
88
  console.log(
88
89
  "Submitting site to collection " + collection_id + ":\n" + JSON.stringify(body, null, 4) + "\n"
89
90
  );
package/dist/index.js CHANGED
@@ -21,10 +21,8 @@ __export(Adaptor_exports, {
21
21
  sourceValue: () => sourceValue,
22
22
  submitSite: () => submitSite
23
23
  });
24
- import {
25
- execute as commonExecute,
26
- expandReferences
27
- } from "@openfn/language-common";
24
+ import { execute as commonExecute } from "@openfn/language-common";
25
+ import { expandReferences } from "@openfn/language-common/util";
28
26
  import request from "request";
29
27
  import {
30
28
  fn,
@@ -60,7 +58,7 @@ function submitSite(collection_id, submissionData) {
60
58
  );
61
59
  }
62
60
  return (state) => {
63
- const body = expandReferences(submissionData)(state);
61
+ const [body] = expandReferences(state, submissionData);
64
62
  console.log(
65
63
  "Submitting site to collection " + collection_id + ":\n" + JSON.stringify(body, null, 4) + "\n"
66
64
  );
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@openfn/language-resourcemap",
3
- "version": "0.4.15",
3
+ "label": "Resourcemap",
4
+ "version": "0.4.17",
4
5
  "description": "Resourcemap Language Pack for OpenFn",
5
6
  "main": "dist/index.cjs",
6
7
  "author": "Open Function Group",
@@ -13,13 +14,12 @@
13
14
  ],
14
15
  "dependencies": {
15
16
  "request": "^2.88.2",
16
- "@openfn/language-common": "2.4.0"
17
+ "@openfn/language-common": "3.0.0"
17
18
  },
18
19
  "devDependencies": {
19
20
  "assertion-error": "^2.0.0",
20
21
  "chai": "^4.3.7",
21
22
  "deep-eql": "^4.1.2",
22
- "esno": "^0.16.3",
23
23
  "rimraf": "^3.0.2",
24
24
  "superagent-mock": "^1.12.0"
25
25
  },