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

Upgrade to the latest google-auth-library #891

Merged
merged 2 commits into from
Jan 13, 2018
Merged

Upgrade to the latest google-auth-library #891

merged 2 commits into from
Jan 13, 2018

Conversation

JustinBeckwith
Copy link
Contributor

@JustinBeckwith JustinBeckwith commented Dec 11, 2017

The latest version of the google-auth-library makes a few breaking changes.

  • Get the tests passing
  • Code cleanup
  • Update the documentation
  • Switch to the real release

Note - this is ready! Please take another look if interested :)

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

cc @alexander-fenster

assert.notEqual(
query.indexOf('myParam=123'), -1, 'Default param not found in query');
done();
nock.enableNetConnect();

This comment was marked as spam.

@alexander-fenster
Copy link
Contributor

LGTM but please take a look at the CI error

// || defaultMime, body: media.body // can be a readable stream or
// raw string!
// }
// ];

This comment was marked as spam.

options.json = resource ||
((options.method === 'GET' || options.method === 'DELETE') ? true : {});
options.data = resource || undefined;
//((options.method === 'GET' || options.method === 'DELETE') ? true :

This comment was marked as spam.

const finale = `--${boundary}--`;
const rStream = new stream.PassThrough();
const isStream = isReadableStream(multipart[1].body);
headers['Content-Type'] = `multipart/related; boundary=${boundary}`;

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

return (cb) => {
self.discoverAPI(api.discoveryRestUrl, (e, newApi) => {
transporter.request<DiscoverAPIsResponse>(
{url: discoveryUrl, headers}, (err, resp) => {

This comment was marked as spam.

This comment was marked as spam.

return handleError(err, callback);
}
const items = resp.data.items;
async.parallel(

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@@ -3,7 +3,7 @@
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
// http://www.apache.o rg/licenses/LICENSE-2.0

This comment was marked as spam.

This comment was marked as spam.

it('should keep query params as is', (done) => {
const p = '/drive/v2/files/123abc?hello=world';
nock(Utils.baseUrl).get(p).reply(200);
localDrive.files.get({fileId: '123abc', hello: 'world'}, (err, res) => {

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

testContentType(localDrive);
testContentType(remoteDrive);
it('should automatically add content-type for POST requests', async () => {
return Promise.all(

This comment was marked as spam.

This comment was marked as spam.

@JustinBeckwith JustinBeckwith changed the title [WIP] Upgrade to the latest google-auth-library Upgrade to the latest google-auth-library Jan 11, 2018
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