Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gatsby-plugin-amp

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-plugin-amp - npm Package Compare versions

Comparing version 0.1.25 to 0.1.26

36

gatsby-ssr.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc