@openfn/language-msgraph 0.3.0 → 0.3.1
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 +4 -1
- package/dist/index.js +4 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -156,7 +156,10 @@ function execute(...operations) {
|
|
|
156
156
|
return (0, import_language_common2.execute)(...operations)({
|
|
157
157
|
...initialState,
|
|
158
158
|
...state
|
|
159
|
-
}).then(cleanup).catch(
|
|
159
|
+
}).then(cleanup).catch((error) => {
|
|
160
|
+
cleanup(state);
|
|
161
|
+
throw error;
|
|
162
|
+
});
|
|
160
163
|
};
|
|
161
164
|
}
|
|
162
165
|
function create(resource, data, callback) {
|
package/dist/index.js
CHANGED
|
@@ -131,7 +131,10 @@ function execute(...operations) {
|
|
|
131
131
|
return commonExecute(...operations)({
|
|
132
132
|
...initialState,
|
|
133
133
|
...state
|
|
134
|
-
}).then(cleanup).catch(
|
|
134
|
+
}).then(cleanup).catch((error) => {
|
|
135
|
+
cleanup(state);
|
|
136
|
+
throw error;
|
|
137
|
+
});
|
|
135
138
|
};
|
|
136
139
|
}
|
|
137
140
|
function create(resource, data, callback) {
|