react-datocms
Advanced tools
Comparing version 1.2.5 to 1.2.6
@@ -34,2 +34,22 @@ "use strict"; | ||
tag: "meta" | ||
}, | ||
{ | ||
attributes: { | ||
sizes: "16x16", | ||
type: "image/png", | ||
rel: "icon", | ||
href: "https://example.org/favicon.png?h=16&w=16" | ||
}, | ||
content: null, | ||
tag: "link" | ||
}, | ||
{ | ||
attributes: { | ||
sizes: "32x32", | ||
type: "image/png", | ||
rel: "icon", | ||
href: "https://example.org/favicon.png?h=32&w=32" | ||
}, | ||
content: null, | ||
tag: "link" | ||
} | ||
@@ -50,2 +70,4 @@ ]; | ||
'<meta name="twitter:title" content="A new Media Area is online!" />', | ||
'<link sizes="16x16" type="image/png" rel="icon" href="https://example.org/favicon.png?h=16&w=16" />', | ||
'<link sizes="32x32" type="image/png" rel="icon" href="https://example.org/favicon.png?h=32&w=32" />' | ||
].join("\n")); | ||
@@ -52,0 +74,0 @@ }); |
@@ -28,2 +28,8 @@ "use strict"; | ||
} | ||
if (attributes && "rel" in attributes) { | ||
key.push(attributes.rel); | ||
} | ||
if (attributes && "sizes" in attributes) { | ||
key.push(attributes.sizes); | ||
} | ||
var Tag = tag; | ||
@@ -30,0 +36,0 @@ return (react_1["default"].createElement(Tag, __assign({ key: key.join("-") }, attributes), content)); |
{ | ||
"name": "react-datocms", | ||
"version": "1.2.5", | ||
"version": "1.2.6", | ||
"types": "dist/index.d.ts", | ||
@@ -26,3 +26,3 @@ "main": "dist/index.js", | ||
"jest": "^25.1.0", | ||
"np": "^6.2.0", | ||
"np": "^6.2.5", | ||
"raf": "^3.4.1", | ||
@@ -29,0 +29,0 @@ "react": "^16.13.0", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
39371
354