pareto-core-shorthands 0.2.6 → 0.2.7
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/unconstrained.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as _pi from "pareto-core/dist/interface";
|
|
2
2
|
export type Raw_Or_Normal_Dictionary<T> = {
|
|
3
|
-
[
|
|
3
|
+
[id: 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;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import * as _pi from "pareto-core/dist/interface";
|
|
2
2
|
export type Raw_Or_Normal_Dictionary<T> = {
|
|
3
|
-
[
|
|
3
|
+
[id: 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 type Reference_To_Normal_Dictionary_Entry<G_Source, T_Dictionary_Entry> = {
|
|
8
|
-
readonly '
|
|
8
|
+
readonly 'id': string;
|
|
9
9
|
readonly 'location': G_Source;
|
|
10
10
|
};
|
|
11
11
|
export type Reference_To_Stacked_Dictionary_Entry<G_Source, T_Dictionary_Entry> = {
|
|
12
|
-
readonly '
|
|
12
|
+
readonly 'id': string;
|
|
13
13
|
readonly 'location': G_Source;
|
|
14
14
|
};
|
|
15
15
|
export type Dictionary<G_Source, T_D> = {
|
|
@@ -21,7 +21,7 @@ export type Dictionary<G_Source, T_D> = {
|
|
|
21
21
|
};
|
|
22
22
|
export type List<G_Source, T_L> = {
|
|
23
23
|
readonly 'list': _pi.List<{
|
|
24
|
-
readonly '
|
|
24
|
+
readonly 'item': T_L;
|
|
25
25
|
readonly 'location': G_Source;
|
|
26
26
|
}>;
|
|
27
27
|
readonly 'location': G_Source;
|
|
@@ -37,10 +37,6 @@ export declare const wrap_state: <T extends readonly [string, any]>($: T) => {
|
|
|
37
37
|
location: _pi.Deprecated_Source_Location;
|
|
38
38
|
state: T;
|
|
39
39
|
};
|
|
40
|
-
export declare const wrap_state_deprecated: <T extends readonly [string, any]>($: T) => {
|
|
41
|
-
location: _pi.Deprecated_Source_Location;
|
|
42
|
-
'state group': T;
|
|
43
|
-
};
|
|
44
40
|
export declare const wrap_optional: <T>($: T | null | undefined) => _pi.Optional_Value<T>;
|
|
45
41
|
export declare const wrap_reference: <T>($: string) => Reference_To_Normal_Dictionary_Entry<_pi.Deprecated_Source_Location, T>;
|
|
46
42
|
export declare const wrap_stack_reference: <T>(name: string) => Reference_To_Stacked_Dictionary_Entry<_pi.Deprecated_Source_Location, T>;
|
package/dist/unresolved_data.js
CHANGED
|
@@ -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.
|
|
36
|
+
exports.wrap_stack_reference = exports.wrap_reference = exports.wrap_optional = 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
|
|
@@ -88,7 +88,7 @@ const wrap_list = ($) => {
|
|
|
88
88
|
'location': location,
|
|
89
89
|
'list': decorated.__l_map(($) => ({
|
|
90
90
|
'location': location,
|
|
91
|
-
'
|
|
91
|
+
'item': $,
|
|
92
92
|
}))
|
|
93
93
|
};
|
|
94
94
|
};
|
|
@@ -100,13 +100,6 @@ const wrap_state = ($) => {
|
|
|
100
100
|
};
|
|
101
101
|
};
|
|
102
102
|
exports.wrap_state = wrap_state;
|
|
103
|
-
const wrap_state_deprecated = ($) => {
|
|
104
|
-
return {
|
|
105
|
-
'location': (0, get_location_info_1.$$)(depth + 1),
|
|
106
|
-
'state group': $,
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
exports.wrap_state_deprecated = wrap_state_deprecated;
|
|
110
103
|
const wrap_optional = ($) => {
|
|
111
104
|
if ($ === null || $ === undefined) {
|
|
112
105
|
return _pinternals.optional.not_set();
|
|
@@ -119,14 +112,14 @@ exports.wrap_optional = wrap_optional;
|
|
|
119
112
|
const wrap_reference = ($) => {
|
|
120
113
|
return {
|
|
121
114
|
'location': (0, get_location_info_1.$$)(depth + 1),
|
|
122
|
-
'
|
|
115
|
+
'id': $,
|
|
123
116
|
};
|
|
124
117
|
};
|
|
125
118
|
exports.wrap_reference = wrap_reference;
|
|
126
119
|
const wrap_stack_reference = (name) => {
|
|
127
120
|
return {
|
|
128
121
|
'location': (0, get_location_info_1.$$)(depth + 1),
|
|
129
|
-
'
|
|
122
|
+
'id': name,
|
|
130
123
|
};
|
|
131
124
|
};
|
|
132
125
|
exports.wrap_stack_reference = wrap_stack_reference;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pareto-core-shorthands",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
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.
|
|
26
|
+
"pareto-core": "^0.1.9"
|
|
27
27
|
}
|
|
28
28
|
}
|