pareto-core-shorthands 0.2.5 → 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;
|
|
@@ -33,9 +33,9 @@ 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
|
|
36
|
+
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
40
|
export declare const wrap_optional: <T>($: T | null | undefined) => _pi.Optional_Value<T>;
|
|
41
41
|
export declare const wrap_reference: <T>($: string) => Reference_To_Normal_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,18 +88,18 @@ 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
|
};
|
|
95
95
|
exports.wrap_list = wrap_list;
|
|
96
|
-
const
|
|
96
|
+
const wrap_state = ($) => {
|
|
97
97
|
return {
|
|
98
98
|
'location': (0, get_location_info_1.$$)(depth + 1),
|
|
99
|
-
'state
|
|
99
|
+
'state': $,
|
|
100
100
|
};
|
|
101
101
|
};
|
|
102
|
-
exports.
|
|
102
|
+
exports.wrap_state = wrap_state;
|
|
103
103
|
const wrap_optional = ($) => {
|
|
104
104
|
if ($ === null || $ === undefined) {
|
|
105
105
|
return _pinternals.optional.not_set();
|
|
@@ -112,14 +112,14 @@ exports.wrap_optional = wrap_optional;
|
|
|
112
112
|
const wrap_reference = ($) => {
|
|
113
113
|
return {
|
|
114
114
|
'location': (0, get_location_info_1.$$)(depth + 1),
|
|
115
|
-
'
|
|
115
|
+
'id': $,
|
|
116
116
|
};
|
|
117
117
|
};
|
|
118
118
|
exports.wrap_reference = wrap_reference;
|
|
119
119
|
const wrap_stack_reference = (name) => {
|
|
120
120
|
return {
|
|
121
121
|
'location': (0, get_location_info_1.$$)(depth + 1),
|
|
122
|
-
'
|
|
122
|
+
'id': name,
|
|
123
123
|
};
|
|
124
124
|
};
|
|
125
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
|
}
|