New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

uploader-for-google-drive-resumable-upload-url

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uploader-for-google-drive-resumable-upload-url - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

6

index.js

@@ -30,5 +30,5 @@ // Copyright 2017- Paul Brewer, Economic and Financial Technology Consulting LLC

};
return new Promise(function (resolve) {
return new Promise(function (resolve, reject) {
const uploadRequest = request(driveupload, (err, response, body) => {
if (err) throw new Error("upload error code: "+(response && response.statusCode)+" "+err);
if (err) return reject(new Error("upload error code: "+(response && response.statusCode)+" "+err));
let result;

@@ -46,3 +46,3 @@ if (typeof(body) === 'string') {

if (md5 !== result.md5Checksum) {
throw new Error('bad md5 checksum on upload to Google Drive:', JSON.stringify(result));
return reject(new Error('bad md5 checksum on upload to Google Drive:', JSON.stringify(result)));
}

@@ -49,0 +49,0 @@ }

{
"name": "uploader-for-google-drive-resumable-upload-url",
"version": "1.0.0",
"version": "1.1.0",
"description": "uploader for Resumable Upload urls from Google Drive API v3",

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc