From da9fcfd0b495ba4e3703ba37d7648299d5bcfff7 Mon Sep 17 00:00:00 2001 From: rev3rsor <33268250+rev3rsor@users.noreply.github.com> Date: Thu, 24 Mar 2022 16:32:09 +1100 Subject: [PATCH 1/2] Update dependencies Use updated autobahn - >=20 enables use in the browser (previous versions error with `'require' is not defined`) --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 213bb7d..79acc20 100644 --- a/package.json +++ b/package.json @@ -15,10 +15,10 @@ "author": "Audiokinetic Inc.", "license": "Apache-2.0", "dependencies": { - "autobahn": "18.3.2" + "autobahn": "20.9.2" }, "devDependencies": { - "@types/autobahn": "0.9.38", - "typescript": "2.4.2" + "@types/autobahn": "20.9.0", + "typescript": "4.6.2" } } From 2ccba9cbe6edc68d298d3abea36ab9c467716779 Mon Sep 17 00:00:00 2001 From: Adrian <33268250+rev3rsor@users.noreply.github.com> Date: Thu, 24 Mar 2022 16:49:41 +1100 Subject: [PATCH 2/2] Fix typescript issue, set new version --- package.json | 2 +- src/waapi-client.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 79acc20..82104d5 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "waapi-client", - "version": "2017.2.0", + "version": "2022.0.0", "description": "Wwise Authoring API Client", "scripts": { "prepublish": "tsc -p ./src --outDir dist/ --declaration" diff --git a/src/waapi-client.ts b/src/waapi-client.ts index 941e671..47f4949 100644 --- a/src/waapi-client.ts +++ b/src/waapi-client.ts @@ -70,7 +70,7 @@ export class Session { } disconnect() { - return new Promise((resolve, reject) => { + return new Promise((resolve, reject) => { if (this.session.isOpen) { this.session.onleave = function (reason, details) { resolve();