remotestorage-module-shares
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -85,2 +85,7 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
* @public | ||
* | ||
* @example | ||
* | ||
* remoteStorage.shares.storeFile(mimeType, filename, content) | ||
* .then((url) => { console.log(`successfully stored file at ${url}`) | ||
*/ | ||
@@ -105,2 +110,4 @@ storeFile: function storeFile(mimeType, name, data) { | ||
* | ||
* @returns {Promise} | ||
* | ||
* @alias module:shares | ||
@@ -107,0 +114,0 @@ * @public |
@@ -24,2 +24,7 @@ /** | ||
* @public | ||
* | ||
* @example | ||
* | ||
* remoteStorage.shares.storeFile(mimeType, filename, content) | ||
* .then((url) => { console.log(`successfully stored file at ${url}`) | ||
*/ | ||
@@ -45,2 +50,4 @@ storeFile: function(mimeType, name, data) { | ||
* | ||
* @returns {Promise} | ||
* | ||
* @alias module:shares | ||
@@ -47,0 +54,0 @@ * @public |
{ | ||
"name": "remotestorage-module-shares", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "remoteStorage.js module for sharing images and other files", | ||
@@ -5,0 +5,0 @@ "main": "./dist/build.js", |
@@ -14,3 +14,3 @@ [![npm](https://img.shields.io/npm/v/remotestorage-module-shares.svg)](https://www.npmjs.com/package/remotestorage-module-shares) | ||
* [storeFile(mimeType, name, data)](#exp_module_shares--storeFile) ⇒ <code>Promise</code> ⏏ | ||
* [remove(name)](#exp_module_shares--remove) ⏏ | ||
* [remove(name)](#exp_module_shares--remove) ⇒ <code>Promise</code> ⏏ | ||
* [list()](#exp_module_shares--list) ⇒ <code>Promise</code> ⏏ | ||
@@ -35,5 +35,10 @@ * [getFileURL(name)](#exp_module_shares--getFileURL) ⇒ <code>string</code> ⏏ | ||
**Example** | ||
```js | ||
remoteStorage.shares.storeFile(mimeType, filename, content) | ||
.then((url) => { console.log(`successfully stored file at ${url}`) | ||
``` | ||
<a name="exp_module_shares--remove"></a> | ||
### remove(name) ⏏ | ||
### remove(name) ⇒ <code>Promise</code> ⏏ | ||
Remove a file | ||
@@ -40,0 +45,0 @@ |
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
21445
513
72