Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Load credentials is now async (google#202)
Though it looks like a lot of changes, note that most of it is un-indenting the callbacks that were originally given to `getAPICredentials()`. It is now an `async` function, and any command that uses it has been changed to use `await getAPICredentials()` instead. Signed-off-by: campionfellin <[email protected]> Fixes google#201 - [x] `npm run test` succeeds. Results: ``` 19 passing (55s) 4 pending --------------|----------|----------|----------|----------|-------------------| File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s | --------------|----------|----------|----------|----------|-------------------| All files | 56.37 | 43.12 | 60.95 | 62.89 | | clasp | 96.55 | 50 | 100 | 96.55 | | index.js | 96.55 | 50 | 100 | 96.55 | 187 | clasp/src | 53.9 | 47.11 | 59.53 | 59.03 | | auth.js | 28.07 | 31.91 | 27.27 | 31.82 |... 39,240,241,245 | commands.js | 56.74 | 49.11 | 60.22 | 59.08 |... 05,706,707,733 | files.js | 67.11 | 55.14 | 93.1 | 78.57 |... 82,192,194,197 | utils.js | 60.61 | 48.21 | 67.35 | 70.16 |... 43,268,269,294 | clasp/tests | 61.25 | 9.38 | 66.1 | 72.64 | | test.js | 61.25 | 9.38 | 66.1 | 72.64 |... 55,256,257,258 | --------------|----------|----------|----------|----------|-------------------| ``` - [x] `npm run lint` succeeds. - [ ] Appropriate changes to README are included in PR.
- Loading branch information