gatsby-plugin-amp
Advanced tools
Comparing version 0.1.25 to 0.1.26
@@ -158,10 +158,2 @@ "use strict"; | ||
if (isAmp) { | ||
const headComponents = getHeadComponents(); | ||
const styles = headComponents.reduce((str, x) => { | ||
if (x.type === "style") { | ||
str += x.props.dangerouslySetInnerHTML.__html; | ||
} | ||
return str; | ||
}, ""); | ||
setHtmlAttributes({ | ||
@@ -178,3 +170,3 @@ amp: "" | ||
fileName: _jsxFileName, | ||
lineNumber: 133 | ||
lineNumber: 126 | ||
}, | ||
@@ -187,3 +179,3 @@ __self: void 0 | ||
fileName: _jsxFileName, | ||
lineNumber: 143 | ||
lineNumber: 136 | ||
}, | ||
@@ -194,15 +186,5 @@ __self: void 0 | ||
fileName: _jsxFileName, | ||
lineNumber: 145 | ||
lineNumber: 138 | ||
}, | ||
__self: void 0 | ||
}), _react.default.createElement("style", { | ||
"amp-custom": "", | ||
dangerouslySetInnerHTML: { | ||
__html: styles | ||
}, | ||
__source: { | ||
fileName: _jsxFileName, | ||
lineNumber: 147 | ||
}, | ||
__self: void 0 | ||
})]); | ||
@@ -215,3 +197,3 @@ setPreBodyComponents([analytics != undefined ? _react.default.createElement("amp-analytics", { | ||
fileName: _jsxFileName, | ||
lineNumber: 151 | ||
lineNumber: 143 | ||
}, | ||
@@ -222,3 +204,3 @@ __self: void 0 | ||
fileName: _jsxFileName, | ||
lineNumber: 159 | ||
lineNumber: 151 | ||
}, | ||
@@ -235,3 +217,3 @@ __self: void 0 | ||
fileName: _jsxFileName, | ||
lineNumber: 161 | ||
lineNumber: 153 | ||
}, | ||
@@ -242,3 +224,3 @@ __self: void 0 | ||
fileName: _jsxFileName, | ||
lineNumber: 172 | ||
lineNumber: 164 | ||
}, | ||
@@ -302,3 +284,3 @@ __self: void 0 | ||
fileName: _jsxFileName, | ||
lineNumber: 220 | ||
lineNumber: 212 | ||
}, | ||
@@ -312,3 +294,3 @@ __self: void 0 | ||
fileName: _jsxFileName, | ||
lineNumber: 221 | ||
lineNumber: 213 | ||
}, | ||
@@ -315,0 +297,0 @@ __self: void 0 |
{ | ||
"name": "gatsby-plugin-amp", | ||
"version": "0.1.25", | ||
"version": "0.1.26", | ||
"description": "A gatsby plugin for scaffolding AMP pages", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
18770
277