Comparing version 3.3.6 to 4.0.0
@@ -0,1 +1,13 @@ | ||
# v4.0.0 (Mon Apr 13 2020) | ||
#### 💥 Breaking Change | ||
- update readme to fix cjs usage [#53](https://github.com/domharrington/node-gitlog/pull/53) ([@hipstersmoothie](https://github.com/hipstersmoothie)) | ||
#### Authors: 1 | ||
- Andrew Lisowski ([@hipstersmoothie](https://github.com/hipstersmoothie)) | ||
--- | ||
# v3.3.6 (Thu Apr 09 2020) | ||
@@ -2,0 +14,0 @@ |
{ | ||
"name": "gitlog", | ||
"version": "3.3.6", | ||
"version": "4.0.0", | ||
"description": "Git log parser for Node.JS", | ||
@@ -5,0 +5,0 @@ "module": "dist/gitlog.esm.js", |
@@ -17,3 +17,3 @@ # node-gitlog | ||
```js | ||
const gitlog = require("gitlog"); | ||
const gitlog = require("gitlog").default; | ||
@@ -38,4 +38,6 @@ const options = { | ||
const { gitlogPromise } = require("gitlog"); | ||
// Asynchronous (with Promise) | ||
gitlog(options) | ||
gitlogPromise(options) | ||
.then((commits) => console.log(commits)) | ||
@@ -42,0 +44,0 @@ .catch((err) => console.log(err)); |
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
111483
248