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

gdata-js

Package Overview
Dependencies
Maintainers
0
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gdata-js - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

11

gdata.js

@@ -19,6 +19,9 @@ var querystring = require('querystring');

} else if(!req.query.code) {
res.redirect(oauthBase + '/auth?' + querystring.stringify({client_id: clientID ,
redirect_uri: redirectURI,
scope: scope,
response_type: 'code'}));
var height = 750;
var width = 980;
resp = "<script type='text/javascript'>var left= (screen.width / 2) - (" + width + " / 2); var top = (screen.height / 2) - (" + height + " / 2); window.open('" + oauthBase + '/auth?' + querystring.stringify({client_id: clientID, redirect_uri: redirectURI, scope: scope, response_type: 'code'}) + "', 'auth', 'menubar=no,toolbar=no,status=no,width=" + width + ",height=" + height + ",toolbar=no,left=' + left + 'top=' + top);</script>";
res.end(resp + '<a target=_new href=\'' + oauthBase + '/auth?' + querystring.stringify({client_id: clientID ,
redirect_uri: redirectURI,
scope: scope,
response_type: 'code'}) + '\'>Authenticate</a>');
} else {

@@ -25,0 +28,0 @@ doPost({grant_type:'authorization_code',

{
"name": "gdata-js",
"description": "Simple OAuth 2.0 GData API client",
"version": "0.0.3",
"version": "0.0.4",
"author": "Simon Murtha-Smith <simon@murtha-smith.com>",

@@ -6,0 +6,0 @@ "keywords": ["google", "gdata"],

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