Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update project dependencies #112

Merged
merged 36 commits into from
Mar 16, 2020
Merged
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
39472ab
Added nyc for testint coverage
JuanMaRuiz Oct 26, 2019
1f65651
Added index test
JuanMaRuiz Oct 26, 2019
e95fe41
Added test to check handleOpts method in index file
JuanMaRuiz Oct 27, 2019
da5adc1
Merge branch 'master' of https://github.com/JuanMaRuiz/psi into featu…
JuanMaRuiz Nov 8, 2019
57fd768
Tests improvements
JuanMaRuiz Nov 8, 2019
f8e7cc7
Added test for threshold
JuanMaRuiz Nov 9, 2019
21a1561
Updated some npm dependencies
JuanMaRuiz Nov 9, 2019
ffb8741
Optimizing unit tests
JuanMaRuiz Nov 9, 2019
695a877
Removed commented tests
JuanMaRuiz Nov 19, 2019
1930431
Merge branch 'feature-optimizing-test' of https://github.com/JuanMaRu…
JuanMaRuiz Nov 19, 2019
a05bdfa
Update test/index.test.js
JuanMaRuiz Nov 21, 2019
6a37baa
Update test/output.test.js
JuanMaRuiz Nov 21, 2019
862aa58
Reverted api-response.test
JuanMaRuiz Nov 21, 2019
6ed67cb
Reverted googleapis npm dependency to previous verison
JuanMaRuiz Nov 21, 2019
94fe536
Added proposed change of test definition
JuanMaRuiz Nov 25, 2019
8e8ab81
Revert unnecessary change
JuanMaRuiz Nov 25, 2019
22c9e77
Moved optionsHandler and getTreshold to options-handler. Removed rewi…
JuanMaRuiz Nov 26, 2019
3b56a1a
Moved getReporter to options-handler
JuanMaRuiz Nov 27, 2019
dbda724
Merge branch 'master' of https://github.com/GoogleChromeLabs/psi
JuanMaRuiz Nov 27, 2019
31bbc65
Merge branch 'master' of https://github.com/GoogleChromeLabs/psi
JuanMaRuiz Nov 28, 2019
d546d6c
Merge branch 'master' of https://github.com/JuanMaRuiz/psi
JuanMaRuiz Nov 28, 2019
31473da
Merge branch 'master' of https://github.com/GoogleChromeLabs/psi
JuanMaRuiz Mar 10, 2020
4c65857
Update googlepais to v40.0.0
JuanMaRuiz Mar 10, 2020
085a3a2
Clean no necessary variables
JuanMaRuiz Mar 11, 2020
abf59c6
Update googleapis to v47.0.0
JuanMaRuiz Mar 11, 2020
98294d3
Update project dependencies
JuanMaRuiz Mar 11, 2020
a2566eb
Revert index and googleapis version to master
JuanMaRuiz Mar 11, 2020
f0abcc6
Merge branch 'master' of https://github.com/GoogleChromeLabs/psi
JuanMaRuiz Mar 14, 2020
54dd8ea
Merge branch 'master' of https://github.com/GoogleChromeLabs/psi
JuanMaRuiz Mar 15, 2020
4668585
Merge branch 'master' of https://github.com/JuanMaRuiz/psi
JuanMaRuiz Mar 15, 2020
8fb6e42
Update googlepais to v40.0.0
JuanMaRuiz Mar 10, 2020
74c316d
Clean no necessary variables
JuanMaRuiz Mar 11, 2020
e923eda
Update project dependencies
JuanMaRuiz Mar 11, 2020
640d927
Revert index and googleapis version to master
JuanMaRuiz Mar 11, 2020
8af0ab3
Merge branch 'update-dependencies' of https://github.com/JuanMaRuiz/p…
JuanMaRuiz Mar 15, 2020
a96aa7c
Update dependencies
JuanMaRuiz Mar 15, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert index and googleapis version to master
JuanMaRuiz committed Mar 11, 2020
commit a2566eb5ff86969684fde15cf07ba7b950304c00
8 changes: 5 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
'use strict';
const google = require('googleapis');
const {google} = require('googleapis');
const pify = require('pify');
const output = require('./lib/output');
const {getOptions} = require('./lib/options-handler');
const pagespeedonline = new google.pagespeedonline_v5.Pagespeedonline();

const {runpagespeed} = pify(google.pagespeedonline('v5').pagespeedapi);

const psi = (url, options) => Promise.resolve().then(() => {
if (!url) {
throw new Error('URL required');
}

return pagespeedonline.pagespeedapi.runpagespeed(getOptions(url, options));
return runpagespeed(getOptions(url, options));
});

module.exports = psi;
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -34,9 +34,10 @@
],
"dependencies": {
"chalk": "^3.0.0",
"googleapis": "^47.0.0",
"googleapis": "^38.0.0",
"humanize-url": "^2.1.0",
"meow": "^6.0.1",
"pify": "^4.0.0",
"prepend-http": "^3.0.1",
"pretty-ms": "^6.0.1",
"sort-on": "^4.1.0",