diff --git a/CMakeLists.txt b/CMakeLists.txt index 5693a6c..89a3987 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.21) -project(venmic LANGUAGES CXX VERSION 3.3.0) +project(venmic LANGUAGES CXX VERSION 3.3.1) # -------------------------------------------------------------------------------------------------------- # Library options diff --git a/addon/addon.cpp b/addon/addon.cpp index 744533b..da3791b 100644 --- a/addon/addon.cpp +++ b/addon/addon.cpp @@ -162,7 +162,7 @@ struct patchbay : public Napi::ObjectWrap auto include = to_array(data.Get("include")); auto exclude = to_array(data.Get("exclude")); auto ignore_devices = convert(data.Get("ignore_devices")); - auto workaround = convert(data.Get("workaround")); + auto workaround = to_array(data.Get("workaround")); if (!include && !exclude) { @@ -177,7 +177,7 @@ struct patchbay : public Napi::ObjectWrap .include = include.value_or(std::vector{}), .exclude = exclude.value_or(std::vector{}), .ignore_devices = ignore_devices.value_or(true), - .workaround = workaround, + .workaround = workaround.value_or(std::vector{}), }); return Napi::Boolean::New(env, true); diff --git a/package.json b/package.json index 0421b5e..d9c0f01 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "private": false, "license": "MPL-2.0", "author": "Curve (https://github.com/Curve)", - "version": "3.3.0", + "version": "3.3.1", "main": "./lib/index.js", "types": "./lib/module.d.ts", "scripts": {