=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== node-yaml-1.10.0/src/ast/Alias.js-36- anchor = doc.anchors.getName(source) || doc.anchors.newName() node-yaml-1.10.0/src/ast/Alias.js:37: if (anchor) return `*${anchor}${implicitKey ? ' ' : ''}` node-yaml-1.10.0/src/ast/Alias.js-38- const msg = doc.anchors.getName(source) ############################################## node-yaml-1.10.0/src/ast/Alias.js-40- : 'Source node not found for alias node' node-yaml-1.10.0/src/ast/Alias.js:41: throw new Error(`${msg} [${range}]`) node-yaml-1.10.0/src/ast/Alias.js-42- } ############################################## node-yaml-1.10.0/src/ast/Collection.js-41- throw new Error( node-yaml-1.10.0/src/ast/Collection.js:42: `Expected YAML collection at ${key}. Remaining path: ${rest}` node-yaml-1.10.0/src/ast/Collection.js-43- ) ############################################## node-yaml-1.10.0/src/ast/Collection.js-52- throw new Error( node-yaml-1.10.0/src/ast/Collection.js:53: `Expected YAML collection at ${key}. Remaining path: ${rest}` node-yaml-1.10.0/src/ast/Collection.js-54- ) ############################################## node-yaml-1.10.0/src/ast/Collection.js-97- throw new Error( node-yaml-1.10.0/src/ast/Collection.js:98: `Expected YAML collection at ${key}. Remaining path: ${rest}` node-yaml-1.10.0/src/ast/Collection.js-99- ) ############################################## node-yaml-1.10.0/src/ast/Collection.js-135- item.commentBefore.match(/^.*$/gm).forEach(line => { node-yaml-1.10.0/src/ast/Collection.js:136: nodes.push({ type: 'comment', str: `#${line}` }) node-yaml-1.10.0/src/ast/Collection.js-137- }) ############################################## node-yaml-1.10.0/src/ast/Collection.js-178- for (const s of strings) { node-yaml-1.10.0/src/ast/Collection.js:179: str += s ? `\n${indentStep}${indent}${s}` : '\n' node-yaml-1.10.0/src/ast/Collection.js-180- } node-yaml-1.10.0/src/ast/Collection.js:181: str += `\n${indent}${end}` node-yaml-1.10.0/src/ast/Collection.js-182- } else { node-yaml-1.10.0/src/ast/Collection.js:183: str = `${start} ${strings.join(' ')} ${end}` node-yaml-1.10.0/src/ast/Collection.js-184- } ############################################## node-yaml-1.10.0/src/ast/Collection.js-187- str = strings.shift() node-yaml-1.10.0/src/ast/Collection.js:188: for (const s of strings) str += s ? `\n${indent}${s}` : '\n' node-yaml-1.10.0/src/ast/Collection.js-189- } node-yaml-1.10.0/src/ast/Collection.js-190- if (this.comment) { node-yaml-1.10.0/src/ast/Collection.js:191: str += '\n' + this.comment.replace(/^/gm, `${indent}#`) node-yaml-1.10.0/src/ast/Collection.js-192- if (onComment) onComment() ############################################## node-yaml-1.10.0/src/ast/Pair.js-109- } else if (chompKeep && !keyComment && onChompKeep) onChompKeep() node-yaml-1.10.0/src/ast/Pair.js:110: return ctx.inFlow ? str : `? ${str}` node-yaml-1.10.0/src/ast/Pair.js-111- } node-yaml-1.10.0/src/ast/Pair.js:112: str = explicitKey ? `? ${str}\n${indent}:` : `${str}:` node-yaml-1.10.0/src/ast/Pair.js-113- if (this.comment) { ############################################## node-yaml-1.10.0/src/ast/Pair.js-122- if (value.commentBefore) { node-yaml-1.10.0/src/ast/Pair.js:123: const cs = value.commentBefore.replace(/^/gm, `${ctx.indent}#`) node-yaml-1.10.0/src/ast/Pair.js:124: vcb += `\n${cs}` node-yaml-1.10.0/src/ast/Pair.js-125- } ############################################## node-yaml-1.10.0/src/ast/Pair.js-154- if (vcb || this.comment) { node-yaml-1.10.0/src/ast/Pair.js:155: ws = `${vcb}\n${ctx.indent}` node-yaml-1.10.0/src/ast/Pair.js-156- } else if (!explicitKey && value instanceof Collection) { node-yaml-1.10.0/src/ast/Pair.js-157- const flow = valueStr[0] === '[' || valueStr[0] === '{' node-yaml-1.10.0/src/ast/Pair.js:158: if (!flow || valueStr.includes('\n')) ws = `\n${ctx.indent}` node-yaml-1.10.0/src/ast/Pair.js-159- } ############################################## node-yaml-1.10.0/src/ast/YAMLMap.js-24- if (overwrite) prev.value = pair.value node-yaml-1.10.0/src/ast/YAMLMap.js:25: else throw new Error(`Key ${pair.key} already set`) node-yaml-1.10.0/src/ast/YAMLMap.js-26- } else if (sortEntries) { ############################################## node-yaml-1.10.0/src/ast/YAMLMap.js-73- throw new Error( node-yaml-1.10.0/src/ast/YAMLMap.js:74: `Map items must all be pairs; found ${JSON.stringify(item)} instead` node-yaml-1.10.0/src/ast/YAMLMap.js-75- ) ############################################## node-yaml-1.10.0/src/ast/YAMLSeq.js-37- if (typeof idx !== 'number') node-yaml-1.10.0/src/ast/YAMLSeq.js:38: throw new Error(`Expected a valid index, not ${key}.`) node-yaml-1.10.0/src/ast/YAMLSeq.js-39- this.items[idx] = value ############################################## node-yaml-1.10.0/src/ast/YAMLSeq.js-54- { node-yaml-1.10.0/src/ast/YAMLSeq.js:55: blockItem: n => (n.type === 'comment' ? n.str : `- ${n.str}`), node-yaml-1.10.0/src/ast/YAMLSeq.js-56- flowChars: { start: '[', end: ']' }, ############################################## node-yaml-1.10.0/src/cst/BlockValue.js-149- const src = explicit ? 'explicit indentation indicator' : 'first line' node-yaml-1.10.0/src/cst/BlockValue.js:150: const msg = `Block scalars must not be less indented than their ${src}` node-yaml-1.10.0/src/cst/BlockValue.js-151- this.error = new YAMLSemanticError(this, msg) ############################################## node-yaml-1.10.0/src/cst/ParseContext.js-186- { node-yaml-1.10.0/src/cst/ParseContext.js:187: start: `${context.lineStart} + ${context.indent}`, node-yaml-1.10.0/src/cst/ParseContext.js-188- atLineStart: context.atLineStart, ############################################## node-yaml-1.10.0/src/cst/PlainValue.js-67- case '`': { node-yaml-1.10.0/src/cst/PlainValue.js:68: const msg = `Plain value cannot start with reserved character ${ch0}` node-yaml-1.10.0/src/cst/PlainValue.js-69- const errors = [new YAMLSemanticError(this, msg)] ############################################## node-yaml-1.10.0/src/cst/QuoteDouble.js-124- this, node-yaml-1.10.0/src/cst/QuoteDouble.js:125: `Invalid escape sequence ${src.substr(i - 1, 2)}` node-yaml-1.10.0/src/cst/QuoteDouble.js-126- ) ############################################## node-yaml-1.10.0/src/cst/QuoteDouble.js-154- this, node-yaml-1.10.0/src/cst/QuoteDouble.js:155: `Invalid escape sequence ${src.substr(offset - 2, length + 2)}` node-yaml-1.10.0/src/cst/QuoteDouble.js-156- ) ############################################## node-yaml-1.10.0/src/cst/source-utils.js-130- const err = '^'.repeat(errLen) node-yaml-1.10.0/src/cst/source-utils.js:131: return `${src}\n${offset}${err}${errEnd}` node-yaml-1.10.0/src/cst/source-utils.js-132-} ############################################## node-yaml-1.10.0/src/doc/Anchors.js-52- for (let i = 1; true; ++i) { node-yaml-1.10.0/src/doc/Anchors.js:53: const name = `${prefix}${i}` node-yaml-1.10.0/src/doc/Anchors.js-54- if (!names.includes(name)) return name ############################################## node-yaml-1.10.0/src/doc/Document.js-203- const s = JSON.stringify(indentSize) node-yaml-1.10.0/src/doc/Document.js:204: throw new Error(`"indent" option must be a positive integer, not ${s}`) node-yaml-1.10.0/src/doc/Document.js-205- } ############################################## node-yaml-1.10.0/src/doc/Document.js-220- if (tagNames.some(t => t.indexOf(prefix) === 0)) { node-yaml-1.10.0/src/doc/Document.js:221: lines.push(`%TAG ${handle} ${prefix}`) node-yaml-1.10.0/src/doc/Document.js-222- hasDirectives = true ############################################## node-yaml-1.10.0/src/doc/createNode.js-10- const tagObj = match.find(t => !t.format) || match[0] node-yaml-1.10.0/src/doc/createNode.js:11: if (!tagObj) throw new Error(`Tag ${tagName} not found`) node-yaml-1.10.0/src/doc/createNode.js-12- return tagObj ############################################## node-yaml-1.10.0/src/doc/getSchemaTags.js-6- .join(', ') node-yaml-1.10.0/src/doc/getSchemaTags.js:7: throw new Error(`Unknown schema "${schemaId}"; use one of ${keys}`) node-yaml-1.10.0/src/doc/getSchemaTags.js-8- } ############################################## node-yaml-1.10.0/src/doc/getSchemaTags.js-23- .join(', ') node-yaml-1.10.0/src/doc/getSchemaTags.js:24: throw new Error(`Unknown custom tag "${tag}"; use one of ${keys}`) node-yaml-1.10.0/src/doc/getSchemaTags.js-25- } ############################################## node-yaml-1.10.0/src/doc/parseContents.js-49- cbNode.commentBefore = cbNode.commentBefore node-yaml-1.10.0/src/doc/parseContents.js:50: ? `${cb}\n${cbNode.commentBefore}` node-yaml-1.10.0/src/doc/parseContents.js-51- : cb ############################################## node-yaml-1.10.0/src/doc/parseDirectives.js-26- const v0 = doc.version || doc.options.version node-yaml-1.10.0/src/doc/parseDirectives.js:27: const msg = `Document will be parsed as YAML ${v0} rather than YAML ${version}` node-yaml-1.10.0/src/doc/parseDirectives.js-28- doc.warnings.push(new YAMLWarning(directive, msg)) ############################################## node-yaml-1.10.0/src/doc/parseDirectives.js-62- if (name) { node-yaml-1.10.0/src/doc/parseDirectives.js:63: const msg = `YAML only supports %TAG and %YAML directives, and not %${name}` node-yaml-1.10.0/src/doc/parseDirectives.js-64- doc.warnings.push(new YAMLWarning(directive, msg)) ############################################## node-yaml-1.10.0/src/errors.js-7- if (!message || !(source instanceof Node)) node-yaml-1.10.0/src/errors.js:8: throw new Error(`Invalid arguments for new ${name}`) node-yaml-1.10.0/src/errors.js-9- super() ############################################## node-yaml-1.10.0/src/errors.js-32- const { line, col } = this.linePos.start node-yaml-1.10.0/src/errors.js:33: this.message += ` at line ${line}, column ${col}` node-yaml-1.10.0/src/errors.js-34- const ctx = cst && getPrettyContext(this.linePos, cst) node-yaml-1.10.0/src/errors.js:35: if (ctx) this.message += `:\n\n${ctx}\n` node-yaml-1.10.0/src/errors.js-36- } ############################################## node-yaml-1.10.0/src/resolve/collection-utils.js-29- if (lastItem && lastItem.char !== char) { node-yaml-1.10.0/src/resolve/collection-utils.js:30: const msg = `Expected ${name} to end with ${char}` node-yaml-1.10.0/src/resolve/collection-utils.js-31- let err ############################################## node-yaml-1.10.0/src/resolve/collection-utils.js-54- const k = sk.substr(0, 8) + '...' + sk.substr(-8) node-yaml-1.10.0/src/resolve/collection-utils.js:55: return new YAMLSemanticError(source, `The "${k}" key is too long`) node-yaml-1.10.0/src/resolve/collection-utils.js-56-} ############################################## node-yaml-1.10.0/src/resolve/resolveMap.js-19- if (cst.type !== Type.MAP && cst.type !== Type.FLOW_MAP) { node-yaml-1.10.0/src/resolve/resolveMap.js:20: const msg = `A ${cst.type} node cannot be resolved as a mapping` node-yaml-1.10.0/src/resolve/resolveMap.js-21- doc.errors.push(new YAMLSyntaxError(cst, msg)) ############################################## node-yaml-1.10.0/src/resolve/resolveMap.js-59- ) { node-yaml-1.10.0/src/resolve/resolveMap.js:60: const msg = `Map keys must be unique; "${iKey}" is repeated` node-yaml-1.10.0/src/resolve/resolveMap.js-61- doc.errors.push(new YAMLSemanticError(cst, msg)) ############################################## node-yaml-1.10.0/src/resolve/resolveMap.js-237- } node-yaml-1.10.0/src/resolve/resolveMap.js:238: const msg = `Flow map contains an unexpected ${char}` node-yaml-1.10.0/src/resolve/resolveMap.js-239- const err = new YAMLSyntaxError(cst, msg) ############################################## node-yaml-1.10.0/src/resolve/resolveNode.js-74- if (!src) { node-yaml-1.10.0/src/resolve/resolveNode.js:75: const msg = `Aliased anchor not found: ${name}` node-yaml-1.10.0/src/resolve/resolveNode.js-76- errors.push(new YAMLReferenceError(node, msg)) ############################################## node-yaml-1.10.0/src/resolve/resolveNode.js-89- if (node.type !== Type.PLAIN) { node-yaml-1.10.0/src/resolve/resolveNode.js:90: const msg = `Failed to resolve ${node.type} node here` node-yaml-1.10.0/src/resolve/resolveNode.js-91- errors.push(new YAMLSyntaxError(node, msg)) ############################################## node-yaml-1.10.0/src/resolve/resolveNode.js-134- if (cb) { node-yaml-1.10.0/src/resolve/resolveNode.js:135: res.commentBefore = res.commentBefore ? `${res.commentBefore}\n${cb}` : cb node-yaml-1.10.0/src/resolve/resolveNode.js-136- } node-yaml-1.10.0/src/resolve/resolveNode.js-137- const ca = comments.after.join('\n') node-yaml-1.10.0/src/resolve/resolveNode.js:138: if (ca) res.comment = res.comment ? `${res.comment}\n${ca}` : ca node-yaml-1.10.0/src/resolve/resolveNode.js-139- } ############################################## node-yaml-1.10.0/src/resolve/resolveSeq.js-16- if (cst.type !== Type.SEQ && cst.type !== Type.FLOW_SEQ) { node-yaml-1.10.0/src/resolve/resolveSeq.js:17: const msg = `A ${cst.type} node cannot be resolved as a sequence` node-yaml-1.10.0/src/resolve/resolveSeq.js-18- doc.errors.push(new YAMLSyntaxError(cst, msg)) ############################################## node-yaml-1.10.0/src/resolve/resolveSeq.js-63- doc.errors.push( node-yaml-1.10.0/src/resolve/resolveSeq.js:64: new YAMLSyntaxError(item, `Unexpected ${item.type} node in sequence`) node-yaml-1.10.0/src/resolve/resolveSeq.js-65- ) ############################################## node-yaml-1.10.0/src/resolve/resolveSeq.js-122- } else if (next === '[' || char !== ']' || i < cst.items.length - 1) { node-yaml-1.10.0/src/resolve/resolveSeq.js:123: const msg = `Flow sequence contains an unexpected ${char}` node-yaml-1.10.0/src/resolve/resolveSeq.js-124- const err = new YAMLSyntaxError(cst, msg) ############################################## node-yaml-1.10.0/src/resolve/resolveSeq.js-134- if (next) { node-yaml-1.10.0/src/resolve/resolveSeq.js:135: const msg = `Expected a ${next} in flow sequence` node-yaml-1.10.0/src/resolve/resolveSeq.js-136- doc.errors.push(new YAMLSemanticError(item, msg)) ############################################## node-yaml-1.10.0/src/resolve/resolveTag.js-56- const fallback = getFallbackTagName(node) node-yaml-1.10.0/src/resolve/resolveTag.js:57: if (!fallback) throw new Error(`The tag ${tagName} is unavailable`) node-yaml-1.10.0/src/resolve/resolveTag.js:58: const msg = `The tag ${tagName} is unavailable, falling back to ${fallback}` node-yaml-1.10.0/src/resolve/resolveTag.js-59- doc.warnings.push(new YAMLWarning(node, msg)) ############################################## node-yaml-1.10.0/src/resolve/resolveTagName.js-12- node, node-yaml-1.10.0/src/resolve/resolveTagName.js:13: `The ${handle} tag handle is non-default and was not declared.` node-yaml-1.10.0/src/resolve/resolveTagName.js-14- ) ############################################## node-yaml-1.10.0/src/resolve/resolveTagName.js-16- if (!suffix) node-yaml-1.10.0/src/resolve/resolveTagName.js:17: throw new YAMLSemanticError(node, `The ${handle} tag has no suffix.`) node-yaml-1.10.0/src/resolve/resolveTagName.js-18- ############################################## node-yaml-1.10.0/src/resolve/resolveTagName.js-29- return vocab node-yaml-1.10.0/src/resolve/resolveTagName.js:30: ? `tag:${vocab[1]}.yaml.org,2002:${vocab[2]}` node-yaml-1.10.0/src/resolve/resolveTagName.js:31: : `tag:${suffix}` node-yaml-1.10.0/src/resolve/resolveTagName.js-32- } ############################################## node-yaml-1.10.0/src/resolve/resolveTagName.js-44- if (verbatim !== '!' && verbatim !== '!!') return verbatim node-yaml-1.10.0/src/resolve/resolveTagName.js:45: const msg = `Verbatim tags aren't resolved, so ${verbatim} is invalid.` node-yaml-1.10.0/src/resolve/resolveTagName.js-46- doc.errors.push(new YAMLSemanticError(node, msg)) ############################################## node-yaml-1.10.0/src/stringify/addComment.js-2- if (!comment) return str node-yaml-1.10.0/src/stringify/addComment.js:3: const cc = comment.replace(/[\s\S]^/gm, `$&${indent}#`) node-yaml-1.10.0/src/stringify/addComment.js:4: return `#${cc}\n${indent}${str}` node-yaml-1.10.0/src/stringify/addComment.js-5-} ############################################## node-yaml-1.10.0/src/stringify/addComment.js-10- : comment.indexOf('\n') === -1 node-yaml-1.10.0/src/stringify/addComment.js:11: ? `${str} #${comment}` node-yaml-1.10.0/src/stringify/addComment.js:12: : `${str}\n` + comment.replace(/^/gm, `${indent || ''}#`) node-yaml-1.10.0/src/stringify/addComment.js-13-} ############################################## node-yaml-1.10.0/src/stringify/foldFlowLines.js-122- const end = folds[i + 1] || text.length node-yaml-1.10.0/src/stringify/foldFlowLines.js:123: if (mode === FOLD_QUOTED && escapedFolds[fold]) res += `${text[fold]}\\` node-yaml-1.10.0/src/stringify/foldFlowLines.js:124: res += `\n${indent}${text.slice(fold + 1, end)}` node-yaml-1.10.0/src/stringify/foldFlowLines.js-125- } ############################################## node-yaml-1.10.0/src/stringify/stringify.js-32- const name = obj && obj.constructor ? obj.constructor.name : typeof obj node-yaml-1.10.0/src/stringify/stringify.js:33: throw new Error(`Tag not resolved for ${name} value`) node-yaml-1.10.0/src/stringify/stringify.js-34- } ############################################## node-yaml-1.10.0/src/stringify/stringify.js-43- anchors[anchor] = node node-yaml-1.10.0/src/stringify/stringify.js:44: props.push(`&${anchor}`) node-yaml-1.10.0/src/stringify/stringify.js-45- } ############################################## node-yaml-1.10.0/src/stringify/stringify.js-89- return item instanceof Scalar || str[0] === '{' || str[0] === '[' node-yaml-1.10.0/src/stringify/stringify.js:90: ? `${props} ${str}` node-yaml-1.10.0/src/stringify/stringify.js:91: : `${props}\n${ctx.indent}${str}` node-yaml-1.10.0/src/stringify/stringify.js-92-} ############################################## node-yaml-1.10.0/src/stringify/stringifyString.js-132- const res = node-yaml-1.10.0/src/stringify/stringifyString.js:133: "'" + value.replace(/'/g, "''").replace(/\n+/g, `$&\n${indent}`) + "'" node-yaml-1.10.0/src/stringify/stringifyString.js-134- return ctx.implicitKey ############################################## node-yaml-1.10.0/src/stringify/stringifyString.js-181- }) node-yaml-1.10.0/src/stringify/stringifyString.js:182: if (wsEnd) wsEnd = wsEnd.replace(/\n+(?!\n|$)/g, `$&${indent}`) node-yaml-1.10.0/src/stringify/stringifyString.js:183: if (wsStart) wsStart = wsStart.replace(/\n+/g, `$&${indent}`) node-yaml-1.10.0/src/stringify/stringifyString.js-184- if (comment) { ############################################## node-yaml-1.10.0/src/stringify/stringifyString.js-187- } node-yaml-1.10.0/src/stringify/stringifyString.js:188: if (!value) return `${header}${indentSize}\n${indent}${wsEnd}` node-yaml-1.10.0/src/stringify/stringifyString.js-189- if (literal) { node-yaml-1.10.0/src/stringify/stringifyString.js:190: value = value.replace(/\n+/g, `$&${indent}`) node-yaml-1.10.0/src/stringify/stringifyString.js:191: return `${header}\n${indent}${wsStart}${value}${wsEnd}` node-yaml-1.10.0/src/stringify/stringifyString.js-192- } ############################################## node-yaml-1.10.0/src/stringify/stringifyString.js-196- // ^ ind.line ^ empty ^ capture next empty lines only at end of indent node-yaml-1.10.0/src/stringify/stringifyString.js:197: .replace(/\n+/g, `$&${indent}`) node-yaml-1.10.0/src/stringify/stringifyString.js-198- const body = foldFlowLines( node-yaml-1.10.0/src/stringify/stringifyString.js:199: `${wsStart}${value}${wsEnd}`, node-yaml-1.10.0/src/stringify/stringifyString.js-200- indent, ############################################## node-yaml-1.10.0/src/stringify/stringifyString.js-203- ) node-yaml-1.10.0/src/stringify/stringifyString.js:204: return `${header}\n${indent}${body}` node-yaml-1.10.0/src/stringify/stringifyString.js-205-} ############################################## node-yaml-1.10.0/src/stringify/stringifyString.js-246- } node-yaml-1.10.0/src/stringify/stringifyString.js:247: const str = value.replace(/\n+/g, `$&\n${indent}`) node-yaml-1.10.0/src/stringify/stringifyString.js-248- // Verify that output will be parsed as a string, as e.g. plain numbers and ############################################## node-yaml-1.10.0/src/stringify/stringifyString.js-309- if (res === null) node-yaml-1.10.0/src/stringify/stringifyString.js:310: throw new Error(`Unsupported default string type ${defaultType}`) node-yaml-1.10.0/src/stringify/stringifyString.js-311- } ############################################## node-yaml-1.10.0/src/stringify/stringifyTag.js-5- const vocab = tag.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/) node-yaml-1.10.0/src/stringify/stringifyTag.js:6: return vocab ? `!${vocab[1]}/${vocab[2]}` : `!${tag.replace(/^tag:/, '')}` node-yaml-1.10.0/src/stringify/stringifyTag.js-7- } ############################################## node-yaml-1.10.0/src/stringify/stringifyTag.js-13- } node-yaml-1.10.0/src/stringify/stringifyTag.js:14: if (!p) return tag[0] === '!' ? tag : `!<${tag}>` node-yaml-1.10.0/src/stringify/stringifyTag.js-15- const suffix = tag.substr(p.prefix.length).replace( ############################################## node-yaml-1.10.0/src/tags/json.js-61-json.scalarFallback = str => { node-yaml-1.10.0/src/tags/json.js:62: throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(str)}`) node-yaml-1.10.0/src/tags/json.js-63-} ############################################## node-yaml-1.10.0/src/tags/yaml-1.1/index.js-23- case 2: node-yaml-1.10.0/src/tags/yaml-1.1/index.js:24: str = `0b${str}` node-yaml-1.10.0/src/tags/yaml-1.1/index.js-25- break node-yaml-1.10.0/src/tags/yaml-1.1/index.js-26- case 8: node-yaml-1.10.0/src/tags/yaml-1.1/index.js:27: str = `0o${str}` node-yaml-1.10.0/src/tags/yaml-1.1/index.js-28- break node-yaml-1.10.0/src/tags/yaml-1.1/index.js-29- case 16: node-yaml-1.10.0/src/tags/yaml-1.1/index.js:30: str = `0x${str}` node-yaml-1.10.0/src/tags/yaml-1.1/index.js-31- break ############################################## node-yaml-1.10.0/src/tags/yaml-1.1/pairs.js-19- pair.commentBefore = pair.commentBefore node-yaml-1.10.0/src/tags/yaml-1.1/pairs.js:20: ? `${item.commentBefore}\n${pair.commentBefore}` node-yaml-1.10.0/src/tags/yaml-1.1/pairs.js-21- : item.commentBefore ############################################## node-yaml-1.10.0/src/tags/yaml-1.1/pairs.js-23- pair.comment = pair.comment node-yaml-1.10.0/src/tags/yaml-1.1/pairs.js:24: ? `${item.comment}\n${pair.comment}` node-yaml-1.10.0/src/tags/yaml-1.1/pairs.js-25- : item.comment ############################################## node-yaml-1.10.0/src/tags/yaml-1.1/pairs.js-41- value = it[1] node-yaml-1.10.0/src/tags/yaml-1.1/pairs.js:42: } else throw new TypeError(`Expected [key, value] tuple: ${it}`) node-yaml-1.10.0/src/tags/yaml-1.1/pairs.js-43- } else if (it && it instanceof Object) { ############################################## node-yaml-1.10.0/src/tags/yaml-1.1/pairs.js-47- value = it[key] node-yaml-1.10.0/src/tags/yaml-1.1/pairs.js:48: } else throw new TypeError(`Expected { key: value } tuple: ${it}`) node-yaml-1.10.0/src/tags/yaml-1.1/pairs.js-49- } else { ############################################## node-yaml-1.10.0/src/tags/yaml-1.1/set.js-32- throw new Error( node-yaml-1.10.0/src/tags/yaml-1.1/set.js:33: `Expected boolean value for set(key, value) in a YAML set, not ${typeof value}` node-yaml-1.10.0/src/tags/yaml-1.1/set.js-34- ) ############################################## node-yaml-1.10.0/src/test-events.js-58- } node-yaml-1.10.0/src/test-events.js:59: props = ` &${anchor}` node-yaml-1.10.0/src/test-events.js-60- } ############################################## node-yaml-1.10.0/src/test-events.js-62- const { handle, suffix } = node.cstNode.tag node-yaml-1.10.0/src/test-events.js:63: props += handle === '!' && !suffix ? ' <!>' : ` <${node.tag}>` node-yaml-1.10.0/src/test-events.js-64- } ############################################## node-yaml-1.10.0/src/test-events.js-73- } node-yaml-1.10.0/src/test-events.js:74: events.push(`=ALI${props} *${alias}`) node-yaml-1.10.0/src/test-events.js-75- } ############################################## node-yaml-1.10.0/src/test-events.js-92- case 'PAIR': node-yaml-1.10.0/src/test-events.js:93: events.push(`+MAP${props}`) node-yaml-1.10.0/src/test-events.js-94- addEvents(events, doc, e, node.key) ############################################## node-yaml-1.10.0/src/test-events.js-99- case 'SEQ': node-yaml-1.10.0/src/test-events.js:100: events.push(`+SEQ${props}`) node-yaml-1.10.0/src/test-events.js-101- node.items.forEach(item => { ############################################## node-yaml-1.10.0/src/test-events.js-107- case 'MAP': node-yaml-1.10.0/src/test-events.js:108: events.push(`+MAP${props}`) node-yaml-1.10.0/src/test-events.js-109- node.items.forEach(({ key, value }) => { ############################################## node-yaml-1.10.0/src/test-events.js-115- default: node-yaml-1.10.0/src/test-events.js:116: throw new Error(`Unexpected node type ${node.type}`) node-yaml-1.10.0/src/test-events.js-117- } ############################################## node-yaml-1.10.0/src/test-events.js-129- .replace(/\x1b/g, '\\e') node-yaml-1.10.0/src/test-events.js:130: events.push(`=VAL${props} ${scalar}${value}`) node-yaml-1.10.0/src/test-events.js-131- } ############################################## node-yaml-1.10.0/src/warnings.js-24- // eslint-disable-next-line no-console node-yaml-1.10.0/src/warnings.js:25: console.warn(type ? `${type}: ${warning}` : warning) node-yaml-1.10.0/src/warnings.js-26- } ############################################## node-yaml-1.10.0/src/warnings.js-36- warn( node-yaml-1.10.0/src/warnings.js:37: `The endpoint 'yaml/${path}' will be removed in a future release.`, node-yaml-1.10.0/src/warnings.js-38- 'DeprecationWarning' ############################################## node-yaml-1.10.0/src/warnings.js-46- warned[name] = true node-yaml-1.10.0/src/warnings.js:47: let msg = `The option '${name}' will be removed in a future release` node-yaml-1.10.0/src/warnings.js:48: msg += alternative ? `, use '${alternative}' instead.` : '.' node-yaml-1.10.0/src/warnings.js-49- warn(msg, 'DeprecationWarning') ############################################## node-yaml-1.10.0/tests/cst/YAML-1.2.spec.js-3515- '2EBW: Allowed characters in keys': { node-yaml-1.10.0/tests/cst/YAML-1.2.spec.js:3516: src: `a!"#$%&'()*+,-./09:;<=>?@AZ[\\]^_\`az{|}~: safe node-yaml-1.10.0/tests/cst/YAML-1.2.spec.js-3517-?foo: safe question mark ############################################## node-yaml-1.10.0/tests/cst/set-value.js-51- seq.items.push(item) node-yaml-1.10.0/tests/cst/set-value.js:52: expect(String(cst)).toBe(`${src} ${item.value}`) node-yaml-1.10.0/tests/cst/set-value.js-53-}) ############################################## node-yaml-1.10.0/tests/doc/YAML-1.1.spec.js-35- const warn = tag => ({ node-yaml-1.10.0/tests/doc/YAML-1.1.spec.js:36: message: `The tag ${tag} is unavailable, falling back to tag:yaml.org,2002:str` node-yaml-1.10.0/tests/doc/YAML-1.1.spec.js-37- }) ############################################## node-yaml-1.10.0/tests/doc/errors.js-258- for (const tag of ['%TAG', '%YAML']) node-yaml-1.10.0/tests/doc/errors.js:259: test(`incomplete ${tag} directive`, () => { node-yaml-1.10.0/tests/doc/errors.js:260: const doc = YAML.parseDocument(`${tag}\n---\n`) node-yaml-1.10.0/tests/doc/errors.js-261- expect(doc.errors).toMatchObject([ ############################################## node-yaml-1.10.0/tests/doc/errors.js-352- for (const file of files) node-yaml-1.10.0/tests/doc/errors.js:353: fileTest(`file: ${file}`, () => { node-yaml-1.10.0/tests/doc/errors.js-354- const fp = path.resolve(root, file) ############################################## node-yaml-1.10.0/tests/doc/foldFlowLines.js-48- expect(fold(src, indent, FOLD_FLOW, options)).toBe( node-yaml-1.10.0/tests/doc/foldFlowLines.js:49: `abc def${i}ghi${i}jkl${i}mno${i}pqr${i}stu${i}vwx${i}yz\n` node-yaml-1.10.0/tests/doc/foldFlowLines.js-50- ) ############################################## node-yaml-1.10.0/tests/doc/foldFlowLines.js-58- expect(fold(src, indent, FOLD_FLOW, options)).toBe( node-yaml-1.10.0/tests/doc/foldFlowLines.js:59: `abc def${i}ghi jkl${i}mno pqr${i}stu vwx${i}yz\n` node-yaml-1.10.0/tests/doc/foldFlowLines.js-60- ) ############################################## node-yaml-1.10.0/tests/doc/parse.js-376-test('eemeli/yaml#36', () => { node-yaml-1.10.0/tests/doc/parse.js:377: expect(() => YAML.parse(`{ x: ${'x'.repeat(1024)} }`)).not.toThrowError() node-yaml-1.10.0/tests/doc/parse.js-378-}) ############################################## node-yaml-1.10.0/tests/doc/parse.js-540- test(`depth 1: maxAliasCount 1 fails on first alias`, () => { node-yaml-1.10.0/tests/doc/parse.js:541: const src = `${rows[0]}\nb: *a` node-yaml-1.10.0/tests/doc/parse.js-542- expect(() => YAML.parse(src, { maxAliasCount: 1 })).toThrow() ############################################## node-yaml-1.10.0/tests/doc/parse.js-548- node-yaml-1.10.0/tests/doc/parse.js:549: test(`depth ${i + 1}: maxAliasCount ${limits[i] - 1} fails`, () => { node-yaml-1.10.0/tests/doc/parse.js-550- expect(() => ############################################## node-yaml-1.10.0/tests/doc/parse.js-554- node-yaml-1.10.0/tests/doc/parse.js:555: test(`depth ${i + 1}: maxAliasCount ${limits[i]} passes`, () => { node-yaml-1.10.0/tests/doc/parse.js-556- expect(() => ############################################## node-yaml-1.10.0/tests/doc/stringify.js-204- const res = YAML.stringify(str, { version: '1.1' }) node-yaml-1.10.0/tests/doc/stringify.js:205: expect(res).toBe(`"${str}"\n`) node-yaml-1.10.0/tests/doc/stringify.js-206- expect(YAML.parse(res, { version: '1.1' })).toBe(str) ############################################## node-yaml-1.10.0/tests/yaml-test-suite.js-69- node-yaml-1.10.0/tests/yaml-test-suite.js:70: describe(`${dir}: ${name}`, () => { node-yaml-1.10.0/tests/yaml-test-suite.js-71- const docs = YAML.parseAllDocuments(yaml) ############################################## node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/src/index.js-137- function defaultLog (message: Message, metadata: Metadata): Node { node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/src/index.js:138: let prefix: string = `${metadata.context}:`; node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/src/index.js-139- if (metadata.indent) { ############################################## node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/src/index.js-195- } node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/src/index.js:196: parts.unshift(item.node.id ? item.node.id.name : `[anonymous class@${item.node.loc.start.line}]`); node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/src/index.js-197- } ############################################## node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/src/index.js-201- } node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/src/index.js:202: parts.unshift((item.node.id && item.node.id.name) || `[anonymous@${item.node.loc.start.line}]`); node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/src/index.js-203- } ############################################## node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/src/index.js-236- node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/src/index.js:237: const context: string = `${prefix}:${parentName}`; node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/src/index.js-238- return {indent, prefix, parentName, context, hasStartMessage, isStartMessage, filename, dirname, basename, extname}; ############################################## node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/test/index.js-26-function loadInternal (basename) { node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/test/index.js:27: const filename = `${__dirname}/fixtures/${basename}.js`; node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/test/index.js-28- const source = fs.readFileSync(filename, 'utf8'); ############################################## node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/test/index.js-37- aliases2: { node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/test/index.js:38: trace: 'console.log(indent ? (new Array(indent + 1)).join(" ") : `${basename}#${parentName}`, message)', node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/test/index.js-39- warn: 'console.warn(parentName, message)' ############################################## node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/test/index.js-49- if (process.env.TRACE_SAVE_TRANSFORMED) { node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/test/index.js:50: fs.writeFileSync(`${__dirname}/fixtures/${basename}.js.transformed`, transformed.code, 'utf8'); node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/test/index.js-51- } ############################################## node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/test/index.js-70-function ok (basename, ...args) { node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/test/index.js:71: it(`should load '${basename}'`, async function () { node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/test/index.js-72- const result = load(basename)(...args); ############################################## node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/test/index.js-79-function fail (basename, ...args) { node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/test/index.js:80: it(`should not load '${basename}'`, async function () { node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/test/index.js-81- let failed = false; ############################################## node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/test/index.js-91- if (!failed) { node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/test/index.js:92: throw new Error(`Test '${basename}' should have failed but did not.`); node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/test/index.js-93- } ############################################## node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/test/index.js-97-function failWith (errorMessage, basename, ...args) { node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/test/index.js:98: it(`should not load '${basename}'`, async function () { node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/test/index.js-99- let failed = false; ############################################## node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/test/index.js-111- if (!failed) { node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/test/index.js:112: throw new Error(`Test '${basename}' should have failed but did not.`); node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/test/index.js-113- } ############################################## node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/test/index.js-115- if (message.replace(/\s+/g, ' ') !== errorMessage.replace(/\s+/g, ' ')) { node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/test/index.js:116: throw new Error(`Test '${basename}' failed with ${message} instead of ${errorMessage}.`); node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/test/index.js-117- } ############################################## node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/test/index.js-122-function failStatic (basename, ...args) { node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/test/index.js:123: it(`should refuse to load '${basename}'`, function () { node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/test/index.js-124- let failed = false; ############################################## node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/test/index.js-137- if (!failed) { node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/test/index.js:138: throw new Error(`Test '${basename}' should have failed static verification but did not.`); node-yaml-1.10.0/debian/tests/test_modules/babel-plugin-trace/test/index.js-139- } ############################################## node-yaml-1.10.0/debian/tests/test_modules/common-tags/readme.md-179- node-yaml-1.10.0/debian/tests/test_modules/common-tags/readme.md:180:You'll often find that you might want to include an array in a template. Typically, doing something like `${array.join(', ')}` would work - but what if you're printing a list of items in an HTML template and want to maintain the indentation? You'd have to count the spaces manually and include them in the `.join()` call - which is a bit *ugly* for my taste. This tag properly indents arrays, as well as newline characters in string substitutions, by converting them to an array split by newline and re-using the same array inclusion logic: node-yaml-1.10.0/debian/tests/test_modules/common-tags/readme.md-181- ############################################## node-yaml-1.10.0/debian/tests/test_modules/common-tags/readme.md-187- <ul> node-yaml-1.10.0/debian/tests/test_modules/common-tags/readme.md:188: ${fruits.map(fruit => `<li>${fruit}</li>`)} node-yaml-1.10.0/debian/tests/test_modules/common-tags/readme.md-189- ${'<li>kiwi</li>\n<li>guava</li>'} ############################################## node-yaml-1.10.0/debian/tests/test_modules/common-tags/readme.md-218- <ul> node-yaml-1.10.0/debian/tests/test_modules/common-tags/readme.md:219: ${userMessages.map(message => safeHtml`<li>${message}</li>`)} node-yaml-1.10.0/debian/tests/test_modules/common-tags/readme.md-220- </ul> ############################################## node-yaml-1.10.0/debian/tests/test_modules/common-tags/readme.md-532- node-yaml-1.10.0/debian/tests/test_modules/common-tags/readme.md:533:replaceFizzWithBuzz`foo bar ${"fizz"}` node-yaml-1.10.0/debian/tests/test_modules/common-tags/readme.md-534-// "foo bar buzz" ############################################## node-yaml-1.10.0/debian/tests/test_modules/common-tags/readme.md-549- node-yaml-1.10.0/debian/tests/test_modules/common-tags/readme.md:550:replace`${"foo"} ${"fizz"}` node-yaml-1.10.0/debian/tests/test_modules/common-tags/readme.md-551-// "bar buzz" ############################################## node-yaml-1.10.0/debian/tests/test_modules/common-tags/readme.md-631- node-yaml-1.10.0/debian/tests/test_modules/common-tags/readme.md:632:Replaces the result of all substitutions (results of calling `${ ... }`) with a new value. Same as for `replaceResultTransformer`, `replaceWhat` can be a string or regular expression and `replaceWith` is the new value. node-yaml-1.10.0/debian/tests/test_modules/common-tags/readme.md-633- ############################################## node-yaml-1.10.0/debian/tests/test_modules/common-tags/readme.md-635- node-yaml-1.10.0/debian/tests/test_modules/common-tags/readme.md:636:Replaces the result of all strings (what's not in `${ ... }`) with a new value. Same as for `replaceResultTransformer`, `replaceWhat` can be a string or regular expression and `replaceWith` is the new value. node-yaml-1.10.0/debian/tests/test_modules/common-tags/readme.md-637- ############################################## node-yaml-1.10.0/debian/tests/test_modules/fast-check/lib/ts3.2/check/arbitrary/definition/Arbitrary.d.ts-58- * const rgbChannels: Arbitrary<{r:number,g:number,b:number}> = ...; node-yaml-1.10.0/debian/tests/test_modules/fast-check/lib/ts3.2/check/arbitrary/definition/Arbitrary.d.ts:59: * const color: Arbitrary<string> = rgbChannels.map(ch => `#${(ch.r*65536 + ch.g*256 + ch.b).toString(16).padStart(6, '0')}`); node-yaml-1.10.0/debian/tests/test_modules/fast-check/lib/ts3.2/check/arbitrary/definition/Arbitrary.d.ts-60- * // transform an Arbitrary producing {r,g,b} integers into an Arbitrary of '#rrggbb' ############################################## node-yaml-1.10.0/debian/tests/test_modules/fast-check/lib/types/check/arbitrary/definition/Arbitrary.d.ts-58- * const rgbChannels: Arbitrary<{r:number,g:number,b:number}> = ...; node-yaml-1.10.0/debian/tests/test_modules/fast-check/lib/types/check/arbitrary/definition/Arbitrary.d.ts:59: * const color: Arbitrary<string> = rgbChannels.map(ch => `#${(ch.r*65536 + ch.g*256 + ch.b).toString(16).padStart(6, '0')}`); node-yaml-1.10.0/debian/tests/test_modules/fast-check/lib/types/check/arbitrary/definition/Arbitrary.d.ts-60- * // transform an Arbitrary producing {r,g,b} integers into an Arbitrary of '#rrggbb' ############################################## node-yaml-1.10.0/debian/tests/test_modules/pure-rand/perf/benchmark-prng.js-17- return new Benchmark( node-yaml-1.10.0/debian/tests/test_modules/pure-rand/perf/benchmark-prng.js:18: `${generatorName}::next`, node-yaml-1.10.0/debian/tests/test_modules/pure-rand/perf/benchmark-prng.js-19- () => { ############################################## node-yaml-1.10.0/debian/tests/test_modules/pure-rand/perf/benchmark-prng.js-33- ? new Benchmark( node-yaml-1.10.0/debian/tests/test_modules/pure-rand/perf/benchmark-prng.js:34: `${generatorName}::jump`, node-yaml-1.10.0/debian/tests/test_modules/pure-rand/perf/benchmark-prng.js-35- () => { ############################################## node-yaml-1.10.0/debian/tests/test_modules/pure-rand/perf/benchmark.js-26-const PROF_GEN = process.env.PROF_GEN || 'congruential32'; node-yaml-1.10.0/debian/tests/test_modules/pure-rand/perf/benchmark.js:27:console.log(`Generator....: ${PROF_GEN}\n`); node-yaml-1.10.0/debian/tests/test_modules/pure-rand/perf/benchmark.js-28- ############################################## node-yaml-1.10.0/debian/tests/test_modules/pure-rand/perf/benchmark.js-31- new Benchmark( node-yaml-1.10.0/debian/tests/test_modules/pure-rand/perf/benchmark.js:32: `distribution/no@${type}`, node-yaml-1.10.0/debian/tests/test_modules/pure-rand/perf/benchmark.js-33- () => { ############################################## node-yaml-1.10.0/debian/tests/test_modules/pure-rand/perf/benchmark.js-39- new Benchmark( node-yaml-1.10.0/debian/tests/test_modules/pure-rand/perf/benchmark.js:40: `distribution/re-use@${type}`, node-yaml-1.10.0/debian/tests/test_modules/pure-rand/perf/benchmark.js-41- () => { ############################################## node-yaml-1.10.0/debian/tests/test_modules/pure-rand/perf/benchmark.js-47- new Benchmark( node-yaml-1.10.0/debian/tests/test_modules/pure-rand/perf/benchmark.js:48: `generator/new@${type}`, node-yaml-1.10.0/debian/tests/test_modules/pure-rand/perf/benchmark.js-49- () => { ############################################## node-yaml-1.10.0/debian/tests/test_modules/pure-rand/perf/profiler.js-13-const PROF_GEN = process.env.PROF_GEN || 'congruential32'; node-yaml-1.10.0/debian/tests/test_modules/pure-rand/perf/profiler.js:14:console.log(`Profiler type: ${PROF_TYPE}`); node-yaml-1.10.0/debian/tests/test_modules/pure-rand/perf/profiler.js:15:console.log(`Generator....: ${PROF_GEN}`); node-yaml-1.10.0/debian/tests/test_modules/pure-rand/perf/profiler.js-16-