Linux v69820.1blu.de 4.15.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Apache/2.4.58
Server IP : 195.90.215.149 & Your IP : 216.73.217.80
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
nodejs /
yaml /
dist /
compose /
Delete
Unzip
Name
Size
Permission
Date
Action
compose-collection.d.ts
476
B
-rw-r--r--
2024-02-26 08:46
compose-collection.js
3.05
KB
-rw-r--r--
2024-02-26 08:46
compose-doc.d.ts
641
B
-rw-r--r--
2024-02-26 08:46
compose-doc.js
1.53
KB
-rw-r--r--
2024-02-26 08:46
compose-node.d.ts
1.16
KB
-rw-r--r--
2024-02-26 08:46
compose-node.js
3.48
KB
-rw-r--r--
2024-02-26 08:46
compose-scalar.d.ts
405
B
-rw-r--r--
2024-02-26 08:46
compose-scalar.js
3.21
KB
-rw-r--r--
2024-02-26 08:46
composer.d.ts
2.59
KB
-rw-r--r--
2024-02-26 08:46
composer.js
8.36
KB
-rw-r--r--
2024-02-26 08:46
resolve-block-map.d.ts
550
B
-rw-r--r--
2024-02-26 08:46
resolve-block-map.js
4.83
KB
-rw-r--r--
2024-02-26 08:46
resolve-block-scalar.d.ts
433
B
-rw-r--r--
2024-02-26 08:46
resolve-block-scalar.js
7.11
KB
-rw-r--r--
2024-02-26 08:46
resolve-block-seq.d.ts
511
B
-rw-r--r--
2024-02-26 08:46
resolve-block-seq.js
1.7
KB
-rw-r--r--
2024-02-26 08:46
resolve-end.d.ts
289
B
-rw-r--r--
2024-02-26 08:46
resolve-end.js
1.23
KB
-rw-r--r--
2024-02-26 08:46
resolve-flow-collection.d.ts
658
B
-rw-r--r--
2024-02-26 08:46
resolve-flow-collection.js
8.42
KB
-rw-r--r--
2024-02-26 08:46
resolve-flow-scalar.d.ts
444
B
-rw-r--r--
2024-02-26 08:46
resolve-flow-scalar.js
6.95
KB
-rw-r--r--
2024-02-26 08:46
resolve-props.d.ts
806
B
-rw-r--r--
2024-02-26 08:46
resolve-props.js
4.93
KB
-rw-r--r--
2024-02-26 08:46
util-contains-newline.d.ts
134
B
-rw-r--r--
2024-02-26 08:46
util-contains-newline.js
1.06
KB
-rw-r--r--
2024-02-26 08:46
util-empty-scalar-position.d.ts
164
B
-rw-r--r--
2024-02-26 08:46
util-empty-scalar-position.js
871
B
-rw-r--r--
2024-02-26 08:46
util-flow-indent-check.d.ts
211
B
-rw-r--r--
2024-02-26 08:46
util-flow-indent-check.js
547
B
-rw-r--r--
2024-02-26 08:46
util-map-includes.d.ts
269
B
-rw-r--r--
2024-02-26 08:46
util-map-includes.js
574
B
-rw-r--r--
2024-02-26 08:46
Save
Rename
'use strict'; var Pair = require('../nodes/Pair.js'); var YAMLMap = require('../nodes/YAMLMap.js'); var resolveProps = require('./resolve-props.js'); var utilContainsNewline = require('./util-contains-newline.js'); var utilFlowIndentCheck = require('./util-flow-indent-check.js'); var utilMapIncludes = require('./util-map-includes.js'); const startColMsg = 'All mapping items must start at the same column'; function resolveBlockMap({ composeNode, composeEmptyNode }, ctx, bm, onError, tag) { const NodeClass = tag?.nodeClass ?? YAMLMap.YAMLMap; const map = new NodeClass(ctx.schema); if (ctx.atRoot) ctx.atRoot = false; let offset = bm.offset; let commentEnd = null; for (const collItem of bm.items) { const { start, key, sep, value } = collItem; // key properties const keyProps = resolveProps.resolveProps(start, { indicator: 'explicit-key-ind', next: key ?? sep?.[0], offset, onError, startOnNewline: true }); const implicitKey = !keyProps.found; if (implicitKey) { if (key) { if (key.type === 'block-seq') onError(offset, 'BLOCK_AS_IMPLICIT_KEY', 'A block sequence may not be used as an implicit map key'); else if ('indent' in key && key.indent !== bm.indent) onError(offset, 'BAD_INDENT', startColMsg); } if (!keyProps.anchor && !keyProps.tag && !sep) { commentEnd = keyProps.end; if (keyProps.comment) { if (map.comment) map.comment += '\n' + keyProps.comment; else map.comment = keyProps.comment; } continue; } if (keyProps.hasNewlineAfterProp || utilContainsNewline.containsNewline(key)) { onError(key ?? start[start.length - 1], 'MULTILINE_IMPLICIT_KEY', 'Implicit keys need to be on a single line'); } } else if (keyProps.found?.indent !== bm.indent) { onError(offset, 'BAD_INDENT', startColMsg); } // key value const keyStart = keyProps.end; const keyNode = key ? composeNode(ctx, key, keyProps, onError) : composeEmptyNode(ctx, keyStart, start, null, keyProps, onError); if (ctx.schema.compat) utilFlowIndentCheck.flowIndentCheck(bm.indent, key, onError); if (utilMapIncludes.mapIncludes(ctx, map.items, keyNode)) onError(keyStart, 'DUPLICATE_KEY', 'Map keys must be unique'); // value properties const valueProps = resolveProps.resolveProps(sep ?? [], { indicator: 'map-value-ind', next: value, offset: keyNode.range[2], onError, startOnNewline: !key || key.type === 'block-scalar' }); offset = valueProps.end; if (valueProps.found) { if (implicitKey) { if (value?.type === 'block-map' && !valueProps.hasNewline) onError(offset, 'BLOCK_AS_IMPLICIT_KEY', 'Nested mappings are not allowed in compact mappings'); if (ctx.options.strict && keyProps.start < valueProps.found.offset - 1024) onError(keyNode.range, 'KEY_OVER_1024_CHARS', 'The : indicator must be at most 1024 chars after the start of an implicit block mapping key'); } // value value const valueNode = value ? composeNode(ctx, value, valueProps, onError) : composeEmptyNode(ctx, offset, sep, null, valueProps, onError); if (ctx.schema.compat) utilFlowIndentCheck.flowIndentCheck(bm.indent, value, onError); offset = valueNode.range[2]; const pair = new Pair.Pair(keyNode, valueNode); if (ctx.options.keepSourceTokens) pair.srcToken = collItem; map.items.push(pair); } else { // key with no value if (implicitKey) onError(keyNode.range, 'MISSING_CHAR', 'Implicit map keys need to be followed by map values'); if (valueProps.comment) { if (keyNode.comment) keyNode.comment += '\n' + valueProps.comment; else keyNode.comment = valueProps.comment; } const pair = new Pair.Pair(keyNode); if (ctx.options.keepSourceTokens) pair.srcToken = collItem; map.items.push(pair); } } if (commentEnd && commentEnd < offset) onError(commentEnd, 'IMPOSSIBLE', 'Map comment with trailing content'); map.range = [bm.offset, offset, commentEnd ?? offset]; return map; } exports.resolveBlockMap = resolveBlockMap;