-
Notifications
You must be signed in to change notification settings - Fork 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
[chore] Small updates #133
Conversation
5d5e2ab
to
a96f7b5
Compare
getLogger: getLoggerFactory(build, options.logLevel), | ||
// This will be updated in the injection plugin on initialization. | ||
inject: () => { | ||
throw new Error('Inject function called before it was initialized.'); |
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.
❓question I'm not very familiar with the code but is that error caught and reported properly elsewhere or could it just break the build?
@@ -25,11 +23,21 @@ const logPriority: Record<LogLevel, number> = { | |||
none: 4, | |||
}; | |||
|
|||
// Exported for testing. | |||
// Which separator to use for plugin names. | |||
export const NAME_SEP = '>'; |
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.
nit:
export const NAME_SEP = '>'; | |
export const PLUGINS_NAME_SEP = '>'; |
// Which separator to use for plugin names. | ||
export const NAME_SEP = '>'; | ||
|
||
const cleanName = (name: string) => { |
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.
nit:
const cleanName = (name: string) => { | |
const cleanPluginsName = (name: string) => { |
What and why?
Some small updates to lighten #134 and #137
How?
getLogger
on theGlobalContext
.injections
state to its own plugin, for more simplicity and self contenance.