Socket
Socket
Sign inDemoInstall

elarian

Package Overview
Dependencies
Maintainers
3
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elarian - npm Package Compare versions

Comparing version 0.5.4 to 0.5.5

tmp.js

11

docs/README.md

@@ -93,3 +93,3 @@ ## Classes

* [new Elarian(config)](#new_Elarian_new)
* [.fetchAppState()](#Elarian+fetchAppState) ⇒ <code>AppState</code>
* [.fetchAppState(appIds)](#Elarian+fetchAppState) ⇒ <code>AppState</code> \| <code>Array.&lt;AppState&gt;</code>
* [.updateAppState(data)](#Elarian+updateAppState) ⇒ <code>AppState</code>

@@ -114,6 +114,11 @@ * [.connect()](#Client+connect) ⇒ [<code>Elarian</code>](#Elarian)

### elarian.fetchAppState() ⇒ <code>AppState</code>
<p>Lease app state</p>
### elarian.fetchAppState(appIds) ⇒ <code>AppState</code> \| <code>Array.&lt;AppState&gt;</code>
<p>Fetch your app state</p>
**Kind**: instance method of [<code>Elarian</code>](#Elarian)
| Param | Type | Description |
| --- | --- | --- |
| appIds | <code>Array.&lt;String&gt;</code> | <p>Other apps whose state you want to get. This trigger a consent notification to the user</p> |
<a name="Elarian+updateAppState"></a>

@@ -120,0 +125,0 @@

@@ -0,1 +1,2 @@

/* eslint-disable max-len */
/* eslint-disable no-underscore-dangle */

@@ -25,7 +26,8 @@ const Client = require('./client');

/**
* Lease app state
* @returns {AppState}
* Fetch your app state
* @param {String[]} appIds Other apps whose state you want to get. This trigger a consent notification to the user
* @returns {AppState|AppState[]}
* @memberof Elarian
*/
Elarian.prototype.fetchAppState = function fetchAppState() {
Elarian.prototype.fetchAppState = function fetchAppState(appIds = []) {
const { appId, token } = this.config;

@@ -37,2 +39,3 @@ const service = this._getAppStateService();

token,
appIds,
};

@@ -42,4 +45,6 @@ service.GetAppState(params, (error, result) => {

reject(error);
} else if (appIds && appIds.length) {
resolve(result.states);
} else {
resolve(result);
resolve(result.states[0]);
}

@@ -46,0 +51,0 @@ });

{
"name": "elarian",
"version": "0.5.4",
"version": "0.5.5",
"description": "Elarian JavaScript SDK",

@@ -5,0 +5,0 @@ "main": "index.js",

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

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

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

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