({ fileBuffer, config })
| 215 | } |
| 216 | |
| 217 | function processSvg({ fileBuffer, config }) { |
| 218 | return Buffer.from( |
| 219 | svgoOptimize( |
| 220 | fileBuffer, |
| 221 | config.svg, |
| 222 | ).data, |
| 223 | ); |
| 224 | } |
| 225 | |
| 226 | function pipe({ command, commandOptions, inputBuffer }) { |
| 227 | return new Promise((resolve, reject) => { |
no outgoing calls
no test coverage detected