pareto-core-interface 0.1.3 → 0.1.5

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.
@@ -0,0 +1,4 @@
1
+ export type Deprecated_Key_Value_Pair<T> = {
2
+ readonly 'key': string;
3
+ readonly 'value': T;
4
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRGVwcmVjYXRlZF9LZXlfVmFsdWVfUGFpci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9EZXByZWNhdGVkX0tleV9WYWx1ZV9QYWlyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
@@ -1,13 +1,13 @@
1
- import { Transformer } from "./Transformer";
2
- export interface Refinement_Result<Output, Error> {
1
+ import { Transformer } from "./algorithm_signatures/Transformer";
2
+ export interface Deprecated_Refinement_Result<Output, Error> {
3
3
  transform<Target>(output_transformer: Transformer<Output, Target>, error_transformer: Transformer<Error, Target>): Target;
4
- transform_result<New_Output>(transformer: Transformer<Output, New_Output>): Refinement_Result<New_Output, Error>;
5
- deprecated_transform_error<New_Error>(error_transformer: Transformer<Error, New_Error>): Refinement_Result<Output, New_Error>;
4
+ transform_result<New_Output>(transformer: Transformer<Output, New_Output>): Deprecated_Refinement_Result<New_Output, Error>;
5
+ deprecated_transform_error<New_Error>(error_transformer: Transformer<Error, New_Error>): Deprecated_Refinement_Result<Output, New_Error>;
6
6
  deprecated_refine_old<New_Output, Refiner_Error>(refiner: Deprecated_Refiner_Catcher<New_Output, Refiner_Error, Output>,
7
7
  /**
8
8
  * if the refiner fails, rework its error into the desired error type
9
9
  */
10
- error_transformer: Transformer<Refiner_Error, Error>): Refinement_Result<New_Output, Error>;
10
+ error_transformer: Transformer<Refiner_Error, Error>): Deprecated_Refinement_Result<New_Output, Error>;
11
11
  __extract_data: (on_success: ($: Output) => void, on_error: ($: Error) => void) => void;
12
12
  }
13
- export type Deprecated_Refiner_Catcher<Result, Error, Input> = ($: Input) => Refinement_Result<Result, Error>;
13
+ export type Deprecated_Refiner_Catcher<Result, Error, Input> = ($: Input) => Deprecated_Refinement_Result<Result, Error>;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRGVwcmVjYXRlZF9SZWZpbmVtZW50X1Jlc3VsdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9EZXByZWNhdGVkX1JlZmluZW1lbnRfUmVzdWx0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
@@ -1,5 +1,5 @@
1
1
  import { Queryer } from "./Queryer";
2
- import { Deprecated_Refiner_Catcher } from "./Refinement_Result";
2
+ import { Deprecated_Refiner_Catcher } from "../Deprecated_Refinement_Result";
3
3
  import { Transformer } from "./Transformer";
4
4
  export interface Query_Result<Output, Error> {
5
5
  query_result: null;
@@ -1,9 +1,5 @@
1
1
  import { List } from "./List";
2
2
  import { Optional_Value } from "./Optional_Value";
3
- export type Key_Value_Pair<T> = {
4
- readonly 'key': string;
5
- readonly 'value': T;
6
- };
7
3
  /**
8
4
  * A dictionary for Pareto.
9
5
  * unmutable and minimal by design
package/dist/index.d.ts CHANGED
@@ -10,9 +10,10 @@ export * from "./algorithm_signatures/Query_Function";
10
10
  export * from "./algorithm_signatures/Query_Result";
11
11
  export * from "./algorithm_signatures/Query";
12
12
  export * from "./algorithm_signatures/Queryer";
13
- export * from "./algorithm_signatures/Refinement_Result";
14
13
  export * from "./algorithm_signatures/Refiner";
15
14
  export * from "./algorithm_signatures/Transformer";
16
15
  export * from "./algorithm_signatures/Serializer";
17
16
  export * from "./algorithm_signatures/Deserializer";
18
17
  export * from "./Deprecated_Source_Location";
18
+ export * from "./Deprecated_Refinement_Result";
19
+ export * from "./Deprecated_Key_Value_Pair";
package/dist/index.js CHANGED
@@ -26,10 +26,11 @@ __exportStar(require("./algorithm_signatures/Query_Function"), exports);
26
26
  __exportStar(require("./algorithm_signatures/Query_Result"), exports);
27
27
  __exportStar(require("./algorithm_signatures/Query"), exports);
28
28
  __exportStar(require("./algorithm_signatures/Queryer"), exports);
29
- __exportStar(require("./algorithm_signatures/Refinement_Result"), exports);
30
29
  __exportStar(require("./algorithm_signatures/Refiner"), exports);
31
30
  __exportStar(require("./algorithm_signatures/Transformer"), exports);
32
31
  __exportStar(require("./algorithm_signatures/Serializer"), exports);
33
32
  __exportStar(require("./algorithm_signatures/Deserializer"), exports);
34
33
  __exportStar(require("./Deprecated_Source_Location"), exports);
35
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztBQUNBLDhDQUEyQjtBQUMzQiw2REFBMEM7QUFDMUMsb0RBQWlDO0FBQ2pDLHdEQUFxQztBQUVyQywwQ0FBdUI7QUFFdkIsNERBQXlDO0FBRXpDLGlFQUE4QztBQUM5QyxrRUFBK0M7QUFDL0Msd0VBQXFEO0FBQ3JELHNFQUFtRDtBQUNuRCwrREFBNEM7QUFDNUMsaUVBQThDO0FBQzlDLDJFQUF3RDtBQUN4RCxpRUFBOEM7QUFDOUMscUVBQWtEO0FBQ2xELG9FQUFpRDtBQUNqRCxzRUFBbUQ7QUFFbkQsK0RBQTRDIn0=
34
+ __exportStar(require("./Deprecated_Refinement_Result"), exports);
35
+ __exportStar(require("./Deprecated_Key_Value_Pair"), exports);
36
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztBQUNBLDhDQUEyQjtBQUMzQiw2REFBMEM7QUFDMUMsb0RBQWlDO0FBQ2pDLHdEQUFxQztBQUVyQywwQ0FBdUI7QUFFdkIsNERBQXlDO0FBRXpDLGlFQUE4QztBQUM5QyxrRUFBK0M7QUFDL0Msd0VBQXFEO0FBQ3JELHNFQUFtRDtBQUNuRCwrREFBNEM7QUFDNUMsaUVBQThDO0FBQzlDLGlFQUE4QztBQUM5QyxxRUFBa0Q7QUFDbEQsb0VBQWlEO0FBQ2pELHNFQUFtRDtBQUVuRCwrREFBNEM7QUFDNUMsaUVBQThDO0FBQzlDLDhEQUEyQyJ9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pareto-core-interface",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
4
4
  "license": "Apache-2.0",
5
5
  "author": "Corno",
6
6
  "description": "core types needed to define an interface in the Pareto language",
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUmVmaW5lbWVudF9SZXN1bHQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYWxnb3JpdGhtX3NpZ25hdHVyZXMvUmVmaW5lbWVudF9SZXN1bHQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9