Skip to content

Commit

Permalink
Deps updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffposnick committed Jun 22, 2021
1 parent bb305e5 commit 0ff3e3f
Show file tree
Hide file tree
Showing 8 changed files with 3,026 additions and 3,337 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ module.exports = {
},
parserOptions: {
ecmaVersion: 2017,
sourceType: 'module',
},
rules: {
'require-jsdoc': 0,
Expand All @@ -51,6 +52,6 @@ module.exports = {
'header/header': [2, 'block', {
pattern: 'Copyright \\d{4} Google Inc.',
}],
}
},
}],
};
506 changes: 361 additions & 145 deletions functions/package-lock.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"@popeindustries/lit-html-server": "^3.1.0",
"axios": "^0.21.1",
"express": "^4.17.1",
"firebase-admin": "^9.4.2",
"firebase-functions": "^3.13.1",
"html-escaper": "^3.0.0",
"firebase-admin": "^9.9.0",
"firebase-functions": "^3.14.1",
"html-escaper": "^3.0.3",
"lru-cache": "^6.0.0"
},
"private": true,
Expand Down
5,795 changes: 2,634 additions & 3,161 deletions package-lock.json

Large diffs are not rendered by default.

44 changes: 22 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,36 +29,36 @@
"homepage": "/~https://github.com/GoogleChromeLabs/so-pwa#readme",
"devDependencies": {
"@ampproject/rollup-plugin-closure-compiler": "^0.26.0",
"@babel/core": "^7.12.13",
"@babel/preset-env": "^7.12.13",
"@babel/core": "^7.14.6",
"@babel/preset-env": "^7.14.7",
"@popeindustries/lit-html-server": "^3.1.0",
"@rollup/plugin-commonjs": "^17.1.0",
"@rollup/plugin-node-resolve": "^11.1.1",
"@rollup/plugin-replace": "^2.3.4",
"@surma/rollup-plugin-off-main-thread": "^1.4.2",
"cssnano": "^4.1.10",
"eslint": "^7.19.0",
"@rollup/plugin-commonjs": "^19.0.0",
"@rollup/plugin-node-resolve": "^13.0.0",
"@rollup/plugin-replace": "^2.4.2",
"@surma/rollup-plugin-off-main-thread": "^2.2.2",
"cssnano": "^5.0.6",
"eslint": "^7.29.0",
"eslint-config-google": "^0.14.0",
"eslint-plugin-header": "^3.1.1",
"firebase-tools": "^9.3.0",
"html-escaper": "^3.0.0",
"firebase-tools": "^9.14.0",
"html-escaper": "^3.0.3",
"npm-run-all": "^4.1.5",
"postcss": "^8.2.6",
"postcss": "^8.3.5",
"postcss-cli": "^8.3.1",
"postcss-css-variables": "^0.17.0",
"postcss-css-variables": "^0.18.0",
"regex-replace": "^2.3.1",
"regexparam": "^1.3.0",
"rollup": "^2.38.5",
"regexparam": "^2.0.0",
"rollup": "^2.52.2",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-string": "^3.0.0",
"shx": "^0.3.3",
"workbox-cacheable-response": "^6.1.0",
"workbox-cli": "^6.1.0",
"workbox-core": "^6.1.0",
"workbox-expiration": "^6.1.0",
"workbox-precaching": "^6.1.0",
"workbox-routing": "^6.1.0",
"workbox-strategies": "^6.1.0",
"workbox-streams": "^6.1.0"
"workbox-cacheable-response": "^6.1.5",
"workbox-cli": "^6.1.5",
"workbox-core": "^6.1.5",
"workbox-expiration": "^6.1.5",
"workbox-precaching": "^6.1.5",
"workbox-routing": "^6.1.5",
"workbox-strategies": "^6.1.5",
"workbox-streams": "^6.1.5"
}
}
3 changes: 2 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export default [{
},
plugins: [
replace({
'preventAssignment': true,
'process.env.NODE_ENV': JSON.stringify(
process.env.NODE_ENV || 'development'),
}),
Expand All @@ -88,7 +89,7 @@ export default [{
modules: false,
}]],
}),
OMT(),
OMT(), // eslint-disable-line new-cap
compiler(),
],
output: {
Expand Down
4 changes: 2 additions & 2 deletions src/lib/route-matchers.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
**/

import regexparam from 'regexparam';
import {parse} from 'regexparam';

import routes from './routes.mjs';

Expand All @@ -25,7 +25,7 @@ for (const [routeName, expressRoute] of routes) {
// search params) when doing RegExp matching. To work around this,
// we'll create our own functions that implement the matchCallback interface:
// https://developers.google.com/web/tools/workbox/reference-docs/latest/workbox.routing.Route#~matchCallback
const regExp = regexparam(expressRoute).pattern;
const regExp = parse(expressRoute).pattern;
const matcher = ({url}) => regExp.exec(url.pathname);
routeMatchers.set(routeName, matcher);
}
Expand Down
2 changes: 0 additions & 2 deletions src/lib/urls.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
* limitations under the License.
**/

import {DEFAULT_SORT} from './constants.mjs';

const PATH = `https://api.stackexchange.com/2.2/questions`;

// As per https://api.stackexchange.com/docs/throttle
Expand Down

0 comments on commit 0ff3e3f

Please sign in to comment.