@env-spec/parser 0.1.0 → 0.1.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/README.md +4 -4
- package/dist/{chunk-FDDTJES3.mjs → chunk-CO7WMO6T.mjs} +8 -5
- package/dist/chunk-CO7WMO6T.mjs.map +1 -0
- package/dist/{chunk-JWF7I3Y2.js → chunk-W7OLHAQY.js} +8 -5
- package/dist/chunk-W7OLHAQY.js.map +1 -0
- package/dist/{classes-Gq5ZJ7ej.d.mts → classes-BGIxXMLF.d.mts} +1 -1
- package/dist/{classes-Gq5ZJ7ej.d.ts → classes-BGIxXMLF.d.ts} +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +146 -146
- package/dist/index.mjs +2 -2
- package/dist/simple-resolver.d.mts +1 -1
- package/dist/simple-resolver.d.ts +1 -1
- package/dist/simple-resolver.js +10 -10
- package/dist/simple-resolver.mjs +1 -1
- package/package.json +25 -21
- package/LICENSE +0 -21
- package/dist/chunk-FDDTJES3.mjs.map +0 -1
- package/dist/chunk-JWF7I3Y2.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkW7OLHAQY_js = require('./chunk-W7OLHAQY.js');
|
|
4
4
|
|
|
5
5
|
// src/updater.ts
|
|
6
6
|
function ensureHeader(file, newHeaderContents) {
|
|
@@ -8,17 +8,17 @@ function ensureHeader(file, newHeaderContents) {
|
|
|
8
8
|
newHeaderContents ||= "This env file uses @env-spec - see https://varlock.dev/env-spec for more info\n";
|
|
9
9
|
file.contents.unshift(
|
|
10
10
|
// header is a comment block at the beginning of the file and must end with a divider
|
|
11
|
-
new
|
|
11
|
+
new chunkW7OLHAQY_js.ParsedEnvSpecCommentBlock({
|
|
12
12
|
// we'll break up the passed in content and add a comment line for each
|
|
13
|
-
comments: newHeaderContents.split("\n").map((line) => new
|
|
14
|
-
divider: new
|
|
13
|
+
comments: newHeaderContents.split("\n").map((line) => new chunkW7OLHAQY_js.ParsedEnvSpecComment({ contents: line, leadingSpace: " " })),
|
|
14
|
+
divider: new chunkW7OLHAQY_js.ParsedEnvSpecDivider({ contents: "----------", leadingSpace: " " })
|
|
15
15
|
}),
|
|
16
|
-
new
|
|
16
|
+
new chunkW7OLHAQY_js.ParsedEnvSpecBlankLine({})
|
|
17
17
|
// add extra blank line after header
|
|
18
18
|
);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
|
|
21
|
+
chunkW7OLHAQY_js.__name(ensureHeader, "ensureHeader");
|
|
22
22
|
function createDummyDecoratorNode(decoratorName, valueStr, opts) {
|
|
23
23
|
let decStr = `@${decoratorName}`;
|
|
24
24
|
if (opts?.bareFnArgs) decStr += `(${valueStr})`;
|
|
@@ -31,7 +31,7 @@ function createDummyDecoratorNode(decoratorName, valueStr, opts) {
|
|
|
31
31
|
if (!newDecNode) throw new Error("Creating new decorator failed");
|
|
32
32
|
return newDecNode;
|
|
33
33
|
}
|
|
34
|
-
|
|
34
|
+
chunkW7OLHAQY_js.__name(createDummyDecoratorNode, "createDummyDecoratorNode");
|
|
35
35
|
function setRootDecorator(file, decoratorName, valueStr, opts) {
|
|
36
36
|
ensureHeader(file);
|
|
37
37
|
const newDecNode = createDummyDecoratorNode(decoratorName, valueStr, opts);
|
|
@@ -42,10 +42,10 @@ function setRootDecorator(file, decoratorName, valueStr, opts) {
|
|
|
42
42
|
if (!file.header) throw new Error("No header found");
|
|
43
43
|
const lastComment = file.header.data.comments[file.header.data.comments.length - 1];
|
|
44
44
|
let decCommentLine;
|
|
45
|
-
if (lastComment instanceof
|
|
45
|
+
if (lastComment instanceof chunkW7OLHAQY_js.ParsedEnvSpecDecoratorComment && lastComment.toString().length < 40) {
|
|
46
46
|
decCommentLine = lastComment;
|
|
47
47
|
} else {
|
|
48
|
-
decCommentLine = new
|
|
48
|
+
decCommentLine = new chunkW7OLHAQY_js.ParsedEnvSpecDecoratorComment({
|
|
49
49
|
decorators: [],
|
|
50
50
|
leadingSpace: " ",
|
|
51
51
|
...opts?.comment && { postComment: `# ${opts.comment}` }
|
|
@@ -55,11 +55,11 @@ function setRootDecorator(file, decoratorName, valueStr, opts) {
|
|
|
55
55
|
decCommentLine.decorators.push(newDecNode);
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
|
|
58
|
+
chunkW7OLHAQY_js.__name(setRootDecorator, "setRootDecorator");
|
|
59
59
|
function setItemDecorator(file, key, decoratorName, valueStr, opts) {
|
|
60
60
|
let item = file.configItems.find((i) => i.key === key);
|
|
61
61
|
if (!item) {
|
|
62
|
-
item = new
|
|
62
|
+
item = new chunkW7OLHAQY_js.ParsedEnvSpecConfigItem({
|
|
63
63
|
key,
|
|
64
64
|
value: void 0,
|
|
65
65
|
preComments: [],
|
|
@@ -74,10 +74,10 @@ function setItemDecorator(file, key, decoratorName, valueStr, opts) {
|
|
|
74
74
|
} else {
|
|
75
75
|
const lastComment = item.data.preComments[item.data.preComments.length - 1];
|
|
76
76
|
let decCommentLine;
|
|
77
|
-
if (lastComment instanceof
|
|
77
|
+
if (lastComment instanceof chunkW7OLHAQY_js.ParsedEnvSpecDecoratorComment && lastComment.toString().length < 40) {
|
|
78
78
|
decCommentLine = lastComment;
|
|
79
79
|
} else {
|
|
80
|
-
decCommentLine = new
|
|
80
|
+
decCommentLine = new chunkW7OLHAQY_js.ParsedEnvSpecDecoratorComment({
|
|
81
81
|
decorators: [],
|
|
82
82
|
leadingSpace: " "
|
|
83
83
|
});
|
|
@@ -86,7 +86,7 @@ function setItemDecorator(file, key, decoratorName, valueStr, opts) {
|
|
|
86
86
|
decCommentLine.decorators.push(newDecNode);
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
|
|
89
|
+
chunkW7OLHAQY_js.__name(setItemDecorator, "setItemDecorator");
|
|
90
90
|
function injectFromStr(file, content, opts) {
|
|
91
91
|
const parsed = parseEnvSpecDotEnvFile(content);
|
|
92
92
|
let injectIndex = file.contents.length;
|
|
@@ -107,14 +107,14 @@ function injectFromStr(file, content, opts) {
|
|
|
107
107
|
}
|
|
108
108
|
file.contents.splice(injectIndex, 0, ...parsed.contents);
|
|
109
109
|
}
|
|
110
|
-
|
|
110
|
+
chunkW7OLHAQY_js.__name(injectFromStr, "injectFromStr");
|
|
111
111
|
function deleteItem(file, key) {
|
|
112
112
|
const item = file.configItems.find((i) => i.key === key);
|
|
113
113
|
if (item) {
|
|
114
114
|
file.contents.splice(file.contents.indexOf(item), 1);
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
|
|
117
|
+
chunkW7OLHAQY_js.__name(deleteItem, "deleteItem");
|
|
118
118
|
var envSpecUpdater = {
|
|
119
119
|
ensureHeader,
|
|
120
120
|
setRootDecorator,
|
|
@@ -126,7 +126,7 @@ var envSpecUpdater = {
|
|
|
126
126
|
// src/grammar.js
|
|
127
127
|
var peg$SyntaxError = class extends SyntaxError {
|
|
128
128
|
static {
|
|
129
|
-
|
|
129
|
+
chunkW7OLHAQY_js.__name(this, "peg$SyntaxError");
|
|
130
130
|
}
|
|
131
131
|
constructor(message, expected, found, location) {
|
|
132
132
|
super(message);
|
|
@@ -163,7 +163,7 @@ var peg$SyntaxError = class extends SyntaxError {
|
|
|
163
163
|
function hex(ch) {
|
|
164
164
|
return ch.codePointAt(0).toString(16).toUpperCase();
|
|
165
165
|
}
|
|
166
|
-
|
|
166
|
+
chunkW7OLHAQY_js.__name(hex, "hex");
|
|
167
167
|
const nonPrintable = Object.prototype.hasOwnProperty.call(RegExp.prototype, "unicode") ? new RegExp("[\\p{C}\\p{Mn}\\p{Mc}]", "gu") : null;
|
|
168
168
|
function unicodeEscape(s) {
|
|
169
169
|
if (nonPrintable) {
|
|
@@ -171,15 +171,15 @@ var peg$SyntaxError = class extends SyntaxError {
|
|
|
171
171
|
}
|
|
172
172
|
return s;
|
|
173
173
|
}
|
|
174
|
-
|
|
174
|
+
chunkW7OLHAQY_js.__name(unicodeEscape, "unicodeEscape");
|
|
175
175
|
function literalEscape(s) {
|
|
176
176
|
return unicodeEscape(s.replace(/\\/g, "\\\\").replace(/"/g, '\\"').replace(/\0/g, "\\0").replace(/\t/g, "\\t").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/[\x00-\x0F]/g, (ch) => "\\x0" + hex(ch)).replace(/[\x10-\x1F\x7F-\x9F]/g, (ch) => "\\x" + hex(ch)));
|
|
177
177
|
}
|
|
178
|
-
|
|
178
|
+
chunkW7OLHAQY_js.__name(literalEscape, "literalEscape");
|
|
179
179
|
function classEscape(s) {
|
|
180
180
|
return unicodeEscape(s.replace(/\\/g, "\\\\").replace(/\]/g, "\\]").replace(/\^/g, "\\^").replace(/-/g, "\\-").replace(/\0/g, "\\0").replace(/\t/g, "\\t").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/[\x00-\x0F]/g, (ch) => "\\x0" + hex(ch)).replace(/[\x10-\x1F\x7F-\x9F]/g, (ch) => "\\x" + hex(ch)));
|
|
181
181
|
}
|
|
182
|
-
|
|
182
|
+
chunkW7OLHAQY_js.__name(classEscape, "classEscape");
|
|
183
183
|
const DESCRIBE_EXPECTATION_FNS = {
|
|
184
184
|
literal(expectation) {
|
|
185
185
|
return '"' + literalEscape(expectation.text) + '"';
|
|
@@ -203,7 +203,7 @@ var peg$SyntaxError = class extends SyntaxError {
|
|
|
203
203
|
function describeExpectation(expectation) {
|
|
204
204
|
return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation);
|
|
205
205
|
}
|
|
206
|
-
|
|
206
|
+
chunkW7OLHAQY_js.__name(describeExpectation, "describeExpectation");
|
|
207
207
|
function describeExpected(expected2) {
|
|
208
208
|
const descriptions = expected2.map(describeExpectation);
|
|
209
209
|
descriptions.sort();
|
|
@@ -226,11 +226,11 @@ var peg$SyntaxError = class extends SyntaxError {
|
|
|
226
226
|
return descriptions.slice(0, -1).join(", ") + ", or " + descriptions[descriptions.length - 1];
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
|
-
|
|
229
|
+
chunkW7OLHAQY_js.__name(describeExpected, "describeExpected");
|
|
230
230
|
function describeFound(found2) {
|
|
231
231
|
return found2 ? '"' + literalEscape(found2) + '"' : "end of input";
|
|
232
232
|
}
|
|
233
|
-
|
|
233
|
+
chunkW7OLHAQY_js.__name(describeFound, "describeFound");
|
|
234
234
|
return "Expected " + describeExpected(expected) + " but " + describeFound(found) + " found.";
|
|
235
235
|
}
|
|
236
236
|
};
|
|
@@ -314,15 +314,15 @@ function peg$parse(input, options) {
|
|
|
314
314
|
const peg$e34 = peg$literalExpectation("\\```", false);
|
|
315
315
|
const peg$e35 = peg$anyExpectation();
|
|
316
316
|
function peg$f0() {
|
|
317
|
-
return new
|
|
317
|
+
return new chunkW7OLHAQY_js.ParsedEnvSpecBlankLine({ _location: location() });
|
|
318
318
|
}
|
|
319
|
-
|
|
319
|
+
chunkW7OLHAQY_js.__name(peg$f0, "peg$f0");
|
|
320
320
|
function peg$f1(contents) {
|
|
321
|
-
return new
|
|
321
|
+
return new chunkW7OLHAQY_js.ParsedEnvSpecFile(contents);
|
|
322
322
|
}
|
|
323
|
-
|
|
323
|
+
chunkW7OLHAQY_js.__name(peg$f1, "peg$f1");
|
|
324
324
|
function peg$f2(preComments, key, value, postComment) {
|
|
325
|
-
return new
|
|
325
|
+
return new chunkW7OLHAQY_js.ParsedEnvSpecConfigItem({
|
|
326
326
|
key,
|
|
327
327
|
preComments,
|
|
328
328
|
postComment,
|
|
@@ -330,135 +330,135 @@ function peg$parse(input, options) {
|
|
|
330
330
|
_location: location()
|
|
331
331
|
});
|
|
332
332
|
}
|
|
333
|
-
|
|
333
|
+
chunkW7OLHAQY_js.__name(peg$f2, "peg$f2");
|
|
334
334
|
function peg$f3(comments, end) {
|
|
335
|
-
return new
|
|
335
|
+
return new chunkW7OLHAQY_js.ParsedEnvSpecCommentBlock({
|
|
336
336
|
comments,
|
|
337
|
-
divider: end instanceof
|
|
337
|
+
divider: end instanceof chunkW7OLHAQY_js.ParsedEnvSpecDivider ? end : void 0,
|
|
338
338
|
_location: location()
|
|
339
339
|
});
|
|
340
340
|
}
|
|
341
|
-
|
|
341
|
+
chunkW7OLHAQY_js.__name(peg$f3, "peg$f3");
|
|
342
342
|
function peg$f4(leadingSpace, contents) {
|
|
343
|
-
return new
|
|
343
|
+
return new chunkW7OLHAQY_js.ParsedEnvSpecComment({
|
|
344
344
|
contents,
|
|
345
345
|
leadingSpace,
|
|
346
346
|
_location: location()
|
|
347
347
|
});
|
|
348
348
|
}
|
|
349
|
-
|
|
349
|
+
chunkW7OLHAQY_js.__name(peg$f4, "peg$f4");
|
|
350
350
|
function peg$f5(leadingSpace, contents) {
|
|
351
|
-
return new
|
|
351
|
+
return new chunkW7OLHAQY_js.ParsedEnvSpecComment({ contents, leadingSpace, _location: location() });
|
|
352
352
|
}
|
|
353
|
-
|
|
353
|
+
chunkW7OLHAQY_js.__name(peg$f5, "peg$f5");
|
|
354
354
|
function peg$f6(leadingSpace, first, rest, postComment) {
|
|
355
|
-
return new
|
|
355
|
+
return new chunkW7OLHAQY_js.ParsedEnvSpecDecoratorComment({
|
|
356
356
|
decorators: [first, ...rest],
|
|
357
357
|
leadingSpace,
|
|
358
358
|
postComment,
|
|
359
359
|
_location: location()
|
|
360
360
|
});
|
|
361
361
|
}
|
|
362
|
-
|
|
362
|
+
chunkW7OLHAQY_js.__name(peg$f6, "peg$f6");
|
|
363
363
|
function peg$f7(name, val) {
|
|
364
|
-
return new
|
|
364
|
+
return new chunkW7OLHAQY_js.ParsedEnvSpecDecorator({
|
|
365
365
|
name,
|
|
366
366
|
value: Array.isArray(val) ? val[1] : val,
|
|
367
367
|
isBareFnCall: val && !Array.isArray(val),
|
|
368
368
|
_location: location()
|
|
369
369
|
});
|
|
370
370
|
}
|
|
371
|
-
|
|
371
|
+
chunkW7OLHAQY_js.__name(peg$f7, "peg$f7");
|
|
372
372
|
function peg$f8(name, args) {
|
|
373
|
-
return new
|
|
373
|
+
return new chunkW7OLHAQY_js.ParsedEnvSpecFunctionCall({
|
|
374
374
|
name,
|
|
375
375
|
args,
|
|
376
376
|
_location: location()
|
|
377
377
|
});
|
|
378
378
|
}
|
|
379
|
-
|
|
379
|
+
chunkW7OLHAQY_js.__name(peg$f8, "peg$f8");
|
|
380
380
|
function peg$f9(key, val) {
|
|
381
|
-
return new
|
|
381
|
+
return new chunkW7OLHAQY_js.ParsedEnvSpecKeyValuePair({ key, val });
|
|
382
382
|
}
|
|
383
|
-
|
|
383
|
+
chunkW7OLHAQY_js.__name(peg$f9, "peg$f9");
|
|
384
384
|
function peg$f10(values) {
|
|
385
|
-
return new
|
|
385
|
+
return new chunkW7OLHAQY_js.ParsedEnvSpecFunctionArgs({
|
|
386
386
|
values: values || [],
|
|
387
387
|
_location: location()
|
|
388
388
|
});
|
|
389
389
|
}
|
|
390
|
-
|
|
390
|
+
chunkW7OLHAQY_js.__name(peg$f10, "peg$f10");
|
|
391
391
|
function peg$f11() {
|
|
392
|
-
return new
|
|
392
|
+
return new chunkW7OLHAQY_js.ParsedEnvSpecStaticValue({ rawValue: text(), _location: location() });
|
|
393
393
|
}
|
|
394
|
-
|
|
394
|
+
chunkW7OLHAQY_js.__name(peg$f11, "peg$f11");
|
|
395
395
|
function peg$f12(name, args) {
|
|
396
|
-
return new
|
|
396
|
+
return new chunkW7OLHAQY_js.ParsedEnvSpecFunctionCall({
|
|
397
397
|
name,
|
|
398
398
|
args,
|
|
399
399
|
_location: location()
|
|
400
400
|
});
|
|
401
401
|
}
|
|
402
|
-
|
|
402
|
+
chunkW7OLHAQY_js.__name(peg$f12, "peg$f12");
|
|
403
403
|
function peg$f13(key, val) {
|
|
404
|
-
return new
|
|
404
|
+
return new chunkW7OLHAQY_js.ParsedEnvSpecKeyValuePair({ key, val });
|
|
405
405
|
}
|
|
406
|
-
|
|
406
|
+
chunkW7OLHAQY_js.__name(peg$f13, "peg$f13");
|
|
407
407
|
function peg$f14(values) {
|
|
408
|
-
return new
|
|
408
|
+
return new chunkW7OLHAQY_js.ParsedEnvSpecFunctionArgs({
|
|
409
409
|
values: values || [],
|
|
410
410
|
_location: location()
|
|
411
411
|
});
|
|
412
412
|
}
|
|
413
|
-
|
|
413
|
+
chunkW7OLHAQY_js.__name(peg$f14, "peg$f14");
|
|
414
414
|
function peg$f15() {
|
|
415
|
-
return new
|
|
415
|
+
return new chunkW7OLHAQY_js.ParsedEnvSpecStaticValue({ rawValue: text(), _location: location() });
|
|
416
416
|
}
|
|
417
|
-
|
|
417
|
+
chunkW7OLHAQY_js.__name(peg$f15, "peg$f15");
|
|
418
418
|
function peg$f16(leadingSpace, contents) {
|
|
419
|
-
return new
|
|
419
|
+
return new chunkW7OLHAQY_js.ParsedEnvSpecDivider({
|
|
420
420
|
contents,
|
|
421
421
|
leadingSpace,
|
|
422
422
|
_location: location()
|
|
423
423
|
});
|
|
424
424
|
}
|
|
425
|
-
|
|
425
|
+
chunkW7OLHAQY_js.__name(peg$f16, "peg$f16");
|
|
426
426
|
function peg$f17() {
|
|
427
|
-
return new
|
|
427
|
+
return new chunkW7OLHAQY_js.ParsedEnvSpecStaticValue({ rawValue: text(), _location: location() });
|
|
428
428
|
}
|
|
429
|
-
|
|
429
|
+
chunkW7OLHAQY_js.__name(peg$f17, "peg$f17");
|
|
430
430
|
function peg$f18() {
|
|
431
|
-
return new
|
|
431
|
+
return new chunkW7OLHAQY_js.ParsedEnvSpecStaticValue({ rawValue: text(), _location: location() });
|
|
432
432
|
}
|
|
433
|
-
|
|
433
|
+
chunkW7OLHAQY_js.__name(peg$f18, "peg$f18");
|
|
434
434
|
function peg$f19(quote) {
|
|
435
|
-
return new
|
|
435
|
+
return new chunkW7OLHAQY_js.ParsedEnvSpecStaticValue({ quote, rawValue: text(), _location: location() });
|
|
436
436
|
}
|
|
437
|
-
|
|
437
|
+
chunkW7OLHAQY_js.__name(peg$f19, "peg$f19");
|
|
438
438
|
function peg$f20(quote) {
|
|
439
|
-
return new
|
|
439
|
+
return new chunkW7OLHAQY_js.ParsedEnvSpecStaticValue({ quote, rawValue: text(), _location: location() });
|
|
440
440
|
}
|
|
441
|
-
|
|
441
|
+
chunkW7OLHAQY_js.__name(peg$f20, "peg$f20");
|
|
442
442
|
function peg$f21(quote) {
|
|
443
|
-
return new
|
|
443
|
+
return new chunkW7OLHAQY_js.ParsedEnvSpecStaticValue({ quote, rawValue: text(), _location: location() });
|
|
444
444
|
}
|
|
445
|
-
|
|
445
|
+
chunkW7OLHAQY_js.__name(peg$f21, "peg$f21");
|
|
446
446
|
function peg$f22(quote) {
|
|
447
|
-
return new
|
|
447
|
+
return new chunkW7OLHAQY_js.ParsedEnvSpecStaticValue({ quote, isMultiLine: true, rawValue: text(), _location: location() });
|
|
448
448
|
}
|
|
449
|
-
|
|
449
|
+
chunkW7OLHAQY_js.__name(peg$f22, "peg$f22");
|
|
450
450
|
function peg$f23(quote) {
|
|
451
|
-
return new
|
|
451
|
+
return new chunkW7OLHAQY_js.ParsedEnvSpecStaticValue({ quote, isMultiLine: true, rawValue: text(), _location: location() });
|
|
452
452
|
}
|
|
453
|
-
|
|
453
|
+
chunkW7OLHAQY_js.__name(peg$f23, "peg$f23");
|
|
454
454
|
function peg$f24(quote) {
|
|
455
|
-
return new
|
|
455
|
+
return new chunkW7OLHAQY_js.ParsedEnvSpecStaticValue({ quote, isMultiLine: true, rawValue: text(), _location: location() });
|
|
456
456
|
}
|
|
457
|
-
|
|
457
|
+
chunkW7OLHAQY_js.__name(peg$f24, "peg$f24");
|
|
458
458
|
function peg$f25(quote) {
|
|
459
|
-
return new
|
|
459
|
+
return new chunkW7OLHAQY_js.ParsedEnvSpecStaticValue({ quote, isMultiLine: true, rawValue: text(), _location: location() });
|
|
460
460
|
}
|
|
461
|
-
|
|
461
|
+
chunkW7OLHAQY_js.__name(peg$f25, "peg$f25");
|
|
462
462
|
let peg$currPos = options.peg$currPos | 0;
|
|
463
463
|
let peg$savedPos = peg$currPos;
|
|
464
464
|
const peg$posDetailsCache = [{ line: 1, column: 1 }];
|
|
@@ -475,11 +475,11 @@ function peg$parse(input, options) {
|
|
|
475
475
|
function text() {
|
|
476
476
|
return input.substring(peg$savedPos, peg$currPos);
|
|
477
477
|
}
|
|
478
|
-
|
|
478
|
+
chunkW7OLHAQY_js.__name(text, "text");
|
|
479
479
|
function offset() {
|
|
480
480
|
return peg$savedPos;
|
|
481
481
|
}
|
|
482
|
-
|
|
482
|
+
chunkW7OLHAQY_js.__name(offset, "offset");
|
|
483
483
|
function range() {
|
|
484
484
|
return {
|
|
485
485
|
source: peg$source,
|
|
@@ -487,11 +487,11 @@ function peg$parse(input, options) {
|
|
|
487
487
|
end: peg$currPos
|
|
488
488
|
};
|
|
489
489
|
}
|
|
490
|
-
|
|
490
|
+
chunkW7OLHAQY_js.__name(range, "range");
|
|
491
491
|
function location() {
|
|
492
492
|
return peg$computeLocation(peg$savedPos, peg$currPos);
|
|
493
493
|
}
|
|
494
|
-
|
|
494
|
+
chunkW7OLHAQY_js.__name(location, "location");
|
|
495
495
|
function expected(description, location2) {
|
|
496
496
|
location2 = location2 !== void 0 ? location2 : peg$computeLocation(peg$savedPos, peg$currPos);
|
|
497
497
|
throw peg$buildStructuredError(
|
|
@@ -500,12 +500,12 @@ function peg$parse(input, options) {
|
|
|
500
500
|
location2
|
|
501
501
|
);
|
|
502
502
|
}
|
|
503
|
-
|
|
503
|
+
chunkW7OLHAQY_js.__name(expected, "expected");
|
|
504
504
|
function error(message, location2) {
|
|
505
505
|
location2 = location2 !== void 0 ? location2 : peg$computeLocation(peg$savedPos, peg$currPos);
|
|
506
506
|
throw peg$buildSimpleError(message, location2);
|
|
507
507
|
}
|
|
508
|
-
|
|
508
|
+
chunkW7OLHAQY_js.__name(error, "error");
|
|
509
509
|
function peg$getUnicode(pos = peg$currPos) {
|
|
510
510
|
const cp = input.codePointAt(pos);
|
|
511
511
|
if (cp === void 0) {
|
|
@@ -513,27 +513,27 @@ function peg$parse(input, options) {
|
|
|
513
513
|
}
|
|
514
514
|
return String.fromCodePoint(cp);
|
|
515
515
|
}
|
|
516
|
-
|
|
516
|
+
chunkW7OLHAQY_js.__name(peg$getUnicode, "peg$getUnicode");
|
|
517
517
|
function peg$literalExpectation(text2, ignoreCase) {
|
|
518
518
|
return { type: "literal", text: text2, ignoreCase };
|
|
519
519
|
}
|
|
520
|
-
|
|
520
|
+
chunkW7OLHAQY_js.__name(peg$literalExpectation, "peg$literalExpectation");
|
|
521
521
|
function peg$classExpectation(parts, inverted, ignoreCase, unicode) {
|
|
522
522
|
return { type: "class", parts, inverted, ignoreCase, unicode };
|
|
523
523
|
}
|
|
524
|
-
|
|
524
|
+
chunkW7OLHAQY_js.__name(peg$classExpectation, "peg$classExpectation");
|
|
525
525
|
function peg$anyExpectation() {
|
|
526
526
|
return { type: "any" };
|
|
527
527
|
}
|
|
528
|
-
|
|
528
|
+
chunkW7OLHAQY_js.__name(peg$anyExpectation, "peg$anyExpectation");
|
|
529
529
|
function peg$endExpectation() {
|
|
530
530
|
return { type: "end" };
|
|
531
531
|
}
|
|
532
|
-
|
|
532
|
+
chunkW7OLHAQY_js.__name(peg$endExpectation, "peg$endExpectation");
|
|
533
533
|
function peg$otherExpectation(description) {
|
|
534
534
|
return { type: "other", description };
|
|
535
535
|
}
|
|
536
|
-
|
|
536
|
+
chunkW7OLHAQY_js.__name(peg$otherExpectation, "peg$otherExpectation");
|
|
537
537
|
function peg$computePosDetails(pos) {
|
|
538
538
|
let details = peg$posDetailsCache[pos];
|
|
539
539
|
let p;
|
|
@@ -565,7 +565,7 @@ function peg$parse(input, options) {
|
|
|
565
565
|
return details;
|
|
566
566
|
}
|
|
567
567
|
}
|
|
568
|
-
|
|
568
|
+
chunkW7OLHAQY_js.__name(peg$computePosDetails, "peg$computePosDetails");
|
|
569
569
|
function peg$computeLocation(startPos, endPos, offset2) {
|
|
570
570
|
const startPosDetails = peg$computePosDetails(startPos);
|
|
571
571
|
const endPosDetails = peg$computePosDetails(endPos);
|
|
@@ -588,7 +588,7 @@ function peg$parse(input, options) {
|
|
|
588
588
|
}
|
|
589
589
|
return res;
|
|
590
590
|
}
|
|
591
|
-
|
|
591
|
+
chunkW7OLHAQY_js.__name(peg$computeLocation, "peg$computeLocation");
|
|
592
592
|
function peg$fail(expected2) {
|
|
593
593
|
if (peg$currPos < peg$maxFailPos) {
|
|
594
594
|
return;
|
|
@@ -599,11 +599,11 @@ function peg$parse(input, options) {
|
|
|
599
599
|
}
|
|
600
600
|
peg$maxFailExpected.push(expected2);
|
|
601
601
|
}
|
|
602
|
-
|
|
602
|
+
chunkW7OLHAQY_js.__name(peg$fail, "peg$fail");
|
|
603
603
|
function peg$buildSimpleError(message, location2) {
|
|
604
604
|
return new peg$SyntaxError(message, null, null, location2);
|
|
605
605
|
}
|
|
606
|
-
|
|
606
|
+
chunkW7OLHAQY_js.__name(peg$buildSimpleError, "peg$buildSimpleError");
|
|
607
607
|
function peg$buildStructuredError(expected2, found, location2) {
|
|
608
608
|
return new peg$SyntaxError(
|
|
609
609
|
peg$SyntaxError.buildMessage(expected2, found),
|
|
@@ -612,7 +612,7 @@ function peg$parse(input, options) {
|
|
|
612
612
|
location2
|
|
613
613
|
);
|
|
614
614
|
}
|
|
615
|
-
|
|
615
|
+
chunkW7OLHAQY_js.__name(peg$buildStructuredError, "peg$buildStructuredError");
|
|
616
616
|
function peg$parseEnvSpecFile() {
|
|
617
617
|
let s0, s1, s2, s3;
|
|
618
618
|
s0 = peg$currPos;
|
|
@@ -673,7 +673,7 @@ function peg$parse(input, options) {
|
|
|
673
673
|
s0 = s1;
|
|
674
674
|
return s0;
|
|
675
675
|
}
|
|
676
|
-
|
|
676
|
+
chunkW7OLHAQY_js.__name(peg$parseEnvSpecFile, "peg$parseEnvSpecFile");
|
|
677
677
|
function peg$parseConfigItem() {
|
|
678
678
|
let s0, s1, s2, s3, s4, s5, s6, s7, s9, s10;
|
|
679
679
|
s0 = peg$currPos;
|
|
@@ -813,7 +813,7 @@ function peg$parse(input, options) {
|
|
|
813
813
|
}
|
|
814
814
|
return s0;
|
|
815
815
|
}
|
|
816
|
-
|
|
816
|
+
chunkW7OLHAQY_js.__name(peg$parseConfigItem, "peg$parseConfigItem");
|
|
817
817
|
function peg$parseConfigItemKey() {
|
|
818
818
|
let s0, s1, s2, s3, s4;
|
|
819
819
|
s0 = peg$currPos;
|
|
@@ -863,7 +863,7 @@ function peg$parse(input, options) {
|
|
|
863
863
|
}
|
|
864
864
|
return s0;
|
|
865
865
|
}
|
|
866
|
-
|
|
866
|
+
chunkW7OLHAQY_js.__name(peg$parseConfigItemKey, "peg$parseConfigItemKey");
|
|
867
867
|
function peg$parseConfigItemValue() {
|
|
868
868
|
let s0;
|
|
869
869
|
s0 = peg$parseFunctionCall();
|
|
@@ -878,7 +878,7 @@ function peg$parse(input, options) {
|
|
|
878
878
|
}
|
|
879
879
|
return s0;
|
|
880
880
|
}
|
|
881
|
-
|
|
881
|
+
chunkW7OLHAQY_js.__name(peg$parseConfigItemValue, "peg$parseConfigItemValue");
|
|
882
882
|
function peg$parseCommentBlock() {
|
|
883
883
|
let s0, s1, s2, s3, s4;
|
|
884
884
|
s0 = peg$currPos;
|
|
@@ -948,7 +948,7 @@ function peg$parse(input, options) {
|
|
|
948
948
|
}
|
|
949
949
|
return s0;
|
|
950
950
|
}
|
|
951
|
-
|
|
951
|
+
chunkW7OLHAQY_js.__name(peg$parseCommentBlock, "peg$parseCommentBlock");
|
|
952
952
|
function peg$parseComment() {
|
|
953
953
|
let s0, s1, s2, s3, s4, s5, s6, s7, s8, s9;
|
|
954
954
|
s0 = peg$currPos;
|
|
@@ -1043,7 +1043,7 @@ function peg$parse(input, options) {
|
|
|
1043
1043
|
}
|
|
1044
1044
|
return s0;
|
|
1045
1045
|
}
|
|
1046
|
-
|
|
1046
|
+
chunkW7OLHAQY_js.__name(peg$parseComment, "peg$parseComment");
|
|
1047
1047
|
function peg$parseIgnoredDecoratorComment() {
|
|
1048
1048
|
let s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10;
|
|
1049
1049
|
s0 = peg$currPos;
|
|
@@ -1264,7 +1264,7 @@ function peg$parse(input, options) {
|
|
|
1264
1264
|
}
|
|
1265
1265
|
return s0;
|
|
1266
1266
|
}
|
|
1267
|
-
|
|
1267
|
+
chunkW7OLHAQY_js.__name(peg$parseIgnoredDecoratorComment, "peg$parseIgnoredDecoratorComment");
|
|
1268
1268
|
function peg$parseDecoratorComment() {
|
|
1269
1269
|
let s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10;
|
|
1270
1270
|
s0 = peg$currPos;
|
|
@@ -1372,7 +1372,7 @@ function peg$parse(input, options) {
|
|
|
1372
1372
|
}
|
|
1373
1373
|
return s0;
|
|
1374
1374
|
}
|
|
1375
|
-
|
|
1375
|
+
chunkW7OLHAQY_js.__name(peg$parseDecoratorComment, "peg$parseDecoratorComment");
|
|
1376
1376
|
function peg$parseDecorator() {
|
|
1377
1377
|
let s0, s1, s2, s3, s4, s5;
|
|
1378
1378
|
s0 = peg$currPos;
|
|
@@ -1429,7 +1429,7 @@ function peg$parse(input, options) {
|
|
|
1429
1429
|
}
|
|
1430
1430
|
return s0;
|
|
1431
1431
|
}
|
|
1432
|
-
|
|
1432
|
+
chunkW7OLHAQY_js.__name(peg$parseDecorator, "peg$parseDecorator");
|
|
1433
1433
|
function peg$parseDecoratorName() {
|
|
1434
1434
|
let s0, s1, s2, s3, s4;
|
|
1435
1435
|
s0 = peg$currPos;
|
|
@@ -1479,7 +1479,7 @@ function peg$parse(input, options) {
|
|
|
1479
1479
|
}
|
|
1480
1480
|
return s0;
|
|
1481
1481
|
}
|
|
1482
|
-
|
|
1482
|
+
chunkW7OLHAQY_js.__name(peg$parseDecoratorName, "peg$parseDecoratorName");
|
|
1483
1483
|
function peg$parseDecoratorValue() {
|
|
1484
1484
|
let s0;
|
|
1485
1485
|
s0 = peg$parseDecoratorFunctionCall();
|
|
@@ -1491,7 +1491,7 @@ function peg$parse(input, options) {
|
|
|
1491
1491
|
}
|
|
1492
1492
|
return s0;
|
|
1493
1493
|
}
|
|
1494
|
-
|
|
1494
|
+
chunkW7OLHAQY_js.__name(peg$parseDecoratorValue, "peg$parseDecoratorValue");
|
|
1495
1495
|
function peg$parseDecoratorFunctionCall() {
|
|
1496
1496
|
let s0, s1, s2;
|
|
1497
1497
|
s0 = peg$currPos;
|
|
@@ -1511,7 +1511,7 @@ function peg$parse(input, options) {
|
|
|
1511
1511
|
}
|
|
1512
1512
|
return s0;
|
|
1513
1513
|
}
|
|
1514
|
-
|
|
1514
|
+
chunkW7OLHAQY_js.__name(peg$parseDecoratorFunctionCall, "peg$parseDecoratorFunctionCall");
|
|
1515
1515
|
function peg$parseDecoratorFunctionArgs() {
|
|
1516
1516
|
let s0, s1, s3, s4, s5, s6, s7, s8, s9;
|
|
1517
1517
|
s0 = peg$currPos;
|
|
@@ -1678,7 +1678,7 @@ function peg$parse(input, options) {
|
|
|
1678
1678
|
}
|
|
1679
1679
|
return s0;
|
|
1680
1680
|
}
|
|
1681
|
-
|
|
1681
|
+
chunkW7OLHAQY_js.__name(peg$parseDecoratorFunctionArgs, "peg$parseDecoratorFunctionArgs");
|
|
1682
1682
|
function peg$parseDecoratorFunctionArgValue() {
|
|
1683
1683
|
let s0, s1, s2, s3;
|
|
1684
1684
|
s0 = peg$parseDecoratorFunctionCall();
|
|
@@ -1727,7 +1727,7 @@ function peg$parse(input, options) {
|
|
|
1727
1727
|
}
|
|
1728
1728
|
return s0;
|
|
1729
1729
|
}
|
|
1730
|
-
|
|
1730
|
+
chunkW7OLHAQY_js.__name(peg$parseDecoratorFunctionArgValue, "peg$parseDecoratorFunctionArgValue");
|
|
1731
1731
|
function peg$parse_decWs() {
|
|
1732
1732
|
let s0, s1, s2, s3, s4, s5, s6;
|
|
1733
1733
|
s0 = [];
|
|
@@ -1908,7 +1908,7 @@ function peg$parse(input, options) {
|
|
|
1908
1908
|
}
|
|
1909
1909
|
return s0;
|
|
1910
1910
|
}
|
|
1911
|
-
|
|
1911
|
+
chunkW7OLHAQY_js.__name(peg$parse_decWs, "peg$parse_decWs");
|
|
1912
1912
|
function peg$parseFunctionCall() {
|
|
1913
1913
|
let s0, s1, s2;
|
|
1914
1914
|
s0 = peg$currPos;
|
|
@@ -1928,7 +1928,7 @@ function peg$parse(input, options) {
|
|
|
1928
1928
|
}
|
|
1929
1929
|
return s0;
|
|
1930
1930
|
}
|
|
1931
|
-
|
|
1931
|
+
chunkW7OLHAQY_js.__name(peg$parseFunctionCall, "peg$parseFunctionCall");
|
|
1932
1932
|
function peg$parseFunctionName() {
|
|
1933
1933
|
let s0, s1, s2, s3, s4;
|
|
1934
1934
|
s0 = peg$currPos;
|
|
@@ -1978,7 +1978,7 @@ function peg$parse(input, options) {
|
|
|
1978
1978
|
}
|
|
1979
1979
|
return s0;
|
|
1980
1980
|
}
|
|
1981
|
-
|
|
1981
|
+
chunkW7OLHAQY_js.__name(peg$parseFunctionName, "peg$parseFunctionName");
|
|
1982
1982
|
function peg$parseFunctionArgs() {
|
|
1983
1983
|
let s0, s1, s3, s4, s5, s6, s7, s8, s9;
|
|
1984
1984
|
s0 = peg$currPos;
|
|
@@ -2145,7 +2145,7 @@ function peg$parse(input, options) {
|
|
|
2145
2145
|
}
|
|
2146
2146
|
return s0;
|
|
2147
2147
|
}
|
|
2148
|
-
|
|
2148
|
+
chunkW7OLHAQY_js.__name(peg$parseFunctionArgs, "peg$parseFunctionArgs");
|
|
2149
2149
|
function peg$parseFunctionArgKeyName() {
|
|
2150
2150
|
let s0, s1, s2, s3, s4;
|
|
2151
2151
|
s0 = peg$currPos;
|
|
@@ -2195,7 +2195,7 @@ function peg$parse(input, options) {
|
|
|
2195
2195
|
}
|
|
2196
2196
|
return s0;
|
|
2197
2197
|
}
|
|
2198
|
-
|
|
2198
|
+
chunkW7OLHAQY_js.__name(peg$parseFunctionArgKeyName, "peg$parseFunctionArgKeyName");
|
|
2199
2199
|
function peg$parseFunctionArgValue() {
|
|
2200
2200
|
let s0, s1, s2, s3;
|
|
2201
2201
|
s0 = peg$parseFunctionCall();
|
|
@@ -2244,7 +2244,7 @@ function peg$parse(input, options) {
|
|
|
2244
2244
|
}
|
|
2245
2245
|
return s0;
|
|
2246
2246
|
}
|
|
2247
|
-
|
|
2247
|
+
chunkW7OLHAQY_js.__name(peg$parseFunctionArgValue, "peg$parseFunctionArgValue");
|
|
2248
2248
|
function peg$parse_valWs() {
|
|
2249
2249
|
let s0, s1;
|
|
2250
2250
|
s0 = [];
|
|
@@ -2271,7 +2271,7 @@ function peg$parse(input, options) {
|
|
|
2271
2271
|
}
|
|
2272
2272
|
return s0;
|
|
2273
2273
|
}
|
|
2274
|
-
|
|
2274
|
+
chunkW7OLHAQY_js.__name(peg$parse_valWs, "peg$parse_valWs");
|
|
2275
2275
|
function peg$parseDivider() {
|
|
2276
2276
|
let s0, s1, s2, s3, s4, s5, s6, s7;
|
|
2277
2277
|
s0 = peg$currPos;
|
|
@@ -2372,7 +2372,7 @@ function peg$parse(input, options) {
|
|
|
2372
2372
|
}
|
|
2373
2373
|
return s0;
|
|
2374
2374
|
}
|
|
2375
|
-
|
|
2375
|
+
chunkW7OLHAQY_js.__name(peg$parseDivider, "peg$parseDivider");
|
|
2376
2376
|
function peg$parseunquotedString() {
|
|
2377
2377
|
let s0, s1, s2, s3, s4, s5, s6;
|
|
2378
2378
|
s0 = peg$currPos;
|
|
@@ -2447,7 +2447,7 @@ function peg$parse(input, options) {
|
|
|
2447
2447
|
s0 = s1;
|
|
2448
2448
|
return s0;
|
|
2449
2449
|
}
|
|
2450
|
-
|
|
2450
|
+
chunkW7OLHAQY_js.__name(peg$parseunquotedString, "peg$parseunquotedString");
|
|
2451
2451
|
function peg$parseunquotedStringWithoutSpaces() {
|
|
2452
2452
|
let s0, s1, s2, s3, s4, s5;
|
|
2453
2453
|
s0 = peg$currPos;
|
|
@@ -2521,7 +2521,7 @@ function peg$parse(input, options) {
|
|
|
2521
2521
|
s0 = s1;
|
|
2522
2522
|
return s0;
|
|
2523
2523
|
}
|
|
2524
|
-
|
|
2524
|
+
chunkW7OLHAQY_js.__name(peg$parseunquotedStringWithoutSpaces, "peg$parseunquotedStringWithoutSpaces");
|
|
2525
2525
|
function peg$parsequotedString() {
|
|
2526
2526
|
let s0;
|
|
2527
2527
|
s0 = peg$parseDQuotedString();
|
|
@@ -2533,7 +2533,7 @@ function peg$parse(input, options) {
|
|
|
2533
2533
|
}
|
|
2534
2534
|
return s0;
|
|
2535
2535
|
}
|
|
2536
|
-
|
|
2536
|
+
chunkW7OLHAQY_js.__name(peg$parsequotedString, "peg$parsequotedString");
|
|
2537
2537
|
function peg$parseDQuotedString() {
|
|
2538
2538
|
let s0, s1, s2, s3;
|
|
2539
2539
|
s0 = peg$currPos;
|
|
@@ -2613,7 +2613,7 @@ function peg$parse(input, options) {
|
|
|
2613
2613
|
}
|
|
2614
2614
|
return s0;
|
|
2615
2615
|
}
|
|
2616
|
-
|
|
2616
|
+
chunkW7OLHAQY_js.__name(peg$parseDQuotedString, "peg$parseDQuotedString");
|
|
2617
2617
|
function peg$parseSQuotedString() {
|
|
2618
2618
|
let s0, s1, s2, s3;
|
|
2619
2619
|
s0 = peg$currPos;
|
|
@@ -2693,7 +2693,7 @@ function peg$parse(input, options) {
|
|
|
2693
2693
|
}
|
|
2694
2694
|
return s0;
|
|
2695
2695
|
}
|
|
2696
|
-
|
|
2696
|
+
chunkW7OLHAQY_js.__name(peg$parseSQuotedString, "peg$parseSQuotedString");
|
|
2697
2697
|
function peg$parseBQuotedString() {
|
|
2698
2698
|
let s0, s1, s2, s3;
|
|
2699
2699
|
s0 = peg$currPos;
|
|
@@ -2773,7 +2773,7 @@ function peg$parse(input, options) {
|
|
|
2773
2773
|
}
|
|
2774
2774
|
return s0;
|
|
2775
2775
|
}
|
|
2776
|
-
|
|
2776
|
+
chunkW7OLHAQY_js.__name(peg$parseBQuotedString, "peg$parseBQuotedString");
|
|
2777
2777
|
function peg$parsemultiLineString() {
|
|
2778
2778
|
let s0;
|
|
2779
2779
|
s0 = peg$parsesingleSQuotedMultiLineString();
|
|
@@ -2788,7 +2788,7 @@ function peg$parse(input, options) {
|
|
|
2788
2788
|
}
|
|
2789
2789
|
return s0;
|
|
2790
2790
|
}
|
|
2791
|
-
|
|
2791
|
+
chunkW7OLHAQY_js.__name(peg$parsemultiLineString, "peg$parsemultiLineString");
|
|
2792
2792
|
function peg$parsesingleSQuotedMultiLineString() {
|
|
2793
2793
|
let s0, s1, s2, s3, s4, s5;
|
|
2794
2794
|
s0 = peg$currPos;
|
|
@@ -3003,7 +3003,7 @@ function peg$parse(input, options) {
|
|
|
3003
3003
|
}
|
|
3004
3004
|
return s0;
|
|
3005
3005
|
}
|
|
3006
|
-
|
|
3006
|
+
chunkW7OLHAQY_js.__name(peg$parsesingleSQuotedMultiLineString, "peg$parsesingleSQuotedMultiLineString");
|
|
3007
3007
|
function peg$parsesingleDQuotedMultiLineString() {
|
|
3008
3008
|
let s0, s1, s2, s3, s4, s5;
|
|
3009
3009
|
s0 = peg$currPos;
|
|
@@ -3218,7 +3218,7 @@ function peg$parse(input, options) {
|
|
|
3218
3218
|
}
|
|
3219
3219
|
return s0;
|
|
3220
3220
|
}
|
|
3221
|
-
|
|
3221
|
+
chunkW7OLHAQY_js.__name(peg$parsesingleDQuotedMultiLineString, "peg$parsesingleDQuotedMultiLineString");
|
|
3222
3222
|
function peg$parsetripleDQuotedMultiLineString() {
|
|
3223
3223
|
let s0, s1, s2, s3, s4, s5, s6, s7;
|
|
3224
3224
|
s0 = peg$currPos;
|
|
@@ -3619,7 +3619,7 @@ function peg$parse(input, options) {
|
|
|
3619
3619
|
}
|
|
3620
3620
|
return s0;
|
|
3621
3621
|
}
|
|
3622
|
-
|
|
3622
|
+
chunkW7OLHAQY_js.__name(peg$parsetripleDQuotedMultiLineString, "peg$parsetripleDQuotedMultiLineString");
|
|
3623
3623
|
function peg$parsetripleBQuotedMultiLineString() {
|
|
3624
3624
|
let s0, s1, s2, s3, s4, s5, s6, s7;
|
|
3625
3625
|
s0 = peg$currPos;
|
|
@@ -4020,7 +4020,7 @@ function peg$parse(input, options) {
|
|
|
4020
4020
|
}
|
|
4021
4021
|
return s0;
|
|
4022
4022
|
}
|
|
4023
|
-
|
|
4023
|
+
chunkW7OLHAQY_js.__name(peg$parsetripleBQuotedMultiLineString, "peg$parsetripleBQuotedMultiLineString");
|
|
4024
4024
|
function peg$parse_n() {
|
|
4025
4025
|
let s0, s1;
|
|
4026
4026
|
if (input.charCodeAt(peg$currPos) === 10) {
|
|
@@ -4054,7 +4054,7 @@ function peg$parse(input, options) {
|
|
|
4054
4054
|
}
|
|
4055
4055
|
return s0;
|
|
4056
4056
|
}
|
|
4057
|
-
|
|
4057
|
+
chunkW7OLHAQY_js.__name(peg$parse_n, "peg$parse_n");
|
|
4058
4058
|
function peg$parse_() {
|
|
4059
4059
|
let s0, s1;
|
|
4060
4060
|
s0 = [];
|
|
@@ -4081,7 +4081,7 @@ function peg$parse(input, options) {
|
|
|
4081
4081
|
}
|
|
4082
4082
|
return s0;
|
|
4083
4083
|
}
|
|
4084
|
-
|
|
4084
|
+
chunkW7OLHAQY_js.__name(peg$parse_, "peg$parse_");
|
|
4085
4085
|
function peg$parse__() {
|
|
4086
4086
|
let s0, s1;
|
|
4087
4087
|
s0 = [];
|
|
@@ -4112,7 +4112,7 @@ function peg$parse(input, options) {
|
|
|
4112
4112
|
}
|
|
4113
4113
|
return s0;
|
|
4114
4114
|
}
|
|
4115
|
-
|
|
4115
|
+
chunkW7OLHAQY_js.__name(peg$parse__, "peg$parse__");
|
|
4116
4116
|
peg$result = peg$startRuleFunction();
|
|
4117
4117
|
const peg$success = peg$result !== peg$FAILED && peg$currPos === input.length;
|
|
4118
4118
|
function peg$throw() {
|
|
@@ -4125,7 +4125,7 @@ function peg$parse(input, options) {
|
|
|
4125
4125
|
peg$maxFailPos < input.length ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1) : peg$computeLocation(peg$maxFailPos, peg$maxFailPos)
|
|
4126
4126
|
);
|
|
4127
4127
|
}
|
|
4128
|
-
|
|
4128
|
+
chunkW7OLHAQY_js.__name(peg$throw, "peg$throw");
|
|
4129
4129
|
if (options.peg$library) {
|
|
4130
4130
|
return (
|
|
4131
4131
|
/** @type {any} */
|
|
@@ -4146,65 +4146,65 @@ function peg$parse(input, options) {
|
|
|
4146
4146
|
peg$throw();
|
|
4147
4147
|
}
|
|
4148
4148
|
}
|
|
4149
|
-
|
|
4149
|
+
chunkW7OLHAQY_js.__name(peg$parse, "peg$parse");
|
|
4150
4150
|
|
|
4151
4151
|
// src/index.ts
|
|
4152
4152
|
function parseEnvSpecDotEnvFile(source) {
|
|
4153
4153
|
return peg$parse(source.replaceAll("\r\n", "\n"));
|
|
4154
4154
|
}
|
|
4155
|
-
|
|
4155
|
+
chunkW7OLHAQY_js.__name(parseEnvSpecDotEnvFile, "parseEnvSpecDotEnvFile");
|
|
4156
4156
|
|
|
4157
4157
|
Object.defineProperty(exports, "ParsedEnvSpecBlankLine", {
|
|
4158
4158
|
enumerable: true,
|
|
4159
|
-
get: function () { return
|
|
4159
|
+
get: function () { return chunkW7OLHAQY_js.ParsedEnvSpecBlankLine; }
|
|
4160
4160
|
});
|
|
4161
4161
|
Object.defineProperty(exports, "ParsedEnvSpecComment", {
|
|
4162
4162
|
enumerable: true,
|
|
4163
|
-
get: function () { return
|
|
4163
|
+
get: function () { return chunkW7OLHAQY_js.ParsedEnvSpecComment; }
|
|
4164
4164
|
});
|
|
4165
4165
|
Object.defineProperty(exports, "ParsedEnvSpecCommentBlock", {
|
|
4166
4166
|
enumerable: true,
|
|
4167
|
-
get: function () { return
|
|
4167
|
+
get: function () { return chunkW7OLHAQY_js.ParsedEnvSpecCommentBlock; }
|
|
4168
4168
|
});
|
|
4169
4169
|
Object.defineProperty(exports, "ParsedEnvSpecConfigItem", {
|
|
4170
4170
|
enumerable: true,
|
|
4171
|
-
get: function () { return
|
|
4171
|
+
get: function () { return chunkW7OLHAQY_js.ParsedEnvSpecConfigItem; }
|
|
4172
4172
|
});
|
|
4173
4173
|
Object.defineProperty(exports, "ParsedEnvSpecDecorator", {
|
|
4174
4174
|
enumerable: true,
|
|
4175
|
-
get: function () { return
|
|
4175
|
+
get: function () { return chunkW7OLHAQY_js.ParsedEnvSpecDecorator; }
|
|
4176
4176
|
});
|
|
4177
4177
|
Object.defineProperty(exports, "ParsedEnvSpecDecoratorComment", {
|
|
4178
4178
|
enumerable: true,
|
|
4179
|
-
get: function () { return
|
|
4179
|
+
get: function () { return chunkW7OLHAQY_js.ParsedEnvSpecDecoratorComment; }
|
|
4180
4180
|
});
|
|
4181
4181
|
Object.defineProperty(exports, "ParsedEnvSpecDivider", {
|
|
4182
4182
|
enumerable: true,
|
|
4183
|
-
get: function () { return
|
|
4183
|
+
get: function () { return chunkW7OLHAQY_js.ParsedEnvSpecDivider; }
|
|
4184
4184
|
});
|
|
4185
4185
|
Object.defineProperty(exports, "ParsedEnvSpecFile", {
|
|
4186
4186
|
enumerable: true,
|
|
4187
|
-
get: function () { return
|
|
4187
|
+
get: function () { return chunkW7OLHAQY_js.ParsedEnvSpecFile; }
|
|
4188
4188
|
});
|
|
4189
4189
|
Object.defineProperty(exports, "ParsedEnvSpecFunctionArgs", {
|
|
4190
4190
|
enumerable: true,
|
|
4191
|
-
get: function () { return
|
|
4191
|
+
get: function () { return chunkW7OLHAQY_js.ParsedEnvSpecFunctionArgs; }
|
|
4192
4192
|
});
|
|
4193
4193
|
Object.defineProperty(exports, "ParsedEnvSpecFunctionCall", {
|
|
4194
4194
|
enumerable: true,
|
|
4195
|
-
get: function () { return
|
|
4195
|
+
get: function () { return chunkW7OLHAQY_js.ParsedEnvSpecFunctionCall; }
|
|
4196
4196
|
});
|
|
4197
4197
|
Object.defineProperty(exports, "ParsedEnvSpecKeyValuePair", {
|
|
4198
4198
|
enumerable: true,
|
|
4199
|
-
get: function () { return
|
|
4199
|
+
get: function () { return chunkW7OLHAQY_js.ParsedEnvSpecKeyValuePair; }
|
|
4200
4200
|
});
|
|
4201
4201
|
Object.defineProperty(exports, "ParsedEnvSpecStaticValue", {
|
|
4202
4202
|
enumerable: true,
|
|
4203
|
-
get: function () { return
|
|
4203
|
+
get: function () { return chunkW7OLHAQY_js.ParsedEnvSpecStaticValue; }
|
|
4204
4204
|
});
|
|
4205
4205
|
Object.defineProperty(exports, "expand", {
|
|
4206
4206
|
enumerable: true,
|
|
4207
|
-
get: function () { return
|
|
4207
|
+
get: function () { return chunkW7OLHAQY_js.expand; }
|
|
4208
4208
|
});
|
|
4209
4209
|
exports.envSpecUpdater = envSpecUpdater;
|
|
4210
4210
|
exports.parseEnvSpecDotEnvFile = parseEnvSpecDotEnvFile;
|