pareto-core 0.1.121 → 0.1.122
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/command.d.ts +3 -3
- package/dist/command.js +9 -9
- package/dist/query.d.ts +3 -3
- package/dist/query.js +9 -9
- package/package.json +1 -1
package/dist/command.d.ts
CHANGED
|
@@ -8,9 +8,9 @@ export * from "./__internals/async/command_procedure";
|
|
|
8
8
|
export * from "./__internals/async/command_promise";
|
|
9
9
|
export * from "./__internals/async/command";
|
|
10
10
|
export * from "./__internals/async/command_statement";
|
|
11
|
+
export type Option<T extends _pi.Value> = readonly [string, T];
|
|
12
|
+
export declare function ss<T extends _pi.Value, RT extends _pi.Command_Promise<any>>(option: Option<T>, $c: ($: T) => RT): RT;
|
|
13
|
+
export declare function au<RT extends _pi.Command_Promise<any>>(_x: never): RT;
|
|
11
14
|
export declare namespace decide {
|
|
12
|
-
type Option<T extends _pi.Value> = readonly [string, T];
|
|
13
|
-
function ss<T extends _pi.Value, RT extends _pi.Command_Promise<any>>(option: Option<T>, $c: ($: T) => RT): RT;
|
|
14
|
-
function au<RT extends _pi.Command_Promise<any>>(_x: never): RT;
|
|
15
15
|
const state: <T extends _pi.State, RT extends _pi.Command_Promise<any>>(state: T, assign: (output: T) => RT) => RT;
|
|
16
16
|
}
|
package/dist/command.js
CHANGED
|
@@ -18,6 +18,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
20
|
exports.decide = exports.__command = exports.__command_promise = exports.command_procedure = void 0;
|
|
21
|
+
exports.ss = ss;
|
|
22
|
+
exports.au = au;
|
|
21
23
|
const command_procedure_1 = __importDefault(require("./__internals/async/command_procedure"));
|
|
22
24
|
exports.command_procedure = command_procedure_1.default;
|
|
23
25
|
const command_promise_1 = __importDefault(require("./__internals/async/command_promise"));
|
|
@@ -29,18 +31,16 @@ __exportStar(require("./__internals/async/command_procedure"), exports);
|
|
|
29
31
|
__exportStar(require("./__internals/async/command_promise"), exports);
|
|
30
32
|
__exportStar(require("./__internals/async/command"), exports);
|
|
31
33
|
__exportStar(require("./__internals/async/command_statement"), exports);
|
|
34
|
+
function ss(option, $c) {
|
|
35
|
+
return $c(option[1]);
|
|
36
|
+
}
|
|
37
|
+
function au(_x) {
|
|
38
|
+
throw new Error("unreachable");
|
|
39
|
+
}
|
|
32
40
|
var decide;
|
|
33
41
|
(function (decide) {
|
|
34
|
-
function ss(option, $c) {
|
|
35
|
-
return $c(option[1]);
|
|
36
|
-
}
|
|
37
|
-
decide.ss = ss;
|
|
38
|
-
function au(_x) {
|
|
39
|
-
throw new Error("unreachable");
|
|
40
|
-
}
|
|
41
|
-
decide.au = au;
|
|
42
42
|
decide.state = (state, assign) => {
|
|
43
43
|
return assign(state);
|
|
44
44
|
};
|
|
45
45
|
})(decide || (exports.decide = decide = {}));
|
|
46
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
46
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWFuZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9jb21tYW5kLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBb0JBLGdCQUlDO0FBRUQsZ0JBSUM7QUE1QkQsOEZBQXFFO0FBS2pFLDRCQUxHLDJCQUFpQixDQUtIO0FBSnJCLDBGQUFtRTtBQUsvRCw0QkFMRyx5QkFBaUIsQ0FLSDtBQUpyQiwwRUFBbUQ7QUFLL0Msb0JBTEcsaUJBQVMsQ0FLSDtBQUdiLHdFQUFxRDtBQUNyRCx3RUFBcUQ7QUFDckQsc0VBQW1EO0FBQ25ELDhEQUEyQztBQUMzQyx3RUFBcUQ7QUFJckQsU0FBZ0IsRUFBRSxDQUNkLE1BQWlCLEVBQ2pCLEVBQWdCO0lBQ2hCLE9BQU8sRUFBRSxDQUFDLE1BQU0sQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFBO0FBQ3hCLENBQUM7QUFFRCxTQUFnQixFQUFFLENBQ2QsRUFBUztJQUVULE1BQU0sSUFBSSxLQUFLLENBQUMsYUFBYSxDQUFDLENBQUE7QUFDbEMsQ0FBQztBQUVELElBQWlCLE1BQU0sQ0FZdEI7QUFaRCxXQUFpQixNQUFNO0lBRU4sWUFBSyxHQUFHLENBSWpCLEtBQVEsRUFDUixNQUF5QixFQUN2QixFQUFFO1FBQ0osT0FBTyxNQUFNLENBQUMsS0FBSyxDQUFDLENBQUE7SUFDeEIsQ0FBQyxDQUFBO0FBRUwsQ0FBQyxFQVpnQixNQUFNLHNCQUFOLE1BQU0sUUFZdEIifQ==
|
package/dist/query.d.ts
CHANGED
|
@@ -9,9 +9,9 @@ export * from "./__internals/async/query_function";
|
|
|
9
9
|
export * from "./__internals/async/__query_result";
|
|
10
10
|
export * from "./__internals/async/query";
|
|
11
11
|
export * from "./interface/algorithm_signatures/Query_Result";
|
|
12
|
+
export type Option<T extends _pi.Value> = readonly [string, T];
|
|
13
|
+
export declare function ss<T extends _pi.Value, RT extends _pi.Query_Result<any, any>>(option: Option<T>, $c: ($: T) => RT): RT;
|
|
14
|
+
export declare function au<RT extends _pi.Query_Result<any, any>>(_x: never): RT;
|
|
12
15
|
export declare namespace decide {
|
|
13
|
-
type Option<T extends _pi.Value> = readonly [string, T];
|
|
14
|
-
function ss<T extends _pi.Value, RT extends _pi.Query_Result<any, any>>(option: Option<T>, $c: ($: T) => RT): RT;
|
|
15
|
-
function au<RT extends _pi.Query_Result<any, any>>(_x: never): RT;
|
|
16
16
|
const state: <T extends _pi.State, RT extends _pi.Query_Result<any, any>>(state: T, assign: (output: T) => RT) => RT;
|
|
17
17
|
}
|
package/dist/query.js
CHANGED
|
@@ -18,6 +18,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
18
18
|
};
|
|
19
19
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
20
|
exports.decide = exports.__query_result = exports.query_function = exports.query = void 0;
|
|
21
|
+
exports.ss = ss;
|
|
22
|
+
exports.au = au;
|
|
21
23
|
const query_1 = __importDefault(require("./__internals/async/query"));
|
|
22
24
|
exports.query = query_1.default;
|
|
23
25
|
const query_function_1 = __importDefault(require("./__internals/async/query_function"));
|
|
@@ -30,18 +32,16 @@ __exportStar(require("./__internals/async/query_function"), exports);
|
|
|
30
32
|
__exportStar(require("./__internals/async/__query_result"), exports);
|
|
31
33
|
__exportStar(require("./__internals/async/query"), exports);
|
|
32
34
|
__exportStar(require("./interface/algorithm_signatures/Query_Result"), exports);
|
|
35
|
+
function ss(option, $c) {
|
|
36
|
+
return $c(option[1]);
|
|
37
|
+
}
|
|
38
|
+
function au(_x) {
|
|
39
|
+
throw new Error("unreachable");
|
|
40
|
+
}
|
|
33
41
|
var decide;
|
|
34
42
|
(function (decide) {
|
|
35
|
-
function ss(option, $c) {
|
|
36
|
-
return $c(option[1]);
|
|
37
|
-
}
|
|
38
|
-
decide.ss = ss;
|
|
39
|
-
function au(_x) {
|
|
40
|
-
throw new Error("unreachable");
|
|
41
|
-
}
|
|
42
|
-
decide.au = au;
|
|
43
43
|
decide.state = (state, assign) => {
|
|
44
44
|
return assign(state);
|
|
45
45
|
};
|
|
46
46
|
})(decide || (exports.decide = decide = {}));
|
|
47
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
47
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicXVlcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvcXVlcnkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUF1QkEsZ0JBSUM7QUFFRCxnQkFJQztBQWpDRCxzRUFBNkM7QUFPekMsZ0JBUEcsZUFBSyxDQU9IO0FBTlQsd0ZBQStEO0FBTzNELHlCQVBHLHdCQUFjLENBT0g7QUFObEIsd0ZBQStEO0FBTzNELHlCQVBHLHdCQUFjLENBT0g7QUFHbEIsd0VBQXFEO0FBQ3JELHVFQUFvRDtBQUNwRCxxRUFBa0Q7QUFDbEQscUVBQWtEO0FBQ2xELDREQUF5QztBQUN6QyxnRkFBNkQ7QUFNN0QsU0FBZ0IsRUFBRSxDQUNkLE1BQWlCLEVBQ2pCLEVBQWdCO0lBQ2hCLE9BQU8sRUFBRSxDQUFDLE1BQU0sQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFBO0FBQ3hCLENBQUM7QUFFRCxTQUFnQixFQUFFLENBQ2QsRUFBUztJQUVULE1BQU0sSUFBSSxLQUFLLENBQUMsYUFBYSxDQUFDLENBQUE7QUFDbEMsQ0FBQztBQUVELElBQWlCLE1BQU0sQ0FZdEI7QUFaRCxXQUFpQixNQUFNO0lBRU4sWUFBSyxHQUFHLENBSWpCLEtBQVEsRUFDUixNQUF5QixFQUN2QixFQUFFO1FBQ0osT0FBTyxNQUFNLENBQUMsS0FBSyxDQUFDLENBQUE7SUFDeEIsQ0FBQyxDQUFBO0FBRUwsQ0FBQyxFQVpnQixNQUFNLHNCQUFOLE1BQU0sUUFZdEIifQ==
|