Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbenz committed Jan 15, 2021
1 parent e313598 commit 5dbdc56
Show file tree
Hide file tree
Showing 11 changed files with 1,353 additions and 1,265 deletions.
2,522 changes: 1,307 additions & 1,215 deletions package-lock.json

Large diffs are not rendered by default.

48 changes: 24 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,60 +25,60 @@
},
"devDependencies": {
"@ampproject/rollup-plugin-closure-compiler": "0.26.0",
"@babel/core": "7.12.9",
"@types/cheerio": "0.22.22",
"@babel/core": "7.12.10",
"@types/cheerio": "0.22.23",
"@types/debug": "4.1.5",
"@types/diff": "4.0.2",
"@types/diff": "5.0.0",
"@types/escape-html": "1.0.0",
"@types/nock": "11.1.0",
"@types/node-fetch": "2.5.7",
"@typescript-eslint/eslint-plugin": "4.9.0",
"@typescript-eslint/parser": "4.9.0",
"amphtml-validator": "1.0.33",
"@types/node-fetch": "2.5.8",
"@typescript-eslint/eslint-plugin": "4.13.0",
"@typescript-eslint/parser": "4.13.0",
"amphtml-validator": "1.0.34",
"babel-plugin-filter-imports": "4.0.0",
"colorette": "^1.2.1",
"diff": "5.0.0",
"eslint": "7.14.0",
"eslint": "7.17.0",
"eslint-config-google": "0.14.0",
"eslint-config-prettier": "6.15.0",
"eslint-plugin-prettier": "3.1.4",
"execa": "4.1.0",
"eslint-config-prettier": "7.1.0",
"eslint-plugin-prettier": "3.3.1",
"execa": "5.0.0",
"fetch-mock": "9.11.0",
"html-minifier": "4.0.0",
"husky": "4.3.0",
"husky": "4.3.7",
"jest": "26.6.3",
"jimp": "0.16.1",
"js-beautify": "1.13.0",
"karma": "5.2.3",
"js-beautify": "1.13.4",
"karma": "6.0.0",
"karma-chrome-launcher": "3.1.0",
"karma-jasmine": "4.0.1",
"lerna": "3.22.1",
"lerna-changelog": "1.0.1",
"lighthouse": "6.4.1",
"lint-staged": "10.5.2",
"lighthouse": "7.0.0",
"lint-staged": "10.5.3",
"lru-cache": "6.0.0",
"mock-express-request": "0.2.2",
"mock-express-response": "0.2.2",
"nanoid": "^3.1.18",
"needle": "^2.5.2",
"mock-express-response": "0.3.0",
"nanoid": "^3.1.20",
"needle": "^2.6.0",
"nock": "13.0.5",
"npm-run-all": "4.1.5",
"prettier": "2.2.1",
"prettier-eslint": "12.0.0",
"probe-image-size": "6.0.0",
"rollup": "2.34.0",
"rollup": "2.36.1",
"rollup-plugin-babel": "4.4.0",
"rollup-plugin-commonjs": "10.1.0",
"rollup-plugin-filesize": "9.0.2",
"rollup-plugin-filesize": "9.1.0",
"rollup-plugin-json": "4.0.0",
"rollup-plugin-node-resolve": "5.2.0",
"rollup-plugin-serve": "1.1.0",
"semver": "7.3.2",
"semver": "7.3.4",
"tap-parser": "10.1.0",
"tar": "6.0.5",
"tar": "6.1.0",
"throat": "5.0.0",
"ts-jest": "26.4.4",
"typescript": "4.1.2"
"typescript": "4.1.3"
},
"dependencies": {
"@ampproject/toolbox-cache-list": "file:packages/cache-list",
Expand Down
4 changes: 2 additions & 2 deletions packages/lighthouse-plugin-amp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
},
"homepage": "https://github.com/ampproject/amp-toolbox/tree/main/packages/lighthouse-plugin-amp",
"dependencies": {
"amphtml-validator": "1.0.33",
"amphtml-validator": "1.0.34",
"node-fetch": "^2.6.1"
},
"version": "2.7.2",
"main": "./plugin.js",
"peerDependencies": {
"lighthouse": ">=6.4.1"
"lighthouse": ">=7.0.0"
},
"gitHead": "9b159391d776396512b01ec250fa76941713c763"
}
8 changes: 4 additions & 4 deletions packages/linter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
"@ampproject/toolbox-cache-list": "2.7.4",
"@ampproject/toolbox-cache-url": "^2.7.2",
"@ampproject/toolbox-optimizer": "2.7.4",
"amphtml-validator": "1.0.33",
"amphtml-validator": "1.0.34",
"chalk": "4.1.0",
"cheerio": "1.0.0-rc.3",
"commander": "6.2.0",
"commander": "7.0.0",
"cross-fetch": "3.0.6",
"debug": "4.3.1",
"execa": "4.1.0",
"execa": "5.0.0",
"probe-image-size": "6.0.0",
"throat": "5.0.0"
},
Expand All @@ -42,6 +42,6 @@
"devDependencies": {
"prettier": "2.2.1",
"tap-parser": "10.1.0",
"typescript": "4.1.2"
"typescript": "4.1.3"
}
}
2 changes: 1 addition & 1 deletion packages/linter/src/rules/ImagesHaveAltText.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class ImagesHaveAltText extends Rule {
return chalk.yellow(s);
};

$("amp-img").each(function (i, elem) {
$("amp-img").each(function (_, elem: cheerio.TagElement) {
if (!elem.attribs.alt) {
if (typeof imgsWithoutAlt[elem.attribs.src] == "undefined") {
imgsWithoutAlt[elem.attribs.src] = 1;
Expand Down
2 changes: 1 addition & 1 deletion packages/linter/src/rules/MetadataIncludesOGImageSrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export class MetadataIncludesOGImageSrc extends Rule {
run({ $ }: Context) {
let hasOGImage = false;

$("meta").each(function (i, elem) {
$("meta").each(function (i, elem: cheerio.TagElement) {
if (
(elem.attribs.property &&
elem.attribs.property.includes("og:image", 0) &&
Expand Down
5 changes: 3 additions & 2 deletions packages/linter/src/rules/TitleMeetsLengthCriteria.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ export class TitleMeetsLengthCriteria extends Rule {
const e = $("amp-story[title]");
const PASSING_LEN = 90;

return e[0].attribs.title.length > PASSING_LEN
return (e[0] as cheerio.TagElement).attribs.title.length > PASSING_LEN
? this.warn("Title is too long")
: this.pass();
}
meta() {
return {
url: "https://developers.google.com/search/docs/guides/web-stories-creation-best-practices#seo",
url:
"https://developers.google.com/search/docs/guides/web-stories-creation-best-practices#seo",
title: "Title is ninety characters or less",
info: "",
};
Expand Down
2 changes: 1 addition & 1 deletion packages/linter/src/rules/VideosHaveAltText.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export class VideosHaveAltText extends Rule {
run({ $ }: Context) {
let vidsWithoutAlt = 0;

$("amp-video").each(function (i, elem) {
$("amp-video").each(function (i, elem: cheerio.TagElement) {
if (!elem.attribs.title) {
vidsWithoutAlt += 1;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/linter/src/rules/ViewportDisablesTapDelay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Rule } from "../rule";

export class ViewportDisablesTapDelay extends Rule {
run({ $ }: Context) {
const viewport = $("meta[name=viewport]")[0];
const viewport = $("meta[name=viewport]")[0] as cheerio.TagElement;
if (!viewport) {
return this.pass();
}
Expand Down
2 changes: 1 addition & 1 deletion packages/optimizer-express/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@ampproject/toolbox-core": "2.7.4",
"@ampproject/toolbox-optimizer": "2.7.4",
"@ampproject/toolbox-runtime-version": "2.7.4",
"mime-types": "2.1.27",
"mime-types": "2.1.28",
"whatwg-url": "8.4.0"
},
"gitHead": "b0efede4ff9a6baa8173016f7c630d406e26d5e3"
Expand Down
21 changes: 8 additions & 13 deletions packages/optimizer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,8 @@
"scripts": {
"postinstall": "node lib/warmup.js"
},
"files": [
"index.js",
"lib"
],
"keywords": [
"amp"
],
"files": ["index.js", "lib"],
"keywords": ["amp"],
"author": "AMPHTML Team",
"license": "Apache-2.0",
"peerDependenciesMeta": {
Expand All @@ -36,15 +31,15 @@
"abort-controller": "3.0.0",
"cross-fetch": "3.0.6",
"cssnano-simple": "1.2.1",
"dom-serializer": "1.1.0",
"domhandler": "3.3.0",
"domutils": "2.4.2",
"htmlparser2": "5.0.1",
"dom-serializer": "1.2.0",
"domhandler": "4.0.0",
"domutils": "2.4.4",
"htmlparser2": "6.0.0",
"https-proxy-agent": "5.0.0",
"lru-cache": "6.0.0",
"normalize-html-whitespace": "1.0.0",
"postcss": "7.0.32",
"postcss-safe-parser": "4.0.2",
"postcss": "8.2.4",
"postcss-safe-parser": "5.0.2",
"terser": "5.5.1"
},
"bugs": {
Expand Down

0 comments on commit 5dbdc56

Please sign in to comment.