@vouchfor/sdk 1.1.26 → 1.1.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/vouch.js CHANGED
@@ -13,6 +13,13 @@ class Vouch {
13
13
  }
14
14
  );
15
15
  }
16
+
17
+ poll() {
18
+ return Promise.all([
19
+ this.utilities.commit().catch(() => undefined),
20
+ this.integrations.commit().catch(() => undefined),
21
+ ]);
22
+ }
16
23
  }
17
24
 
18
25
  module.exports = Vouch;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vouchfor/sdk",
3
- "version": "1.1.26",
3
+ "version": "1.1.27",
4
4
  "description": "Vouch API SDK",
5
5
  "main": "lib/index.js",
6
6
  "repository": {
package/test-poll.js ADDED
@@ -0,0 +1,10 @@
1
+ const Vouch = require("./lib/vouch");
2
+
3
+ const vouchClient = new Vouch({
4
+ env: 'dev',
5
+ integrationKey: 'b0883f06-84af-4108-8543-31874c335c36-kkr3Wy4CLY8C2g65UT79sgUfOIR2ZzkA9uQam3bTs4ZNdlSs7M',
6
+ }, console);
7
+
8
+ (async () => {
9
+ vouchClient.poll();
10
+ })();