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

fix: update code to support typescript@2.6.2 #209

Merged
merged 1 commit into from
Dec 20, 2017
Merged

fix: update code to support typescript@2.6.2 #209

merged 1 commit into from
Dec 20, 2017

Conversation

JustinBeckwith
Copy link
Contributor

@JustinBeckwith JustinBeckwith commented Dec 19, 2017

The tests for Node.js 4 and Node.js 6 randomly started failing due to what seems like a compiler change. Our package-lock.json is pinning to typescript@2.6.1, which covers Node.js 8. The ~2.6.0 tag in our package.json is letting new patch versions of typescript come through as designed, resulting in typescript@2.6.2 getting installed. I suspect TypeScript made a breaking change in a patch release :(

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 19, 2017
@JustinBeckwith
Copy link
Contributor Author

@alexander-fenster for review as well

@ofrobots
Copy link
Contributor

@JustinBeckwith is the version of @types/node different between what you got and what package-lock.json has? That could explain the breakage too.

Copy link
Contributor

@ofrobots ofrobots left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM if nits are addressed.

assert.equal(query.client_id, CLIENT_ID);
assert.equal(query.redirect_uri, REDIRECT_URI);
done();
if (typeof parsed.query === 'string') {

This comment was marked as spam.

This comment was marked as spam.


assert.equal(query.scope, SCOPE_ARRAY.join(' '));
done();
if (typeof parsed.query === 'string') {

This comment was marked as spam.


assert.equal(query.response_type, 'code');
done();
if (typeof parsed.query === 'string') {

This comment was marked as spam.

@@ -793,17 +803,25 @@ describe('OAuth2 client', () => {
new OAuth2Client(CLIENT_ID, CLIENT_SECRET, REDIRECT_URI);
const generated = oauth2client.generateAuthUrl({});
const parsed = url.parse(generated);
const query = qs.parse(parsed.query);
assert.equal(query.redirect_uri, REDIRECT_URI);
if (typeof parsed.query === 'string') {

This comment was marked as spam.

@JustinBeckwith JustinBeckwith merged commit ee251b2 into googleapis:next Dec 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants