react-cmf
Advanced tools
Comparing version 0.105.0 to 0.106.0
@@ -20,5 +20,4 @@ 'use strict'; | ||
/* eslint-disable prefer-rest-params */ | ||
function deprecated(fn, msg) { | ||
var log = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : console.warn; | ||
// eslint-disable-line no-console | ||
/* eslint-disable no-console*/ | ||
function deprecated(fn, msg, log) { | ||
var called = false; | ||
@@ -32,3 +31,14 @@ return function wrapper() { | ||
} | ||
log('DEPRECATED: ' + message); | ||
message = 'DEPRECATED: ' + message; | ||
if (log) { | ||
log(message); | ||
} else if (console) { | ||
if (console.warn) { | ||
console.warn(message); | ||
} else if (console.log) { | ||
console.log(message); | ||
} | ||
} | ||
} | ||
@@ -35,0 +45,0 @@ return fn.apply(this, arguments); |
@@ -105,3 +105,3 @@ { | ||
}, | ||
"version": "0.105.0", | ||
"version": "0.106.0", | ||
"dependencies": { | ||
@@ -108,0 +108,0 @@ "hoist-non-react-statics": "^1.2.0" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
125790
45
2733