@markuplint/ml-config
Advanced tools
Comparing version 4.0.0-alpha.3 to 4.0.0-dev.28
@@ -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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19114
549
1
- Removed@markuplint/ml-ast@4.0.0-alpha.3(transitive)
- Removed@markuplint/ml-spec@4.0.0-alpha.3(transitive)
- Removed@markuplint/selector@4.0.0-alpha.3(transitive)
- Removed@markuplint/shared@4.0.0-alpha.3(transitive)
- Removed@markuplint/types@4.0.0-alpha.3(transitive)
- Removed@types/bcp-47@2.0.4(transitive)
- Removed@types/css-tree@2.3.9(transitive)
- Removed@types/debug@4.1.12(transitive)
- Removed@types/ms@0.7.34(transitive)
- Removed@types/whatwg-mimetype@3.0.0(transitive)
- Removedbcp-47@2.1.0(transitive)
- Removedcss-tree@2.3.1(transitive)
- Removedcssesc@3.0.0(transitive)
- Removeddebug@4.4.0(transitive)
- Removeddom-accessibility-api@0.6.3(transitive)
- Removedhtml-entities@2.5.2(transitive)
- Removedis-alphabetical@2.0.1(transitive)
- Removedis-alphanumerical@2.0.1(transitive)
- Removedis-decimal@2.0.1(transitive)
- Removedleven@4.0.0(transitive)
- Removedmdn-data@2.0.30(transitive)
- Removedms@2.1.3(transitive)
- Removedpostcss-selector-parser@6.1.2(transitive)
- Removedsource-map-js@1.2.1(transitive)
- Removedtslib@2.8.1(transitive)
- Removedutil-deprecate@1.0.2(transitive)
- Removedwhatwg-mimetype@3.0.0(transitive)
Updated@types/mustache@^4.2.4
Updatedtype-fest@^4.5.0