Linux sg77.dns-private.com 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64
LiteSpeed
Server IP : 135.181.230.13 & Your IP : 216.73.217.69
Domains :
Cant Read [ /etc/named.conf ]
User : pilasate
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
pilasate /
schoolms /
node_modules /
yaml /
dist /
Delete
Unzip
Name
Size
Permission
Date
Action
compose
[ DIR ]
drwxrwxrwx
2025-03-24 11:44
doc
[ DIR ]
drwxrwxrwx
2025-03-24 11:44
nodes
[ DIR ]
drwxrwxrwx
2025-03-24 11:44
parse
[ DIR ]
drwxrwxrwx
2025-03-24 11:44
schema
[ DIR ]
drwxrwxrwx
2025-03-24 11:44
stringify
[ DIR ]
drwxrwxrwx
2025-03-24 11:44
cli.d.ts
1.17
KB
-rw-rw-rw-
2025-03-24 11:44
cli.mjs
7.17
KB
-rw-rw-rw-
2025-03-24 11:44
errors.d.ts
1.21
KB
-rw-rw-rw-
2025-03-24 11:44
errors.js
2.07
KB
-rw-rw-rw-
2025-03-24 11:44
index.d.ts
1.36
KB
-rw-rw-rw-
2025-03-24 11:44
index.js
1.73
KB
-rw-rw-rw-
2025-03-24 11:44
log.d.ts
226
B
-rw-rw-rw-
2025-03-24 11:44
log.js
464
B
-rw-rw-rw-
2025-03-24 11:44
options.d.ts
10.73
KB
-rw-rw-rw-
2025-03-24 11:44
public-api.d.ts
2.8
KB
-rw-rw-rw-
2025-03-24 11:44
public-api.js
4.09
KB
-rw-rw-rw-
2025-03-24 11:44
test-events.d.ts
96
B
-rw-rw-rw-
2025-03-24 11:44
test-events.js
4.17
KB
-rw-rw-rw-
2025-03-24 11:44
util.d.ts
835
B
-rw-rw-rw-
2025-03-24 11:44
util.js
1008
B
-rw-rw-rw-
2025-03-24 11:44
visit.d.ts
4.93
KB
-rw-rw-rw-
2025-03-24 11:44
visit.js
9.04
KB
-rw-rw-rw-
2025-03-24 11:44
Save
Rename
'use strict'; var composer = require('./compose/composer.js'); var Document = require('./doc/Document.js'); var errors = require('./errors.js'); var log = require('./log.js'); var identity = require('./nodes/identity.js'); var lineCounter = require('./parse/line-counter.js'); var parser = require('./parse/parser.js'); function parseOptions(options) { const prettyErrors = options.prettyErrors !== false; const lineCounter$1 = options.lineCounter || (prettyErrors && new lineCounter.LineCounter()) || null; return { lineCounter: lineCounter$1, prettyErrors }; } /** * Parse the input as a stream of YAML documents. * * Documents should be separated from each other by `...` or `---` marker lines. * * @returns If an empty `docs` array is returned, it will be of type * EmptyStream and contain additional stream information. In * TypeScript, you should use `'empty' in docs` as a type guard for it. */ function parseAllDocuments(source, options = {}) { const { lineCounter, prettyErrors } = parseOptions(options); const parser$1 = new parser.Parser(lineCounter?.addNewLine); const composer$1 = new composer.Composer(options); const docs = Array.from(composer$1.compose(parser$1.parse(source))); if (prettyErrors && lineCounter) for (const doc of docs) { doc.errors.forEach(errors.prettifyError(source, lineCounter)); doc.warnings.forEach(errors.prettifyError(source, lineCounter)); } if (docs.length > 0) return docs; return Object.assign([], { empty: true }, composer$1.streamInfo()); } /** Parse an input string into a single YAML.Document */ function parseDocument(source, options = {}) { const { lineCounter, prettyErrors } = parseOptions(options); const parser$1 = new parser.Parser(lineCounter?.addNewLine); const composer$1 = new composer.Composer(options); // `doc` is always set by compose.end(true) at the very latest let doc = null; for (const _doc of composer$1.compose(parser$1.parse(source), true, source.length)) { if (!doc) doc = _doc; else if (doc.options.logLevel !== 'silent') { doc.errors.push(new errors.YAMLParseError(_doc.range.slice(0, 2), 'MULTIPLE_DOCS', 'Source contains multiple documents; please use YAML.parseAllDocuments()')); break; } } if (prettyErrors && lineCounter) { doc.errors.forEach(errors.prettifyError(source, lineCounter)); doc.warnings.forEach(errors.prettifyError(source, lineCounter)); } return doc; } function parse(src, reviver, options) { let _reviver = undefined; if (typeof reviver === 'function') { _reviver = reviver; } else if (options === undefined && reviver && typeof reviver === 'object') { options = reviver; } const doc = parseDocument(src, options); if (!doc) return null; doc.warnings.forEach(warning => log.warn(doc.options.logLevel, warning)); if (doc.errors.length > 0) { if (doc.options.logLevel !== 'silent') throw doc.errors[0]; else doc.errors = []; } return doc.toJS(Object.assign({ reviver: _reviver }, options)); } function stringify(value, replacer, options) { let _replacer = null; if (typeof replacer === 'function' || Array.isArray(replacer)) { _replacer = replacer; } else if (options === undefined && replacer) { options = replacer; } if (typeof options === 'string') options = options.length; if (typeof options === 'number') { const indent = Math.round(options); options = indent < 1 ? undefined : indent > 8 ? { indent: 8 } : { indent }; } if (value === undefined) { const { keepUndefined } = options ?? replacer ?? {}; if (!keepUndefined) return undefined; } if (identity.isDocument(value) && !_replacer) return value.toString(options); return new Document.Document(value, _replacer, options).toString(options); } exports.parse = parse; exports.parseAllDocuments = parseAllDocuments; exports.parseDocument = parseDocument; exports.stringify = stringify;