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.24 to 0.1.25

6

gatsby-ssr.js

@@ -41,3 +41,3 @@ "use strict";

const postBodyComponents = getPostBodyComponents();
const isAmp = pathname.indexOf(pathIdentifier) > -1;
const isAmp = pathname && pathname.indexOf(pathIdentifier) > -1;

@@ -271,3 +271,3 @@ if (isAmp) {

if (image.src.indexOf(".gif") > -1) {
if (image.src && image.src.indexOf(".gif") > -1) {
ampImage = document.createElement("amp-anim");

@@ -286,3 +286,3 @@ headComponents.push("amp-anim");

Object.keys(defaults.image).forEach(key => {
if (includedAttributes.indexOf(key) === -1) {
if (includedAttributes && includedAttributes.indexOf(key) === -1) {
ampImage.setAttribute(key, defaults.image[key]);

@@ -289,0 +289,0 @@ }

{
"name": "gatsby-plugin-amp",
"version": "0.1.24",
"version": "0.1.25",
"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