react-datocms
Advanced tools
Comparing version 5.0.0 to 5.0.2
@@ -32,7 +32,9 @@ "use strict"; | ||
return { title: x.content }; | ||
return x.attributes; | ||
if (x.attributes) { | ||
return Object.assign({ tagName: x.tag }, x.attributes); | ||
} | ||
}) | ||
.filter((x) => Boolean(x)); | ||
.filter(Boolean); | ||
} | ||
exports.toRemixMeta = toRemixMeta; | ||
//# sourceMappingURL=remixUtils.js.map |
@@ -28,6 +28,8 @@ export function toRemixV1Meta(metaTags) { | ||
return { title: x.content }; | ||
return x.attributes; | ||
if (x.attributes) { | ||
return Object.assign({ tagName: x.tag }, x.attributes); | ||
} | ||
}) | ||
.filter((x) => Boolean(x)); | ||
.filter(Boolean); | ||
} | ||
//# sourceMappingURL=remixUtils.js.map |
@@ -6,3 +6,3 @@ import { SeoOrFaviconTag, TitleMetaLinkTag } from './types.js'; | ||
export declare function toRemixV1Meta(metaTags: null | TitleMetaLinkTag[] | SeoOrFaviconTag[]): RemixV1HtmlMetaDescriptor; | ||
export declare function toRemixMeta(tags: null | TitleMetaLinkTag[] | SeoOrFaviconTag[]): NonNullable<Record<string, string> | import("./types.js").RegularMetaAttributes | import("./types.js").OgMetaAttributes | import("./types.js").FaviconAttributes | import("./types.js").AppleTouchIconAttributes | null | undefined>[]; | ||
export declare function toRemixMeta(tags: null | TitleMetaLinkTag[] | SeoOrFaviconTag[]): (Record<string, string> | undefined)[]; | ||
export {}; |
{ | ||
"name": "react-datocms", | ||
"version": "5.0.0", | ||
"version": "5.0.2", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "node": ">=8.0.0" |
@@ -46,5 +46,10 @@ import { SeoOrFaviconTag, TitleMetaLinkTag } from './types.js'; | ||
if (x.tag === 'title' && x.content) return { title: x.content }; | ||
return x.attributes; | ||
if (x.attributes) { | ||
return { | ||
tagName: x.tag, | ||
...x.attributes, | ||
} as Record<string, string>; | ||
} | ||
}) | ||
.filter((x): x is NonNullable<typeof x> => Boolean(x)); | ||
.filter(Boolean); | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
329059
4169