assistant-ifttt
Advanced tools
Comparing version 1.1.0 to 1.9.0
@@ -7,2 +7,3 @@ var request = require('request-promise-native'); | ||
this.plugins = plugins; | ||
if (!this.key) return Promise.reject("[assistant-ifttt] Erreur : vous devez configurer ce plugin !"); | ||
return Promise.resolve(this); | ||
@@ -24,9 +25,8 @@ }; | ||
* | ||
* @param {Object} configuration La configuration | ||
* @param {Object} plugins Un objet qui contient tous les plugins chargés | ||
* @return {Promise} resolve(this) | ||
*/ | ||
exports.init=function(plugins) { | ||
var configuration = require('./configuration'); | ||
var an = new AssistantIfttt(configuration); | ||
return an.init(plugins) | ||
exports.init=function(configuration, plugins) { | ||
return new AssistantIfttt(configuration).init(plugins) | ||
.then(function(resource) { | ||
@@ -33,0 +33,0 @@ console.log("[assistant-ifttt] Plugin chargé et prêt."); |
{ | ||
"name": "assistant-ifttt", | ||
"version": "1.1.0", | ||
"version": "1.9.0", | ||
"description": "Plugin IFTTT pour un Assistant via le package assistant-plugins", | ||
@@ -5,0 +5,0 @@ "author": "aymkdn", |
@@ -12,3 +12,3 @@ # assistant-ifttt | ||
- Pour Linux/MacOS, ouvrir une console dans le répertoire `assistant-plugins` et taper : | ||
`npm install assistant-ifttt --save --loglevel error && npm run-script postinstall` | ||
`npm install assistant-ifttt@latest --save --loglevel error && npm run-script postinstall` | ||
@@ -15,0 +15,0 @@ ## Configuration |
Sorry, the diff of this file is not supported yet
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
5297