Socket
Socket
Sign inDemoInstall

googledrive

Package Overview
Dependencies
1
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.6 to 3.0.7

7

lib/drive.js
"use strict";
const util = require("util");
const EventEmitter = require("events");

@@ -45,7 +44,7 @@

async getToken(code) {
const token = await util.promisify(this._oauth2.getToken.bind(this._oauth2))(code);
const res = await this._oauth2.getToken(code);
this._oauth2.setCredentials(token);
this._oauth2.setCredentials(res.tokens);
return token;
return res.tokens;
}

@@ -52,0 +51,0 @@

@@ -163,3 +163,3 @@ "use strict";

this._resource = res;
this._resource = res.data;
}

@@ -200,3 +200,3 @@

this._resource = res;
this._resource = res.data;
}

@@ -247,3 +247,3 @@

this._resource = res;
this._resource = res.data;
}

@@ -331,3 +331,3 @@

context: this._context,
resource: res
resource: res.data
});

@@ -655,3 +655,3 @@

for (const file of res.files) {
for (const file of res.data.files) {
const item = new GoogleDriveItem({

@@ -669,4 +669,4 @@ context: this._context,

if (res.hasOwnProperty("nextPageToken")) {
params.pageToken = res.nextPageToken;
if (res.data.hasOwnProperty("nextPageToken")) {
params.pageToken = res.data.nextPageToken;
} else {

@@ -673,0 +673,0 @@ break;

{
"name": "googledrive",
"version": "3.0.6",
"version": "3.0.7",
"description": "Google drive fs for node.js",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc