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

filefog

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

filefog - npm Package Compare versions

Comparing version 0.0.18 to 0.0.19

43

lib/wrapper/client_wrapper.js

@@ -148,3 +148,19 @@ var q = require('q');

};
/**
* Update file on provider
* @method updateFile
* @param {String} identifier
* @param {Buffer} content_buffer
* @param {Object} provider_options
* @param {} filefog_options
* @return CallExpression
*/
ClientWrapper.prototype.updateFile = function (identifier, content_buffer, provider_options,filefog_options) {
filefog_options = extend(true, {}, this.filefog_options, filefog_options|| {});
return this._methodWrapper("updateFile",arguments,filefog_options);
};
/**
* Delete file on provider

@@ -191,2 +207,18 @@ * @method deleteFile

/**
* Update file information provider, eg parent folder name, filename
* @method updateFileInformation
* @param {String} identifier
* @param {String} fileName
* @param {String} parentIdentifier
* @param {Object} provider_options
* @param {} filefog_options
* @return CallExpression
*/
ClientWrapper.prototype.updateFileInformation = function (identifier, fileName, parentIdentifier, provider_options,filefog_options) {
filefog_options = extend(true, {}, this.filefog_options, filefog_options|| {});
return this._methodWrapper("updateFileInformation",arguments,filefog_options);
};
/**
* Create folder on provider

@@ -255,5 +287,16 @@ * @method createFolder

if(provider_config.interfaces.indexOf("webhooks") != -1) {
ClientWrapper.prototype.subscribe = function (webhook_options,filefog_options) {
filefog_options = extend(true, {}, this.filefog_options, filefog_options|| {});
return this._methodWrapper("subscribe",arguments,filefog_options);
}
ClientWrapper.prototype.unsubscribe = function (webhook_options,filefog_options) {
filefog_options = extend(true, {}, this.filefog_options, filefog_options|| {});
return this._methodWrapper("unsubscribe",arguments,filefog_options);
}
}
return new ClientWrapper(name,transform,provider_config, credentials, filefog_options)
}

@@ -115,4 +115,12 @@ var util = require("util");

if(config.interfaces.indexOf("webhooks") != -1) {
ProviderWrapper.prototype.events_webhook = function (req,res,webhook_options,filefog_options) {
filefog_options = extend(true, {}, this.filefog_options, filefog_options|| {});
return this._methodWrapper("events_webhook",arguments,filefog_options);
}
}
return new ProviderWrapper(name, classes.transform, config,filefog_options)
};

6

package.json

@@ -5,3 +5,3 @@ {

"description": "Cloud Storage API Wrapper supporting Box, Dropbox, Skydrive, Google Drive",
"version": "0.0.18",
"version": "0.0.19",
"repository": {

@@ -12,5 +12,5 @@ "url": "https://github.com/filefog/filefog.git"

"dependencies": {
"node.extend": "~1.0.9",
"q": "~1.0.0",
"winston": "~0.7.2",
"node.extend": "~1.0.9"
"winston": "~0.7.2"
},

@@ -17,0 +17,0 @@ "devDependencies": {

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