Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add deprecation util for the sprintf and vsprintf functions
- Loading branch information
Jorik Tangelder
committed
Jan 19, 2016
1 parent
7c03e83
commit 63a5120
Showing
3 changed files
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,6 +61,7 @@ | |
} | ||
}, | ||
"dependencies": { | ||
"sprintf-js": "^1.0.3" | ||
"sprintf-js": "^1.0.3", | ||
"util-deprecate": "^1.0.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
module.exports = require('sprintf-js').sprintf; | ||
var deprecate = require('util-deprecate'); | ||
|
||
module.exports = deprecate(require('sprintf-js').sprintf, | ||
'sprintf() is will be removed the next major release, use the sprintf-js package instead.'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
module.exports = require('sprintf-js').vsprintf; | ||
var deprecate = require('util-deprecate'); | ||
|
||
module.exports = deprecate(require('sprintf-js').vsprintf, | ||
'vsprintf() is will be removed the next major release, use the sprintf-js package instead.'); |