Skip to content
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

Update transports.js #731

Closed
wants to merge 2 commits into from
Closed

Update transports.js #731

wants to merge 2 commits into from

Conversation

jwulf
Copy link

@jwulf jwulf commented Oct 21, 2015

This makes winston consumable by browserify - which does a static analysis of dependencies to bundle javascript.

See: serverless/serverless#253

This makes winston consumable by browserify - which does a static analysis of dependencies to bundle javascript.
transports.__defineGetter__('CONSOLE', function () {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Casing is wrong on all of these. Would be:

transports.__defineGetter__('Console', function () {

Also you should use Object.defineProperty not __defineGetter__

@indexzero
Copy link
Member

+1 once the syntax is updated.

indexzero added a commit that referenced this pull request Oct 29, 2015
@indexzero
Copy link
Member

Fixed in 07322af

@indexzero indexzero closed this Oct 29, 2015
@indexzero indexzero mentioned this pull request Oct 29, 2015
indexzero added a commit that referenced this pull request Oct 29, 2015
@jwulf jwulf deleted the patch-1 branch November 25, 2015 09:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants