exupery-core-async 0.3.12 → 0.3.13
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.
|
@@ -6,7 +6,7 @@ const execute_with_async_data = (procedure, query) => {
|
|
|
6
6
|
return (0, initialize_procedure_1.__create_procedure)({
|
|
7
7
|
'execute': (on_success, on_exception) => {
|
|
8
8
|
query.__start((query_result) => {
|
|
9
|
-
procedure(query_result).__start(on_success, on_exception);
|
|
9
|
+
procedure["execute with synchrounous data"](query_result).__start(on_success, on_exception);
|
|
10
10
|
}, on_exception);
|
|
11
11
|
}
|
|
12
12
|
});
|
package/dist/shorthands.js
CHANGED
|
@@ -40,7 +40,7 @@ var p;
|
|
|
40
40
|
//run the query
|
|
41
41
|
query.__start((query_result) => {
|
|
42
42
|
//run the action
|
|
43
|
-
action(resources)(query_result).__start(on_success, (error) => {
|
|
43
|
+
action(resources)['execute with synchrounous data'](query_result).__start(on_success, (error) => {
|
|
44
44
|
//transform the error
|
|
45
45
|
on_error(error);
|
|
46
46
|
});
|
|
@@ -137,18 +137,20 @@ var pi;
|
|
|
137
137
|
*
|
|
138
138
|
* @param action upi
|
|
139
139
|
*/
|
|
140
|
-
pi.u = (action, error_transform, error_handler) => ($r) => (
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
error_handler
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
140
|
+
pi.u = (action, error_transform, error_handler) => ($r) => ({
|
|
141
|
+
'execute with synchrounous data': ($) => {
|
|
142
|
+
return (0, initialize_procedure_1.__create_procedure)({
|
|
143
|
+
'execute': (on_succes, on_error) => {
|
|
144
|
+
action($r)['execute with synchrounous data']($).__start(on_succes, (error) => {
|
|
145
|
+
if (error_handler !== undefined) {
|
|
146
|
+
error_handler(error);
|
|
147
|
+
}
|
|
148
|
+
on_error(error_transform(error));
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
});
|
|
152
154
|
})(pi || (exports.pi = pi = {}));
|
|
153
155
|
var q;
|
|
154
156
|
(function (q) {
|