@reactioncommerce/logger
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -108,2 +108,4 @@ "use strict"; | ||
exports.default = Bunyan2Loggly; | ||
exports.default = Bunyan2Loggly; | ||
module.exports = exports.default; | ||
module.exports.default = exports.default; |
@@ -6,24 +6,9 @@ "use strict"; | ||
}); | ||
exports.bunyanFormat = exports.bunyan = undefined; | ||
var _bunyan = require("bunyan"); | ||
Object.defineProperty(exports, "bunyan", { | ||
enumerable: true, | ||
get: function get() { | ||
return _interopRequireDefault(_bunyan).default; | ||
} | ||
}); | ||
var _bunyan2 = _interopRequireDefault(_bunyan); | ||
var _bunyanFormat = require("bunyan-format"); | ||
Object.defineProperty(exports, "bunyanFormat", { | ||
enumerable: true, | ||
get: function get() { | ||
return _interopRequireDefault(_bunyanFormat).default; | ||
} | ||
}); | ||
var _bunyan2 = _interopRequireDefault(_bunyan); | ||
var _bunyanFormat2 = _interopRequireDefault(_bunyanFormat); | ||
@@ -83,3 +68,10 @@ | ||
// export bunyan so users can create their own loggers from scratch if needed | ||
exports.default = Logger; | ||
// Export bunyan so users can create their own loggers from scratch if needed. | ||
// In order to be compatible with Node ES modules, we can't have named CommonJS | ||
// exports, so we set these as properties of the default export instead. | ||
Logger.bunyan = _bunyan2.default; | ||
Logger.bunyanFormat = _bunyanFormat2.default; | ||
exports.default = Logger; | ||
module.exports = exports.default; | ||
module.exports.default = exports.default; |
{ | ||
"name": "@reactioncommerce/logger", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Reaction application logging based on Bunyan logger", | ||
@@ -26,2 +26,3 @@ "main": "./dist/main.js", | ||
"babel-eslint": "^8.2.2", | ||
"babel-plugin-add-module-exports": "^1.0.2", | ||
"babel-preset-env": "^1.6.1", | ||
@@ -35,3 +36,3 @@ "babel-preset-stage-2": "^6.24.1", | ||
"rimraf": "^2.6.2", | ||
"semantic-release": "^15.1.4", | ||
"semantic-release": "^15.13.25", | ||
"watch": "^1.0.2" | ||
@@ -49,2 +50,10 @@ }, | ||
], | ||
"plugins": [ | ||
[ | ||
"add-module-exports", | ||
{ | ||
"addDefaultProperty": true | ||
} | ||
] | ||
], | ||
"sourceMaps": true | ||
@@ -55,2 +64,8 @@ }, | ||
}, | ||
"prettier": { | ||
"arrowParens": "always" | ||
}, | ||
"release": { | ||
"branch": "trunk" | ||
}, | ||
"publishConfig": { | ||
@@ -57,0 +72,0 @@ "access": "public" |
@@ -137,1 +137,19 @@ # reaction-logger | ||
``` | ||
### Developer Certificate of Origin | ||
We use the [Developer Certificate of Origin (DCO)](https://developercertificate.org/) in lieu of a Contributor License Agreement for all contributions to Reaction Commerce open source projects. We request that contributors agree to the terms of the DCO and indicate that agreement by signing-off all commits made to Reaction Commerce projects by adding a line with your name and email address to every Git commit message contributed: | ||
``` | ||
Signed-off-by: Jane Doe <jane.doe@example.com> | ||
``` | ||
You can sign-off your commit automatically with Git by using `git commit -s` if you have your `user.name` and `user.email` set as part of your Git configuration. | ||
We ask that you use your real full name (please no anonymous contributions or pseudonyms) and a real email address. By signing-off your commit you are certifying that you have the right to submit it under the [MIT License](./LICENSE). | ||
We use the [Probot DCO GitHub app](https://github.com/apps/dco) to check for DCO sign-offs of every commit. | ||
If you forget to sign-off your commits, the DCO bot will remind you and give you detailed instructions for how to amend your commits to add a signature. | ||
### License | ||
Reaction Logger is [MIT Licensed](./LICENSE) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16893
155
14
137