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

@markuplint/parser-utils

Package Overview
Dependencies
Maintainers
1
Versions
142
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@markuplint/parser-utils - npm Package Compare versions

Comparing version 3.0.0-alpha.4 to 3.0.0-alpha.5

10

lib/detect-element-type.js

@@ -6,3 +6,3 @@ "use strict";

function detectElementType(name, option, defaultPattern) {
if (distinguishAutoredName(name, option, defaultPattern)) {
if (distinguishAuthoredName(name, option, defaultPattern)) {
return 'authored';

@@ -13,12 +13,12 @@ }

exports.detectElementType = detectElementType;
function distinguishAutoredName(name, pattern, defaultPattern) {
function distinguishAuthoredName(name, pattern, defaultPattern) {
if (pattern) {
return _distinguishAutoredName(name, pattern);
return _distinguishAuthoredName(name, pattern);
}
if (defaultPattern) {
return _distinguishAutoredName(name, defaultPattern);
return _distinguishAuthoredName(name, defaultPattern);
}
return false;
}
function _distinguishAutoredName(name, patterns) {
function _distinguishAuthoredName(name, patterns) {
const patternList = Array.isArray(patterns) ? patterns : [patterns];

@@ -25,0 +25,0 @@ return patternList.some(pattern => {

{
"name": "@markuplint/parser-utils",
"version": "3.0.0-alpha.4",
"version": "3.0.0-alpha.5",
"description": "Utility module for markuplint parser plugin",

@@ -22,8 +22,8 @@ "repository": "git@github.com:markuplint/markuplint.git",

"dependencies": {
"@markuplint/ml-ast": "3.0.0-alpha.4",
"@markuplint/types": "3.0.0-alpha.4",
"@markuplint/ml-ast": "3.0.0-alpha.5",
"@markuplint/types": "3.0.0-alpha.5",
"tslib": "^2.4.0",
"uuid": "8"
},
"gitHead": "04fdbb677c6893de3d16613ddcd112de25dc55db"
"gitHead": "d2ee395d917cb69b91dedb0262b1c12ddc81fb58"
}

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