exupery-core-async 0.3.6 → 0.3.7

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.
Files changed (2) hide show
  1. package/dist/shorthands.js +10 -10
  2. package/package.json +1 -1
@@ -34,7 +34,7 @@ const create_asynchronous_processes_monitor_1 = require("./create_asynchronous_p
34
34
  */
35
35
  const eh = (action, error_transform, resources) => {
36
36
  return ($) => {
37
- action(error_transform($), resources).__start(() => { });
37
+ action(resources)(error_transform($)).__start(() => { });
38
38
  };
39
39
  };
40
40
  exports.eh = eh;
@@ -52,7 +52,7 @@ var gp;
52
52
  //run the query
53
53
  query.__start((query_result) => {
54
54
  //run the action
55
- action(query_result, $r).__start(on_finished);
55
+ action($r)(query_result).__start(on_finished);
56
56
  });
57
57
  }
58
58
  };
@@ -83,7 +83,7 @@ var gq;
83
83
  return {
84
84
  __start: (on_finished) => {
85
85
  parameters.__start((qr_in) => {
86
- the_query(qr_in, resources).__start((result) => {
86
+ the_query(resources)(qr_in).__start((result) => {
87
87
  on_finished(result_transformation(result));
88
88
  });
89
89
  });
@@ -115,7 +115,7 @@ var up;
115
115
  //run the query
116
116
  query.__start((query_result) => {
117
117
  //run the action
118
- action(query_result, resources).__start(on_success, (error) => {
118
+ action(resources)(query_result).__start(on_success, (error) => {
119
119
  //transform the error
120
120
  on_error(error);
121
121
  });
@@ -212,10 +212,10 @@ var upi;
212
212
  *
213
213
  * @param action gpi
214
214
  */
215
- upi.g = (action, $r) => ($) => {
215
+ upi.g = (action, $r) => () => ($) => {
216
216
  return (0, initialize_unguaranteed_procedure_1.__create_unguaranteed_procedure)({
217
217
  'execute': (on_succes, on_error) => {
218
- action($, $r).__start(on_succes);
218
+ action($r)($).__start(on_succes);
219
219
  }
220
220
  });
221
221
  };
@@ -223,10 +223,10 @@ var upi;
223
223
  *
224
224
  * @param action upi
225
225
  */
226
- upi.u = (action, error_transform, error_handler) => ($, $r) => {
226
+ upi.u = (action, error_transform, error_handler) => ($r) => ($) => {
227
227
  return (0, initialize_unguaranteed_procedure_1.__create_unguaranteed_procedure)({
228
228
  'execute': (on_succes, on_error) => {
229
- action($, $r).__start(on_succes, (error) => {
229
+ action($r)($).__start(on_succes, (error) => {
230
230
  if (error_handler !== undefined) {
231
231
  error_handler(error);
232
232
  }
@@ -263,7 +263,7 @@ var uq;
263
263
  return {
264
264
  __start: (on_success, on_error) => {
265
265
  parameters.__start((qr_in) => {
266
- the_query(qr_in, resources).__start((result) => {
266
+ the_query(resources)(qr_in).__start((result) => {
267
267
  result_refinement(result).process((x) => on_success(x), on_error);
268
268
  }, (error) => {
269
269
  if (error_handler !== undefined) {
@@ -285,7 +285,7 @@ var uq;
285
285
  return {
286
286
  __start: (on_success, on_error) => {
287
287
  parameters.__start((x) => {
288
- the_query(x, resources).__start(($) => {
288
+ the_query(resources)(x).__start(($) => {
289
289
  result_refinement($).process((x) => on_success(x), on_error);
290
290
  });
291
291
  }, on_error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exupery-core-async",
3
- "version": "0.3.6",
3
+ "version": "0.3.7",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Corno",
6
6
  "description": "async types for Exupery",