pareto-core-shorthands 0.2.5 → 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.
@@ -33,7 +33,11 @@ export declare namespace optional {
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,7 +33,7 @@ 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;
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
37
  const _pinternals = __importStar(require("pareto-core/dist/__internals/sync/expression/initialize"));
38
38
  const get_location_info_1 = require("pareto-core/dist/__internals/sync/get_location_info");
39
39
  //implementations
@@ -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.5",
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": "^0.1.0"
26
+ "pareto-core": "^0.1.8"
27
27
  }
28
28
  }