Spaces:
Running
Running
Download node_modules/postcss/lib/result.js from Chunte/HFBA: direct link, hf CLI and curl.
- Browser
- Download file 745 Bytes
-
https://huggingface.co/spaces/Chunte/HFBA/resolve/refs%2Fpr%2F1/node_modules/postcss/lib/result.js
- Command line
-
hf download hf://spaces/Chunte/HFBA@refs/pr/1/node_modules/postcss/lib/result.js
-
curl -L -o result.js https://huggingface.co/spaces/Chunte/HFBA/resolve/refs%2Fpr%2F1/node_modules/postcss/lib/result.js
745 Bytes
| let Warning = require('./warning') | |
| class Result { | |
| constructor(processor, root, opts) { | |
| this.processor = processor | |
| this.messages = [] | |
| this.root = root | |
| this.opts = opts | |
| this.css = undefined | |
| this.map = undefined | |
| } | |
| toString() { | |
| return this.css | |
| } | |
| warn(text, opts = {}) { | |
| if (!opts.plugin) { | |
| if (this.lastPlugin && this.lastPlugin.postcssPlugin) { | |
| opts.plugin = this.lastPlugin.postcssPlugin | |
| } | |
| } | |
| let warning = new Warning(text, opts) | |
| this.messages.push(warning) | |
| return warning | |
| } | |
| warnings() { | |
| return this.messages.filter(i => i.type === 'warning') | |
| } | |
| get content() { | |
| return this.css | |
| } | |
| } | |
| module.exports = Result | |
| Result.default = Result | |