(str: string, config?: AppConfigData)
| 323 | // @TODO: Make better variables. Why are we using cwd() ? |
| 324 | /* istanbul ignore next */ |
| 325 | export function parseVarStr(str: string, config?: AppConfigData) { |
| 326 | return parseVariableString(str, (name) => { |
| 327 | switch (name) { |
| 328 | case 'os': return process.platform; |
| 329 | case 'arch': return process.arch; |
| 330 | case 'cwd': return fixSlashes(process.cwd()); |
| 331 | case 'fpPath': return config ? fixSlashes(config.flashpointPath) : ''; |
| 332 | default: return ''; |
| 333 | } |
| 334 | }); |
| 335 | } |
| 336 | |
| 337 | const errorProxySymbol = Symbol('Error Proxy'); |
| 338 | const errorProxyValue = {}; // Unique pointer |
no test coverage detected