Comparing version 0.0.19 to 0.0.20
@@ -34,3 +34,3 @@ var q = require('q'); | ||
this.credentials = credentials || {}; | ||
this.filefog_options = extend(true, {transform:true, include_raw:true, auto_paginate:true}, filefog_options || {}); | ||
this.filefog_options = extend(true, {transform:true, include_raw:true, auto_paginate:true,root_identifier:null}, filefog_options || {}); | ||
this._transform = transform; | ||
@@ -82,2 +82,3 @@ | ||
try{ | ||
args[args.length -1] = filefog_options; | ||
var promise = ClientWrapper.super_.prototype[method].apply(this, args) | ||
@@ -84,0 +85,0 @@ .then(function (raw_response) { |
@@ -31,3 +31,3 @@ var util = require("util"); | ||
this._transform = transform; | ||
this.filefog_options = extend(true, {transform:true, include_raw:true, auto_paginate:true}, filefog_options || {}); | ||
this.filefog_options = extend(true, {transform:true, include_raw:true, auto_paginate:true,root_identifier:null}, filefog_options || {}); | ||
base_provider.call(this, name); | ||
@@ -34,0 +34,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"description": "Cloud Storage API Wrapper supporting Box, Dropbox, Skydrive, Google Drive", | ||
"version": "0.0.19", | ||
"version": "0.0.20", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "url": "https://github.com/filefog/filefog.git" |
@@ -23,2 +23,3 @@ #`var FileFog = require('filefog')` | ||
- Local filesystem | ||
- Microsoft Azure Storage | ||
@@ -28,3 +29,2 @@ Providers for the following Cloud Services are also planned: | ||
- Amazon S3 | ||
- Microsoft Azure Storage | ||
- Bittorrent Sync | ||
@@ -48,7 +48,7 @@ - AnyCloud | ||
//create a dropbox provider and client using previously saved access_tokens | ||
var dropboxProvider = filefog.provider("dropbox") | ||
//call dropboxProvider.oAuthGetAuthorizeUrl() if you do not have access_tokens already. | ||
//var dropboxProvider = filefog.provider("dropbox") | ||
//dropboxProvider.oAuthGetAuthorizeUrl() | ||
dropboxClient = filefog.client("dropbox", { | ||
dropboxClient = dropboxProvider.getClienta({ | ||
access_token: '...', | ||
@@ -71,1 +71,9 @@ refresh_token: '...' | ||
- state - built-in state antiforgery token support. | ||
# Supported filefog_options | ||
These are a list of commonly supported filefog options. | ||
{Boolean|true} transform - determines if the raw response from the storage service is transformed to a filefog standardized format. | ||
{Boolean|true} include_raw - include the raw response in the transformed response | ||
{Boolean|true} auto_paginate - auto_paginate the responses if required | ||
{String|null} root_identifier - set the root_identifier to namespace all filefog operations to a specific folder. |
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
41754
940
76