Socket
Socket
Sign inDemoInstall

@commitlint/load

Package Overview
Dependencies
Maintainers
4
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commitlint/load - npm Package Compare versions

Comparing version 19.2.0 to 19.4.0

6

lib/utils/plugin-naming.js
import path from 'path';
// largely adapted from eslint's plugin system
const NAMESPACE_REGEX = /^@.*\//iu;
const NAMESPACE_REGEX = /^@.*\//u;
// In eslint this is a parameter - we don't need to support the extra options

@@ -33,3 +33,3 @@ const prefix = 'commitlint-plugin';

*/
const scopedPackageShortcutRegex = new RegExp(`^(@[^/]+)(?:/(?:${prefix})?)?$`, 'u'), scopedPackageNameRegex = new RegExp(`^${prefix}(-|$)`, 'u');
const scopedPackageShortcutRegex = new RegExp(`^(@[^/]+)(?:/(?:${prefix})?)?$`, 'u'), scopedPackageNameRegex = new RegExp(`^${prefix}(?:-|$)`, 'u');
if (scopedPackageShortcutRegex.test(normalizedName)) {

@@ -78,5 +78,5 @@ normalizedName = normalizedName.replace(scopedPackageShortcutRegex, `$1/${prefix}`);

export function getNamespaceFromTerm(term) {
const match = term.match(NAMESPACE_REGEX);
const match = NAMESPACE_REGEX.exec(term);
return match ? match[0] : '';
}
//# sourceMappingURL=plugin-naming.js.map
{
"name": "@commitlint/load",
"type": "module",
"version": "19.2.0",
"version": "19.4.0",
"description": "Load shared commitlint configuration",

@@ -59,3 +59,3 @@ "main": "lib/load.js",

},
"gitHead": "a64b417b58b3b1e89f07ff529a29a4af223e9369"
"gitHead": "bac2288cc7de5bb6f41939d1c562193c74ce16d5"
}

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