exupery-core-data 0.3.1 → 0.3.2

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/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  export { get_location_info, location_to_string, Source_Location, } from "./get_location_info";
2
- export { array_literal as a, //this function is heavily used, to not clutter the code, it is abbreviated to just 'a'
2
+ export { list_literal as a, //this function is heavily used, to not clutter the code, it is abbreviated to just 'a'
3
3
  dictionary_literal as d, //this function is heavily used, to not clutter the code, it is abbreviated to just 'd'
4
4
  set, not_set, } from "exupery-core-internals";
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ var get_location_info_1 = require("./get_location_info");
5
5
  Object.defineProperty(exports, "get_location_info", { enumerable: true, get: function () { return get_location_info_1.get_location_info; } });
6
6
  Object.defineProperty(exports, "location_to_string", { enumerable: true, get: function () { return get_location_info_1.location_to_string; } });
7
7
  var exupery_core_internals_1 = require("exupery-core-internals");
8
- Object.defineProperty(exports, "a", { enumerable: true, get: function () { return exupery_core_internals_1.array_literal; } });
8
+ Object.defineProperty(exports, "a", { enumerable: true, get: function () { return exupery_core_internals_1.list_literal; } });
9
9
  Object.defineProperty(exports, "d", { enumerable: true, get: function () { return exupery_core_internals_1.dictionary_literal; } });
10
10
  Object.defineProperty(exports, "set", { enumerable: true, get: function () { return exupery_core_internals_1.set; } });
11
11
  Object.defineProperty(exports, "not_set", { enumerable: true, get: function () { return exupery_core_internals_1.not_set; } });
@@ -1,15 +1,14 @@
1
1
  import * as _et from 'exupery-core-types';
2
- import * as pt from 'exupery-core-types';
3
2
  export type Raw_Or_Normal_Dictionary<T> = {
4
3
  [key: string]: T;
5
- } | pt.Dictionary<T>;
6
- export type Raw_Or_Normal_Array<T> = T[] | pt.Array<T>;
4
+ } | _et.Dictionary<T>;
5
+ export type Raw_Or_Normal_List<T> = T[] | _et.List<T>;
7
6
  export type Raw_Dictionary<T> = {
8
7
  [key: string]: T;
9
8
  };
10
- export declare const to_raw_array: <T>($: pt.Array<T>) => readonly T[];
9
+ export declare const to_raw_array: <T>($: _et.List<T>) => readonly T[];
11
10
  export type Dictionary<T_D> = _et.Dictionary<T_D>;
12
- export type List<T_L> = _et.Array<T_L>;
11
+ export type List<T_L> = _et.List<T_L>;
13
12
  export declare const wrap_dictionary: <T>($: Raw_Or_Normal_Dictionary<T>) => Dictionary<T>;
14
- export declare const wrap_list: <T>($: Raw_Or_Normal_Array<T>) => List<T>;
13
+ export declare const wrap_list: <T>($: Raw_Or_Normal_List<T>) => List<T>;
15
14
  export declare const wrap_state_group: <T>($: T) => T;
@@ -41,7 +41,7 @@ const wrap_dictionary = ($) => {
41
41
  exports.wrap_dictionary = wrap_dictionary;
42
42
  const wrap_list = ($) => {
43
43
  if ($ instanceof Array) {
44
- return _ei.array_literal($);
44
+ return _ei.list_literal($);
45
45
  }
46
46
  if (!($.__for_each instanceof Function)) {
47
47
  throw new Error("invalid input in 'wrap_list'");
@@ -1,10 +1,9 @@
1
1
  import * as _et from 'exupery-core-types';
2
- import * as pt from 'exupery-core-types';
3
2
  import { Source_Location } from "../get_location_info";
4
3
  export type Raw_Or_Normal_Dictionary<T> = {
5
4
  [key: string]: T;
6
- } | pt.Dictionary<T>;
7
- export type Raw_Or_Normal_Array<T> = T[] | pt.Array<T>;
5
+ } | _et.Dictionary<T>;
6
+ export type Raw_Or_Normal_Array<T> = T[] | _et.List<T>;
8
7
  export type Raw_Dictionary<T> = {
9
8
  [key: string]: T;
10
9
  };
@@ -16,7 +15,7 @@ export type Reference_To_Stacked_Dictionary_Entry<G_Source, T_Dictionary_Entry>
16
15
  readonly 'key': string;
17
16
  readonly 'location': G_Source;
18
17
  };
19
- export declare const to_raw_array: <T>($: pt.Array<T>) => readonly T[];
18
+ export declare const to_raw_array: <T>($: _et.List<T>) => readonly T[];
20
19
  export type Dictionary<G_Source, T_D> = {
21
20
  readonly 'dictionary': _et.Dictionary<{
22
21
  readonly 'entry': T_D;
@@ -25,7 +24,7 @@ export type Dictionary<G_Source, T_D> = {
25
24
  readonly 'location': G_Source;
26
25
  };
27
26
  export type List<G_Source, T_L> = {
28
- readonly 'list': _et.Array<{
27
+ readonly 'list': _et.List<{
29
28
  readonly 'element': T_L;
30
29
  readonly 'location': G_Source;
31
30
  }>;
@@ -57,7 +57,7 @@ exports.wrap_dictionary = wrap_dictionary;
57
57
  const wrap_list = ($) => {
58
58
  const location = (0, get_location_info_1.get_location_info)(depth + 1);
59
59
  const decorated = $ instanceof Array
60
- ? _ei.array_literal($)
60
+ ? _ei.list_literal($)
61
61
  : $;
62
62
  if (!(decorated.__for_each instanceof Function)) {
63
63
  throw new Error("invalid input in 'wrap_list'");
@@ -1,10 +1,9 @@
1
1
  import * as _et from 'exupery-core-types';
2
- import * as pt from 'exupery-core-types';
3
2
  import { Source_Location } from "../get_location_info";
4
3
  export type Raw_Or_Normal_Dictionary<T> = {
5
4
  [key: string]: T;
6
- } | pt.Dictionary<T>;
7
- export type Raw_Or_Normal_Array<T> = T[] | pt.Array<T>;
5
+ } | _et.Dictionary<T>;
6
+ export type Raw_Or_Normal_List<T> = T[] | _et.List<T>;
8
7
  export type Raw_Dictionary<T> = {
9
8
  [key: string]: T;
10
9
  };
@@ -16,7 +15,7 @@ export type Reference_To_Stacked_Dictionary_Entry<G_Source, T_Dictionary_Entry>
16
15
  readonly 'key': string;
17
16
  readonly 'location': G_Source;
18
17
  };
19
- export declare const to_raw_array: <T>($: pt.Array<T>) => readonly T[];
18
+ export declare const to_raw_array: <T>($: _et.List<T>) => readonly T[];
20
19
  export type Dictionary<G_Source, T_D> = {
21
20
  readonly 'dictionary': _et.Dictionary<{
22
21
  readonly 'entry': T_D;
@@ -25,14 +24,14 @@ export type Dictionary<G_Source, T_D> = {
25
24
  readonly 'location': G_Source;
26
25
  };
27
26
  export type List<G_Source, T_L> = {
28
- readonly 'list': _et.Array<{
27
+ readonly 'list': _et.List<{
29
28
  readonly 'element': T_L;
30
29
  readonly 'location': G_Source;
31
30
  }>;
32
31
  readonly 'location': G_Source;
33
32
  };
34
33
  export declare const wrap_dictionary: <T>($: Raw_Or_Normal_Dictionary<T>) => Dictionary<Source_Location, T>;
35
- export declare const wrap_list: <T>($: Raw_Or_Normal_Array<T>) => List<Source_Location, T>;
34
+ export declare const wrap_list: <T>($: Raw_Or_Normal_List<T>) => List<Source_Location, T>;
36
35
  export declare const wrap_state_group: <T>($: T) => {
37
36
  location: Source_Location;
38
37
  'state group': T;
@@ -57,7 +57,7 @@ exports.wrap_dictionary = wrap_dictionary;
57
57
  const wrap_list = ($) => {
58
58
  const location = (0, get_location_info_1.get_location_info)(depth + 1);
59
59
  const decorated = $ instanceof Array
60
- ? _ei.array_literal($)
60
+ ? _ei.list_literal($)
61
61
  : $;
62
62
  if (!(decorated.__for_each instanceof Function)) {
63
63
  throw new Error("invalid input in 'wrap_list'");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "exupery-core-data",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "license": "ISC",
5
5
  "description": "the Exupery package used for building datasets",
6
6
  "author": "Corno",
@@ -23,6 +23,6 @@
23
23
  "url": "git+https://github.com/corno/exupery-core.git"
24
24
  },
25
25
  "dependencies": {
26
- "exupery-core-internals": "^0.3.0"
26
+ "exupery-core-internals": "^0.3.10"
27
27
  }
28
28
  }