pareto-core-shorthands 0.2.11 → 0.2.13
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/unresolved_data.d.ts +21 -20
- package/dist/unresolved_data.js +18 -18
- package/package.json +2 -2
|
@@ -4,27 +4,31 @@ export type Raw_Or_Normal_Dictionary<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
|
-
export type
|
|
8
|
-
readonly 'id': string;
|
|
9
|
-
readonly 'location': G_Source;
|
|
7
|
+
export type Reference<G_Source, T_Dictionary_Entry> = {
|
|
8
|
+
readonly 'l id': string;
|
|
9
|
+
readonly 'l location': G_Source;
|
|
10
10
|
};
|
|
11
|
-
export type
|
|
12
|
-
readonly 'id': string;
|
|
13
|
-
readonly 'location': G_Source;
|
|
11
|
+
export type Stack_Reference<G_Source, T_Dictionary_Entry> = {
|
|
12
|
+
readonly 'l id': string;
|
|
13
|
+
readonly 'l location': G_Source;
|
|
14
14
|
};
|
|
15
15
|
export type Dictionary<G_Source, T_D> = {
|
|
16
|
-
readonly 'dictionary': _pi.Dictionary<{
|
|
17
|
-
readonly 'entry': T_D;
|
|
18
|
-
readonly 'location': G_Source;
|
|
16
|
+
readonly 'l dictionary': _pi.Dictionary<{
|
|
17
|
+
readonly 'l entry': T_D;
|
|
18
|
+
readonly 'l location': G_Source;
|
|
19
19
|
}>;
|
|
20
|
-
readonly 'location': G_Source;
|
|
20
|
+
readonly 'l location': G_Source;
|
|
21
21
|
};
|
|
22
22
|
export type List<G_Source, T_L> = {
|
|
23
|
-
readonly 'list': _pi.List<{
|
|
24
|
-
readonly 'item': T_L;
|
|
25
|
-
readonly 'location': G_Source;
|
|
23
|
+
readonly 'l list': _pi.List<{
|
|
24
|
+
readonly 'l item': T_L;
|
|
25
|
+
readonly 'l location': G_Source;
|
|
26
26
|
}>;
|
|
27
|
-
readonly 'location': G_Source;
|
|
27
|
+
readonly 'l location': G_Source;
|
|
28
|
+
};
|
|
29
|
+
export type State<X> = {
|
|
30
|
+
readonly 'l location': _pi.Deprecated_Source_Location;
|
|
31
|
+
readonly 'l state': X;
|
|
28
32
|
};
|
|
29
33
|
export declare namespace optional {
|
|
30
34
|
const set: typeof import("pareto-core/dist/__internals/sync/expression/literals/optional").set;
|
|
@@ -33,10 +37,7 @@ export declare namespace optional {
|
|
|
33
37
|
}
|
|
34
38
|
export declare const wrap_dictionary: <T>($: Raw_Or_Normal_Dictionary<T>) => Dictionary<_pi.Deprecated_Source_Location, T>;
|
|
35
39
|
export declare const wrap_list: <T>($: Raw_Or_Normal_List<T>) => List<_pi.Deprecated_Source_Location, 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: <T extends readonly [string, any]>($: T) => State<T>;
|
|
40
41
|
export declare const wrap_optional: <T>($: T | null | undefined) => _pi.Optional_Value<T>;
|
|
41
|
-
export declare const wrap_reference: <T>($: string) =>
|
|
42
|
-
export declare const wrap_stack_reference: <T>(name: string) =>
|
|
42
|
+
export declare const wrap_reference: <T>($: string) => Reference<_pi.Deprecated_Source_Location, T>;
|
|
43
|
+
export declare const wrap_stack_reference: <T>(name: string) => Stack_Reference<_pi.Deprecated_Source_Location, T>;
|
package/dist/unresolved_data.js
CHANGED
|
@@ -58,19 +58,19 @@ const wrap_dictionary = ($) => {
|
|
|
58
58
|
}
|
|
59
59
|
if (is_normal($)) {
|
|
60
60
|
return {
|
|
61
|
-
'location': location,
|
|
62
|
-
'dictionary': $.__d_map(($) => ({
|
|
63
|
-
'location': location,
|
|
64
|
-
'entry': $,
|
|
61
|
+
'l location': location,
|
|
62
|
+
'l dictionary': $.__d_map(($) => ({
|
|
63
|
+
'l location': location,
|
|
64
|
+
'l entry': $,
|
|
65
65
|
}))
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
68
|
else {
|
|
69
69
|
return {
|
|
70
|
-
'location': location,
|
|
71
|
-
'dictionary': _pinternals.dictionary.literal($).__d_map(($) => ({
|
|
72
|
-
'location': location,
|
|
73
|
-
'entry': $,
|
|
70
|
+
'l location': location,
|
|
71
|
+
'l dictionary': _pinternals.dictionary.literal($).__d_map(($) => ({
|
|
72
|
+
'l location': location,
|
|
73
|
+
'l entry': $,
|
|
74
74
|
}))
|
|
75
75
|
};
|
|
76
76
|
}
|
|
@@ -85,18 +85,18 @@ const wrap_list = ($) => {
|
|
|
85
85
|
throw new Error("invalid input in 'wrap_list'");
|
|
86
86
|
}
|
|
87
87
|
return {
|
|
88
|
-
'location': location,
|
|
89
|
-
'list': decorated.__l_map(($) => ({
|
|
90
|
-
'location': location,
|
|
91
|
-
'item': $,
|
|
88
|
+
'l location': location,
|
|
89
|
+
'l list': decorated.__l_map(($) => ({
|
|
90
|
+
'l location': location,
|
|
91
|
+
'l item': $,
|
|
92
92
|
}))
|
|
93
93
|
};
|
|
94
94
|
};
|
|
95
95
|
exports.wrap_list = wrap_list;
|
|
96
96
|
const wrap_state = ($) => {
|
|
97
97
|
return {
|
|
98
|
-
'location': (0, get_location_info_1.$$)(depth + 1),
|
|
99
|
-
'state': $,
|
|
98
|
+
'l location': (0, get_location_info_1.$$)(depth + 1),
|
|
99
|
+
'l state': $,
|
|
100
100
|
};
|
|
101
101
|
};
|
|
102
102
|
exports.wrap_state = wrap_state;
|
|
@@ -111,15 +111,15 @@ const wrap_optional = ($) => {
|
|
|
111
111
|
exports.wrap_optional = wrap_optional;
|
|
112
112
|
const wrap_reference = ($) => {
|
|
113
113
|
return {
|
|
114
|
-
'location': (0, get_location_info_1.$$)(depth + 1),
|
|
115
|
-
'id': $,
|
|
114
|
+
'l location': (0, get_location_info_1.$$)(depth + 1),
|
|
115
|
+
'l id': $,
|
|
116
116
|
};
|
|
117
117
|
};
|
|
118
118
|
exports.wrap_reference = wrap_reference;
|
|
119
119
|
const wrap_stack_reference = (name) => {
|
|
120
120
|
return {
|
|
121
|
-
'location': (0, get_location_info_1.$$)(depth + 1),
|
|
122
|
-
'id': name,
|
|
121
|
+
'l location': (0, get_location_info_1.$$)(depth + 1),
|
|
122
|
+
'l 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.13",
|
|
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.16"
|
|
27
27
|
}
|
|
28
28
|
}
|