node-datachannel 0.32.0 → 0.32.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/CMakeLists.txt +6 -1
  2. package/package.json +1 -1
package/CMakeLists.txt CHANGED
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15)
2
2
  cmake_policy(SET CMP0091 NEW)
3
3
  cmake_policy(SET CMP0042 NEW)
4
4
 
5
- project(node_datachannel VERSION 0.32.0)
5
+ project(node_datachannel VERSION 0.32.1)
6
6
 
7
7
  # compile_commands.json
8
8
  # -----------------------------------
@@ -128,6 +128,11 @@ endif()
128
128
 
129
129
  target_link_libraries(${PROJECT_NAME} PRIVATE ${LINK_LIBRARIES})
130
130
 
131
+ if(UNIX AND NOT APPLE)
132
+ target_compile_options(${PROJECT_NAME} PRIVATE -fvisibility=hidden -fvisibility-inlines-hidden)
133
+ target_link_options(${PROJECT_NAME} PRIVATE -Wl,--exclude-libs,ALL)
134
+ endif()
135
+
131
136
  if(MSVC AND CMAKE_JS_NODELIB_DEF AND CMAKE_JS_NODELIB_TARGET)
132
137
  # Generate node.lib
133
138
  execute_process(COMMAND ${CMAKE_AR} /def:${CMAKE_JS_NODELIB_DEF} /out:${CMAKE_JS_NODELIB_TARGET} ${CMAKE_STATIC_LINKER_FLAGS})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-datachannel",
3
- "version": "0.32.0",
3
+ "version": "0.32.1",
4
4
  "description": "WebRTC For Node.js and Electron. libdatachannel node bindings.",
5
5
  "main": "./dist/cjs/lib/index.cjs",
6
6
  "module": "./dist/esm/lib/index.mjs",