Socket
Socket
Sign inDemoInstall

utils-google-drive

Package Overview
Dependencies
53
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.1 to 3.0.2

6

CHANGELOG.md

@@ -0,1 +1,7 @@

### v3.0.2 — *February 24, 2021*
* Fixed del returning before overwrite complete
### v3.0.1 — *November 18, 2020*
* Fixed examples for makeFolder and upload methods
### v3.0.0 — *November 11, 2020*

@@ -2,0 +8,0 @@ * Added batch requests

4

lib/upload.js

@@ -51,3 +51,3 @@ 'use strict';

if (data.files.length > 0) {
this.del(data.files[0].id);
await this.del(data.files[0].id);
}

@@ -98,3 +98,3 @@ }

fileMetadata.parents = [parentId];
if (overwrite) this._overwrite(fileMetadata);
if (overwrite) await this._overwrite(fileMetadata);
const responseData = await this.api('files', 'create', {

@@ -101,0 +101,0 @@ resource: fileMetadata,

{
"name": "utils-google-drive",
"version": "3.0.1",
"version": "3.0.2",
"description": "A simple and flexible package for interacting with Google Drive",

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

@@ -28,3 +28,3 @@ # **utils-google-drive**

If specifying a path, partial paths can be used and are encouraged. Ideally, you would specify a partial path that contains just enough information to uniquely identify the file in Google Drive. For example, suppose you wanted to download the file 'annualReport.pdf' in the folder 'reports2020'. If there are multiple files named 'annualReport.pdf' in Google Drive but no other folders with the name 'reports2020', you could use the partial path `'reports2020/annualReport.pdf'` to identify the file of interest. This path is preferable to a longer one because it finds the file quicker, jumping in at the uniquely-named folder 'reports2020' and not worrying itself with folders that are higher up in the hierarchy.
If specifying a path, partial paths can be used and are encouraged. Ideally, you would specify a partial path that contains just enough information to uniquely identify the file in Google Drive. For example, suppose you wanted to download the file 'annualReport.pdf' in the folder 'reports2020'. If there are multiple files named 'annualReport.pdf' in Google Drive but no other folders with the name 'reports2020', you could use the partial path `'reports2020/annualReport.pdf'` to identify the file of interest. This path is preferable to a longer one because it finds the file quicker, jumping in at the uniquely-named folder 'reports2020' and not worrying itself with folders that are higher up in the file path.

@@ -121,4 +121,1 @@ There is some variation in how to specify a file or folder across utils-google-drive methods. Consult the [docs](https://curtcommander.github.io/utils-google-drive/) for details.

Follow the link and enter the code. A file named tokenGDrive.json containing an authorization token will be created in your working directory and setup will then be complete.
## **Contributions**
Contributions are welcome. There are many features of the Google Drive API that utils-google-drive doesn't currently address. Feel free to submit issues and enhancement requests as well.
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