Skip to content

Commit bfd4a66

Browse files
dependabot[bot]GitHub Actionskg-aws
authored
chore: Bump yaml from 2.7.0 to 2.7.1 (#745)
* chore: Bump yaml from 2.7.0 to 2.7.1 Bumps [yaml](https://github.com/eemeli/yaml) from 2.7.0 to 2.7.1. - [Release notes](https://github.com/eemeli/yaml/releases) - [Commits](eemeli/yaml@v2.7.0...v2.7.1) --- updated-dependencies: - dependency-name: yaml dependency-version: 2.7.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * chore: Update dist --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: GitHub Actions <runner@fv-az1970-182.jylfb2lvhi2edjyxod04kr2g0d.cx.internal.cloudapp.net> Co-authored-by: Kishan Gajjar - AWS <[email protected]>
1 parent 420a9d1 commit bfd4a66

File tree

3 files changed

+25
-9
lines changed

3 files changed

+25
-9
lines changed

dist/index.js

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112492,8 +112492,8 @@ function composeCollection(CN, ctx, token, props, onError) {
112492112492
tag = kt;
112493112493
}
112494112494
else {
112495-
if (kt?.collection) {
112496-
onError(tagToken, 'BAD_COLLECTION_TYPE', `${kt.tag} used for ${expType} collection, but expects ${kt.collection}`, true);
112495+
if (kt) {
112496+
onError(tagToken, 'BAD_COLLECTION_TYPE', `${kt.tag} used for ${expType} collection, but expects ${kt.collection ?? 'scalar'}`, true);
112497112497
}
112498112498
else {
112499112499
onError(tagToken, 'TAG_RESOLVE_FAILED', `Unresolved tag: ${tagName}`, true);
@@ -117958,7 +117958,20 @@ class Parser {
117958117958
default: {
117959117959
const bv = this.startBlockValue(map);
117960117960
if (bv) {
117961-
if (atMapIndent && bv.type !== 'block-seq') {
117961+
if (bv.type === 'block-seq') {
117962+
if (!it.explicitKey &&
117963+
it.sep &&
117964+
!includesToken(it.sep, 'newline')) {
117965+
yield* this.pop({
117966+
type: 'error',
117967+
offset: this.offset,
117968+
message: 'Unexpected block-seq-ind on same line with key',
117969+
source: this.source
117970+
});
117971+
return;
117972+
}
117973+
}
117974+
else if (atMapIndent) {
117962117975
map.items.push({ start });
117963117976
}
117964117977
this.stack.push(bv);
@@ -118897,6 +118910,8 @@ const binary = {
118897118910
}
118898118911
},
118899118912
stringify({ comment, type, value }, ctx, onComment, onChompKeep) {
118913+
if (!value)
118914+
return '';
118900118915
const buf = value; // checked earlier by binary.identify()
118901118916
let str;
118902118917
if (typeof node_buffer.Buffer === 'function') {
@@ -119620,7 +119635,7 @@ const timestamp = {
119620119635
}
119621119636
return new Date(date);
119622119637
},
119623-
stringify: ({ value }) => value.toISOString().replace(/(T00:00:00)?\.000Z$/, '')
119638+
stringify: ({ value }) => value?.toISOString().replace(/(T00:00:00)?\.000Z$/, '') ?? ''
119624119639
};
119625119640

119626119641
exports.floatTime = floatTime;

package-lock.json

Lines changed: 5 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"@actions/core": "^1.10.1",
2929
"@aws-sdk/client-codedeploy": "^3.798.0",
3030
"@aws-sdk/client-ecs": "^3.741.0",
31-
"yaml": "^2.7.0"
31+
"yaml": "^2.7.1"
3232
},
3333
"devDependencies": {
3434
"@eslint/js": "^9.25.1",

0 commit comments

Comments
 (0)