/opt/canhelp/node_modules/postcss/lib
NameSizeModeActions
at-rule.d.ts33600644editdlrm
at-rule.js4710644editdlrm
comment.d.ts16840644editdlrm
comment.js2030644editdlrm
container.d.ts140470644editdlrm
container.js106470644editdlrm
css-syntax-error.d.ts64510644editdlrm
css-syntax-error.js34020644editdlrm
declaration.d.ts38370644editdlrm
declaration.js4950644editdlrm
document.d.ts18880644editdlrm
document.js6540644editdlrm
fromJSON.d.ts1620644editdlrm
fromJSON.js15060644editdlrm
input.d.ts51300644editdlrm
input.js67520644editdlrm
lazy-result.d.ts49410644editdlrm
lazy-result.js135620644editdlrm
list.d.ts14260644editdlrm
list.js12270644editdlrm
map-generator.js100310644editdlrm
no-work-result.d.ts15070644editdlrm
no-work-result.js26210644editdlrm
node.d.ts146980644editdlrm
node.js107190644editdlrm
parse.d.ts1350644editdlrm
parse.js11470644editdlrm
parser.js148460644editdlrm
postcss.d.mts10490644editdlrm
postcss.d.ts114610644editdlrm
postcss.js28980644editdlrm
postcss.mjs9800644editdlrm
previous-map.d.ts17610644editdlrm
previous-map.js39840644editdlrm
processor.d.ts33490644editdlrm
processor.js17380644editdlrm
result.d.ts43500644editdlrm
result.js7380644editdlrm
root.d.ts22570644editdlrm
root.js12390644editdlrm
rule.d.ts29010644editdlrm
rule.js5690644editdlrm
stringifier.d.ts13640644editdlrm
stringifier.js82200644editdlrm
stringify.d.ts1650644editdlrm
stringify.js2130644editdlrm
symbols.js910644editdlrm
terminal-highlight.js13990644editdlrm
tokenize.js65380644editdlrm
warn-once.js2560644editdlrm
warning.d.ts29280644editdlrm
warning.js7390644editdlrm
Edit: /opt/canhelp/node_modules/postcss/lib/root.js (1239B)
'use strict' let Container = require('./container') let LazyResult, Processor class Root extends Container { constructor(defaults) { super(defaults) this.type = 'root' if (!this.nodes) this.nodes = [] } normalize(child, sample, type) { let nodes = super.normalize(child) if (sample) { if (type === 'prepend') { if (this.nodes.length > 1) { sample.raws.before = this.nodes[1].raws.before } else { delete sample.raws.before } } else if (this.first !== sample) { for (let node of nodes) { node.raws.before = sample.raws.before } } } return nodes } removeChild(child, ignore) { let index = this.index(child) if (!ignore && index === 0 && this.nodes.length > 1) { this.nodes[1].raws.before = this.nodes[index].raws.before } return super.removeChild(child) } toResult(opts = {}) { let lazy = new LazyResult(new Processor(), this, opts) return lazy.stringify() } } Root.registerLazyResult = dependant => { LazyResult = dependant } Root.registerProcessor = dependant => { Processor = dependant } module.exports = Root Root.default = Root Container.registerRoot(Root)