@gravity-ui/app-layout
Advanced tools
Comparing version 1.7.0 to 1.7.1
@@ -40,3 +40,9 @@ "use strict"; | ||
const htmlAttributes = {}; | ||
const meta = [...defaultMeta, ...((_a = params.meta) !== null && _a !== void 0 ? _a : [])]; | ||
const meta = (_a = params.meta) !== null && _a !== void 0 ? _a : []; | ||
// in terms of sets: meta = params.meta ∪ (defaultMeta ∖ params.meta) | ||
defaultMeta.forEach((defaultMetaItem) => { | ||
if (!meta.find(({ name }) => name === defaultMetaItem.name)) { | ||
meta.push(defaultMetaItem); | ||
} | ||
}); | ||
const styleSheets = params.styleSheets || []; | ||
@@ -43,0 +49,0 @@ const scripts = params.scripts || []; |
@@ -34,3 +34,9 @@ import htmlescape from 'htmlescape'; | ||
const htmlAttributes = {}; | ||
const meta = [...defaultMeta, ...((_a = params.meta) !== null && _a !== void 0 ? _a : [])]; | ||
const meta = (_a = params.meta) !== null && _a !== void 0 ? _a : []; | ||
// in terms of sets: meta = params.meta ∪ (defaultMeta ∖ params.meta) | ||
defaultMeta.forEach((defaultMetaItem) => { | ||
if (!meta.find(({ name }) => name === defaultMetaItem.name)) { | ||
meta.push(defaultMetaItem); | ||
} | ||
}); | ||
const styleSheets = params.styleSheets || []; | ||
@@ -37,0 +43,0 @@ const scripts = params.scripts || []; |
{ | ||
"name": "@gravity-ui/app-layout", | ||
"version": "1.7.0", | ||
"version": "1.7.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
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
64127
1291