pareto-core 0.1.104 → 0.1.105
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/__internals/async/__query_result.d.ts +1 -1
- package/dist/__internals/async/command_procedure.d.ts +1 -1
- package/dist/__internals/async/command_procedure.js +4 -4
- package/dist/__internals/async/command_statement.d.ts +1 -1
- package/dist/__internals/async/query.d.ts +1 -1
- package/dist/__internals/async/query_expression.d.ts +1 -1
- package/dist/__internals/async/query_function.d.ts +2 -2
- package/dist/__internals/async/query_function.js +3 -3
- package/dist/interface/Abort.js +3 -0
- package/dist/interface/{iterator.d.ts → Iterator.d.ts} +1 -1
- package/dist/interface/Iterator.js +3 -0
- package/dist/interface/algorithm_signatures/Command.d.ts +3 -3
- package/dist/interface/algorithm_signatures/Production.d.ts +2 -2
- package/dist/interface/algorithm_signatures/Query.d.ts +1 -1
- package/dist/interface/algorithm_signatures/Query_Function.d.ts +2 -1
- package/dist/{__internals/async → interface/algorithm_signatures}/Query_Result.d.ts +5 -4
- package/dist/{__internals/async → interface/algorithm_signatures}/Query_Result.js +1 -1
- package/dist/interface/algorithm_signatures/Refiner.d.ts +1 -1
- package/dist/interface/data/Dictionary.d.ts +1 -1
- package/dist/interface/data/List.d.ts +1 -1
- package/dist/interface/index.d.ts +2 -2
- package/dist/interface/index.js +2 -2
- package/dist/interface/lookup.d.ts +1 -1
- package/dist/query.d.ts +1 -1
- package/dist/query.js +2 -2
- package/package.json +1 -1
- package/dist/interface/abort.js +0 -3
- package/dist/interface/iterator.js +0 -3
- /package/dist/interface/{abort.d.ts → Abort.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Query_Result } from "
|
|
1
|
+
import { Query_Result } from "../../interface/algorithm_signatures/Query_Result";
|
|
2
2
|
/**
|
|
3
3
|
* this function contains the body in which the async value or error is executed
|
|
4
4
|
* after the execution, either the on_result or on_error callback will be called
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as _pi from "../../interface";
|
|
2
2
|
import { Command_Block } from "./Command_Block";
|
|
3
|
-
export default function command_procedure<Error,
|
|
3
|
+
export default function command_procedure<Error, Dynamic_Parameters, Static_Parameters, Query_Resources, Command_Resources>(execution_handler: ($d: Dynamic_Parameters, $s: Static_Parameters, $qr: Query_Resources, $cr: Command_Resources) => Command_Block<Error>): _pi.Command_Procedure<Error, Dynamic_Parameters, Static_Parameters, Query_Resources, Command_Resources>;
|
|
@@ -7,12 +7,12 @@ exports.default = command_procedure;
|
|
|
7
7
|
const command_promise_1 = __importDefault(require("./command_promise"));
|
|
8
8
|
const handle_command_block_1 = __importDefault(require("./handle_command_block"));
|
|
9
9
|
function command_procedure(execution_handler) {
|
|
10
|
-
return ($
|
|
10
|
+
return ($s, $q, $c) => {
|
|
11
11
|
return {
|
|
12
|
-
'execute': (
|
|
12
|
+
'execute': ($d, error_transformer) => {
|
|
13
13
|
return (0, command_promise_1.default)({
|
|
14
14
|
'execute': (on_success, on_error) => {
|
|
15
|
-
(0, handle_command_block_1.default)(execution_handler(
|
|
15
|
+
(0, handle_command_block_1.default)(execution_handler($d, $s, $q, $c)).__start(on_success, ($) => {
|
|
16
16
|
on_error(error_transformer($));
|
|
17
17
|
});
|
|
18
18
|
}
|
|
@@ -21,4 +21,4 @@ function command_procedure(execution_handler) {
|
|
|
21
21
|
};
|
|
22
22
|
};
|
|
23
23
|
}
|
|
24
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWFuZF9wcm9jZWR1cmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvX19pbnRlcm5hbHMvYXN5bmMvY29tbWFuZF9wcm9jZWR1cmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFPQSxvQ0F1Q0M7QUExQ0Qsd0VBQWlEO0FBQ2pELGtGQUEyRDtBQUUzRCxTQUF3QixpQkFBaUIsQ0FPckMsaUJBS3lCO0lBUXpCLE9BQU8sQ0FBQyxFQUFFLEVBQUUsRUFBRSxFQUFFLEVBQUUsRUFBRSxFQUFFO1FBQ2xCLE9BQU87WUFDSCxTQUFTLEVBQUUsQ0FBQyxFQUFFLEVBQUUsaUJBQWlCLEVBQUUsRUFBRTtnQkFDakMsT0FBTyxJQUFBLHlCQUFpQixFQUFDO29CQUNyQixTQUFTLEVBQUUsQ0FBQyxVQUFVLEVBQUUsUUFBUSxFQUFFLEVBQUU7d0JBRWhDLElBQUEsOEJBQXNCLEVBQUMsaUJBQWlCLENBQUMsRUFBRSxFQUFFLEVBQUUsRUFBRSxFQUFFLEVBQUUsRUFBRSxDQUFDLENBQUMsQ0FBQyxPQUFPLENBQzdELFVBQVUsRUFDVixDQUFDLENBQUMsRUFBRSxFQUFFOzRCQUNGLFFBQVEsQ0FDSixpQkFBaUIsQ0FBQyxDQUFDLENBQUMsQ0FDdkIsQ0FBQTt3QkFDTCxDQUFDLENBQ0osQ0FBQTtvQkFDTCxDQUFDO2lCQUNKLENBQUMsQ0FBQTtZQUNOLENBQUM7U0FDSixDQUFBO0lBQ0wsQ0FBQyxDQUFBO0FBQ0wsQ0FBQyJ9
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _pi from "../../interface";
|
|
2
2
|
import { Command_Block } from "./Command_Block";
|
|
3
|
-
import { Query_Result } from "
|
|
3
|
+
import { Query_Result } from "../../interface/algorithm_signatures/Query_Result";
|
|
4
4
|
export declare namespace listx {
|
|
5
5
|
const serie: <Error>(array: _pi.List<_pi.Command_Promise<Error>>) => _pi.Command_Promise<Error>;
|
|
6
6
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _pi from "../../interface";
|
|
2
|
-
import { Query_Result } from "
|
|
2
|
+
import { Query_Result } from "../../interface/algorithm_signatures/Query_Result";
|
|
3
3
|
type Queryer<Output, Error, Input> = ($: Input) => Query_Result<Output, Error>;
|
|
4
4
|
export default function __query<Result, Error, Parameters>(handler: Queryer<Result, Error, Parameters>): _pi.Query<Result, Error, Parameters>;
|
|
5
5
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _pi from "../../interface";
|
|
2
|
-
import { Query_Result } from "
|
|
2
|
+
import { Query_Result } from "../../interface/algorithm_signatures/Query_Result";
|
|
3
3
|
export declare namespace dictionaryx {
|
|
4
4
|
const parallel: <Result, Error, Entry_Error>(dictionary: _pi.Dictionary<Query_Result<Result, Entry_Error>>, aggregate_errors: _pi.Transformer<_pi.Dictionary<Entry_Error>, Error>) => Query_Result<_pi.Dictionary<Result>, Error>;
|
|
5
5
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import * as _pi from "../../interface";
|
|
2
|
-
import { Query_Result } from "
|
|
3
|
-
export default function query_function<Result, Error,
|
|
2
|
+
import { Query_Result } from "../../interface/algorithm_signatures/Query_Result";
|
|
3
|
+
export default function query_function<Result, Error, Dynamic_Parameters, Static_Parameters, Query_Resources>(handler: ($d: Dynamic_Parameters, $s: Static_Parameters, $q: Query_Resources) => Query_Result<Result, Error>): _pi.Query_Function<Result, Error, Dynamic_Parameters, Static_Parameters, Query_Resources>;
|
|
@@ -6,12 +6,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.default = query_function;
|
|
7
7
|
const __query_result_1 = __importDefault(require("./__query_result"));
|
|
8
8
|
function query_function(handler) {
|
|
9
|
-
return ($
|
|
9
|
+
return ($s, $q) => ($d, error_transformer) => {
|
|
10
10
|
return (0, __query_result_1.default)((on_success, on_error) => {
|
|
11
|
-
handler($
|
|
11
|
+
handler($d, $s, $q).__extract_data(on_success, (e) => {
|
|
12
12
|
on_error(error_transformer(e));
|
|
13
13
|
});
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
16
|
}
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVlcnlfZnVuY3Rpb24uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvX19pbnRlcm5hbHMvYXN5bmMvcXVlcnlfZnVuY3Rpb24udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFNQSxpQ0F3Q0M7QUEzQ0Qsc0VBQTZDO0FBRzdDLFNBQXdCLGNBQWMsQ0FPbEMsT0FPQztJQVFELE9BQU8sQ0FBQyxFQUFFLEVBQUUsRUFBRSxFQUFFLEVBQUUsQ0FBQyxDQUNmLEVBQUUsRUFDRixpQkFBaUIsRUFDbkIsRUFBRTtRQUNBLE9BQU8sSUFBQSx3QkFBYyxFQUNqQixDQUNJLFVBQVUsRUFDVixRQUFRLEVBQ1YsRUFBRTtZQUNBLE9BQU8sQ0FBQyxFQUFFLEVBQUUsRUFBRSxFQUFFLEVBQUUsQ0FBQyxDQUFDLGNBQWMsQ0FDOUIsVUFBVSxFQUNWLENBQUMsQ0FBQyxFQUFFLEVBQUU7Z0JBQ0YsUUFBUSxDQUFDLGlCQUFpQixDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUE7WUFDbEMsQ0FBQyxDQUNKLENBQUE7UUFDTCxDQUFDLENBQ0osQ0FBQTtJQUNMLENBQUMsQ0FBQTtBQUNMLENBQUMifQ==
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiQWJvcnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW50ZXJmYWNlL0Fib3J0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Raw_Optional_Value } from "./Raw_Optional_Value";
|
|
2
2
|
import { List } from "./data/List";
|
|
3
3
|
import { Optional_Value } from "./data/Optional_Value";
|
|
4
|
-
import { Abort } from "./
|
|
4
|
+
import { Abort } from "./Abort";
|
|
5
5
|
export type Iterator<Item, End_Info> = {
|
|
6
6
|
assert_finished: <T>(assign: () => T, abort: {
|
|
7
7
|
not_finished: Abort<null>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSXRlcmF0b3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW50ZXJmYWNlL0l0ZXJhdG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Transformer } from "./Transformer";
|
|
2
|
-
export type Command_Procedure<
|
|
3
|
-
export type Command<Error,
|
|
4
|
-
'execute': <Target_Error>(
|
|
2
|
+
export type Command_Procedure<Error, Dynamic_Parameters, Static_Parameters, Query_Resources, Command_Resources> = ($s: Static_Parameters, $q: Query_Resources, $c: Command_Resources) => Command<Error, Dynamic_Parameters>;
|
|
3
|
+
export type Command<Error, Dynamic_Parameters> = {
|
|
4
|
+
'execute': <Target_Error>($d: Dynamic_Parameters, error_transformer: Transformer<Error, Target_Error>) => Command_Promise<Target_Error>;
|
|
5
5
|
};
|
|
6
6
|
export type Command_Promise<Error> = {
|
|
7
7
|
__start: (on_success: () => void, on_error: (error: Error) => void) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Abort } from "../
|
|
2
|
-
import { Iterator } from "../
|
|
1
|
+
import { Abort } from "../Abort";
|
|
2
|
+
import { Iterator } from "../Iterator";
|
|
3
3
|
export type Production<Result, Error, Iterator_Item, End_Info> = (iterator: Iterator<Iterator_Item, End_Info>, abort: Abort<Error>) => Result;
|
|
4
4
|
export type Production_With_Parameter<Result, Error, Iterator_Item, End_Info, Parameter> = (iterator: Iterator<Iterator_Item, End_Info>, abort: Abort<Error>, $p: Parameter) => Result;
|
|
5
5
|
export type Production_Without_Error<Result, Iterator_Item, End_Info> = (iterator: Iterator<Iterator_Item, End_Info>) => Result;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { Query_Result } from "
|
|
1
|
+
import { Query_Result } from "./Query_Result";
|
|
2
2
|
import { Transformer } from "./Transformer";
|
|
3
3
|
export type Query<Output, Error, Input> = <Target_Error>($: Input, error_transformer: Transformer<Error, Target_Error>) => Query_Result<Output, Target_Error>;
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
import { Query } from "./Query";
|
|
2
|
+
export type Query_Function<Result, Error, Dynamic_Parameters, Static_Parameters, Query_Resources> = ($s: Static_Parameters, $q: Query_Resources) => Query<Result, Error, Dynamic_Parameters>;
|
|
@@ -1,14 +1,15 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { Transformer } from "./Transformer";
|
|
2
|
+
import { Abort } from "../Abort";
|
|
2
3
|
export type Queryer<Output, Error, Input> = ($: Input) => Query_Result<Output, Error>;
|
|
3
4
|
export interface Query_Result<Output, Error> {
|
|
4
5
|
__query_result: null;
|
|
5
|
-
transform<New_Output>(transformer:
|
|
6
|
+
transform<New_Output>(transformer: Transformer<Output, New_Output>): Query_Result<New_Output, Error>;
|
|
6
7
|
query<New_Output>(query: Queryer<New_Output, Error, Output>): Query_Result<New_Output, Error>;
|
|
7
|
-
refine<New_Output>(callback: ($: Output, abort:
|
|
8
|
+
refine<New_Output>(callback: ($: Output, abort: Abort<Error>) => New_Output): Query_Result<New_Output, Error>;
|
|
8
9
|
rework_error_temp<New_Error, Rework_Error>(error_reworker: Queryer<New_Error, Rework_Error, Error>,
|
|
9
10
|
/**
|
|
10
11
|
* if the reworker fails, we need to transform *that* error into the New_Error
|
|
11
12
|
*/
|
|
12
|
-
rework_error_transformer:
|
|
13
|
+
rework_error_transformer: Transformer<Rework_Error, New_Error>): Query_Result<Output, New_Error>;
|
|
13
14
|
__extract_data: (on_success: ($: Output) => void, on_error: ($: Error) => void) => void;
|
|
14
15
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUXVlcnlfUmVzdWx0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2ludGVyZmFjZS9hbGdvcml0aG1fc2lnbmF0dXJlcy9RdWVyeV9SZXN1bHQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Abort } from "../
|
|
1
|
+
import { Abort } from "../Abort";
|
|
2
2
|
export type Refiner<Result, Error, Input> = ($: Input, abort: Abort<Error>) => Result;
|
|
3
3
|
export type Refiner_With_Parameter<Result, Error, Input, Parameter> = ($: Input, abort: Abort<Error>, $p: Parameter) => Result;
|
|
4
4
|
export type Refiner_Without_Error<Result, Input> = ($: Input) => Result;
|
|
@@ -2,9 +2,9 @@ export * from "./data/List";
|
|
|
2
2
|
export * from "./data/Circular_Dependency";
|
|
3
3
|
export * from "./data/Dictionary";
|
|
4
4
|
export * from "./data/Optional_Value";
|
|
5
|
-
export * from "./
|
|
5
|
+
export * from "./Iterator";
|
|
6
6
|
export * from "./lookup";
|
|
7
|
-
export * from "./
|
|
7
|
+
export * from "./Abort";
|
|
8
8
|
export * from "./algorithm_signatures/Command";
|
|
9
9
|
export * from "./algorithm_signatures/Production";
|
|
10
10
|
export * from "./algorithm_signatures/Query_Function";
|
package/dist/interface/index.js
CHANGED
|
@@ -18,9 +18,9 @@ __exportStar(require("./data/List"), exports);
|
|
|
18
18
|
__exportStar(require("./data/Circular_Dependency"), exports);
|
|
19
19
|
__exportStar(require("./data/Dictionary"), exports);
|
|
20
20
|
__exportStar(require("./data/Optional_Value"), exports);
|
|
21
|
-
__exportStar(require("./
|
|
21
|
+
__exportStar(require("./Iterator"), exports);
|
|
22
22
|
__exportStar(require("./lookup"), exports);
|
|
23
|
-
__exportStar(require("./
|
|
23
|
+
__exportStar(require("./Abort"), exports);
|
|
24
24
|
__exportStar(require("./algorithm_signatures/Command"), exports);
|
|
25
25
|
__exportStar(require("./algorithm_signatures/Production"), exports);
|
|
26
26
|
__exportStar(require("./algorithm_signatures/Query_Function"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Raw_Optional_Value } from "./Raw_Optional_Value";
|
|
2
2
|
import { Circular_Dependency } from "./data/Circular_Dependency";
|
|
3
|
-
import { Abort } from "./
|
|
3
|
+
import { Abort } from "./Abort";
|
|
4
4
|
export declare namespace static_lookup {
|
|
5
5
|
type Acyclic<Type> = {
|
|
6
6
|
get_entry: (id: string, abort: {
|
package/dist/query.d.ts
CHANGED
|
@@ -8,4 +8,4 @@ export * from "./__internals/async/query_expression";
|
|
|
8
8
|
export * from "./__internals/async/query_function";
|
|
9
9
|
export * from "./__internals/async/__query_result";
|
|
10
10
|
export * from "./__internals/async/query";
|
|
11
|
-
export * from "./
|
|
11
|
+
export * from "./interface/algorithm_signatures/Query_Result";
|
package/dist/query.js
CHANGED
|
@@ -30,5 +30,5 @@ __exportStar(require("./__internals/async/query_expression"), exports);
|
|
|
30
30
|
__exportStar(require("./__internals/async/query_function"), exports);
|
|
31
31
|
__exportStar(require("./__internals/async/__query_result"), exports);
|
|
32
32
|
__exportStar(require("./__internals/async/query"), exports);
|
|
33
|
-
__exportStar(require("./
|
|
34
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
33
|
+
__exportStar(require("./interface/algorithm_signatures/Query_Result"), exports);
|
|
34
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVlcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvcXVlcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSxzRUFBNkM7QUFLekMsZ0JBTEcsZUFBSyxDQUtIO0FBSlQsd0ZBQStEO0FBSzNELHlCQUxHLHdCQUFjLENBS0g7QUFKbEIsd0ZBQStEO0FBSzNELHlCQUxHLHdCQUFjLENBS0g7QUFHbEIsbUVBQWdEO0FBQ2hELHdFQUFxRDtBQUNyRCx1RUFBb0Q7QUFDcEQscUVBQWtEO0FBQ2xELHFFQUFrRDtBQUNsRCw0REFBeUM7QUFDekMsZ0ZBQTZEIn0=
|
package/package.json
CHANGED
package/dist/interface/abort.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWJvcnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW50ZXJmYWNlL2Fib3J0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXRlcmF0b3IuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW50ZXJmYWNlL2l0ZXJhdG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
|
|
File without changes
|