Comparing version 0.3.0 to 0.4.0
# Release History | ||
* 0.4.0 | ||
* ADD: `amp-youtube` handles different versions of youtube links inclusing https | ||
* BUG: images css selector | ||
* 0.3.0 | ||
@@ -16,3 +19,3 @@ * ADD: `amp-youtube` | ||
* UPDATE: head tag charset order | ||
* UPDATE: remove invalid img tag | ||
* UPDATE: remove invalid `img` tag | ||
* UPDATE: unit tests | ||
@@ -27,3 +30,3 @@ * UPDATE: readme documentation | ||
* 0.2.2 | ||
* ADD: meta tag charset | ||
* ADD: `meta` tag charset | ||
* ADD: AMP library `script` tag | ||
@@ -30,0 +33,0 @@ * BUG: Options parameter not passing |
@@ -89,3 +89,3 @@ const fs = require('fs'); | ||
/* img dimensions */ | ||
$('img:not(width):not(height)').each((index, element) => { | ||
$('img:not([width]):not([height])').each((index, element) => { | ||
const src = $(element).attr('src'); | ||
@@ -143,3 +143,3 @@ if (!src) { | ||
/* youtube */ | ||
$('iframe[src*="http://www.youtube.com"]').each((index, element) => { | ||
$('iframe[src*="http://www.youtube.com"],iframe[src*="https://www.youtube.com"],iframe[src*="http://youtu.be/"],iframe[src*="https://youtu.be/"]').each((index, element) => { | ||
youtube = true; | ||
@@ -146,0 +146,0 @@ const src = $(element).attr('src'); |
{ | ||
"name": "ampify", | ||
"version": "0.3.0", | ||
"version": "0.4.0", | ||
"description": "Convert plain HTML to Google Accelerated Mobile Pages (AMP)", | ||
@@ -44,4 +44,4 @@ "main": "index.js", | ||
"eslint-plugin-import": "^2.12.0", | ||
"jest": "^22.4.4" | ||
"jest": "^23.1.0" | ||
} | ||
} |
@@ -5,4 +5,7 @@ # ampify | ||
[![Downloads Stats][npm-downloads]][npm-url] | ||
[](https://travis-ci.org/rkazakov/ampify) | ||
[](https://github.com/facebook/jest) | ||
[](https://snyk.io/test/github/rkazakov/ampify) | ||
[](https://github.com/facebook/jest) | ||
[](https://greenkeeper.io/) | ||
@@ -9,0 +12,0 @@ > Convert plain HTML to Google AMP (Accelerated Mobile Pages) |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
12774
7
164
183
0