We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bdd9614 commit 0d33cd8Copy full SHA for 0d33cd8
1 file changed
lib/deprecated.js
@@ -16,7 +16,7 @@ export function wrap(func, msg) {
16
wrapped.prototype = func.prototype;
17
}
18
return wrapped;
19
-};
+}
20
21
/**
22
* Returns a string which can be supplied to `wrap()` to notify the user that a
@@ -27,7 +27,7 @@ export function wrap(func, msg) {
27
*/
28
export function defaultMsg(packageName, funcName) {
29
return `${packageName}.${funcName} is deprecated and will be removed from the public API in a future version of ${packageName}.`;
30
31
32
33
* Prints a warning on the console, when it exists
@@ -44,10 +44,10 @@ export function printWarning(msg) {
44
} else {
45
console.log(msg);
46
47
48
49
export default {
50
defaultMsg,
51
printWarning,
52
- wrap
53
-}
+ wrap,
+};
0 commit comments