gitlint-parser-base
Advanced tools
Comparing version 1.0.1 to 1.1.0
19
index.js
@@ -27,2 +27,21 @@ 'use strict' | ||
toJSON() { | ||
return { | ||
sha: this.sha | ||
, title: this.title | ||
, author: this.author | ||
, date: this.date | ||
, body: this.body | ||
} | ||
} | ||
inspect(depth, opts) { | ||
if (opts && opts.showHidden) { | ||
return Object.assign(this.toJSON(), { | ||
_raw: this._raw | ||
}) | ||
} | ||
return this.toJSON() | ||
} | ||
parse() { | ||
@@ -29,0 +48,0 @@ const splits = this._raw.split('\n') |
{ | ||
"name": "gitlint-parser-base", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "base parser for gitlint", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
6648
141