@jalik/logger
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -1,2 +0,2 @@ | ||
"use strict"; | ||
'use strict'; | ||
@@ -6,17 +6,44 @@ Object.defineProperty(exports, "__esModule", { | ||
}); | ||
/* | ||
* The MIT License (MIT) | ||
* | ||
* Copyright (c) 2018 Karl STEIN | ||
* | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy | ||
* of this software and associated documentation files (the "Software"), to deal | ||
* in the Software without restriction, including without limitation the rights | ||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
* copies of the Software, and to permit persons to whom the Software is | ||
* furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in all | ||
* copies or substantial portions of the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
* FITNESS FOR A PARTICULAR PURPOSE AND NON INFRINGEMENT. IN NO EVENT SHALL THE | ||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
* SOFTWARE. | ||
* | ||
*/ | ||
exports.default = { | ||
debug: "debug", | ||
error: "error", | ||
info: "info", | ||
warning: "warning" | ||
/** | ||
* Debug | ||
*/ | ||
debug: 'debug', | ||
/** | ||
* Error | ||
*/ | ||
error: 'error', | ||
/** | ||
* Information | ||
*/ | ||
info: 'info', | ||
/** | ||
* Warning | ||
*/ | ||
warning: 'warning' | ||
}; |
{ | ||
"name": "@jalik/logger", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "A logging utility to log messages to anywhere.", | ||
@@ -12,3 +12,3 @@ "license": "MIT", | ||
"author": { | ||
"name": "Karl STEIN", | ||
"name": "Karl Stein", | ||
"email": "karl.stein.pro@gmail.com", | ||
@@ -24,10 +24,10 @@ "url": "https://github.com/jalik" | ||
}, | ||
"main": "dist/index.js", | ||
"main": "dist/logger.js", | ||
"scripts": { | ||
"build": "./node_modules/.bin/gulp build", | ||
"build:prod": "./node_modules/.bin/gulp prepublish", | ||
"package": "./node_modules/.bin/webpack && ./node_modules/.bin/webpack -p", | ||
"package": "./node_modules/.bin/webpack -p", | ||
"prepare": "npm run build:prod && npm test", | ||
"prepublishOnly": "npm test", | ||
"test": "jest", | ||
"test": "./node_modules/.bin/jest", | ||
"watch": "./node_modules/.bin/gulp watch" | ||
@@ -44,4 +44,12 @@ }, | ||
"babel-preset-env": "^1.6.1", | ||
"gulp": "^3.9.1", | ||
"del": "^3.0.0", | ||
"eslint": "^4.19.1", | ||
"eslint-config-airbnb": "^16.1.0", | ||
"eslint-plugin-import": "^2.9.0", | ||
"eslint-plugin-jest": "^21.15.0", | ||
"eslint-plugin-jsx-a11y": "^6.0.3", | ||
"eslint-plugin-react": "^7.7.0", | ||
"gulp": "^4.0.0", | ||
"gulp-babel": "^7.0.1", | ||
"gulp-eslint": "^4.0.2", | ||
"gulp-strip-comments": "^2.5.2", | ||
@@ -48,0 +56,0 @@ "gulp-watch": "^5.0.0", |
@@ -30,3 +30,7 @@ # Logger | ||
// Display context in the console | ||
displayContext: true | ||
displayContext: false, | ||
// Display logger name in the console | ||
displayMessage: false, | ||
// Give a name to this logger | ||
name: 'main' | ||
}); | ||
@@ -48,3 +52,3 @@ ``` | ||
```js | ||
import Types from "@jalik/logger/dist/types"; | ||
import Types from "@jalik/logger/dist/types"; | ||
@@ -121,17 +125,4 @@ Types.debug; | ||
### v1.0.3 | ||
- Exports `Logger` using ES6 default export | ||
History of releases is in the [changelog](./CHANGELOG.md). | ||
### v1.0.1 | ||
- Adds options to activate or deactivate console logging for a type of message | ||
- Adds option `Logger.options.console.debug = true` | ||
- Adds option `Logger.options.console.error = true` | ||
- Adds option `Logger.options.console.info = true` | ||
- Adds option `Logger.options.console.other = true` | ||
- Adds option `Logger.options.console.warning = true` | ||
- Adds option `Logger.options.displayContext = false` | ||
### v1.0.0 | ||
- First public release | ||
## License | ||
@@ -138,0 +129,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
30342
7
309
18
132
1