@openfn/language-magpi 1.1.1 → 1.1.2
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 +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -170,7 +170,7 @@ function fetchSurveyData(params) {
|
|
|
170
170
|
}
|
|
171
171
|
function submitRecord(jsonData) {
|
|
172
172
|
return (state) => {
|
|
173
|
-
const jsonBody = (0, import_language_common.expandReferences)(
|
|
173
|
+
const jsonBody = (0, import_language_common.expandReferences)(jsonData)(state);
|
|
174
174
|
const body = (0, import_js2xmlparser.default)("form", jsonBody);
|
|
175
175
|
const { username, password, apiUrl } = state.configuration;
|
|
176
176
|
const url = (0, import_url.resolve)(apiUrl + "/", "mobileApi/uploadData");
|
package/dist/index.js
CHANGED
|
@@ -146,7 +146,7 @@ function fetchSurveyData(params) {
|
|
|
146
146
|
}
|
|
147
147
|
function submitRecord(jsonData) {
|
|
148
148
|
return (state) => {
|
|
149
|
-
const jsonBody = expandReferences(
|
|
149
|
+
const jsonBody = expandReferences(jsonData)(state);
|
|
150
150
|
const body = js2xmlparser("form", jsonBody);
|
|
151
151
|
const { username, password, apiUrl } = state.configuration;
|
|
152
152
|
const url = resolveUrl(apiUrl + "/", "mobileApi/uploadData");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfn/language-magpi",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "A Magpi Language Pack for OpenFn",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"author": "Open Function Group",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"configuration-schema.json"
|
|
13
13
|
],
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@openfn/language-common": "^1.
|
|
15
|
+
"@openfn/language-common": "^1.12.0",
|
|
16
16
|
"JSONPath": "^0.10.0",
|
|
17
17
|
"js2xmlparser": "^3.0.0",
|
|
18
18
|
"lodash-fp": "^0.10.4",
|