New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

html2amp

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

html2amp - npm Package Compare versions

Comparing version 1.0.4 to 1.1.0

5

lib/utils.js

@@ -62,3 +62,6 @@ const axios = require('axios')

}
const _attrs = { src: url, alt, width: size.width, height: size.height, layout: 'responsive', ...attrs }
// remove loading attribute
// https://github.com/tomoyukikashiro/html2amp/issues/80
let { loading, ..._attrs } = attrs
_attrs = { src: url, alt, width: size.width, height: size.height, layout: 'responsive', ..._attrs }
const _attrsStr = Object.keys(_attrs).map(key => `${key}="${_attrs[key]}"`).join(' ')

@@ -65,0 +68,0 @@ return `<amp-img ${_attrsStr}></amp-img>`

10

package.json
{
"name": "html2amp",
"version": "1.0.4",
"version": "1.1.0",
"description": "Simple converter from HTML into AMP(Accelerated Mobile Pages)",

@@ -31,11 +31,11 @@ "main": "index.js",

"clean-css": "^4.2.1",
"data-uri-to-buffer": "^2.0.0",
"image-size": "^0.7.0"
"data-uri-to-buffer": "^3.0.0",
"image-size": "^0.8.0"
},
"devDependencies": {
"amphtml-validator": "1.0.23",
"eslint": "6.3.0",
"eslint": "6.5.1",
"eslint-config-standard": "14.1.0",
"eslint-plugin-import": "2.18.2",
"eslint-plugin-node": "9.2.0",
"eslint-plugin-node": "10.0.0",
"eslint-plugin-promise": "4.2.1",

@@ -42,0 +42,0 @@ "eslint-plugin-standard": "4.0.1",

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