@nfdi4plants/arctrl 3.0.0 → 3.0.1
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/ts/ts/CWL/Decode.d.ts +15 -11
- package/dist/ts/ts/CWL/Decode.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Decode.js +73 -23
- package/dist/ts/ts/CWL/Encode.d.ts +8 -1
- package/dist/ts/ts/CWL/Encode.d.ts.map +1 -1
- package/dist/ts/ts/CWL/Encode.js +15 -11
- package/dist/ts/ts/CWL/Requirements.d.ts +1 -1
- package/dist/ts/ts/CWL/Requirements.js +1 -1
- package/dist/ts/ts/CWL/WorkflowSteps.d.ts +1 -1
- package/dist/ts/ts/CWL/WorkflowSteps.js +1 -1
- package/dist/ts/ts/Conversion/Workflow.js +3 -3
- package/dist/ts/ts/Yaml/ValidationPackage.d.ts +1 -1
- package/dist/ts/ts/Yaml/ValidationPackage.js +6 -6
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.d.ts +1 -1
- package/dist/ts/ts/Yaml/ValidationPackagesConfig.js +6 -6
- package/dist/ts/ts/Yaml.js +1 -1
- package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.3 → YAMLicious.1.0.0-alpha.4}/Encode.fs.js +9 -9
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/Escapes.fs.js +313 -0
- package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.3 → YAMLicious.1.0.0-alpha.4}/FlowToBlock.fs.js +14 -12
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/Persil.fs.js +562 -0
- package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.3 → YAMLicious.1.0.0-alpha.4}/Preprocessing.fs.js +52 -12
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/Reader.fs.js +1314 -0
- package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.3 → YAMLicious.1.0.0-alpha.4}/Regex.fs.js +7 -1
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/RegexActivePatterns.fs.js +313 -0
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/StringBuffer.fs.js +60 -0
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/Writer.fs.js +391 -0
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.4/YAMLiciousTypes.fs.js +317 -0
- package/package.json +1 -1
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/Persil.fs.js +0 -45
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/Reader.fs.js +0 -539
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/RegexActivePatterns.fs.js +0 -216
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/Writer.fs.js +0 -164
- package/dist/ts/ts/fable_modules/YAMLicious.1.0.0-alpha.3/YAMLiciousTypes.fs.js +0 -152
- /package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.3 → YAMLicious.1.0.0-alpha.4}/Decode.fs.js +0 -0
- /package/dist/ts/ts/fable_modules/{YAMLicious.1.0.0-alpha.3 → YAMLicious.1.0.0-alpha.4}/Interop/JsInterop.fs.js +0 -0
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
import { Record, Union, toString } from '../../../node_modules/@fable-org/fable-library-js/Types.js';
|
|
2
|
+
import { getEnumerator, disposeSafe } from '../../../node_modules/@fable-org/fable-library-js/Util.js';
|
|
3
|
+
import { record_type, int32_type, union_type, option_type, string_type, bool_type, class_type, list_type } from '../../../node_modules/@fable-org/fable-library-js/Reflection.js';
|
|
4
|
+
import { defaultArg } from '../../../node_modules/@fable-org/fable-library-js/Option.js';
|
|
5
|
+
import { initialize } from '../../../node_modules/@fable-org/fable-library-js/String.js';
|
|
6
|
+
import { StringBuffer_$ctor, StringBuffer__AppendLine_Z721C83C5 } from './StringBuffer.fs.js';
|
|
7
|
+
import { map } from '../../../node_modules/@fable-org/fable-library-js/List.js';
|
|
8
|
+
|
|
9
|
+
class Config extends Record {
|
|
10
|
+
constructor(Whitespace, Level) {
|
|
11
|
+
super();
|
|
12
|
+
this.Whitespace = Whitespace | 0;
|
|
13
|
+
this.Level = Level | 0;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
function Config_$reflection() {
|
|
17
|
+
return record_type("YAMLicious.YAMLiciousTypes.Config", [], Config, () => [["Whitespace", int32_type], ["Level", int32_type]]);
|
|
18
|
+
}
|
|
19
|
+
function Config_init_71136F3F(whitespace) {
|
|
20
|
+
return new Config(defaultArg(whitespace, 4), 0);
|
|
21
|
+
}
|
|
22
|
+
function Config__get_WhitespaceString(this$) {
|
|
23
|
+
return initialize(this$.Level * this$.Whitespace, (_arg) => " ");
|
|
24
|
+
}
|
|
25
|
+
class YAMLDirective extends Record {
|
|
26
|
+
constructor(Major, Minor) {
|
|
27
|
+
super();
|
|
28
|
+
this.Major = Major | 0;
|
|
29
|
+
this.Minor = Minor | 0;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
function YAMLDirective_$reflection() {
|
|
33
|
+
return record_type("YAMLicious.YAMLiciousTypes.YAMLDirective", [], YAMLDirective, () => [["Major", int32_type], ["Minor", int32_type]]);
|
|
34
|
+
}
|
|
35
|
+
function BlockScalarStyle_Literal() {
|
|
36
|
+
return new BlockScalarStyle(0, []);
|
|
37
|
+
}
|
|
38
|
+
function BlockScalarStyle_Folded() {
|
|
39
|
+
return new BlockScalarStyle(1, []);
|
|
40
|
+
}
|
|
41
|
+
class BlockScalarStyle extends Union {
|
|
42
|
+
constructor(tag, fields) {
|
|
43
|
+
super();
|
|
44
|
+
this.tag = tag;
|
|
45
|
+
this.fields = fields;
|
|
46
|
+
}
|
|
47
|
+
cases() {
|
|
48
|
+
return ["Literal", "Folded"];
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
function BlockScalarStyle_$reflection() {
|
|
52
|
+
return union_type("YAMLicious.YAMLiciousTypes.BlockScalarStyle", [], BlockScalarStyle, () => [[], []]);
|
|
53
|
+
}
|
|
54
|
+
function ChompingMode_Strip() {
|
|
55
|
+
return new ChompingMode(0, []);
|
|
56
|
+
}
|
|
57
|
+
function ChompingMode_Clip() {
|
|
58
|
+
return new ChompingMode(1, []);
|
|
59
|
+
}
|
|
60
|
+
function ChompingMode_Keep() {
|
|
61
|
+
return new ChompingMode(2, []);
|
|
62
|
+
}
|
|
63
|
+
class ChompingMode extends Union {
|
|
64
|
+
constructor(tag, fields) {
|
|
65
|
+
super();
|
|
66
|
+
this.tag = tag;
|
|
67
|
+
this.fields = fields;
|
|
68
|
+
}
|
|
69
|
+
cases() {
|
|
70
|
+
return ["Strip", "Clip", "Keep"];
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
function ChompingMode_$reflection() {
|
|
74
|
+
return union_type("YAMLicious.YAMLiciousTypes.ChompingMode", [], ChompingMode, () => [[], [], []]);
|
|
75
|
+
}
|
|
76
|
+
function ScalarStyle_Plain() {
|
|
77
|
+
return new ScalarStyle(0, []);
|
|
78
|
+
}
|
|
79
|
+
function ScalarStyle_SingleQuoted() {
|
|
80
|
+
return new ScalarStyle(1, []);
|
|
81
|
+
}
|
|
82
|
+
function ScalarStyle_DoubleQuoted() {
|
|
83
|
+
return new ScalarStyle(2, []);
|
|
84
|
+
}
|
|
85
|
+
function ScalarStyle_Block(Item1, Item2, Item3) {
|
|
86
|
+
return new ScalarStyle(3, [Item1, Item2, Item3]);
|
|
87
|
+
}
|
|
88
|
+
class ScalarStyle extends Union {
|
|
89
|
+
constructor(tag, fields) {
|
|
90
|
+
super();
|
|
91
|
+
this.tag = tag;
|
|
92
|
+
this.fields = fields;
|
|
93
|
+
}
|
|
94
|
+
cases() {
|
|
95
|
+
return ["Plain", "SingleQuoted", "DoubleQuoted", "Block"];
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
function ScalarStyle_$reflection() {
|
|
99
|
+
return union_type("YAMLicious.YAMLiciousTypes.ScalarStyle", [], ScalarStyle, () => [[], [], [], [["Item1", BlockScalarStyle_$reflection()], ["Item2", ChompingMode_$reflection()], ["Item3", option_type(int32_type)]]]);
|
|
100
|
+
}
|
|
101
|
+
function QuotedStringKind_SingleQuotedString() {
|
|
102
|
+
return new QuotedStringKind(0, []);
|
|
103
|
+
}
|
|
104
|
+
function QuotedStringKind_DoubleQuotedString() {
|
|
105
|
+
return new QuotedStringKind(1, []);
|
|
106
|
+
}
|
|
107
|
+
class QuotedStringKind extends Union {
|
|
108
|
+
constructor(tag, fields) {
|
|
109
|
+
super();
|
|
110
|
+
this.tag = tag;
|
|
111
|
+
this.fields = fields;
|
|
112
|
+
}
|
|
113
|
+
cases() {
|
|
114
|
+
return ["SingleQuotedString", "DoubleQuotedString"];
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
function QuotedStringKind_$reflection() {
|
|
118
|
+
return union_type("YAMLicious.YAMLiciousTypes.QuotedStringKind", [], QuotedStringKind, () => [[], []]);
|
|
119
|
+
}
|
|
120
|
+
class StringMapEntry extends Record {
|
|
121
|
+
constructor(Value, Kind) {
|
|
122
|
+
super();
|
|
123
|
+
this.Value = Value;
|
|
124
|
+
this.Kind = Kind;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
function StringMapEntry_$reflection() {
|
|
128
|
+
return record_type("YAMLicious.YAMLiciousTypes.StringMapEntry", [], StringMapEntry, () => [["Value", string_type], ["Kind", QuotedStringKind_$reflection()]]);
|
|
129
|
+
}
|
|
130
|
+
class WriterOptions extends Record {
|
|
131
|
+
constructor(PreserveScalarStyle, MultilineFallbackStyle, MultilineFallbackChomping) {
|
|
132
|
+
super();
|
|
133
|
+
this.PreserveScalarStyle = PreserveScalarStyle;
|
|
134
|
+
this.MultilineFallbackStyle = MultilineFallbackStyle;
|
|
135
|
+
this.MultilineFallbackChomping = MultilineFallbackChomping;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
function WriterOptions_$reflection() {
|
|
139
|
+
return record_type("YAMLicious.YAMLiciousTypes.WriterOptions", [], WriterOptions, () => [["PreserveScalarStyle", bool_type], ["MultilineFallbackStyle", BlockScalarStyle_$reflection()], ["MultilineFallbackChomping", ChompingMode_$reflection()]]);
|
|
140
|
+
}
|
|
141
|
+
function WriterOptions_get_Default() {
|
|
142
|
+
return new WriterOptions(true, BlockScalarStyle_Literal(), ChompingMode_Strip());
|
|
143
|
+
}
|
|
144
|
+
class Preprocessor extends Record {
|
|
145
|
+
constructor(AST, StringMap, CommentMap, YAMLVersion, TagHandles) {
|
|
146
|
+
super();
|
|
147
|
+
this.AST = AST;
|
|
148
|
+
this.StringMap = StringMap;
|
|
149
|
+
this.CommentMap = CommentMap;
|
|
150
|
+
this.YAMLVersion = YAMLVersion;
|
|
151
|
+
this.TagHandles = TagHandles;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
function Preprocessor_$reflection() {
|
|
155
|
+
return record_type("YAMLicious.YAMLiciousTypes.Preprocessor", [], Preprocessor, () => [["AST", PreprocessorElement_$reflection()], ["StringMap", class_type("System.Collections.Generic.Dictionary`2", [int32_type, StringMapEntry_$reflection()])], ["CommentMap", class_type("System.Collections.Generic.Dictionary`2", [int32_type, string_type])], ["YAMLVersion", option_type(YAMLDirective_$reflection())], ["TagHandles", class_type("Microsoft.FSharp.Collections.FSharpMap`2", [string_type, string_type])]]);
|
|
156
|
+
}
|
|
157
|
+
function PreprocessorElement_Level(Item) {
|
|
158
|
+
return new PreprocessorElement(0, [Item]);
|
|
159
|
+
}
|
|
160
|
+
function PreprocessorElement_Intendation(Item) {
|
|
161
|
+
return new PreprocessorElement(1, [Item]);
|
|
162
|
+
}
|
|
163
|
+
function PreprocessorElement_Line(Item) {
|
|
164
|
+
return new PreprocessorElement(2, [Item]);
|
|
165
|
+
}
|
|
166
|
+
function PreprocessorElement_Nil() {
|
|
167
|
+
return new PreprocessorElement(3, []);
|
|
168
|
+
}
|
|
169
|
+
class PreprocessorElement extends Union {
|
|
170
|
+
constructor(tag, fields) {
|
|
171
|
+
super();
|
|
172
|
+
this.tag = tag;
|
|
173
|
+
this.fields = fields;
|
|
174
|
+
}
|
|
175
|
+
cases() {
|
|
176
|
+
return ["Level", "Intendation", "Line", "Nil"];
|
|
177
|
+
}
|
|
178
|
+
toString() {
|
|
179
|
+
const this$ = this;
|
|
180
|
+
const sb = StringBuffer_$ctor();
|
|
181
|
+
const innerprint = (next, level) => {
|
|
182
|
+
const indent = initialize(level * 2, (_arg) => " ");
|
|
183
|
+
switch (next.tag) {
|
|
184
|
+
case /* Intendation */
|
|
185
|
+
1: {
|
|
186
|
+
const children = next.fields[0];
|
|
187
|
+
StringBuffer__AppendLine_Z721C83C5(sb, indent + "Intendation [");
|
|
188
|
+
const enumerator = getEnumerator(children);
|
|
189
|
+
try {
|
|
190
|
+
while (enumerator["System.Collections.IEnumerator.MoveNext"]()) {
|
|
191
|
+
innerprint(enumerator["System.Collections.Generic.IEnumerator`1.get_Current"](), level + 1);
|
|
192
|
+
}
|
|
193
|
+
} finally {
|
|
194
|
+
disposeSafe(enumerator);
|
|
195
|
+
}
|
|
196
|
+
StringBuffer__AppendLine_Z721C83C5(sb, indent + "]");
|
|
197
|
+
break;
|
|
198
|
+
}
|
|
199
|
+
case /* Level */
|
|
200
|
+
0: {
|
|
201
|
+
const children_1 = next.fields[0];
|
|
202
|
+
StringBuffer__AppendLine_Z721C83C5(sb, indent + "Level [");
|
|
203
|
+
const enumerator_1 = getEnumerator(children_1);
|
|
204
|
+
try {
|
|
205
|
+
while (enumerator_1["System.Collections.IEnumerator.MoveNext"]()) {
|
|
206
|
+
innerprint(enumerator_1["System.Collections.Generic.IEnumerator`1.get_Current"](), level + 1);
|
|
207
|
+
}
|
|
208
|
+
} finally {
|
|
209
|
+
disposeSafe(enumerator_1);
|
|
210
|
+
}
|
|
211
|
+
StringBuffer__AppendLine_Z721C83C5(sb, indent + "]");
|
|
212
|
+
break;
|
|
213
|
+
}
|
|
214
|
+
case /* Nil */
|
|
215
|
+
3: {
|
|
216
|
+
break;
|
|
217
|
+
}
|
|
218
|
+
default:
|
|
219
|
+
StringBuffer__AppendLine_Z721C83C5(sb, indent + `Line "${next.fields[0]}"`);
|
|
220
|
+
}
|
|
221
|
+
};
|
|
222
|
+
innerprint(this$, 0);
|
|
223
|
+
return toString(sb);
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
function PreprocessorElement_$reflection() {
|
|
227
|
+
return union_type("YAMLicious.YAMLiciousTypes.PreprocessorElement", [], PreprocessorElement, () => [[["Item", list_type(PreprocessorElement_$reflection())]], [["Item", list_type(PreprocessorElement_$reflection())]], [["Item", string_type]], []]);
|
|
228
|
+
}
|
|
229
|
+
class YAMLContent extends Record {
|
|
230
|
+
constructor(Value, Comment$, Anchor, Tag, Style) {
|
|
231
|
+
super();
|
|
232
|
+
this.Value = Value;
|
|
233
|
+
this.Comment = Comment$;
|
|
234
|
+
this.Anchor = Anchor;
|
|
235
|
+
this.Tag = Tag;
|
|
236
|
+
this.Style = Style;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
function YAMLContent_$reflection() {
|
|
240
|
+
return record_type("YAMLicious.YAMLiciousTypes.YAMLContent", [], YAMLContent, () => [["Value", string_type], ["Comment", option_type(string_type)], ["Anchor", option_type(string_type)], ["Tag", option_type(string_type)], ["Style", option_type(ScalarStyle_$reflection())]]);
|
|
241
|
+
}
|
|
242
|
+
function YAMLContent_create_Z1C3A29C9(value, comment, anchor, tag, style) {
|
|
243
|
+
return new YAMLContent(value, comment, anchor, tag, style);
|
|
244
|
+
}
|
|
245
|
+
function YAMLElement_Mapping(Item1, Item2) {
|
|
246
|
+
return new YAMLElement(0, [Item1, Item2]);
|
|
247
|
+
}
|
|
248
|
+
function YAMLElement_Value(Item) {
|
|
249
|
+
return new YAMLElement(1, [Item]);
|
|
250
|
+
}
|
|
251
|
+
function YAMLElement_Sequence(Item) {
|
|
252
|
+
return new YAMLElement(2, [Item]);
|
|
253
|
+
}
|
|
254
|
+
function YAMLElement_Object(Item) {
|
|
255
|
+
return new YAMLElement(3, [Item]);
|
|
256
|
+
}
|
|
257
|
+
function YAMLElement_Comment(Item) {
|
|
258
|
+
return new YAMLElement(4, [Item]);
|
|
259
|
+
}
|
|
260
|
+
function YAMLElement_DocumentStart() {
|
|
261
|
+
return new YAMLElement(5, []);
|
|
262
|
+
}
|
|
263
|
+
function YAMLElement_DocumentEnd() {
|
|
264
|
+
return new YAMLElement(6, []);
|
|
265
|
+
}
|
|
266
|
+
function YAMLElement_Alias(Item) {
|
|
267
|
+
return new YAMLElement(7, [Item]);
|
|
268
|
+
}
|
|
269
|
+
function YAMLElement_Nil() {
|
|
270
|
+
return new YAMLElement(8, []);
|
|
271
|
+
}
|
|
272
|
+
class YAMLElement extends Union {
|
|
273
|
+
constructor(tag, fields) {
|
|
274
|
+
super();
|
|
275
|
+
this.tag = tag;
|
|
276
|
+
this.fields = fields;
|
|
277
|
+
}
|
|
278
|
+
cases() {
|
|
279
|
+
return ["Mapping", "Value", "Sequence", "Object", "Comment", "DocumentStart", "DocumentEnd", "Alias", "Nil"];
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
function YAMLElement_$reflection() {
|
|
283
|
+
return union_type("YAMLicious.YAMLiciousTypes.YAMLElement", [], YAMLElement, () => [[["Item1", YAMLContent_$reflection()], ["Item2", YAMLElement_$reflection()]], [["Item", YAMLContent_$reflection()]], [["Item", list_type(YAMLElement_$reflection())]], [["Item", list_type(YAMLElement_$reflection())]], [["Item", string_type]], [], [], [["Item", string_type]], []]);
|
|
284
|
+
}
|
|
285
|
+
function YAMLElementNormalization_withoutScalarStyleInContent(content) {
|
|
286
|
+
return new YAMLContent(content.Value, content.Comment, content.Anchor, content.Tag, void 0);
|
|
287
|
+
}
|
|
288
|
+
function YAMLElementNormalization_withoutScalarStyle(element) {
|
|
289
|
+
switch (element.tag) {
|
|
290
|
+
case /* Value */
|
|
291
|
+
1:
|
|
292
|
+
return YAMLElement_Value(YAMLElementNormalization_withoutScalarStyleInContent(element.fields[0]));
|
|
293
|
+
case /* Sequence */
|
|
294
|
+
2:
|
|
295
|
+
return YAMLElement_Sequence(map(YAMLElementNormalization_withoutScalarStyle, element.fields[0]));
|
|
296
|
+
case /* Object */
|
|
297
|
+
3:
|
|
298
|
+
return YAMLElement_Object(map(YAMLElementNormalization_withoutScalarStyle, element.fields[0]));
|
|
299
|
+
case /* Comment */
|
|
300
|
+
4:
|
|
301
|
+
case /* DocumentStart */
|
|
302
|
+
5:
|
|
303
|
+
case /* DocumentEnd */
|
|
304
|
+
6:
|
|
305
|
+
case /* Alias */
|
|
306
|
+
7:
|
|
307
|
+
case /* Nil */
|
|
308
|
+
8:
|
|
309
|
+
return element;
|
|
310
|
+
default: {
|
|
311
|
+
const value = element.fields[1];
|
|
312
|
+
return YAMLElement_Mapping(YAMLElementNormalization_withoutScalarStyleInContent(element.fields[0]), YAMLElementNormalization_withoutScalarStyle(value));
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
export { BlockScalarStyle, BlockScalarStyle_$reflection, BlockScalarStyle_Folded, BlockScalarStyle_Literal, ChompingMode, ChompingMode_$reflection, ChompingMode_Clip, ChompingMode_Keep, ChompingMode_Strip, Config, Config_$reflection, Config__get_WhitespaceString, Config_init_71136F3F, Preprocessor, PreprocessorElement, PreprocessorElement_$reflection, PreprocessorElement_Intendation, PreprocessorElement_Level, PreprocessorElement_Line, PreprocessorElement_Nil, Preprocessor_$reflection, QuotedStringKind, QuotedStringKind_$reflection, QuotedStringKind_DoubleQuotedString, QuotedStringKind_SingleQuotedString, ScalarStyle, ScalarStyle_$reflection, ScalarStyle_Block, ScalarStyle_DoubleQuoted, ScalarStyle_Plain, ScalarStyle_SingleQuoted, StringMapEntry, StringMapEntry_$reflection, WriterOptions, WriterOptions_$reflection, WriterOptions_get_Default, YAMLContent, YAMLContent_$reflection, YAMLContent_create_Z1C3A29C9, YAMLDirective, YAMLDirective_$reflection, YAMLElement, YAMLElementNormalization_withoutScalarStyle, YAMLElementNormalization_withoutScalarStyleInContent, YAMLElement_$reflection, YAMLElement_Alias, YAMLElement_Comment, YAMLElement_DocumentEnd, YAMLElement_DocumentStart, YAMLElement_Mapping, YAMLElement_Nil, YAMLElement_Object, YAMLElement_Sequence, YAMLElement_Value };
|
package/package.json
CHANGED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { replace, toText, printf, split } from '../../../node_modules/@fable-org/fable-library-js/String.js';
|
|
2
|
-
import { replace as replace$1 } from '../../../node_modules/@fable-org/fable-library-js/RegExp.js';
|
|
3
|
-
import { addToDict } from '../../../node_modules/@fable-org/fable-library-js/MapUtil.js';
|
|
4
|
-
|
|
5
|
-
function encodingCleanUp(s) {
|
|
6
|
-
return replace(s, "\r\n", "\n");
|
|
7
|
-
}
|
|
8
|
-
function stringCleanUp(dict, s) {
|
|
9
|
-
let n = 0;
|
|
10
|
-
return replace$1(/(?<all>(?<iscomment>#.*?)?"(?<stringValue>.+?)")/gu, s, (m) => {
|
|
11
|
-
if ((m.groups && m.groups.iscomment) != null) {
|
|
12
|
-
return m.groups && m.groups.all || "";
|
|
13
|
-
} else {
|
|
14
|
-
const v = m.groups && m.groups.stringValue || "";
|
|
15
|
-
const currentN = n | 0;
|
|
16
|
-
n = n + 1 | 0;
|
|
17
|
-
addToDict(dict, currentN, v);
|
|
18
|
-
return toText(printf("<s f=%i/>"))(currentN);
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
function commentCleanUp(dict, s) {
|
|
23
|
-
let n = 0;
|
|
24
|
-
return replace$1(/#(?<comment>.*)/gu, s, (m) => {
|
|
25
|
-
const v = m.groups && m.groups.comment || "";
|
|
26
|
-
const currentN = n | 0;
|
|
27
|
-
n = n + 1 | 0;
|
|
28
|
-
addToDict(dict, currentN, v);
|
|
29
|
-
return toText(printf("<c f=%i/>"))(currentN);
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
function cut(yamlString) {
|
|
33
|
-
return split(yamlString, ["\n"], void 0, 1);
|
|
34
|
-
}
|
|
35
|
-
function pipeline(yamlString) {
|
|
36
|
-
const stringMap = /* @__PURE__ */ new Map([]);
|
|
37
|
-
const commentMap = /* @__PURE__ */ new Map([]);
|
|
38
|
-
return {
|
|
39
|
-
CommentMap: commentMap,
|
|
40
|
-
Lines: cut(commentCleanUp(commentMap, stringCleanUp(stringMap, encodingCleanUp(yamlString)))),
|
|
41
|
-
StringMap: stringMap
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export { commentCleanUp, cut, encodingCleanUp, pipeline, stringCleanUp };
|