Ships Pithos (the s3d control panel) as a built-in extension: the dock menu opens it in a tab served from a loopback port, and "Stop s3d" shuts the gateway down. Generated by Pithos/scripts/build-theseus-addon.mjs. yaml is vendored under vendor/yaml/lib rather than node_modules/ or dist/, because Theseus git-ignores both and a clean-worktree release build would otherwise ship the add-on without its only dependency.
17 lines
547 B
JavaScript
17 lines
547 B
JavaScript
'use strict';
|
|
|
|
var utilContainsNewline = require('./util-contains-newline.js');
|
|
|
|
function flowIndentCheck(indent, fc, onError) {
|
|
if (fc?.type === 'flow-collection') {
|
|
const end = fc.end[0];
|
|
if (end.indent === indent &&
|
|
(end.source === ']' || end.source === '}') &&
|
|
utilContainsNewline.containsNewline(fc)) {
|
|
const msg = 'Flow end indicator should be more indented than parent';
|
|
onError(end, 'BAD_INDENT', msg, true);
|
|
}
|
|
}
|
|
}
|
|
|
|
exports.flowIndentCheck = flowIndentCheck;
|