Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

@commitlint/is-ignored

Package Overview
Dependencies
Maintainers
4
Versions
85
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commitlint/is-ignored - npm Package Compare versions

Comparing version
19.8.0
to
19.8.1
+1
-1
lib/defaults.d.ts

@@ -1,3 +0,3 @@

import { Matcher } from '@commitlint/types';
import { Matcher } from "@commitlint/types";
export declare const wildcards: Matcher[];
//# sourceMappingURL=defaults.d.ts.map

@@ -1,8 +0,8 @@

import semver from 'semver';
import semver from "semver";
const isSemver = (c) => {
const firstLine = c.split('\n').shift();
if (typeof firstLine !== 'string') {
const firstLine = c.split("\n").shift();
if (typeof firstLine !== "string") {
return false;
}
const stripped = firstLine.replace(/^chore(\([^)]+\))?:/, '').trim();
const stripped = firstLine.replace(/^chore(\([^)]+\))?:/, "").trim();
return semver.valid(stripped) !== null;

@@ -9,0 +9,0 @@ };

@@ -1,3 +0,3 @@

export * from './is-ignored.js';
export { default } from './is-ignored.js';
export * from "./is-ignored.js";
export { default } from "./is-ignored.js";
//# sourceMappingURL=index.d.ts.map

@@ -1,3 +0,3 @@

export * from './is-ignored.js';
export { default } from './is-ignored.js';
export * from "./is-ignored.js";
export { default } from "./is-ignored.js";
//# sourceMappingURL=index.js.map

@@ -1,3 +0,3 @@

import { IsIgnoredOptions } from '@commitlint/types';
import { IsIgnoredOptions } from "@commitlint/types";
export default function isIgnored(commit?: string, opts?: IsIgnoredOptions): boolean;
//# sourceMappingURL=is-ignored.d.ts.map

@@ -1,12 +0,12 @@

import { wildcards } from './defaults.js';
export default function isIgnored(commit = '', opts = {}) {
const ignores = typeof opts.ignores === 'undefined' ? [] : opts.ignores;
import { wildcards } from "./defaults.js";
export default function isIgnored(commit = "", opts = {}) {
const ignores = typeof opts.ignores === "undefined" ? [] : opts.ignores;
if (!Array.isArray(ignores)) {
throw new Error(`ignores must be of type array, received ${ignores} of type ${typeof ignores}`);
}
const invalids = ignores.filter((c) => typeof c !== 'function');
const invalids = ignores.filter((c) => typeof c !== "function");
if (invalids.length > 0) {
throw new Error(`ignores must be array of type function, received items of type: ${invalids
.map((i) => typeof i)
.join(', ')}`);
.join(", ")}`);
}

@@ -13,0 +13,0 @@ const base = opts.defaults === false ? [] : wildcards;

{
"name": "@commitlint/is-ignored",
"type": "module",
"version": "19.8.0",
"version": "19.8.1",
"description": "Lint your commit messages",

@@ -39,12 +39,12 @@ "main": "lib/index.js",

"devDependencies": {
"@commitlint/parse": "^19.8.0",
"@commitlint/test": "^19.8.0",
"@commitlint/utils": "^19.8.0",
"@commitlint/parse": "^19.8.1",
"@commitlint/test": "^19.8.1",
"@commitlint/utils": "^19.8.1",
"@types/semver": "^7.5.7"
},
"dependencies": {
"@commitlint/types": "^19.8.0",
"@commitlint/types": "^19.8.1",
"semver": "^7.6.0"
},
"gitHead": "e82f05a737626bb69979d14564f5ff601997f679"
"gitHead": "3c302008cabeb0b08cd246b2417a51a9d745a918"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet