Skip to content

Commit 59fd554

Browse files
authored
Merge branch 'main' into main
2 parents 2572b8f + b6150ea commit 59fd554

File tree

5 files changed

+13
-16
lines changed

5 files changed

+13
-16
lines changed

adminSDK/reseller/package-lock.json

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

adminSDK/reseller/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "A simple Node.js command-line application that makes requests to the Google Drive API.",
55
"private": true,
66
"dependencies": {
7-
"googleapis": "^105.0.0",
7+
"googleapis": "^112.0.0",
88
"@google-cloud/local-auth": "^2.1.0"
99
},
1010
"devDependencies": {},

drive/snippets/drive_v3/file_snippets/move_file_to_folder.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,6 @@ async function moveFileToFolder(fileId, folderId) {
4141

4242
// Move the file to the new folder
4343
const previousParents = file.data.parents
44-
.map(function(parent) {
45-
return parent.id;
46-
})
4744
.join(',');
4845
const files = await service.files.update({
4946
fileId: fileId,

drive/snippets/drive_v3/file_snippets/upload_basic.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,18 @@ async function uploadBasic() {
3030
scopes: 'https://www.googleapis.com/auth/drive',
3131
});
3232
const service = google.drive({version: 'v3', auth});
33-
const fileMetadata = {
33+
const requestBody = {
3434
name: 'photo.jpg',
35+
fields: 'id',
3536
};
3637
const media = {
3738
mimeType: 'image/jpeg',
3839
body: fs.createReadStream('files/photo.jpg'),
3940
};
4041
try {
4142
const file = await service.files.create({
42-
requestBody: fileMetadata,
43-
media: media,
44-
fields: 'id',
43+
requestBody,
44+
media,
4545
});
4646
console.log('File Id:', file.data.id);
4747
return file.data.id;

gmail/quickstart/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ async function loadSavedCredentialsIfExist() {
4545
}
4646

4747
/**
48-
* Serializes credentials to a file comptible with GoogleAUth.fromJSON.
48+
* Serializes credentials to a file compatible with GoogleAUth.fromJSON.
4949
*
5050
* @param {OAuth2Client} client
5151
* @return {Promise<void>}

0 commit comments

Comments
 (0)