forked from meteor/meteor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request meteor#11639 from meteor/bugfix/logging-package-chalk
Only include chalk on server - avoid serving it to the client, even if not evaluated
- Loading branch information
Showing
7 changed files
with
17 additions
and
67 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Formatter = {}; | ||
Formatter.prettify = function(line, color){ | ||
return line; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Formatter = {}; | ||
Formatter.prettify = function(line, color){ | ||
if(!color) return line; | ||
return require("chalk")[color](line); | ||
} |
This file was deleted.
Oops, something went wrong.
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,8 +1,11 @@ | ||
Package.describe({ | ||
summary: 'Logging facility.', | ||
version: '1.3.0' | ||
version: '1.3.1' | ||
}); | ||
|
||
Npm.depends({ | ||
'chalk': '4.1.1' | ||
}); | ||
|
||
Npm.strip({ | ||
'es5-ext': ['test/'] | ||
|
@@ -16,6 +19,8 @@ Package.onUse(function (api) { | |
// `[email protected]` or newer. | ||
api.use(['ejson', 'ecmascript', 'ecmascript-runtime-client']); | ||
api.mainModule('logging.js'); | ||
api.addFiles('logging_server.js', 'server') | ||
api.addFiles('logging_browser.js', 'client') | ||
api.mainModule('logging_cordova.js', 'web.cordova'); | ||
}); | ||
|
||
|
This file was deleted.
Oops, something went wrong.