Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

google-authorize

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

google-authorize - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

10

index.js

@@ -21,3 +21,3 @@ const fs = require('fs');

(scopes || []).forEach(scope => {
_scopes.push('https://www.googleapis.com/auth/'+scope);
_scopes.push('https://www.googleapis.com/auth/' + scope);
});

@@ -27,3 +27,3 @@ return _scopes;

this.TOKEN_DIR = (process.env.HOME || process.env.HOMEPATH ||
process.env.USERPROFILE) + '/.credentials/';
process.env.USERPROFILE) + '/.credentials/';
this.TOKEN_PATH = this.TOKEN_DIR + 'googleapis.json';

@@ -124,6 +124,8 @@ }

}
fs.writeFile(this.TOKEN_PATH, JSON.stringify(token));
fs.writeFile(this.TOKEN_PATH, JSON.stringify(token), (err) => {
if (err) throw err;
});
console.log('Token stored to ' + this.TOKEN_PATH);
}
}
module.exports = GoogleAuthorize;
module.exports = GoogleAuthorize;

2

package.json
{
"name": "google-authorize",
"version": "1.0.1",
"version": "1.0.2",
"description": "Get an OAuth2 client with authorized token to be used with Google APIs.",

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

@@ -1,2 +0,2 @@

#Google Authorize
# Google Authorize

@@ -51,2 +51,5 @@ Get an OAuth2 client with an authorized token to be used with Google APIs.

## Change Log
Nov 6 2018 - Fixed undefined callback on fs.writeFile
```
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