pareto-core-shorthands 0.2.4 → 0.2.6

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.
@@ -1,12 +1,12 @@
1
- import * as _pi from "pareto-core-internals/dist/interface";
1
+ import * as _pi from "pareto-core/dist/interface";
2
2
  export type Raw_Or_Normal_Dictionary<T> = {
3
3
  [key: string]: T;
4
4
  } | _pi.Dictionary<T>;
5
5
  export type Raw_Or_Normal_List<T> = T[] | _pi.List<T>;
6
6
  export type Raw_Optional<T> = null | undefined | T;
7
7
  export declare namespace optional {
8
- const set: typeof import("pareto-core-internals/dist/__internals/sync/expression/literals/optional").set;
9
- const not_set: typeof import("pareto-core-internals/dist/__internals/sync/expression/literals/optional").not_set;
8
+ const set: typeof import("pareto-core/dist/__internals/sync/expression/literals/optional").set;
9
+ const not_set: typeof import("pareto-core/dist/__internals/sync/expression/literals/optional").not_set;
10
10
  const literal: <T>($: Raw_Optional<T>) => _pi.Optional_Value<T>;
11
11
  }
12
12
  export declare namespace dictionary {
@@ -34,7 +34,7 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
36
  exports.list = exports.dictionary = exports.optional = void 0;
37
- const _pinternals = __importStar(require("pareto-core-internals/dist/__internals/sync/expression/initialize"));
37
+ const _pinternals = __importStar(require("pareto-core/dist/__internals/sync/expression/initialize"));
38
38
  var optional;
39
39
  (function (optional) {
40
40
  optional.set = _pinternals.optional.set;
@@ -1,4 +1,4 @@
1
- import * as _pi from "pareto-core-internals/dist/interface";
1
+ import * as _pi from "pareto-core/dist/interface";
2
2
  export type Raw_Or_Normal_Dictionary<T> = {
3
3
  [key: string]: T;
4
4
  } | _pi.Dictionary<T>;
@@ -27,13 +27,17 @@ export type List<G_Source, T_L> = {
27
27
  readonly 'location': G_Source;
28
28
  };
29
29
  export declare namespace optional {
30
- const set: typeof import("pareto-core-internals/dist/__internals/sync/expression/literals/optional").set;
31
- const not_set: typeof import("pareto-core-internals/dist/__internals/sync/expression/literals/optional").not_set;
30
+ const set: typeof import("pareto-core/dist/__internals/sync/expression/literals/optional").set;
31
+ const not_set: typeof import("pareto-core/dist/__internals/sync/expression/literals/optional").not_set;
32
32
  const literal: <T>($: Raw_Optional<T>) => _pi.Optional_Value<T>;
33
33
  }
34
34
  export declare const wrap_dictionary: <T>($: Raw_Or_Normal_Dictionary<T>) => Dictionary<_pi.Deprecated_Source_Location, T>;
35
35
  export declare const wrap_list: <T>($: Raw_Or_Normal_List<T>) => List<_pi.Deprecated_Source_Location, T>;
36
- export declare const wrap_state_group: <T extends readonly [string, any]>($: T) => {
36
+ export declare const wrap_state: <T extends readonly [string, any]>($: T) => {
37
+ location: _pi.Deprecated_Source_Location;
38
+ state: T;
39
+ };
40
+ export declare const wrap_state_deprecated: <T extends readonly [string, any]>($: T) => {
37
41
  location: _pi.Deprecated_Source_Location;
38
42
  'state group': T;
39
43
  };
@@ -33,9 +33,9 @@ var __importStar = (this && this.__importStar) || (function () {
33
33
  };
34
34
  })();
35
35
  Object.defineProperty(exports, "__esModule", { value: true });
36
- exports.wrap_stack_reference = exports.wrap_reference = exports.wrap_optional = exports.wrap_state_group = exports.wrap_list = exports.wrap_dictionary = exports.optional = void 0;
37
- const _pinternals = __importStar(require("pareto-core-internals/dist/__internals/sync/expression/initialize"));
38
- const get_location_info_1 = require("pareto-core-internals/dist/__internals/sync/get_location_info");
36
+ exports.wrap_stack_reference = exports.wrap_reference = exports.wrap_optional = exports.wrap_state_deprecated = exports.wrap_state = exports.wrap_list = exports.wrap_dictionary = exports.optional = void 0;
37
+ const _pinternals = __importStar(require("pareto-core/dist/__internals/sync/expression/initialize"));
38
+ const get_location_info_1 = require("pareto-core/dist/__internals/sync/get_location_info");
39
39
  //implementations
40
40
  const depth = 1;
41
41
  var optional;
@@ -93,13 +93,20 @@ const wrap_list = ($) => {
93
93
  };
94
94
  };
95
95
  exports.wrap_list = wrap_list;
96
- const wrap_state_group = ($) => {
96
+ const wrap_state = ($) => {
97
+ return {
98
+ 'location': (0, get_location_info_1.$$)(depth + 1),
99
+ 'state': $,
100
+ };
101
+ };
102
+ exports.wrap_state = wrap_state;
103
+ const wrap_state_deprecated = ($) => {
97
104
  return {
98
105
  'location': (0, get_location_info_1.$$)(depth + 1),
99
106
  'state group': $,
100
107
  };
101
108
  };
102
- exports.wrap_state_group = wrap_state_group;
109
+ exports.wrap_state_deprecated = wrap_state_deprecated;
103
110
  const wrap_optional = ($) => {
104
111
  if ($ === null || $ === undefined) {
105
112
  return _pinternals.optional.not_set();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pareto-core-shorthands",
3
- "version": "0.2.4",
3
+ "version": "0.2.6",
4
4
  "license": "ISC",
5
5
  "description": "the pareto package used for building datasets",
6
6
  "author": "Corno",
@@ -23,6 +23,6 @@
23
23
  "url": "git+https://github.com/corno/pareto-core-shorthands.git"
24
24
  },
25
25
  "dependencies": {
26
- "pareto-core-internals": "^0.25.4"
26
+ "pareto-core": "^0.1.8"
27
27
  }
28
28
  }