@integration-app/sdk
Advanced tools
Comparing version 0.2.4 to 0.2.5
@@ -31,3 +31,3 @@ "use strict"; | ||
init(options) { | ||
if (options.accessToken !== undefined) | ||
if (!options.accessToken) | ||
throw new Error('accessToken was not provided'); | ||
@@ -34,0 +34,0 @@ this.initialized = true; |
{ | ||
"name": "@integration-app/sdk", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"description": "JavaScript SDK for Integration.app", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -62,4 +62,3 @@ import Pusher, { Channel } from 'pusher-js' | ||
public init(options: IntegrationAppClientOptions) { | ||
if (options.accessToken !== undefined) | ||
throw new Error('accessToken was not provided') | ||
if (!options.accessToken) throw new Error('accessToken was not provided') | ||
@@ -66,0 +65,0 @@ this.initialized = true |
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
2466847
28685