Skip to content

Commit

Permalink
fix(addon): accept undefined in list
Browse files Browse the repository at this point in the history
  • Loading branch information
Curve committed May 24, 2024
1 parent 6d17071 commit c1658a5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.21)
project(venmic LANGUAGES CXX VERSION 3.6.0)
project(venmic LANGUAGES CXX VERSION 3.6.1)

# --------------------------------------------------------------------------------------------------------
# Library options
Expand Down
2 changes: 1 addition & 1 deletion addon/addon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ struct patchbay : public Napi::ObjectWrap<patchbay>

std::vector<std::string> props{};

if (info.Length() == 1)
if (info.Length() == 1 && !info[0].IsUndefined())
{
auto array = to_array<std::string>(info[0]);

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"private": false,
"license": "MPL-2.0",
"author": "Curve (https://github.com/Curve)",
"version": "3.6.0",
"version": "3.6.1",
"main": "./lib/index.js",
"types": "./lib/module.d.ts",
"scripts": {
Expand Down

0 comments on commit c1658a5

Please sign in to comment.