projen 0.99.59 → 0.99.61
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/.jsii +5 -5
- package/lib/ai-instructions.js +2 -2
- package/lib/awscdk/auto-discover.js +6 -6
- package/lib/awscdk/awscdk-app-java.js +1 -1
- package/lib/awscdk/awscdk-app-py.js +1 -1
- package/lib/awscdk/awscdk-app-ts.js +1 -1
- package/lib/awscdk/awscdk-construct.js +2 -2
- package/lib/awscdk/awscdk-deps-java.js +1 -1
- package/lib/awscdk/awscdk-deps-js.js +1 -1
- package/lib/awscdk/awscdk-deps-py.js +1 -1
- package/lib/awscdk/awscdk-deps.js +1 -1
- package/lib/awscdk/cdk-config.js +4 -4
- package/lib/awscdk/cdk-tasks.js +1 -1
- package/lib/awscdk/integration-test.js +1 -1
- package/lib/awscdk/lambda-extension.js +1 -1
- package/lib/awscdk/lambda-function.js +2 -2
- package/lib/build/build-workflow.js +1 -1
- package/lib/cdk/auto-discover-base.js +2 -2
- package/lib/cdk/construct-lib.js +1 -1
- package/lib/cdk/integration-test-base.js +1 -1
- package/lib/cdk/jsii-docgen.js +1 -1
- package/lib/cdk/jsii-project.js +1 -1
- package/lib/cdk8s/auto-discover.js +2 -2
- package/lib/cdk8s/cdk8s-app-py.js +1 -1
- package/lib/cdk8s/cdk8s-app-ts.js +1 -1
- package/lib/cdk8s/cdk8s-construct.js +1 -1
- package/lib/cdk8s/cdk8s-deps-py.js +1 -1
- package/lib/cdk8s/cdk8s-deps.js +1 -1
- package/lib/cdk8s/integration-test.js +1 -1
- package/lib/cdktf/cdktf-construct.js +1 -1
- package/lib/circleci/circleci.js +1 -1
- package/lib/component.js +1 -1
- package/lib/dependencies.js +1 -1
- package/lib/dev-env.js +1 -1
- package/lib/docker-compose/docker-compose-service.js +1 -1
- package/lib/docker-compose/docker-compose.js +1 -1
- package/lib/file.js +1 -1
- package/lib/gitattributes.js +1 -1
- package/lib/github/actions-provider.js +1 -1
- package/lib/github/auto-approve.js +1 -1
- package/lib/github/auto-merge.js +1 -1
- package/lib/github/auto-queue.js +1 -1
- package/lib/github/dependabot.js +1 -1
- package/lib/github/dependency-review.js +1 -1
- package/lib/github/github-credentials.js +1 -1
- package/lib/github/github-project.js +1 -1
- package/lib/github/github.js +1 -1
- package/lib/github/merge-queue.js +1 -1
- package/lib/github/mergify.js +1 -1
- package/lib/github/pr-template.js +1 -1
- package/lib/github/pull-request-backport.js +1 -1
- package/lib/github/pull-request-lint.js +1 -1
- package/lib/github/stale.js +1 -1
- package/lib/github/task-workflow-job.js +1 -1
- package/lib/github/task-workflow.js +1 -1
- package/lib/github/workflow-actions.js +1 -1
- package/lib/github/workflow-jobs.js +1 -1
- package/lib/github/workflow-steps.js +1 -1
- package/lib/github/workflows.js +1 -1
- package/lib/gitlab/configuration.js +1 -1
- package/lib/gitlab/gitlab-configuration.js +1 -1
- package/lib/gitlab/nested-configuration.js +1 -1
- package/lib/gitpod.js +1 -1
- package/lib/ignore-file.js +1 -1
- package/lib/ini.js +1 -1
- package/lib/java/java-project.js +1 -1
- package/lib/java/junit.js +1 -1
- package/lib/java/maven-compile.js +1 -1
- package/lib/java/maven-packaging.js +1 -1
- package/lib/java/maven-sample.js +1 -1
- package/lib/java/pom.js +2 -2
- package/lib/java/projenrc.js +1 -1
- package/lib/javascript/biome/biome-config.d.ts +1 -1
- package/lib/javascript/biome/biome-config.js +1 -1
- package/lib/javascript/biome/biome.js +1 -1
- package/lib/javascript/bundler.js +1 -1
- package/lib/javascript/eslint.js +1 -1
- package/lib/javascript/jest.js +4 -4
- package/lib/javascript/license-checker.js +1 -1
- package/lib/javascript/node-package.js +1 -1
- package/lib/javascript/node-project.js +1 -1
- package/lib/javascript/npm-config.js +1 -1
- package/lib/javascript/prettier.js +1 -1
- package/lib/javascript/projenrc.js +1 -1
- package/lib/javascript/typescript-config.js +2 -2
- package/lib/javascript/upgrade-dependencies.js +2 -2
- package/lib/javascript/yarnrc.js +1 -1
- package/lib/json-patch.js +1 -1
- package/lib/json.js +1 -1
- package/lib/license.js +1 -1
- package/lib/logger.js +1 -1
- package/lib/makefile.js +1 -1
- package/lib/object-file.js +1 -1
- package/lib/project-build.js +1 -1
- package/lib/project-tree.js +1 -1
- package/lib/project.js +1 -1
- package/lib/projects.js +1 -1
- package/lib/projenrc-json.js +2 -2
- package/lib/projenrc.js +1 -1
- package/lib/python/pip.js +1 -1
- package/lib/python/poetry.js +2 -2
- package/lib/python/projenrc.js +1 -1
- package/lib/python/pyproject-toml-file.js +1 -1
- package/lib/python/pytest-sample.js +1 -1
- package/lib/python/pytest.js +1 -1
- package/lib/python/python-project.js +1 -1
- package/lib/python/python-sample.js +1 -1
- package/lib/python/requirements-file.js +1 -1
- package/lib/python/setuppy.js +1 -1
- package/lib/python/setuptools.js +1 -1
- package/lib/python/uv.js +1 -1
- package/lib/python/venv.js +1 -1
- package/lib/readme.js +1 -1
- package/lib/release/publisher.js +1 -1
- package/lib/release/release-trigger.js +1 -1
- package/lib/release/release.js +1 -1
- package/lib/renovatebot.js +1 -1
- package/lib/sample-file.js +2 -2
- package/lib/semver.js +1 -1
- package/lib/source-code.js +1 -1
- package/lib/task-runtime.js +1 -1
- package/lib/task.js +1 -1
- package/lib/tasks.js +1 -1
- package/lib/testing.js +1 -1
- package/lib/textfile.js +1 -1
- package/lib/toml.js +1 -1
- package/lib/typescript/projenrc-ts.js +1 -1
- package/lib/typescript/projenrc.js +1 -1
- package/lib/typescript/typescript-typedoc.js +1 -1
- package/lib/typescript/typescript.js +6 -6
- package/lib/version.js +2 -2
- package/lib/vscode/devcontainer.js +1 -1
- package/lib/vscode/extensions.js +1 -1
- package/lib/vscode/launch-config.js +1 -1
- package/lib/vscode/settings.js +1 -1
- package/lib/vscode/vscode.js +1 -1
- package/lib/web/next.js +3 -3
- package/lib/web/postcss.js +1 -1
- package/lib/web/react.js +4 -4
- package/lib/web/tailwind.js +1 -1
- package/lib/xmlfile.js +1 -1
- package/lib/yaml.js +1 -1
- package/node_modules/semver/README.md +19 -4
- package/node_modules/semver/bin/semver.js +14 -10
- package/node_modules/semver/functions/truncate.js +48 -0
- package/node_modules/semver/index.js +2 -0
- package/node_modules/semver/internal/re.js +1 -1
- package/node_modules/semver/package.json +3 -3
- package/node_modules/semver/range.bnf +5 -4
- package/node_modules/yaml/browser/dist/compose/composer.js +4 -2
- package/node_modules/yaml/browser/dist/parse/lexer.js +28 -24
- package/node_modules/yaml/browser/dist/parse/parser.js +12 -4
- package/node_modules/yaml/dist/compose/composer.js +4 -2
- package/node_modules/yaml/dist/parse/lexer.js +28 -24
- package/node_modules/yaml/dist/parse/parser.js +12 -4
- package/node_modules/yaml/package.json +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
const parse = require('./parse')
|
|
4
|
+
const constants = require('../internal/constants')
|
|
5
|
+
const SemVer = require('../classes/semver')
|
|
6
|
+
|
|
7
|
+
const truncate = (version, truncation, options) => {
|
|
8
|
+
if (!constants.RELEASE_TYPES.includes(truncation)) {
|
|
9
|
+
return null
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
const clonedVersion = cloneInputVersion(version, options)
|
|
13
|
+
return clonedVersion && doTruncation(clonedVersion, truncation)
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
const cloneInputVersion = (version, options) => {
|
|
17
|
+
const versionStringToParse = (
|
|
18
|
+
version instanceof SemVer ? version.version : version
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
return parse(versionStringToParse, options)
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const doTruncation = (version, truncation) => {
|
|
25
|
+
if (isPrerelease(truncation)) {
|
|
26
|
+
return version.version
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
version.prerelease = []
|
|
30
|
+
|
|
31
|
+
switch (truncation) {
|
|
32
|
+
case 'major':
|
|
33
|
+
version.minor = 0
|
|
34
|
+
version.patch = 0
|
|
35
|
+
break
|
|
36
|
+
case 'minor':
|
|
37
|
+
version.patch = 0
|
|
38
|
+
break
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return version.format()
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const isPrerelease = (type) => {
|
|
45
|
+
return type.startsWith('pre')
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
module.exports = truncate
|
|
@@ -28,6 +28,7 @@ const gte = require('./functions/gte')
|
|
|
28
28
|
const lte = require('./functions/lte')
|
|
29
29
|
const cmp = require('./functions/cmp')
|
|
30
30
|
const coerce = require('./functions/coerce')
|
|
31
|
+
const truncate = require('./functions/truncate')
|
|
31
32
|
const Comparator = require('./classes/comparator')
|
|
32
33
|
const Range = require('./classes/range')
|
|
33
34
|
const satisfies = require('./functions/satisfies')
|
|
@@ -66,6 +67,7 @@ module.exports = {
|
|
|
66
67
|
lte,
|
|
67
68
|
cmp,
|
|
68
69
|
coerce,
|
|
70
|
+
truncate,
|
|
69
71
|
Comparator,
|
|
70
72
|
Range,
|
|
71
73
|
satisfies,
|
|
@@ -136,7 +136,7 @@ createToken('LOOSE', `^${src[t.LOOSEPLAIN]}$`)
|
|
|
136
136
|
createToken('GTLT', '((?:<|>)?=?)')
|
|
137
137
|
|
|
138
138
|
// Something like "2.*" or "1.2.x".
|
|
139
|
-
// Note that "x.x" is a valid xRange
|
|
139
|
+
// Note that "x.x" is a valid xRange identifier, meaning "any version"
|
|
140
140
|
// Only the first item is strictly required.
|
|
141
141
|
createToken('XRANGEIDENTIFIERLOOSE', `${src[t.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`)
|
|
142
142
|
createToken('XRANGEIDENTIFIER', `${src[t.NUMERICIDENTIFIER]}|x|X|\\*`)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "semver",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.8.0",
|
|
4
4
|
"description": "The semantic version parser used by npm.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
17
|
"@npmcli/eslint-config": "^6.0.0",
|
|
18
|
-
"@npmcli/template-oss": "
|
|
18
|
+
"@npmcli/template-oss": "5.0.0",
|
|
19
19
|
"benchmark": "^2.1.4",
|
|
20
20
|
"tap": "^16.0.0"
|
|
21
21
|
},
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"author": "GitHub Inc.",
|
|
53
53
|
"templateOSS": {
|
|
54
54
|
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
|
|
55
|
-
"version": "
|
|
55
|
+
"version": "5.0.0",
|
|
56
56
|
"engines": ">=10",
|
|
57
57
|
"distPaths": [
|
|
58
58
|
"classes/",
|
|
@@ -10,7 +10,8 @@ nr ::= '0' | [1-9] ( [0-9] ) *
|
|
|
10
10
|
tilde ::= '~' partial
|
|
11
11
|
caret ::= '^' partial
|
|
12
12
|
qualifier ::= ( '-' pre )? ( '+' build )?
|
|
13
|
-
pre ::=
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
pre ::= prepart ( '.' prepart ) *
|
|
14
|
+
prepart ::= nr | alphanumid
|
|
15
|
+
build ::= buildid ( '.' buildid ) *
|
|
16
|
+
alphanumid ::= ( [0-9] ) * [A-Za-z-] [-0-9A-Za-z] *
|
|
17
|
+
buildid ::= [-0-9A-Za-z]+
|
|
@@ -94,8 +94,10 @@ class Composer {
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
if (afterDoc) {
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
for (let i = 0; i < this.errors.length; ++i)
|
|
98
|
+
doc.errors.push(this.errors[i]);
|
|
99
|
+
for (let i = 0; i < this.warnings.length; ++i)
|
|
100
|
+
doc.warnings.push(this.warnings[i]);
|
|
99
101
|
}
|
|
100
102
|
else {
|
|
101
103
|
doc.errors = this.errors;
|
|
@@ -310,7 +310,7 @@ class Lexer {
|
|
|
310
310
|
const n = (yield* this.pushCount(1)) + (yield* this.pushSpaces(true));
|
|
311
311
|
this.indentNext = this.indentValue + 1;
|
|
312
312
|
this.indentValue += n;
|
|
313
|
-
return
|
|
313
|
+
return 'block-start';
|
|
314
314
|
}
|
|
315
315
|
return 'doc';
|
|
316
316
|
}
|
|
@@ -631,32 +631,36 @@ class Lexer {
|
|
|
631
631
|
return 0;
|
|
632
632
|
}
|
|
633
633
|
*pushIndicators() {
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
634
|
+
let n = 0;
|
|
635
|
+
loop: while (true) {
|
|
636
|
+
switch (this.charAt(0)) {
|
|
637
|
+
case '!':
|
|
638
|
+
n += yield* this.pushTag();
|
|
639
|
+
n += yield* this.pushSpaces(true);
|
|
640
|
+
continue loop;
|
|
641
|
+
case '&':
|
|
642
|
+
n += yield* this.pushUntil(isNotAnchorChar);
|
|
643
|
+
n += yield* this.pushSpaces(true);
|
|
644
|
+
continue loop;
|
|
645
|
+
case '-': // this is an error
|
|
646
|
+
case '?': // this is an error outside flow collections
|
|
647
|
+
case ':': {
|
|
648
|
+
const inFlow = this.flowLevel > 0;
|
|
649
|
+
const ch1 = this.charAt(1);
|
|
650
|
+
if (isEmpty(ch1) || (inFlow && flowIndicatorChars.has(ch1))) {
|
|
651
|
+
if (!inFlow)
|
|
652
|
+
this.indentNext = this.indentValue + 1;
|
|
653
|
+
else if (this.flowKey)
|
|
654
|
+
this.flowKey = false;
|
|
655
|
+
n += yield* this.pushCount(1);
|
|
656
|
+
n += yield* this.pushSpaces(true);
|
|
657
|
+
continue loop;
|
|
658
|
+
}
|
|
656
659
|
}
|
|
657
660
|
}
|
|
661
|
+
break loop;
|
|
658
662
|
}
|
|
659
|
-
return
|
|
663
|
+
return n;
|
|
660
664
|
}
|
|
661
665
|
*pushTag() {
|
|
662
666
|
if (this.charAt(1) === '<') {
|
|
@@ -67,6 +67,14 @@ function getFirstKeyStartProps(prev) {
|
|
|
67
67
|
}
|
|
68
68
|
return prev.splice(i, prev.length);
|
|
69
69
|
}
|
|
70
|
+
function arrayPushArray(target, source) {
|
|
71
|
+
// May exhaust call stack with large `source` array
|
|
72
|
+
if (source.length < 1e5)
|
|
73
|
+
Array.prototype.push.apply(target, source);
|
|
74
|
+
else
|
|
75
|
+
for (let i = 0; i < source.length; ++i)
|
|
76
|
+
target.push(source[i]);
|
|
77
|
+
}
|
|
70
78
|
function fixFlowSeqItems(fc) {
|
|
71
79
|
if (fc.start.type === 'flow-seq-start') {
|
|
72
80
|
for (const it of fc.items) {
|
|
@@ -79,12 +87,12 @@ function fixFlowSeqItems(fc) {
|
|
|
79
87
|
delete it.key;
|
|
80
88
|
if (isFlowToken(it.value)) {
|
|
81
89
|
if (it.value.end)
|
|
82
|
-
|
|
90
|
+
arrayPushArray(it.value.end, it.sep);
|
|
83
91
|
else
|
|
84
92
|
it.value.end = it.sep;
|
|
85
93
|
}
|
|
86
94
|
else
|
|
87
|
-
|
|
95
|
+
arrayPushArray(it.start, it.sep);
|
|
88
96
|
delete it.sep;
|
|
89
97
|
}
|
|
90
98
|
}
|
|
@@ -502,7 +510,7 @@ class Parser {
|
|
|
502
510
|
const prev = map.items[map.items.length - 2];
|
|
503
511
|
const end = prev?.value?.end;
|
|
504
512
|
if (Array.isArray(end)) {
|
|
505
|
-
|
|
513
|
+
arrayPushArray(end, it.start);
|
|
506
514
|
end.push(this.sourceToken);
|
|
507
515
|
map.items.pop();
|
|
508
516
|
return;
|
|
@@ -717,7 +725,7 @@ class Parser {
|
|
|
717
725
|
const prev = seq.items[seq.items.length - 2];
|
|
718
726
|
const end = prev?.value?.end;
|
|
719
727
|
if (Array.isArray(end)) {
|
|
720
|
-
|
|
728
|
+
arrayPushArray(end, it.start);
|
|
721
729
|
end.push(this.sourceToken);
|
|
722
730
|
seq.items.pop();
|
|
723
731
|
return;
|
|
@@ -97,8 +97,10 @@ class Composer {
|
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
if (afterDoc) {
|
|
100
|
-
|
|
101
|
-
|
|
100
|
+
for (let i = 0; i < this.errors.length; ++i)
|
|
101
|
+
doc.errors.push(this.errors[i]);
|
|
102
|
+
for (let i = 0; i < this.warnings.length; ++i)
|
|
103
|
+
doc.warnings.push(this.warnings[i]);
|
|
102
104
|
}
|
|
103
105
|
else {
|
|
104
106
|
doc.errors = this.errors;
|
|
@@ -312,7 +312,7 @@ class Lexer {
|
|
|
312
312
|
const n = (yield* this.pushCount(1)) + (yield* this.pushSpaces(true));
|
|
313
313
|
this.indentNext = this.indentValue + 1;
|
|
314
314
|
this.indentValue += n;
|
|
315
|
-
return
|
|
315
|
+
return 'block-start';
|
|
316
316
|
}
|
|
317
317
|
return 'doc';
|
|
318
318
|
}
|
|
@@ -633,32 +633,36 @@ class Lexer {
|
|
|
633
633
|
return 0;
|
|
634
634
|
}
|
|
635
635
|
*pushIndicators() {
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
636
|
+
let n = 0;
|
|
637
|
+
loop: while (true) {
|
|
638
|
+
switch (this.charAt(0)) {
|
|
639
|
+
case '!':
|
|
640
|
+
n += yield* this.pushTag();
|
|
641
|
+
n += yield* this.pushSpaces(true);
|
|
642
|
+
continue loop;
|
|
643
|
+
case '&':
|
|
644
|
+
n += yield* this.pushUntil(isNotAnchorChar);
|
|
645
|
+
n += yield* this.pushSpaces(true);
|
|
646
|
+
continue loop;
|
|
647
|
+
case '-': // this is an error
|
|
648
|
+
case '?': // this is an error outside flow collections
|
|
649
|
+
case ':': {
|
|
650
|
+
const inFlow = this.flowLevel > 0;
|
|
651
|
+
const ch1 = this.charAt(1);
|
|
652
|
+
if (isEmpty(ch1) || (inFlow && flowIndicatorChars.has(ch1))) {
|
|
653
|
+
if (!inFlow)
|
|
654
|
+
this.indentNext = this.indentValue + 1;
|
|
655
|
+
else if (this.flowKey)
|
|
656
|
+
this.flowKey = false;
|
|
657
|
+
n += yield* this.pushCount(1);
|
|
658
|
+
n += yield* this.pushSpaces(true);
|
|
659
|
+
continue loop;
|
|
660
|
+
}
|
|
658
661
|
}
|
|
659
662
|
}
|
|
663
|
+
break loop;
|
|
660
664
|
}
|
|
661
|
-
return
|
|
665
|
+
return n;
|
|
662
666
|
}
|
|
663
667
|
*pushTag() {
|
|
664
668
|
if (this.charAt(1) === '<') {
|
|
@@ -70,6 +70,14 @@ function getFirstKeyStartProps(prev) {
|
|
|
70
70
|
}
|
|
71
71
|
return prev.splice(i, prev.length);
|
|
72
72
|
}
|
|
73
|
+
function arrayPushArray(target, source) {
|
|
74
|
+
// May exhaust call stack with large `source` array
|
|
75
|
+
if (source.length < 1e5)
|
|
76
|
+
Array.prototype.push.apply(target, source);
|
|
77
|
+
else
|
|
78
|
+
for (let i = 0; i < source.length; ++i)
|
|
79
|
+
target.push(source[i]);
|
|
80
|
+
}
|
|
73
81
|
function fixFlowSeqItems(fc) {
|
|
74
82
|
if (fc.start.type === 'flow-seq-start') {
|
|
75
83
|
for (const it of fc.items) {
|
|
@@ -82,12 +90,12 @@ function fixFlowSeqItems(fc) {
|
|
|
82
90
|
delete it.key;
|
|
83
91
|
if (isFlowToken(it.value)) {
|
|
84
92
|
if (it.value.end)
|
|
85
|
-
|
|
93
|
+
arrayPushArray(it.value.end, it.sep);
|
|
86
94
|
else
|
|
87
95
|
it.value.end = it.sep;
|
|
88
96
|
}
|
|
89
97
|
else
|
|
90
|
-
|
|
98
|
+
arrayPushArray(it.start, it.sep);
|
|
91
99
|
delete it.sep;
|
|
92
100
|
}
|
|
93
101
|
}
|
|
@@ -507,7 +515,7 @@ class Parser {
|
|
|
507
515
|
const prev = map.items[map.items.length - 2];
|
|
508
516
|
const end = prev?.value?.end;
|
|
509
517
|
if (Array.isArray(end)) {
|
|
510
|
-
|
|
518
|
+
arrayPushArray(end, it.start);
|
|
511
519
|
end.push(this.sourceToken);
|
|
512
520
|
map.items.pop();
|
|
513
521
|
return;
|
|
@@ -722,7 +730,7 @@ class Parser {
|
|
|
722
730
|
const prev = seq.items[seq.items.length - 2];
|
|
723
731
|
const end = prev?.value?.end;
|
|
724
732
|
if (Array.isArray(end)) {
|
|
725
|
-
|
|
733
|
+
arrayPushArray(end, it.start);
|
|
726
734
|
end.push(this.sourceToken);
|
|
727
735
|
seq.items.pop();
|
|
728
736
|
return;
|
package/package.json
CHANGED
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"fast-json-patch": "^3.1.1",
|
|
101
101
|
"ini": "^2.0.0",
|
|
102
102
|
"parse-conflict-json": "^4.0.0",
|
|
103
|
-
"semver": "^7.
|
|
103
|
+
"semver": "^7.8.0",
|
|
104
104
|
"shx": "^0.4.0",
|
|
105
105
|
"xmlbuilder2": "^4.0.3",
|
|
106
106
|
"yaml": "^2.2.2",
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
"publishConfig": {
|
|
145
145
|
"access": "public"
|
|
146
146
|
},
|
|
147
|
-
"version": "0.99.
|
|
147
|
+
"version": "0.99.61",
|
|
148
148
|
"jest": {
|
|
149
149
|
"coverageProvider": "v8",
|
|
150
150
|
"coverageReporters": [
|