(bundle, opts)
| 156 | } |
| 157 | |
| 158 | const analyze = (bundle, opts) => new Promise((resolve, reject) => { |
| 159 | try { |
| 160 | const analysis = analyzer(bundle, opts) |
| 161 | return resolve(analysis) |
| 162 | } catch (ex) { return reject(ex) } |
| 163 | }) |
| 164 | |
| 165 | const formatted = (bundle, opts) => new Promise((resolve, reject) => { |
| 166 | try { |