Skip to content

Commit

Permalink
Add more type support to node port and extended the tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Jan 29, 2020
1 parent 814e5e7 commit c7abf10
Show file tree
Hide file tree
Showing 10 changed files with 460 additions and 225 deletions.
1 change: 0 additions & 1 deletion source/loaders/node_loader/source/node_loader_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ typedef struct loader_impl_async_future_delete_type
} * loader_impl_async_future_delete;

/* Exception */

static inline void node_loader_impl_exception(napi_env env, napi_status status);

/* Type conversion */
Expand Down
2 changes: 1 addition & 1 deletion source/loaders/node_loader/trampoline/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ else()
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}
COMMAND npm install
COMMAND node-gyp ${NODE_LOADER_TRAMPOLINE_BUILD_TYPE} rebuild --verbose
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/build/${CMAKE_BUILD_TYPE}/trampoline.node ${LOADER_LIBRARY_PATH}
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/build/${CMAKE_BUILD_TYPE}/trampoline.so ${LOADER_LIBRARY_PATH}/trampoline.node
)
endif()

Expand Down
2 changes: 1 addition & 1 deletion source/ports/node_port/LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright 2016-2019 Vicente Eduardo Ferrer Garcia <[email protected]>
Copyright 2016-2020 Vicente Eduardo Ferrer Garcia <[email protected]>

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion source/ports/node_port/include/node_port/node_port.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ extern "C" {
* @param[out] js_v
* N-API value result after conversion from MetaCall
*/
NODE_PORT_API void metacall_node_value_to_napi(napi_env env, void * v, napi_value * js_v);
/* NODE_PORT_API void metacall_node_value_to_napi(napi_env env, void * v, napi_value * js_v); */

#ifdef __cplusplus
}
Expand Down
2 changes: 1 addition & 1 deletion source/ports/node_port/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion source/ports/node_port/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "metacall",
"version": "0.1.9",
"version": "0.1.10",
"description": "Call Python, C#, Ruby... functions from NodeJS (a NodeJS Port for MetaCall)",
"repository": "github:metacall/core",
"bugs": "https://github.com/metacall/core/issues",
Expand Down
Loading

0 comments on commit c7abf10

Please sign in to comment.