Comparing version 2.0.2 to 2.0.3
11
index.js
@@ -175,2 +175,13 @@ 'use strict' | ||
Flow.prototype.saveInstance = function (instance) { | ||
return new Promise((resolve, reject) => { | ||
client.set(instance.id, instance, this.model.ttl, (err) => { | ||
if (err) { | ||
reject(err) | ||
} | ||
resolve(instance) | ||
}) | ||
}) | ||
} | ||
Flow.prototype.on = function (eventName, eventFunction) { | ||
@@ -177,0 +188,0 @@ this.internalEmitter.on(eventName, eventFunction) |
{ | ||
"name": "flowx", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
10895
201