@openfn/language-resourcemap 0.4.16 → 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 +2 -1
- package/dist/index.js +3 -5
- package/package.json +2 -2
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,
|
|
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
|
-
|
|
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)
|
|
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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfn/language-resourcemap",
|
|
3
3
|
"label": "Resourcemap",
|
|
4
|
-
"version": "0.4.
|
|
4
|
+
"version": "0.4.17",
|
|
5
5
|
"description": "Resourcemap Language Pack for OpenFn",
|
|
6
6
|
"main": "dist/index.cjs",
|
|
7
7
|
"author": "Open Function Group",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
],
|
|
15
15
|
"dependencies": {
|
|
16
16
|
"request": "^2.88.2",
|
|
17
|
-
"@openfn/language-common": "
|
|
17
|
+
"@openfn/language-common": "3.0.0"
|
|
18
18
|
},
|
|
19
19
|
"devDependencies": {
|
|
20
20
|
"assertion-error": "^2.0.0",
|