From f8c15011ee16b7f6f21d0f12940142c07bddfb05 Mon Sep 17 00:00:00 2001 From: Ian Jennings Date: Tue, 3 Apr 2018 18:11:25 -0500 Subject: [PATCH] uuid toString rather than throw error (#345) * uuid toString rather than throw error * proper bump to 0.9.10 --- package.json | 2 +- src/components/user.js | 7 +------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 4384f053..388e8f5c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "author": "PubNub", "name": "chat-engine", - "version": "0.9.7", + "version": "0.9.10", "description": "ChatEngine", "main": "dist/chat-engine.js", "scripts": { diff --git a/src/components/user.js b/src/components/user.js index 28c27405..31a9ae30 100644 --- a/src/components/user.js +++ b/src/components/user.js @@ -26,12 +26,7 @@ class User extends Emitter { @readonly @type String */ - - if (typeof uuid !== 'string') { - this.chatEngine.throwError(this, 'trigger', 'construct', new Error('UUID must be of type string')); - } - - this.uuid = uuid; + this.uuid = uuid.toString(); /** * Gets the user state. See {@link Me#update} for how to assign state values.