filefog-google
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24241
642
+ Addedansi-regex@2.1.1(transitive)
+ Addedansi-styles@2.2.1(transitive)
+ Addedassert-plus@0.2.0(transitive)
+ Addedasync@1.4.21.5.22.6.4(transitive)
+ Addedaws-sign2@0.6.0(transitive)
+ Addedbl@1.0.31.1.2(transitive)
+ Addedboom@2.10.1(transitive)
+ Addedcaseless@0.11.0(transitive)
+ Addedchalk@1.1.3(transitive)
+ Addedcommander@2.20.3(transitive)
+ Addedcryptiles@2.0.5(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedform-data@1.0.1(transitive)
+ Addedgenerate-function@2.3.1(transitive)
+ Addedgenerate-object-property@1.2.0(transitive)
+ Addedgoogle-auth-library@0.9.10(transitive)
+ Addedgoogle-p12-pem@0.1.2(transitive)
+ Addedgoogleapis@2.1.7(transitive)
+ Addedgtoken@1.2.3(transitive)
+ Addedhar-validator@2.0.6(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedhawk@3.1.3(transitive)
+ Addedhoek@2.16.3(transitive)
+ Addedhttp-signature@0.11.01.1.1(transitive)
+ Addedis-my-ip-valid@1.0.1(transitive)
+ Addedis-my-json-valid@2.20.6(transitive)
+ Addedis-property@1.0.2(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedjsonpointer@5.0.1(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedlodash.noop@3.0.1(transitive)
+ Addedmime@1.6.0(transitive)
+ Addednode-forge@0.7.6(transitive)
+ Addedoauth-sign@0.8.2(transitive)
+ Addedpinkie@2.0.4(transitive)
+ Addedpinkie-promise@2.0.1(transitive)
+ Addedprocess-nextick-args@1.0.7(transitive)
+ Addedpunycode@1.4.1(transitive)
+ Addedqs@5.2.16.2.4(transitive)
+ Addedreadable-stream@2.0.6(transitive)
+ Addedrequest@2.65.02.74.0(transitive)
+ Addedsntp@1.0.9(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedsupports-color@2.0.0(transitive)
+ Addedtough-cookie@2.2.22.3.4(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedxtend@4.0.2(transitive)
- Removedasync@0.9.2(transitive)
- Removedaws-sign2@0.5.0(transitive)
- Removedbl@0.9.5(transitive)
- Removedboom@0.4.2(transitive)
- Removedcaseless@0.8.0(transitive)
- Removedcryptiles@0.2.2(transitive)
- Removedforever-agent@0.5.2(transitive)
- Removedform-data@0.2.0(transitive)
- Removedgoogleapis@1.1.5(transitive)
- Removedhawk@1.1.1(transitive)
- Removedhoek@0.9.1(transitive)
- Removedhttp-signature@0.10.1(transitive)
- Removedmime-db@1.12.0(transitive)
- Removedmime-types@1.0.22.0.14(transitive)
- Removedoauth-sign@0.5.0(transitive)
- Removedqs@2.3.3(transitive)
- Removedreadable-stream@1.0.34(transitive)
- Removedrequest@2.51.0(transitive)
- Removedsntp@0.2.4(transitive)
- Removedtldts@6.1.59(transitive)
- Removedtldts-core@6.1.59(transitive)
- Removedtough-cookie@5.0.0(transitive)
Updatedgoogleapis@^2.0.2