🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

remotestorage-widget

Package Overview
Dependencies
Maintainers
3
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remotestorage-widget - npm Package Compare versions

Comparing version

to
1.0.0-rc3

2

package.json
{
"name": "remotestorage-widget",
"version": "1.0.0-rc2",
"version": "1.0.0-rc3",
"description": "remoteStorage.js connect widget",

@@ -5,0 +5,0 @@ "main": "build/widget.js",

@@ -32,6 +32,9 @@ # remotestorage-widget

| `autoCloseAfter` | Timeout after which the widget closes automatically (in milliseconds). The widget only closes when a storage is connected. | Number | 1500 |
| `logging` | Enable logging for debugging purposes | Boolean | false |
Example:
const widget = new Widget(remoteStorage, { autoCloseAfter: 2000 });
```js
const widget = new Widget(remoteStorage, { autoCloseAfter: 2000 });
```

@@ -38,0 +41,0 @@ ## Available Functions

@@ -11,2 +11,3 @@ /**

* automatically in ms (default: 1500)
* @param {boolean} options.logging - Enable logging (default: false)
*/

@@ -29,2 +30,4 @@ let Widget = function(remoteStorage, options={}) {

this.logging = typeof options.logging === 'boolean' ? options.logging : false;
this.autoCloseAfter = options.autoCloseAfter ? options.autoCloseAfter : 1500;

@@ -40,3 +43,5 @@

log (...msg) {
console.debug('[RS-WIDGET] ', ...msg);
if (this.logging) {
console.debug('[RS-WIDGET] ', ...msg);
}
},

@@ -43,0 +48,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet