New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@astral/commitlint-config

Package Overview
Dependencies
Maintainers
3
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@astral/commitlint-config - npm Package Compare versions

Comparing version 2.3.0 to 2.4.0

10

index.js

@@ -19,3 +19,3 @@ const DEFAULT_TYPE_ENUM = [

* @param {string[]} [params.scopes=[]] - Список доступных scopes.
* @param {string} params.ticketPrefix - Название префикса задач, данный префикс будет доступен в scope.
* @param {string} params.ticketPrefix - Название префикса или список названий префиксов задач, данный префикс будет доступен в scope.
* @param {string[]} [params.typeEnum=[]] - Список доступных type.

@@ -67,4 +67,6 @@ * @example

({ scope }) => {
const isTicketScope = scope?.startsWith(`${ticketPrefix}-`);
const ticketPrefixes = Array.isArray(ticketPrefix) ? ticketPrefix : [ticketPrefix];
const isTicketScope = ticketPrefixes.some((prefix) => scope?.startsWith(`${prefix}-`))
if (!scope || scopes.includes(scope) || isTicketScope) {

@@ -74,3 +76,5 @@ return [true];

const scopesEnumsMessage = [...scopes, `${ticketPrefix}-XXXX`].join(
const formattedTickets = ticketPrefixes.map((ticket) =>`${ticket}-XXXX`);
const scopesEnumsMessage = [...scopes, ...formattedTickets].join(
', ',

@@ -77,0 +81,0 @@ );

{
"name": "@astral/commitlint-config",
"main": "./index.js",
"version": "2.3.0",
"version": "2.4.0",
"dependencies": {

@@ -6,0 +6,0 @@ "@commitlint/config-conventional": "^17.0.2",

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