mirror of
https://github.com/dawidd6/action-ansible-playbook.git
synced 2026-01-10 21:41:42 -07:00
node_modules: update (#127)
Co-authored-by: dawidd6 <9713907+dawidd6@users.noreply.github.com>
This commit is contained in:
22
node_modules/yaml/README.md
generated
vendored
22
node_modules/yaml/README.md
generated
vendored
@@ -20,6 +20,8 @@ This requirement may be updated between minor versions of the library.
|
||||
|
||||
For more information, see the project's documentation site: [**eemeli.org/yaml**](https://eemeli.org/yaml/)
|
||||
|
||||
For build instructions and contribution guidelines, see [docs/CONTRIBUTING.md](docs/CONTRIBUTING.md).
|
||||
|
||||
To install:
|
||||
|
||||
```sh
|
||||
@@ -30,26 +32,6 @@ deno add jsr:@eemeli/yaml
|
||||
|
||||
**Note:** These docs are for `yaml@2`. For v1, see the [v1.10.0 tag](https://github.com/eemeli/yaml/tree/v1.10.0) for the source and [eemeli.org/yaml/v1](https://eemeli.org/yaml/v1/) for the documentation.
|
||||
|
||||
The development and maintenance of this library is [sponsored](https://github.com/sponsors/eemeli) by:
|
||||
|
||||
<p align="center" width="100%">
|
||||
<a href="https://www.scipress.io/"
|
||||
><img
|
||||
width="150"
|
||||
align="top"
|
||||
src="https://eemeli.org/yaml/images/scipress.svg"
|
||||
alt="Scipress"
|
||||
/></a>
|
||||
|
||||
<a href="https://manifest.build/"
|
||||
><img
|
||||
width="150"
|
||||
align="top"
|
||||
src="https://eemeli.org/yaml/images/manifest.svg"
|
||||
alt="Manifest"
|
||||
/></a>
|
||||
</p>
|
||||
|
||||
## API Overview
|
||||
|
||||
The API provided by `yaml` has three layers, depending on how deep you need to go: [Parse & Stringify](https://eemeli.org/yaml/#parse-amp-stringify), [Documents](https://eemeli.org/yaml/#documents), and the underlying [Lexer/Parser/Composer](https://eemeli.org/yaml/#parsing-yaml).
|
||||
|
||||
2
node_modules/yaml/browser/dist/compose/compose-collection.js
generated
vendored
2
node_modules/yaml/browser/dist/compose/compose-collection.js
generated
vendored
@@ -59,7 +59,7 @@ function composeCollection(CN, ctx, token, props, onError) {
|
||||
let tag = ctx.schema.tags.find(t => t.tag === tagName && t.collection === expType);
|
||||
if (!tag) {
|
||||
const kt = ctx.schema.knownTags[tagName];
|
||||
if (kt && kt.collection === expType) {
|
||||
if (kt?.collection === expType) {
|
||||
ctx.schema.tags.push(Object.assign({}, kt, { default: false }));
|
||||
tag = kt;
|
||||
}
|
||||
|
||||
2
node_modules/yaml/browser/dist/compose/resolve-block-seq.js
generated
vendored
2
node_modules/yaml/browser/dist/compose/resolve-block-seq.js
generated
vendored
@@ -22,7 +22,7 @@ function resolveBlockSeq({ composeNode, composeEmptyNode }, ctx, bs, onError, ta
|
||||
});
|
||||
if (!props.found) {
|
||||
if (props.anchor || props.tag || value) {
|
||||
if (value && value.type === 'block-seq')
|
||||
if (value?.type === 'block-seq')
|
||||
onError(props.end, 'BAD_INDENT', 'All sequence items must start at the same column');
|
||||
else
|
||||
onError(offset, 'MISSING_CHAR', 'Sequence item without - indicator');
|
||||
|
||||
4
node_modules/yaml/browser/dist/compose/resolve-flow-collection.js
generated
vendored
4
node_modules/yaml/browser/dist/compose/resolve-flow-collection.js
generated
vendored
@@ -133,7 +133,7 @@ function resolveFlowCollection({ composeNode, composeEmptyNode }, ctx, fc, onErr
|
||||
}
|
||||
}
|
||||
else if (value) {
|
||||
if ('source' in value && value.source && value.source[0] === ':')
|
||||
if ('source' in value && value.source?.[0] === ':')
|
||||
onError(value, 'MISSING_CHAR', `Missing space after : in ${fcName}`);
|
||||
else
|
||||
onError(valueProps.start, 'MISSING_CHAR', `Missing , or : between ${fcName} items`);
|
||||
@@ -177,7 +177,7 @@ function resolveFlowCollection({ composeNode, composeEmptyNode }, ctx, fc, onErr
|
||||
const expectedEnd = isMap ? '}' : ']';
|
||||
const [ce, ...ee] = fc.end;
|
||||
let cePos = offset;
|
||||
if (ce && ce.source === expectedEnd)
|
||||
if (ce?.source === expectedEnd)
|
||||
cePos = ce.offset + ce.source.length;
|
||||
else {
|
||||
const name = fcName[0].toUpperCase() + fcName.substring(1);
|
||||
|
||||
2
node_modules/yaml/browser/dist/errors.js
generated
vendored
2
node_modules/yaml/browser/dist/errors.js
generated
vendored
@@ -46,7 +46,7 @@ const prettifyError = (src, lc) => (error) => {
|
||||
if (/[^ ]/.test(lineStr)) {
|
||||
let count = 1;
|
||||
const end = error.linePos[1];
|
||||
if (end && end.line === line && end.col > col) {
|
||||
if (end?.line === line && end.col > col) {
|
||||
count = Math.max(1, Math.min(end.col - col, 80 - ci));
|
||||
}
|
||||
const pointer = ' '.repeat(ci) + '^'.repeat(count);
|
||||
|
||||
2
node_modules/yaml/browser/dist/nodes/Alias.js
generated
vendored
2
node_modules/yaml/browser/dist/nodes/Alias.js
generated
vendored
@@ -59,7 +59,7 @@ class Alias extends NodeBase {
|
||||
data = anchors.get(source);
|
||||
}
|
||||
/* istanbul ignore if */
|
||||
if (!data || data.res === undefined) {
|
||||
if (data?.res === undefined) {
|
||||
const msg = 'This should not happen: Alias anchor was not resolved?';
|
||||
throw new ReferenceError(msg);
|
||||
}
|
||||
|
||||
4
node_modules/yaml/browser/dist/parse/parser.js
generated
vendored
4
node_modules/yaml/browser/dist/parse/parser.js
generated
vendored
@@ -226,7 +226,7 @@ class Parser {
|
||||
}
|
||||
*step() {
|
||||
const top = this.peek(1);
|
||||
if (this.type === 'doc-end' && (!top || top.type !== 'doc-end')) {
|
||||
if (this.type === 'doc-end' && top?.type !== 'doc-end') {
|
||||
while (this.stack.length > 0)
|
||||
yield* this.pop();
|
||||
this.stack.push({
|
||||
@@ -758,7 +758,7 @@ class Parser {
|
||||
do {
|
||||
yield* this.pop();
|
||||
top = this.peek(1);
|
||||
} while (top && top.type === 'flow-collection');
|
||||
} while (top?.type === 'flow-collection');
|
||||
}
|
||||
else if (fc.end.length === 0) {
|
||||
switch (this.type) {
|
||||
|
||||
2
node_modules/yaml/browser/dist/stringify/stringifyNumber.js
generated
vendored
2
node_modules/yaml/browser/dist/stringify/stringifyNumber.js
generated
vendored
@@ -4,7 +4,7 @@ function stringifyNumber({ format, minFractionDigits, tag, value }) {
|
||||
const num = typeof value === 'number' ? value : Number(value);
|
||||
if (!isFinite(num))
|
||||
return isNaN(num) ? '.nan' : num < 0 ? '-.inf' : '.inf';
|
||||
let n = JSON.stringify(value);
|
||||
let n = Object.is(value, -0) ? '-0' : JSON.stringify(value);
|
||||
if (!format &&
|
||||
minFractionDigits &&
|
||||
(!tag || tag === 'tag:yaml.org,2002:float') &&
|
||||
|
||||
2
node_modules/yaml/browser/dist/stringify/stringifyPair.js
generated
vendored
2
node_modules/yaml/browser/dist/stringify/stringifyPair.js
generated
vendored
@@ -101,7 +101,7 @@ function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
|
||||
ws += `\n${indentComment(cs, ctx.indent)}`;
|
||||
}
|
||||
if (valueStr === '' && !ctx.inFlow) {
|
||||
if (ws === '\n')
|
||||
if (ws === '\n' && valueComment)
|
||||
ws = '\n\n';
|
||||
}
|
||||
else {
|
||||
|
||||
2
node_modules/yaml/browser/dist/stringify/stringifyString.js
generated
vendored
2
node_modules/yaml/browser/dist/stringify/stringifyString.js
generated
vendored
@@ -159,7 +159,7 @@ function blockString({ comment, type, value }, ctx, onComment, onChompKeep) {
|
||||
const { blockQuote, commentString, lineWidth } = ctx.options;
|
||||
// 1. Block can't end in whitespace unless the last line is non-empty.
|
||||
// 2. Strings consisting of only whitespace are best rendered explicitly.
|
||||
if (!blockQuote || /\n[\t ]+$/.test(value) || /^\s*$/.test(value)) {
|
||||
if (!blockQuote || /\n[\t ]+$/.test(value)) {
|
||||
return quotedString(value, ctx);
|
||||
}
|
||||
const indent = ctx.indent ||
|
||||
|
||||
2
node_modules/yaml/dist/compose/compose-collection.js
generated
vendored
2
node_modules/yaml/dist/compose/compose-collection.js
generated
vendored
@@ -61,7 +61,7 @@ function composeCollection(CN, ctx, token, props, onError) {
|
||||
let tag = ctx.schema.tags.find(t => t.tag === tagName && t.collection === expType);
|
||||
if (!tag) {
|
||||
const kt = ctx.schema.knownTags[tagName];
|
||||
if (kt && kt.collection === expType) {
|
||||
if (kt?.collection === expType) {
|
||||
ctx.schema.tags.push(Object.assign({}, kt, { default: false }));
|
||||
tag = kt;
|
||||
}
|
||||
|
||||
2
node_modules/yaml/dist/compose/resolve-block-seq.js
generated
vendored
2
node_modules/yaml/dist/compose/resolve-block-seq.js
generated
vendored
@@ -24,7 +24,7 @@ function resolveBlockSeq({ composeNode, composeEmptyNode }, ctx, bs, onError, ta
|
||||
});
|
||||
if (!props.found) {
|
||||
if (props.anchor || props.tag || value) {
|
||||
if (value && value.type === 'block-seq')
|
||||
if (value?.type === 'block-seq')
|
||||
onError(props.end, 'BAD_INDENT', 'All sequence items must start at the same column');
|
||||
else
|
||||
onError(offset, 'MISSING_CHAR', 'Sequence item without - indicator');
|
||||
|
||||
4
node_modules/yaml/dist/compose/resolve-flow-collection.js
generated
vendored
4
node_modules/yaml/dist/compose/resolve-flow-collection.js
generated
vendored
@@ -135,7 +135,7 @@ function resolveFlowCollection({ composeNode, composeEmptyNode }, ctx, fc, onErr
|
||||
}
|
||||
}
|
||||
else if (value) {
|
||||
if ('source' in value && value.source && value.source[0] === ':')
|
||||
if ('source' in value && value.source?.[0] === ':')
|
||||
onError(value, 'MISSING_CHAR', `Missing space after : in ${fcName}`);
|
||||
else
|
||||
onError(valueProps.start, 'MISSING_CHAR', `Missing , or : between ${fcName} items`);
|
||||
@@ -179,7 +179,7 @@ function resolveFlowCollection({ composeNode, composeEmptyNode }, ctx, fc, onErr
|
||||
const expectedEnd = isMap ? '}' : ']';
|
||||
const [ce, ...ee] = fc.end;
|
||||
let cePos = offset;
|
||||
if (ce && ce.source === expectedEnd)
|
||||
if (ce?.source === expectedEnd)
|
||||
cePos = ce.offset + ce.source.length;
|
||||
else {
|
||||
const name = fcName[0].toUpperCase() + fcName.substring(1);
|
||||
|
||||
2
node_modules/yaml/dist/errors.js
generated
vendored
2
node_modules/yaml/dist/errors.js
generated
vendored
@@ -48,7 +48,7 @@ const prettifyError = (src, lc) => (error) => {
|
||||
if (/[^ ]/.test(lineStr)) {
|
||||
let count = 1;
|
||||
const end = error.linePos[1];
|
||||
if (end && end.line === line && end.col > col) {
|
||||
if (end?.line === line && end.col > col) {
|
||||
count = Math.max(1, Math.min(end.col - col, 80 - ci));
|
||||
}
|
||||
const pointer = ' '.repeat(ci) + '^'.repeat(count);
|
||||
|
||||
2
node_modules/yaml/dist/nodes/Alias.js
generated
vendored
2
node_modules/yaml/dist/nodes/Alias.js
generated
vendored
@@ -61,7 +61,7 @@ class Alias extends Node.NodeBase {
|
||||
data = anchors.get(source);
|
||||
}
|
||||
/* istanbul ignore if */
|
||||
if (!data || data.res === undefined) {
|
||||
if (data?.res === undefined) {
|
||||
const msg = 'This should not happen: Alias anchor was not resolved?';
|
||||
throw new ReferenceError(msg);
|
||||
}
|
||||
|
||||
4
node_modules/yaml/dist/parse/parser.js
generated
vendored
4
node_modules/yaml/dist/parse/parser.js
generated
vendored
@@ -231,7 +231,7 @@ class Parser {
|
||||
}
|
||||
*step() {
|
||||
const top = this.peek(1);
|
||||
if (this.type === 'doc-end' && (!top || top.type !== 'doc-end')) {
|
||||
if (this.type === 'doc-end' && top?.type !== 'doc-end') {
|
||||
while (this.stack.length > 0)
|
||||
yield* this.pop();
|
||||
this.stack.push({
|
||||
@@ -763,7 +763,7 @@ class Parser {
|
||||
do {
|
||||
yield* this.pop();
|
||||
top = this.peek(1);
|
||||
} while (top && top.type === 'flow-collection');
|
||||
} while (top?.type === 'flow-collection');
|
||||
}
|
||||
else if (fc.end.length === 0) {
|
||||
switch (this.type) {
|
||||
|
||||
2
node_modules/yaml/dist/stringify/stringifyNumber.js
generated
vendored
2
node_modules/yaml/dist/stringify/stringifyNumber.js
generated
vendored
@@ -6,7 +6,7 @@ function stringifyNumber({ format, minFractionDigits, tag, value }) {
|
||||
const num = typeof value === 'number' ? value : Number(value);
|
||||
if (!isFinite(num))
|
||||
return isNaN(num) ? '.nan' : num < 0 ? '-.inf' : '.inf';
|
||||
let n = JSON.stringify(value);
|
||||
let n = Object.is(value, -0) ? '-0' : JSON.stringify(value);
|
||||
if (!format &&
|
||||
minFractionDigits &&
|
||||
(!tag || tag === 'tag:yaml.org,2002:float') &&
|
||||
|
||||
2
node_modules/yaml/dist/stringify/stringifyPair.js
generated
vendored
2
node_modules/yaml/dist/stringify/stringifyPair.js
generated
vendored
@@ -103,7 +103,7 @@ function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
|
||||
ws += `\n${stringifyComment.indentComment(cs, ctx.indent)}`;
|
||||
}
|
||||
if (valueStr === '' && !ctx.inFlow) {
|
||||
if (ws === '\n')
|
||||
if (ws === '\n' && valueComment)
|
||||
ws = '\n\n';
|
||||
}
|
||||
else {
|
||||
|
||||
2
node_modules/yaml/dist/stringify/stringifyString.js
generated
vendored
2
node_modules/yaml/dist/stringify/stringifyString.js
generated
vendored
@@ -161,7 +161,7 @@ function blockString({ comment, type, value }, ctx, onComment, onChompKeep) {
|
||||
const { blockQuote, commentString, lineWidth } = ctx.options;
|
||||
// 1. Block can't end in whitespace unless the last line is non-empty.
|
||||
// 2. Strings consisting of only whitespace are best rendered explicitly.
|
||||
if (!blockQuote || /\n[\t ]+$/.test(value) || /^\s*$/.test(value)) {
|
||||
if (!blockQuote || /\n[\t ]+$/.test(value)) {
|
||||
return quotedString(value, ctx);
|
||||
}
|
||||
const indent = ctx.indent ||
|
||||
|
||||
9
node_modules/yaml/package.json
generated
vendored
9
node_modules/yaml/package.json
generated
vendored
@@ -1,8 +1,9 @@
|
||||
{
|
||||
"name": "yaml",
|
||||
"version": "2.8.0",
|
||||
"version": "2.8.2",
|
||||
"license": "ISC",
|
||||
"author": "Eemeli Aro <eemeli@gmail.com>",
|
||||
"funding": "https://github.com/sponsors/eemeli",
|
||||
"repository": "github:eemeli/yaml",
|
||||
"description": "JavaScript parser and stringifier for YAML",
|
||||
"keywords": [
|
||||
@@ -73,16 +74,16 @@
|
||||
"@babel/preset-env": "^7.12.11",
|
||||
"@eslint/js": "^9.9.1",
|
||||
"@rollup/plugin-babel": "^6.0.3",
|
||||
"@rollup/plugin-replace": "^5.0.2",
|
||||
"@rollup/plugin-replace": "^6.0.3",
|
||||
"@rollup/plugin-typescript": "^12.1.1",
|
||||
"@types/jest": "^29.2.4",
|
||||
"@types/node": "^20.11.20",
|
||||
"babel-jest": "^29.0.1",
|
||||
"cross-env": "^7.0.3",
|
||||
"eslint": "^9.9.1",
|
||||
"eslint-config-prettier": "^9.0.0",
|
||||
"eslint-config-prettier": "^10.1.8",
|
||||
"fast-check": "^2.12.0",
|
||||
"jest": "^29.0.1",
|
||||
"jest-resolve": "^29.7.0",
|
||||
"jest-ts-webcompat-resolver": "^1.0.0",
|
||||
"prettier": "^3.0.2",
|
||||
"rollup": "^4.12.0",
|
||||
|
||||
Reference in New Issue
Block a user