Skip to content

Commit

Permalink
fixup! WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
mroderick committed Jan 1, 2024
1 parent bdd9614 commit 0d33cd8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/deprecated.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function wrap(func, msg) {
wrapped.prototype = func.prototype;
}
return wrapped;
};
}

/**
* Returns a string which can be supplied to `wrap()` to notify the user that a
Expand All @@ -27,7 +27,7 @@ export function wrap(func, msg) {
*/
export function defaultMsg(packageName, funcName) {
return `${packageName}.${funcName} is deprecated and will be removed from the public API in a future version of ${packageName}.`;
};
}

/**
* Prints a warning on the console, when it exists
Expand All @@ -44,10 +44,10 @@ export function printWarning(msg) {
} else {
console.log(msg);
}
};
}

export default {
defaultMsg,
printWarning,
wrap
}
wrap,
};

0 comments on commit 0d33cd8

Please sign in to comment.