exupery-resources 0.3.17 → 0.3.18
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/implementation/generated/pareto/schemas/make_directory/deserialize.d.ts +0 -1
- package/dist/implementation/generated/pareto/schemas/make_directory/deserialize.js +2 -4
- package/dist/implementation/generated/pareto/schemas/make_directory/marshall.d.ts +0 -1
- package/dist/implementation/generated/pareto/schemas/make_directory/marshall.js +4 -14
- package/dist/implementation/generated/pareto/schemas/make_directory/serialize.d.ts +0 -1
- package/dist/implementation/generated/pareto/schemas/make_directory/serialize.js +2 -6
- package/dist/implementation/generated/pareto/schemas/make_directory/unmarshall.d.ts +0 -1
- package/dist/implementation/generated/pareto/schemas/make_directory/unmarshall.js +4 -16
- package/dist/implementation/generated/pareto/schemas/path/deserialize.d.ts +8 -0
- package/dist/implementation/generated/pareto/schemas/path/deserialize.js +42 -0
- package/dist/implementation/generated/pareto/schemas/path/marshall.d.ts +8 -0
- package/dist/implementation/generated/pareto/schemas/path/marshall.js +123 -0
- package/dist/implementation/generated/pareto/schemas/path/serialize.d.ts +8 -0
- package/dist/implementation/generated/pareto/schemas/path/serialize.js +57 -0
- package/dist/implementation/generated/pareto/schemas/path/unmarshall.d.ts +8 -0
- package/dist/implementation/generated/pareto/schemas/path/unmarshall.js +127 -0
- package/dist/implementation/refiners/directory_path/non_normalized_path.d.ts +5 -0
- package/dist/implementation/refiners/directory_path/non_normalized_path.js +67 -0
- package/dist/implementation/refiners/node_path/non_normalized_path.d.ts +7 -0
- package/dist/implementation/refiners/node_path/non_normalized_path.js +84 -0
- package/dist/implementation/refiners/non_normalized_path/text.d.ts +2 -0
- package/dist/implementation/refiners/non_normalized_path/text.js +85 -0
- package/dist/interface/generated/pareto/schemas/make_directory/data_types/source.d.ts +2 -14
- package/dist/interface/generated/pareto/schemas/make_directory/data_types/target.d.ts +2 -14
- package/dist/interface/generated/pareto/schemas/make_directory/deserialize.d.ts +0 -26
- package/dist/interface/generated/pareto/schemas/make_directory/marshall.d.ts +0 -30
- package/dist/interface/generated/pareto/schemas/make_directory/migrate_boilerplate.d.ts +0 -22
- package/dist/interface/generated/pareto/schemas/make_directory/serialize.d.ts +0 -26
- package/dist/interface/generated/pareto/schemas/make_directory/unmarshall.d.ts +0 -30
- package/dist/interface/generated/pareto/schemas/path/data_types/resolve.d.ts +1 -0
- package/dist/interface/generated/pareto/schemas/path/data_types/resolve.js +7 -0
- package/dist/interface/generated/pareto/schemas/path/data_types/source.d.ts +158 -0
- package/dist/interface/generated/pareto/schemas/path/data_types/source.js +3 -0
- package/dist/interface/generated/pareto/schemas/path/data_types/target.d.ts +158 -0
- package/dist/interface/generated/pareto/schemas/path/data_types/target.js +3 -0
- package/dist/interface/generated/pareto/schemas/path/deserialize.d.ts +184 -0
- package/dist/interface/generated/pareto/schemas/path/deserialize.js +3 -0
- package/dist/interface/generated/pareto/schemas/path/marshall.d.ts +213 -0
- package/dist/interface/generated/pareto/schemas/path/marshall.js +3 -0
- package/dist/interface/generated/pareto/schemas/path/migrate_boilerplate.d.ts +156 -0
- package/dist/interface/generated/pareto/schemas/path/migrate_boilerplate.js +3 -0
- package/dist/interface/generated/pareto/schemas/path/serialize.d.ts +184 -0
- package/dist/interface/generated/pareto/schemas/path/serialize.js +3 -0
- package/dist/interface/generated/pareto/schemas/path/unmarshall.d.ts +213 -0
- package/dist/interface/generated/pareto/schemas/path/unmarshall.js +3 -0
- package/dist/interface/generated/pareto/schemas/path/value_deserializers.d.ts +44 -0
- package/dist/interface/generated/pareto/schemas/path/value_deserializers.js +3 -0
- package/dist/interface/generated/pareto/schemas/path/value_serializers.d.ts +44 -0
- package/dist/interface/generated/pareto/schemas/path/value_serializers.js +3 -0
- package/dist/temp_core.d.ts +10 -0
- package/dist/temp_core.js +73 -0
- package/package.json +2 -2
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
import * as _i_out from "./data_types/target";
|
|
2
|
+
import * as _i_in from "../../core/astn_source";
|
|
3
|
+
import * as _i_vd from "./value_deserializers";
|
|
4
|
+
export type _T_Up_Steps = ($$_: _i_in._T_Value, $$_p: {
|
|
5
|
+
readonly 'value deserializers': _i_vd._T_Value_Deserializers;
|
|
6
|
+
}) => _i_out._T_Up_Steps;
|
|
7
|
+
export type _T_Start = ($$_: _i_in._T_Value, $$_p: {
|
|
8
|
+
readonly 'value deserializers': _i_vd._T_Value_Deserializers;
|
|
9
|
+
}) => _i_out._T_Start;
|
|
10
|
+
export type _T_Directory_Subpath = ($$_: _i_in._T_Value, $$_p: {
|
|
11
|
+
readonly 'value deserializers': _i_vd._T_Value_Deserializers;
|
|
12
|
+
}) => _i_out._T_Directory_Subpath;
|
|
13
|
+
export type _T_Node_Path = ($$_: _i_in._T_Value, $$_p: {
|
|
14
|
+
readonly 'value deserializers': _i_vd._T_Value_Deserializers;
|
|
15
|
+
}) => _i_out._T_Node_Path;
|
|
16
|
+
export type _T_Path_Parameter = ($$_: _i_in._T_Value, $$_p: {
|
|
17
|
+
readonly 'value deserializers': _i_vd._T_Value_Deserializers;
|
|
18
|
+
}) => _i_out._T_Path_Parameter;
|
|
19
|
+
export type _T_Directory_Path = ($$_: _i_in._T_Value, $$_p: {
|
|
20
|
+
readonly 'value deserializers': _i_vd._T_Value_Deserializers;
|
|
21
|
+
}) => _i_out._T_Directory_Path;
|
|
22
|
+
export type _T_Non_Normalized_Path = ($$_: _i_in._T_Value, $$_p: {
|
|
23
|
+
readonly 'value deserializers': _i_vd._T_Value_Deserializers;
|
|
24
|
+
}) => _i_out._T_Non_Normalized_Path;
|
|
25
|
+
export type Up_Steps = _T_Up_Steps;
|
|
26
|
+
export type Start = _T_Start;
|
|
27
|
+
export type Directory_Subpath = _T_Directory_Subpath;
|
|
28
|
+
export type Node_Path = _T_Node_Path;
|
|
29
|
+
export type Path_Parameter = _T_Path_Parameter;
|
|
30
|
+
export type Directory_Path = _T_Directory_Path;
|
|
31
|
+
export type Non_Normalized_Path = _T_Non_Normalized_Path;
|
|
32
|
+
export declare namespace _T_Up_Steps {
|
|
33
|
+
namespace CONTEXT {
|
|
34
|
+
}
|
|
35
|
+
type CONTEXT = _i_in._T_Value;
|
|
36
|
+
namespace PARAMS {
|
|
37
|
+
namespace value_deserializers {
|
|
38
|
+
}
|
|
39
|
+
type value_deserializers = _i_vd._T_Value_Deserializers;
|
|
40
|
+
}
|
|
41
|
+
namespace RESULT {
|
|
42
|
+
}
|
|
43
|
+
type RESULT = _i_out._T_Up_Steps;
|
|
44
|
+
}
|
|
45
|
+
export declare namespace _T_Start {
|
|
46
|
+
namespace CONTEXT {
|
|
47
|
+
}
|
|
48
|
+
type CONTEXT = _i_in._T_Value;
|
|
49
|
+
namespace PARAMS {
|
|
50
|
+
namespace value_deserializers {
|
|
51
|
+
}
|
|
52
|
+
type value_deserializers = _i_vd._T_Value_Deserializers;
|
|
53
|
+
}
|
|
54
|
+
namespace RESULT {
|
|
55
|
+
}
|
|
56
|
+
type RESULT = _i_out._T_Start;
|
|
57
|
+
}
|
|
58
|
+
export declare namespace _T_Directory_Subpath {
|
|
59
|
+
namespace CONTEXT {
|
|
60
|
+
}
|
|
61
|
+
type CONTEXT = _i_in._T_Value;
|
|
62
|
+
namespace PARAMS {
|
|
63
|
+
namespace value_deserializers {
|
|
64
|
+
}
|
|
65
|
+
type value_deserializers = _i_vd._T_Value_Deserializers;
|
|
66
|
+
}
|
|
67
|
+
namespace RESULT {
|
|
68
|
+
}
|
|
69
|
+
type RESULT = _i_out._T_Directory_Subpath;
|
|
70
|
+
}
|
|
71
|
+
export declare namespace _T_Node_Path {
|
|
72
|
+
namespace CONTEXT {
|
|
73
|
+
}
|
|
74
|
+
type CONTEXT = _i_in._T_Value;
|
|
75
|
+
namespace PARAMS {
|
|
76
|
+
namespace value_deserializers {
|
|
77
|
+
}
|
|
78
|
+
type value_deserializers = _i_vd._T_Value_Deserializers;
|
|
79
|
+
}
|
|
80
|
+
namespace RESULT {
|
|
81
|
+
}
|
|
82
|
+
type RESULT = _i_out._T_Node_Path;
|
|
83
|
+
}
|
|
84
|
+
export declare namespace _T_Path_Parameter {
|
|
85
|
+
namespace CONTEXT {
|
|
86
|
+
}
|
|
87
|
+
type CONTEXT = _i_in._T_Value;
|
|
88
|
+
namespace PARAMS {
|
|
89
|
+
namespace value_deserializers {
|
|
90
|
+
}
|
|
91
|
+
type value_deserializers = _i_vd._T_Value_Deserializers;
|
|
92
|
+
}
|
|
93
|
+
namespace RESULT {
|
|
94
|
+
}
|
|
95
|
+
type RESULT = _i_out._T_Path_Parameter;
|
|
96
|
+
}
|
|
97
|
+
export declare namespace _T_Directory_Path {
|
|
98
|
+
namespace CONTEXT {
|
|
99
|
+
}
|
|
100
|
+
type CONTEXT = _i_in._T_Value;
|
|
101
|
+
namespace PARAMS {
|
|
102
|
+
namespace value_deserializers {
|
|
103
|
+
}
|
|
104
|
+
type value_deserializers = _i_vd._T_Value_Deserializers;
|
|
105
|
+
}
|
|
106
|
+
namespace RESULT {
|
|
107
|
+
}
|
|
108
|
+
type RESULT = _i_out._T_Directory_Path;
|
|
109
|
+
}
|
|
110
|
+
export declare namespace _T_Non_Normalized_Path {
|
|
111
|
+
namespace CONTEXT {
|
|
112
|
+
}
|
|
113
|
+
type CONTEXT = _i_in._T_Value;
|
|
114
|
+
namespace PARAMS {
|
|
115
|
+
namespace value_deserializers {
|
|
116
|
+
}
|
|
117
|
+
type value_deserializers = _i_vd._T_Value_Deserializers;
|
|
118
|
+
}
|
|
119
|
+
namespace RESULT {
|
|
120
|
+
}
|
|
121
|
+
type RESULT = _i_out._T_Non_Normalized_Path;
|
|
122
|
+
}
|
|
123
|
+
export declare namespace Up_Steps {
|
|
124
|
+
namespace CONTEXT {
|
|
125
|
+
}
|
|
126
|
+
type CONTEXT = _i_in._T_Value;
|
|
127
|
+
namespace PARAMS {
|
|
128
|
+
namespace value_deserializers {
|
|
129
|
+
}
|
|
130
|
+
type value_deserializers = _i_vd._T_Value_Deserializers;
|
|
131
|
+
}
|
|
132
|
+
namespace RESULT {
|
|
133
|
+
}
|
|
134
|
+
type RESULT = _i_out._T_Up_Steps;
|
|
135
|
+
}
|
|
136
|
+
export declare namespace Start {
|
|
137
|
+
namespace CONTEXT {
|
|
138
|
+
}
|
|
139
|
+
type CONTEXT = _i_in._T_Value;
|
|
140
|
+
namespace PARAMS {
|
|
141
|
+
namespace value_deserializers {
|
|
142
|
+
}
|
|
143
|
+
type value_deserializers = _i_vd._T_Value_Deserializers;
|
|
144
|
+
}
|
|
145
|
+
namespace RESULT {
|
|
146
|
+
}
|
|
147
|
+
type RESULT = _i_out._T_Start;
|
|
148
|
+
}
|
|
149
|
+
export declare namespace Directory_Subpath {
|
|
150
|
+
namespace CONTEXT {
|
|
151
|
+
}
|
|
152
|
+
type CONTEXT = _i_in._T_Value;
|
|
153
|
+
namespace PARAMS {
|
|
154
|
+
namespace value_deserializers {
|
|
155
|
+
}
|
|
156
|
+
type value_deserializers = _i_vd._T_Value_Deserializers;
|
|
157
|
+
}
|
|
158
|
+
namespace RESULT {
|
|
159
|
+
}
|
|
160
|
+
type RESULT = _i_out._T_Directory_Subpath;
|
|
161
|
+
}
|
|
162
|
+
export declare namespace Node_Path {
|
|
163
|
+
namespace CONTEXT {
|
|
164
|
+
}
|
|
165
|
+
type CONTEXT = _i_in._T_Value;
|
|
166
|
+
namespace PARAMS {
|
|
167
|
+
namespace value_deserializers {
|
|
168
|
+
}
|
|
169
|
+
type value_deserializers = _i_vd._T_Value_Deserializers;
|
|
170
|
+
}
|
|
171
|
+
namespace RESULT {
|
|
172
|
+
}
|
|
173
|
+
type RESULT = _i_out._T_Node_Path;
|
|
174
|
+
}
|
|
175
|
+
export declare namespace Path_Parameter {
|
|
176
|
+
namespace CONTEXT {
|
|
177
|
+
}
|
|
178
|
+
type CONTEXT = _i_in._T_Value;
|
|
179
|
+
namespace PARAMS {
|
|
180
|
+
namespace value_deserializers {
|
|
181
|
+
}
|
|
182
|
+
type value_deserializers = _i_vd._T_Value_Deserializers;
|
|
183
|
+
}
|
|
184
|
+
namespace RESULT {
|
|
185
|
+
}
|
|
186
|
+
type RESULT = _i_out._T_Path_Parameter;
|
|
187
|
+
}
|
|
188
|
+
export declare namespace Directory_Path {
|
|
189
|
+
namespace CONTEXT {
|
|
190
|
+
}
|
|
191
|
+
type CONTEXT = _i_in._T_Value;
|
|
192
|
+
namespace PARAMS {
|
|
193
|
+
namespace value_deserializers {
|
|
194
|
+
}
|
|
195
|
+
type value_deserializers = _i_vd._T_Value_Deserializers;
|
|
196
|
+
}
|
|
197
|
+
namespace RESULT {
|
|
198
|
+
}
|
|
199
|
+
type RESULT = _i_out._T_Directory_Path;
|
|
200
|
+
}
|
|
201
|
+
export declare namespace Non_Normalized_Path {
|
|
202
|
+
namespace CONTEXT {
|
|
203
|
+
}
|
|
204
|
+
type CONTEXT = _i_in._T_Value;
|
|
205
|
+
namespace PARAMS {
|
|
206
|
+
namespace value_deserializers {
|
|
207
|
+
}
|
|
208
|
+
type value_deserializers = _i_vd._T_Value_Deserializers;
|
|
209
|
+
}
|
|
210
|
+
namespace RESULT {
|
|
211
|
+
}
|
|
212
|
+
type RESULT = _i_out._T_Non_Normalized_Path;
|
|
213
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidW5tYXJzaGFsbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9pbnRlcmZhY2UvZ2VuZXJhdGVkL3BhcmV0by9zY2hlbWFzL3BhdGgvdW5tYXJzaGFsbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export type _T_Value_Deserializers = {
|
|
2
|
+
readonly 'default number': ($$_: string, $$_p: null) => number;
|
|
3
|
+
readonly 'boolean': ($$_: string, $$_p: null) => boolean;
|
|
4
|
+
readonly 'custom numbers': null;
|
|
5
|
+
};
|
|
6
|
+
export type Value_Deserializers = _T_Value_Deserializers;
|
|
7
|
+
export declare namespace _T_Value_Deserializers {
|
|
8
|
+
namespace default_number {
|
|
9
|
+
type CONTEXT = string;
|
|
10
|
+
namespace PARAMS {
|
|
11
|
+
}
|
|
12
|
+
type RESULT = number;
|
|
13
|
+
}
|
|
14
|
+
type default_number = ($$_: string, $$_p: null) => number;
|
|
15
|
+
namespace _boolean {
|
|
16
|
+
type CONTEXT = string;
|
|
17
|
+
namespace PARAMS {
|
|
18
|
+
}
|
|
19
|
+
type RESULT = boolean;
|
|
20
|
+
}
|
|
21
|
+
type _boolean = ($$_: string, $$_p: null) => boolean;
|
|
22
|
+
namespace custom_numbers {
|
|
23
|
+
}
|
|
24
|
+
type custom_numbers = null;
|
|
25
|
+
}
|
|
26
|
+
export declare namespace Value_Deserializers {
|
|
27
|
+
namespace default_number {
|
|
28
|
+
type CONTEXT = string;
|
|
29
|
+
namespace PARAMS {
|
|
30
|
+
}
|
|
31
|
+
type RESULT = number;
|
|
32
|
+
}
|
|
33
|
+
type default_number = ($$_: string, $$_p: null) => number;
|
|
34
|
+
namespace _boolean {
|
|
35
|
+
type CONTEXT = string;
|
|
36
|
+
namespace PARAMS {
|
|
37
|
+
}
|
|
38
|
+
type RESULT = boolean;
|
|
39
|
+
}
|
|
40
|
+
type _boolean = ($$_: string, $$_p: null) => boolean;
|
|
41
|
+
namespace custom_numbers {
|
|
42
|
+
}
|
|
43
|
+
type custom_numbers = null;
|
|
44
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsdWVfZGVzZXJpYWxpemVycy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3NyYy9pbnRlcmZhY2UvZ2VuZXJhdGVkL3BhcmV0by9zY2hlbWFzL3BhdGgvdmFsdWVfZGVzZXJpYWxpemVycy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export type _T_Value_Serializers = {
|
|
2
|
+
readonly 'default number': ($$_: number, $$_p: null) => string;
|
|
3
|
+
readonly 'boolean': ($$_: boolean, $$_p: null) => string;
|
|
4
|
+
readonly 'custom numbers': null;
|
|
5
|
+
};
|
|
6
|
+
export type Value_Serializers = _T_Value_Serializers;
|
|
7
|
+
export declare namespace _T_Value_Serializers {
|
|
8
|
+
namespace default_number {
|
|
9
|
+
type CONTEXT = number;
|
|
10
|
+
namespace PARAMS {
|
|
11
|
+
}
|
|
12
|
+
type RESULT = string;
|
|
13
|
+
}
|
|
14
|
+
type default_number = ($$_: number, $$_p: null) => string;
|
|
15
|
+
namespace _boolean {
|
|
16
|
+
type CONTEXT = boolean;
|
|
17
|
+
namespace PARAMS {
|
|
18
|
+
}
|
|
19
|
+
type RESULT = string;
|
|
20
|
+
}
|
|
21
|
+
type _boolean = ($$_: boolean, $$_p: null) => string;
|
|
22
|
+
namespace custom_numbers {
|
|
23
|
+
}
|
|
24
|
+
type custom_numbers = null;
|
|
25
|
+
}
|
|
26
|
+
export declare namespace Value_Serializers {
|
|
27
|
+
namespace default_number {
|
|
28
|
+
type CONTEXT = number;
|
|
29
|
+
namespace PARAMS {
|
|
30
|
+
}
|
|
31
|
+
type RESULT = string;
|
|
32
|
+
}
|
|
33
|
+
type default_number = ($$_: number, $$_p: null) => string;
|
|
34
|
+
namespace _boolean {
|
|
35
|
+
type CONTEXT = boolean;
|
|
36
|
+
namespace PARAMS {
|
|
37
|
+
}
|
|
38
|
+
type RESULT = string;
|
|
39
|
+
}
|
|
40
|
+
type _boolean = ($$_: boolean, $$_p: null) => string;
|
|
41
|
+
namespace custom_numbers {
|
|
42
|
+
}
|
|
43
|
+
type custom_numbers = null;
|
|
44
|
+
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsdWVfc2VyaWFsaXplcnMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9zcmMvaW50ZXJmYWNlL2dlbmVyYXRlZC9wYXJldG8vc2NoZW1hcy9wYXRoL3ZhbHVlX3NlcmlhbGl6ZXJzLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as _et from 'exupery-core-types';
|
|
2
|
+
export declare const remove_last_element: <T>(list: _et.List<T>) => _et.List<T>;
|
|
3
|
+
export declare const loop: (callback: () => boolean) => void;
|
|
4
|
+
export declare const loop_elements: <T>(iterator: _et.Iterator<T>, callback: ($: T) => boolean) => void;
|
|
5
|
+
export declare const build_list_with_loop: <Iterator_Element, List_Element>(iterator: _et.Iterator<Iterator_Element>, callback: ($: Iterator_Element, $i: {
|
|
6
|
+
"add element": (element: List_Element) => void;
|
|
7
|
+
}) => boolean) => _et.List<List_Element>;
|
|
8
|
+
export declare const build_text_with_loop: (iterator: _et.Iterator<number>, callback: ($: number, $i: {
|
|
9
|
+
"add character": (char: number) => void;
|
|
10
|
+
}) => boolean) => string;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.build_text_with_loop = exports.build_list_with_loop = exports.loop_elements = exports.loop = exports.remove_last_element = void 0;
|
|
27
|
+
const _ea = __importStar(require("exupery-core-alg"));
|
|
28
|
+
const remove_last_element = (list) => {
|
|
29
|
+
const length = list.__get_number_of_elements();
|
|
30
|
+
let index = -1;
|
|
31
|
+
return _ea.build_list(($i) => {
|
|
32
|
+
list.__for_each(($) => {
|
|
33
|
+
index += 1;
|
|
34
|
+
if (index < length - 1) {
|
|
35
|
+
$i['add element']($);
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
};
|
|
40
|
+
exports.remove_last_element = remove_last_element;
|
|
41
|
+
const loop = (callback) => {
|
|
42
|
+
while (true) {
|
|
43
|
+
if (callback()) {
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
exports.loop = loop;
|
|
49
|
+
const loop_elements = (iterator, callback) => {
|
|
50
|
+
(0, exports.loop)(() => iterator['get current']().transform(($) => callback($), () => true));
|
|
51
|
+
};
|
|
52
|
+
exports.loop_elements = loop_elements;
|
|
53
|
+
const build_list_with_loop = (iterator, callback) => {
|
|
54
|
+
return _ea.build_list(($i) => {
|
|
55
|
+
(0, exports.loop_elements)(iterator, ($) => {
|
|
56
|
+
return callback($, {
|
|
57
|
+
'add element': $i['add element']
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
exports.build_list_with_loop = build_list_with_loop;
|
|
63
|
+
const build_text_with_loop = (iterator, callback) => {
|
|
64
|
+
return _ea.build_text(($textBuilder) => {
|
|
65
|
+
(0, exports.loop_elements)(iterator, ($) => {
|
|
66
|
+
return callback($, {
|
|
67
|
+
'add character': $textBuilder['add character']
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
exports.build_text_with_loop = build_text_with_loop;
|
|
73
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVtcF9jb3JlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL3RlbXBfY29yZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLHNEQUF1QztBQUloQyxNQUFNLG1CQUFtQixHQUFHLENBQUksSUFBaUIsRUFBZSxFQUFFO0lBQ3JFLE1BQU0sTUFBTSxHQUFHLElBQUksQ0FBQyx3QkFBd0IsRUFBRSxDQUFBO0lBQzlDLElBQUksS0FBSyxHQUFHLENBQUMsQ0FBQyxDQUFBO0lBQ2QsT0FBTyxHQUFHLENBQUMsVUFBVSxDQUFDLENBQUMsRUFBRSxFQUFFLEVBQUU7UUFDekIsSUFBSSxDQUFDLFVBQVUsQ0FBQyxDQUFDLENBQUMsRUFBRSxFQUFFO1lBQ2xCLEtBQUssSUFBSSxDQUFDLENBQUE7WUFDVixJQUFJLEtBQUssR0FBRyxNQUFNLEdBQUcsQ0FBQyxFQUFFLENBQUM7Z0JBQ3JCLEVBQUUsQ0FBQyxhQUFhLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQTtZQUN4QixDQUFDO1FBQ0wsQ0FBQyxDQUFDLENBQUE7SUFDTixDQUFDLENBQUMsQ0FBQTtBQUNOLENBQUMsQ0FBQTtBQVhZLFFBQUEsbUJBQW1CLHVCQVcvQjtBQUVNLE1BQU0sSUFBSSxHQUFHLENBQUMsUUFBdUIsRUFBRSxFQUFFO0lBQzVDLE9BQU8sSUFBSSxFQUFFLENBQUM7UUFDVixJQUFJLFFBQVEsRUFBRSxFQUFFLENBQUM7WUFDYixNQUFLO1FBQ1QsQ0FBQztJQUNMLENBQUM7QUFDTCxDQUFDLENBQUE7QUFOWSxRQUFBLElBQUksUUFNaEI7QUFFTSxNQUFNLGFBQWEsR0FBRyxDQUFJLFFBQXlCLEVBQUUsUUFBMkIsRUFBRSxFQUFFO0lBQ3ZGLElBQUEsWUFBSSxFQUFDLEdBQUcsRUFBRSxDQUFDLFFBQVEsQ0FBQyxhQUFhLENBQUMsRUFBRSxDQUFDLFNBQVMsQ0FDMUMsQ0FBQyxDQUFDLEVBQUUsRUFBRSxDQUFDLFFBQVEsQ0FBQyxDQUFDLENBQUMsRUFDbEIsR0FBRyxFQUFFLENBQUMsSUFBSSxDQUNiLENBQUMsQ0FBQTtBQUNOLENBQUMsQ0FBQTtBQUxZLFFBQUEsYUFBYSxpQkFLekI7QUFFTSxNQUFNLG9CQUFvQixHQUFHLENBQ2hDLFFBQXdDLEVBQ3hDLFFBQWtHLEVBQzVFLEVBQUU7SUFDeEIsT0FBTyxHQUFHLENBQUMsVUFBVSxDQUFDLENBQUMsRUFBRSxFQUFFLEVBQUU7UUFDekIsSUFBQSxxQkFBYSxFQUFDLFFBQVEsRUFBRSxDQUFDLENBQUMsRUFBRSxFQUFFO1lBQzFCLE9BQU8sUUFBUSxDQUFDLENBQUMsRUFBRTtnQkFDZixhQUFhLEVBQUUsRUFBRSxDQUFDLGFBQWEsQ0FBQzthQUNuQyxDQUFDLENBQUE7UUFDTixDQUFDLENBQUMsQ0FBQTtJQUNOLENBQUMsQ0FBQyxDQUFBO0FBQ04sQ0FBQyxDQUFBO0FBWFksUUFBQSxvQkFBb0Isd0JBV2hDO0FBRU0sTUFBTSxvQkFBb0IsR0FBRyxDQUNoQyxRQUE4QixFQUM5QixRQUFpRixFQUMzRSxFQUFFO0lBQ1IsT0FBTyxHQUFHLENBQUMsVUFBVSxDQUFDLENBQUMsWUFBWSxFQUFFLEVBQUU7UUFDbkMsSUFBQSxxQkFBYSxFQUFDLFFBQVEsRUFBRSxDQUFDLENBQUMsRUFBRSxFQUFFO1lBQzFCLE9BQU8sUUFBUSxDQUFDLENBQUMsRUFBRTtnQkFDZixlQUFlLEVBQUUsWUFBWSxDQUFDLGVBQWUsQ0FBQzthQUNqRCxDQUFDLENBQUE7UUFDTixDQUFDLENBQUMsQ0FBQTtJQUNOLENBQUMsQ0FBQyxDQUFBO0FBQ04sQ0FBQyxDQUFBO0FBWFksUUFBQSxvQkFBb0Isd0JBV2hDIn0=
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "exupery-resources",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.18",
|
|
4
4
|
"description": "A library providing resources forthe Exupery programming Language",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
],
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"exupery-core-alg": "^0.5.12",
|
|
12
|
-
"exupery-core-async": "^0.3.
|
|
12
|
+
"exupery-core-async": "^0.3.75",
|
|
13
13
|
"exupery-core-dev": "^0.3.2",
|
|
14
14
|
"pareto-fountain-pen": "^0.3.13"
|
|
15
15
|
}
|