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.17 to 0.1.18

40

gatsby-ssr.js

@@ -14,2 +14,4 @@ "use strict";

var minimatch = _interopRequireWildcard(require("minimatch"));
var _jsxFileName = "/Users/jfaircloth/GitHub/gatsby-plugin-amp/src/gatsby-ssr.js";

@@ -54,3 +56,3 @@ const ampBoilerplate = `body{-webkit-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-moz-animation:-amp-start 8s steps(1,end) 0s 1 normal both;-ms-animation:-amp-start 8s steps(1,end) 0s 1 normal both;animation:-amp-start 8s steps(1,end) 0s 1 normal both}@-webkit-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-moz-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-ms-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@-o-keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}@keyframes -amp-start{from{visibility:hidden}to{visibility:visible}}`;

fileName: _jsxFileName,
lineNumber: 41
lineNumber: 42
},

@@ -65,3 +67,3 @@ __self: void 0

fileName: _jsxFileName,
lineNumber: 42
lineNumber: 43
},

@@ -72,3 +74,3 @@ __self: void 0

fileName: _jsxFileName,
lineNumber: 46
lineNumber: 47
},

@@ -83,3 +85,3 @@ __self: void 0

fileName: _jsxFileName,
lineNumber: 47
lineNumber: 48
},

@@ -94,3 +96,3 @@ __self: void 0

fileName: _jsxFileName,
lineNumber: 52
lineNumber: 53
},

@@ -104,3 +106,3 @@ __self: void 0

fileName: _jsxFileName,
lineNumber: 54
lineNumber: 55
},

@@ -114,3 +116,3 @@ __self: void 0

fileName: _jsxFileName,
lineNumber: 61
lineNumber: 62
},

@@ -121,3 +123,3 @@ __self: void 0

fileName: _jsxFileName,
lineNumber: 67
lineNumber: 68
},

@@ -128,3 +130,3 @@ __self: void 0

replacePostBodyComponents(postBodyComponents.filter(x => x.type !== "script"));
} else if (excludedPaths.indexOf(pathname.replace(pathIdentifier, "")) < 0) {
} else if (excludedPaths.findIndex(_path => minimatch(pathname, _path)) < 0) {
replaceHeadComponents([_react.default.createElement("link", {

@@ -135,3 +137,3 @@ rel: "amphtml",

fileName: _jsxFileName,
lineNumber: 79
lineNumber: 80
},

@@ -167,3 +169,3 @@ __self: void 0

fileName: _jsxFileName,
lineNumber: 99
lineNumber: 100
},

@@ -176,3 +178,3 @@ __self: void 0

fileName: _jsxFileName,
lineNumber: 104
lineNumber: 105
},

@@ -183,3 +185,3 @@ __self: void 0

fileName: _jsxFileName,
lineNumber: 106
lineNumber: 107
},

@@ -194,3 +196,3 @@ __self: void 0

fileName: _jsxFileName,
lineNumber: 111
lineNumber: 112
},

@@ -201,3 +203,3 @@ __self: void 0

fileName: _jsxFileName,
lineNumber: 119
lineNumber: 120
},

@@ -214,3 +216,3 @@ __self: void 0

fileName: _jsxFileName,
lineNumber: 121
lineNumber: 122
},

@@ -221,3 +223,3 @@ __self: void 0

fileName: _jsxFileName,
lineNumber: 132
lineNumber: 133
},

@@ -280,3 +282,3 @@ __self: void 0

fileName: _jsxFileName,
lineNumber: 180
lineNumber: 181
},

@@ -290,3 +292,3 @@ __self: void 0

fileName: _jsxFileName,
lineNumber: 181
lineNumber: 182
},

@@ -293,0 +295,0 @@ __self: void 0

{
"name": "gatsby-plugin-amp",
"version": "0.1.17",
"version": "0.1.18",
"description": "A gatsby plugin for scaffolding AMP pages",

@@ -16,2 +16,3 @@ "main": "index.js",

"jsdom": "^13.0.0",
"minimatch": "^3.0.4",
"react": "^16.6.1"

@@ -18,0 +19,0 @@ },

@@ -42,3 +42,3 @@ # gatsby-plugin-amp

While creating posts in your `gatsby-node.js` file, create an additional page in the `/amp/` directory using the AMP template you just made
To assist with situations like images in markdown or other externally created HTML, the plugin will attempt to turn `img` tags to `amp-img` or `amp-anim`. While creating posts in your `gatsby-node.js` file, create an additional page in the `/amp/` directory using the AMP template you just made

@@ -139,3 +139,3 @@ ```javascript

**excludedPaths**`{Array<String>}`
By default, this plugin will create `rel="amphtml"` links in all pages. If there are pages you would like to not have those links, include them here. *this may go away if a way can be found to programatically exclude pages based on whether or not they have an AMP equivalent. But for now, this will work*
By default, this plugin will create `rel="amphtml"` links in all pages. If there are pages you would like to not have those links, include them here. You may use glob patterns in your strings (e.g. `/admin/*`). *this may go away if a way can be found to programatically exclude pages based on whether or not they have an AMP equivalent. But for now, this will work*

@@ -142,0 +142,0 @@ **pathIdentifier** `{String}`

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