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

filefog-google

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

filefog-google - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

25

lib/client.js

@@ -71,5 +71,6 @@ var q = require('q')

* @param {Object} options
* @param {Object} filefog_options
* @return CallExpression
*/
Client.prototype.createFile = function (fileName, parentIdentifier, content_buffer, options) {
Client.prototype.createFile = function (fileName, parentIdentifier, content_buffer, options, filefog_options) {
var self = this;

@@ -88,3 +89,3 @@

}, options || {});
parentIdentifier = parentIdentifier || filefog_options.root_identifier;
if (parentIdentifier) {

@@ -111,2 +112,3 @@ options.resource.parents = [];

* @param {Object} options
* @param {Object} filefog_options
* @return CallExpression

@@ -214,5 +216,6 @@ */

* @param {Object} options
* @param {Object} filefog_options
* @return CallExpression
*/
Client.prototype.updateFileInformation = function (identifier, fileName, parentIdentifier, options) {
Client.prototype.updateFileInformation = function (identifier, fileName, parentIdentifier, options, filefog_options) {
var self = this;

@@ -226,2 +229,3 @@ identifier = identifier ||'root';

}, options || {});
parentIdentifier = parentIdentifier || filefog_options.root_identifier;

@@ -250,8 +254,9 @@ if(fileName && !options.resource.title){

* @method createFolder
* @param {} folderName
* @param {} parentIdentifier
* @param {} options
* @param {String} folderName
* @param {String} parentIdentifier
* @param {Object} options
* @param {Object} filefog_options
* @return CallExpression
*/
Client.prototype.createFolder = function (folderName, parentIdentifier, options) {
Client.prototype.createFolder = function (folderName, parentIdentifier, options, filefog_options) {
var self = this;

@@ -270,2 +275,4 @@

parentIdentifier = parentIdentifier || filefog_options.root_identifier;
if (parentIdentifier) {

@@ -293,4 +300,4 @@ options.resource.parents = [];

* @method retrieveFolderItems
* @param {} identifier
* @param {} options
* @param {String} identifier
* @param {Object} options
* @return CallExpression

@@ -297,0 +304,0 @@ */

@@ -30,4 +30,4 @@ var transform = {};

var transform = {};
transform.total_bytes = quota_response.quotaBytesTotal | 0; //total space allocated in bytes
transform.used_bytes = quota_response.quotaBytesUsed | 0; //bytes used.
transform.total_bytes = parseFloat(quota_response.quotaBytesTotal); //total space allocated in bytes
transform.used_bytes = parseFloat(quota_response.quotaBytesUsed); //bytes used.
transform.limits= {

@@ -34,0 +34,0 @@ upload_size : '10737418240'

{
"name": "filefog-google",
"version": "0.0.7",
"version": "0.0.8",
"description": "google drive provider for filefog",

@@ -24,3 +24,3 @@ "author": "Jason Kulatunga <jason@thesparktree.com>",

"dependencies": {
"googleapis": "^1.0.20",
"googleapis": "^2.0.2",
"node.extend": "^1.0.10",

@@ -27,0 +27,0 @@ "q": "^1.0.1",

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