@openfn/language-satusehat 1.1.0 → 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 +8 -4
- package/dist/index.js +8 -4
- package/package.json +2 -2
package/dist/index.cjs
CHANGED
|
@@ -182,7 +182,8 @@ function get(path, params = {}, callback = (s) => s) {
|
|
|
182
182
|
});
|
|
183
183
|
return prepareNextState(state, response, callback);
|
|
184
184
|
} catch (e) {
|
|
185
|
-
|
|
185
|
+
console.error(JSON.stringify(e.body, null, 2));
|
|
186
|
+
throw e;
|
|
186
187
|
}
|
|
187
188
|
};
|
|
188
189
|
}
|
|
@@ -202,7 +203,8 @@ function post(path, data, params = {}, callback = (s) => s) {
|
|
|
202
203
|
});
|
|
203
204
|
return prepareNextState(state, response, callback);
|
|
204
205
|
} catch (e) {
|
|
205
|
-
|
|
206
|
+
console.error(JSON.stringify(e.body, null, 2));
|
|
207
|
+
throw e;
|
|
206
208
|
}
|
|
207
209
|
};
|
|
208
210
|
}
|
|
@@ -222,7 +224,8 @@ function put(path, data, params = {}, callback = (s) => s) {
|
|
|
222
224
|
});
|
|
223
225
|
return prepareNextState(state, response, callback);
|
|
224
226
|
} catch (e) {
|
|
225
|
-
|
|
227
|
+
console.error(JSON.stringify(e.body, null, 2));
|
|
228
|
+
throw e;
|
|
226
229
|
}
|
|
227
230
|
};
|
|
228
231
|
}
|
|
@@ -243,7 +246,8 @@ function patch(path, data, params = {}, callback = (s) => s) {
|
|
|
243
246
|
});
|
|
244
247
|
return prepareNextState(state, response, callback);
|
|
245
248
|
} catch (e) {
|
|
246
|
-
|
|
249
|
+
console.error(JSON.stringify(e.body, null, 2));
|
|
250
|
+
throw e;
|
|
247
251
|
}
|
|
248
252
|
};
|
|
249
253
|
}
|
package/dist/index.js
CHANGED
|
@@ -162,7 +162,8 @@ function get(path, params = {}, callback = (s) => s) {
|
|
|
162
162
|
});
|
|
163
163
|
return prepareNextState(state, response, callback);
|
|
164
164
|
} catch (e) {
|
|
165
|
-
|
|
165
|
+
console.error(JSON.stringify(e.body, null, 2));
|
|
166
|
+
throw e;
|
|
166
167
|
}
|
|
167
168
|
};
|
|
168
169
|
}
|
|
@@ -182,7 +183,8 @@ function post(path, data, params = {}, callback = (s) => s) {
|
|
|
182
183
|
});
|
|
183
184
|
return prepareNextState(state, response, callback);
|
|
184
185
|
} catch (e) {
|
|
185
|
-
|
|
186
|
+
console.error(JSON.stringify(e.body, null, 2));
|
|
187
|
+
throw e;
|
|
186
188
|
}
|
|
187
189
|
};
|
|
188
190
|
}
|
|
@@ -202,7 +204,8 @@ function put(path, data, params = {}, callback = (s) => s) {
|
|
|
202
204
|
});
|
|
203
205
|
return prepareNextState(state, response, callback);
|
|
204
206
|
} catch (e) {
|
|
205
|
-
|
|
207
|
+
console.error(JSON.stringify(e.body, null, 2));
|
|
208
|
+
throw e;
|
|
206
209
|
}
|
|
207
210
|
};
|
|
208
211
|
}
|
|
@@ -223,7 +226,8 @@ function patch(path, data, params = {}, callback = (s) => s) {
|
|
|
223
226
|
});
|
|
224
227
|
return prepareNextState(state, response, callback);
|
|
225
228
|
} catch (e) {
|
|
226
|
-
|
|
229
|
+
console.error(JSON.stringify(e.body, null, 2));
|
|
230
|
+
throw e;
|
|
227
231
|
}
|
|
228
232
|
};
|
|
229
233
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openfn/language-satusehat",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "OpenFn satusehat adaptor",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"configuration-schema.json"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@openfn/language-common": "1.
|
|
22
|
+
"@openfn/language-common": "1.15.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"assertion-error": "2.0.0",
|