-
Notifications
You must be signed in to change notification settings - Fork 6
add a Symbol polyfill #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,9 @@ | ||
| { | ||
| "presets": ["es2015"], | ||
| "plugins": ["transform-object-assign"] | ||
| "presets": [ | ||
| ["@babel/preset-env", { | ||
| "targets": { | ||
| "browsers": ["last 2 versions", "IE 10"] | ||
| } | ||
| }] | ||
| ] | ||
| } | ||
Large diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -107,11 +107,11 @@ module.exports = class MethodFactory { | |
| throw new TypeError('loglevelnext: Logger is undefined or invalid. Please specify a valid Logger instance.'); | ||
| } | ||
|
|
||
| for (const methodName of this.methods) { | ||
| this.methods.forEach((methodName) => { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The polyfill didn't place nicely with the Babel transformation code that results from the |
||
| const { [methodName.toUpperCase()]: methodLevel } = this.levels; | ||
|
|
||
| this.logger[methodName] = (methodLevel < level) ? noop : this.make(methodName); | ||
| } | ||
| }); | ||
|
|
||
| // Define log.log as an alias for log.debug | ||
| this.logger.log = this.logger.debug; | ||
|
|
||
Large diffs are not rendered by default.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this change was already in the branch. not sure if you prefer to keep it, but fwiw: https://jamie.build/last-2-versions