MCPcopy
hub / github.com/iterative/cml / deprecationNotice

Function deprecationNotice

bin/legacy/deprecation.js:10–18  ·  view source on GitHub ↗
(opts, notice)

Source from the content-addressed store, hash-verified

8};
9
10const 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
20exports.addDeprecationNotice = addDeprecationNotice;

Callers 1

addDeprecationNoticeFunction · 0.85

Calls 2

getDriverMethod · 0.80
warnMethod · 0.45

Tested by

no test coverage detected