exupery-core-internals 0.3.16 → 0.3.18

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.
@@ -11,7 +11,7 @@ class Failure_Refinement_Result_Class {
11
11
  transform_result(transformer) {
12
12
  return new Failure_Refinement_Result_Class(this.error);
13
13
  }
14
- transform_error_temp(error_transformer) {
14
+ deprecated_transform_error(error_transformer) {
15
15
  return new Failure_Refinement_Result_Class(error_transformer(this.error));
16
16
  }
17
17
  refine_without_error_transformation(refiner) {
@@ -13,7 +13,7 @@ class Query_Result_Class {
13
13
  }, on_error);
14
14
  });
15
15
  }
16
- transform_error_temp(error_transformer) {
16
+ deprecated_transform_error(error_transformer) {
17
17
  return new Query_Result_Class((on_result, on_error) => {
18
18
  this.executer(on_result, ($) => {
19
19
  on_error(error_transformer($));
@@ -11,7 +11,7 @@ class Success_Refinement_Result_Class {
11
11
  transform_result(transformer) {
12
12
  return new Success_Refinement_Result_Class(transformer(this.output));
13
13
  }
14
- transform_error_temp(error_transformer) {
14
+ deprecated_transform_error(error_transformer) {
15
15
  return new Success_Refinement_Result_Class(this.output);
16
16
  }
17
17
  refine_without_error_transformation(refiner) {
@@ -19,7 +19,7 @@ class Success_Refinement_Result_Class {
19
19
  }
20
20
  refine(refiner, error_transformer) {
21
21
  //the error transform operation is here to satisfy the signature
22
- return refiner(this.output).transform_error_temp(error_transformer);
22
+ return refiner(this.output).deprecated_transform_error(error_transformer);
23
23
  }
24
24
  rework_error_temp(error_reworker, rework_error_transformer) {
25
25
  return new Success_Refinement_Result_Class(this.output);
@@ -19,8 +19,8 @@ class Dictionary {
19
19
  };
20
20
  }));
21
21
  }
22
- deprecated_to_array(compare) {
23
- const sorted_keys = this.source.slice().sort(compare);
22
+ deprecated_to_array() {
23
+ const sorted_keys = this.source.slice();
24
24
  return (0, list_literal_1.list_literal)(sorted_keys);
25
25
  }
26
26
  __get_entry(key) {
@@ -1,8 +1,8 @@
1
- import * as pt from "exupery-core-types";
1
+ import * as _et from "exupery-core-types";
2
2
  /**
3
3
  * why is this not the constructor? to call a constructor, you have to use the keyword 'new'. Exupery doesn't use the concept of a class so that keyword should be avoided
4
4
 
5
5
  * creates a not set Optional_Value
6
6
  * @returns Optional_Value of type T
7
7
  */
8
- export declare function not_set<T>(): pt.Optional_Value<T>;
8
+ export declare function not_set<T>(): _et.Optional_Value<T>;
@@ -5,13 +5,10 @@ exports.not_set = not_set;
5
5
  * this is an implementation, not public by design
6
6
  */
7
7
  class Not_Set_Value {
8
- constructor() {
9
- this.__raw = [false];
10
- }
11
8
  transform(set, not_set) {
12
9
  return not_set();
13
10
  }
14
- map(set) {
11
+ map() {
15
12
  return not_set();
16
13
  }
17
14
  }
@@ -1,7 +1,7 @@
1
- import * as pt from "exupery-core-types";
1
+ import * as _et from "exupery-core-types";
2
2
  /**
3
3
  * returns a set {@link Optional_Value}.
4
4
 
5
5
  * @param $ the set value
6
6
  */
7
- export declare function set<T>($: T): pt.Optional_Value<T>;
7
+ export declare function set<T>($: T): _et.Optional_Value<T>;
@@ -6,17 +6,10 @@ exports.set = set;
6
6
  */
7
7
  class Set_Value {
8
8
  constructor(source) {
9
- this.source = source;
10
- this.__raw = [true, source];
11
9
  this.value = source;
12
10
  }
13
11
  transform(set, not_set) {
14
- if (this.__raw[0] === true) {
15
- return set(this.__raw[1]);
16
- }
17
- else {
18
- return not_set();
19
- }
12
+ return set(this.value);
20
13
  }
21
14
  map(if_set) {
22
15
  return set(if_set(this.value));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exupery-core-internals",
3
- "version": "0.3.16",
3
+ "version": "0.3.18",
4
4
  "license": "ISC",
5
5
  "description": "",
6
6
  "author": "Corno",
@@ -15,7 +15,7 @@
15
15
  "url": "https://github.com/corno/exupery-core/issues"
16
16
  },
17
17
  "dependencies": {
18
- "exupery-core-types": "^0.3.52"
18
+ "exupery-core-types": "^0.3.58"
19
19
  },
20
20
  "main": "./dist/index.js",
21
21
  "types": "dist/index.d.ts",