Socket
Socket
Sign inDemoInstall

@commitlint/cli

Package Overview
Dependencies
Maintainers
4
Versions
141
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commitlint/cli - npm Package Compare versions

Comparing version 12.1.1 to 12.1.2

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [12.1.2](https://github.com/conventional-changelog/commitlint/compare/v12.1.1...v12.1.2) (2021-04-29)
**Note:** Version bump only for package @commitlint/cli
## [12.1.1](https://github.com/conventional-changelog/commitlint/compare/v12.1.0...v12.1.1) (2021-04-02)

@@ -8,0 +16,0 @@

32

lib/cli.js
"use strict";
var __asyncValues = (this && this.__asyncValues) || function (o) {
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
var m = o[Symbol.asyncIterator], i;
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
};
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -10,3 +17,2 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

const isFunction_1 = __importDefault(require("lodash/isFunction"));
const get_stdin_1 = __importDefault(require("get-stdin"));
const resolve_from_1 = __importDefault(require("resolve-from"));

@@ -110,2 +116,24 @@ const resolve_global_1 = __importDefault(require("resolve-global"));

});
async function stdin() {
var e_1, _a;
let result = '';
if (process.stdin.isTTY) {
return result;
}
process.stdin.setEncoding('utf8');
try {
for (var _b = __asyncValues(process.stdin), _c; _c = await _b.next(), !_c.done;) {
const chunk = _c.value;
result += chunk;
}
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) await _a.call(_b);
}
finally { if (e_1) throw e_1.error; }
}
return result;
}
async function main(options) {

@@ -125,3 +153,3 @@ var _a;

const input = await (fromStdin
? get_stdin_1.default()
? stdin()
: read_1.default({

@@ -128,0 +156,0 @@ to: flags.to,

15

package.json
{
"name": "@commitlint/cli",
"version": "12.1.1",
"version": "12.1.2",
"description": "Lint your commit messages",

@@ -46,8 +46,7 @@ "files": [

"dependencies": {
"@commitlint/format": "^12.1.1",
"@commitlint/lint": "^12.1.1",
"@commitlint/load": "^12.1.1",
"@commitlint/read": "^12.1.1",
"@commitlint/types": "^12.1.1",
"get-stdin": "8.0.0",
"@commitlint/format": "^12.1.2",
"@commitlint/lint": "^12.1.2",
"@commitlint/load": "^12.1.2",
"@commitlint/read": "^12.1.2",
"@commitlint/types": "^12.1.2",
"lodash": "^4.17.19",

@@ -58,3 +57,3 @@ "resolve-from": "5.0.0",

},
"gitHead": "32daec2277f3db2855996db57264bed36ed5db21"
"gitHead": "9c6c793f63bb9c812a27721f9f13dc68e6c482f8"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc