-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat!: new api * test: update code * fix: issue * update bench * docs * ts * jsdoc * fix typings * Update README.md Co-authored-by: Aras Abbasi <aras.abbasi@googlemail.com> * Update README.md Co-authored-by: James Sumners <321201+jsumners@users.noreply.github.com> * new api * new api ts * fix docs * Implement function scoped Warning (#97) * Apply suggestions from code review Co-authored-by: Aras Abbasi <aras.abbasi@googlemail.com> Co-authored-by: James Sumners <321201+jsumners@users.noreply.github.com> * fix feedback * fix docs --------- Co-authored-by: uzlopak <aras.abbasi@googlemail.com> Co-authored-by: James Sumners <321201+jsumners@users.noreply.github.com>
- Loading branch information
1 parent
9f67874
commit 0378576
Showing
14 changed files
with
400 additions
and
282 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
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
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,7 +1,11 @@ | ||
'use strict' | ||
|
||
const warning = require('..')() | ||
const { createWarning } = require('..') | ||
|
||
warning.create('DeprecationWarning', 'CUSTDEP001', 'This is a deprecation warning') | ||
const CUSTDEP001 = createWarning({ | ||
name: 'DeprecationWarning', | ||
code: 'CUSTDEP001', | ||
message: 'This is a deprecation warning' | ||
}) | ||
|
||
warning.emit('CUSTDEP001') | ||
CUSTDEP001() |
Oops, something went wrong.