1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var attempt = require("lodash/attempt");
|
4 | var partial = require("lodash/partial");
|
5 | var factory_1 = require("./factory");
|
6 | var applicators_1 = require("./applicators");
|
7 | var attemptFn = function (fn) { return partial(attempt, fn); };
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 |
|
28 |
|
29 | exports.Attempt = factory_1.DecoratorFactory.createDecorator(new factory_1.DecoratorConfig(attemptFn, new applicators_1.PreValueApplicator(), {
|
30 | optionalParams: true
|
31 | }));
|
32 | exports.attempt = exports.Attempt;
|
33 | exports.default = exports.Attempt;
|
34 |
|
\ | No newline at end of file |