(opts, notice)
| 8 | }; |
| 9 | |
| 10 | const deprecationNotice = (opts, notice) => { |
| 11 | const { cml } = opts; |
| 12 | const driver = cml.getDriver(); |
| 13 | if (driver.warn) { |
| 14 | driver.warn(notice); |
| 15 | } else { |
| 16 | logger.warn(notice); |
| 17 | } |
| 18 | }; |
| 19 | |
| 20 | exports.addDeprecationNotice = addDeprecationNotice; |
no test coverage detected