Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@markuplint/ml-config

Package Overview
Dependencies
Maintainers
1
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@markuplint/ml-config - npm Package Compare versions

Comparing version 4.0.0-alpha.3 to 4.0.0-dev.28

8

lib/merge-config.js

@@ -51,6 +51,6 @@ import deepmerge from 'deepmerge';

}
const severity = oB.severity ?? (!isRuleConfigValue(oA) ? oA.severity : undefined);
const severity = oB.severity ?? (isRuleConfigValue(oA) ? undefined : oA.severity);
const value = oB.value ?? (isRuleConfigValue(oA) ? oA : oA.value);
const options = mergeObject(!isRuleConfigValue(oA) ? oA.options : undefined, oB.options);
const reason = oB.reason ?? (!isRuleConfigValue(oA) ? oA.reason : undefined);
const options = mergeObject(isRuleConfigValue(oA) ? undefined : oA.options, oB.options);
const reason = oB.reason ?? (isRuleConfigValue(oA) ? undefined : oA.reason);
const res = {

@@ -111,3 +111,5 @@ severity,

}
// eslint-disable-next-line unicorn/no-array-for-each
a?.forEach(concat);
// eslint-disable-next-line unicorn/no-array-for-each
b?.forEach(concat);

@@ -114,0 +116,0 @@ return newArray.length === 0 ? undefined : newArray;

@@ -52,3 +52,3 @@ // @ts-ignore

...result,
reason: exchangedValue != null ? `${exchangedValue}` : undefined,
reason: exchangedValue == null ? undefined : `${exchangedValue}`,
};

@@ -145,5 +145,5 @@ }

const result = {};
Object.keys(optionValue).forEach(key => {
for (const key of Object.keys(optionValue)) {
result[key] = exchangeOption(optionValue[key], data);
});
}
return result;

@@ -150,0 +150,0 @@ }

{
"name": "@markuplint/ml-config",
"version": "4.0.0-alpha.3",
"version": "4.0.0-dev.28+0131de5e",
"description": "JSON Schema and TypeScript types of markuplint configure JSON",

@@ -27,12 +27,12 @@ "repository": "git@github.com:markuplint/markuplint.git",

"dependencies": {
"@markuplint/ml-ast": "4.0.0-alpha.3",
"@markuplint/selector": "4.0.0-alpha.3",
"@markuplint/shared": "4.0.0-alpha.3",
"@types/mustache": "^4.2.3",
"@markuplint/ml-ast": "4.0.0-dev.28+0131de5e",
"@markuplint/selector": "4.0.0-dev.28+0131de5e",
"@markuplint/shared": "4.0.0-dev.28+0131de5e",
"@types/mustache": "^4.2.4",
"deepmerge": "^4.3.1",
"is-plain-object": "^5.0.0",
"mustache": "^4.2.0",
"type-fest": "^4.4.0"
"type-fest": "^4.5.0"
},
"gitHead": "380836f7adc1ff7e8eaf9d869e68d29eee8f3b7e"
"gitHead": "0131de5ea9dd6d3fd5472d7b414b66644c758881"
}
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