@isolated-vm/experimental 0.0.2 → 0.0.3
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.
- package/addon/CMakeLists.txt +8 -4
- package/package.json +9 -9
package/addon/CMakeLists.txt
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
find_package_from_npm(@auto_js/
|
|
1
|
+
set(AUTO_JS_PREFIX isolated_)
|
|
2
|
+
find_package_from_npm(@auto_js/js AS @auto_js/${AUTO_JS_PREFIX}js PROPAGATE auto_js)
|
|
3
3
|
|
|
4
4
|
add_library(isolated_vm OBJECT)
|
|
5
|
-
|
|
5
|
+
set_npm_package_properties(@isolated-vm/experimental auto_js)
|
|
6
|
+
target_link_libraries(isolated_vm PRIVATE ${auto_js} utility_js)
|
|
6
7
|
target_sources(isolated_vm
|
|
7
8
|
PUBLIC FILE_SET CXX_MODULES FILES
|
|
8
9
|
_module.cc
|
|
@@ -28,7 +29,10 @@ target_sources(isolated_vm
|
|
|
28
29
|
value/vector.cc
|
|
29
30
|
)
|
|
30
31
|
|
|
31
|
-
if(
|
|
32
|
+
if(EXPORT_IS_EXPORT)
|
|
33
|
+
# Activate 'EXPORT' macro
|
|
34
|
+
target_compile_definitions(isolated_vm PRIVATE EXPORT_IS_EXPORT)
|
|
35
|
+
else()
|
|
32
36
|
# @isolated-vm/experimental install location (for linking)
|
|
33
37
|
execute_process(COMMAND node "${CMAKE_CURRENT_SOURCE_DIR}/resolve.js" OUTPUT_STRIP_TRAILING_WHITESPACE OUTPUT_VARIABLE ISOLATED_VM_PATH RESULT_VARIABLE RESULT)
|
|
34
38
|
if(NOT RESULT STREQUAL 0)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@isolated-vm/experimental",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": "https://github.com/laverdet/",
|
|
6
6
|
"description": "JavaScript sandbox",
|
|
@@ -34,20 +34,20 @@
|
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/node": "^22.1.0",
|
|
37
|
-
"@isolated-vm/experimental": "^0.0.
|
|
37
|
+
"@isolated-vm/experimental": "^0.0.3"
|
|
38
38
|
},
|
|
39
39
|
"repository": {
|
|
40
40
|
"type": "git",
|
|
41
41
|
"url": "git+https://github.com/laverdet/isolated-vm.git"
|
|
42
42
|
},
|
|
43
43
|
"optionalDependencies": {
|
|
44
|
-
"@isolated-vm/experimental-linux-arm64-musl": "0.0.
|
|
45
|
-
"@isolated-vm/experimental-darwin-arm64": "0.0.
|
|
46
|
-
"@isolated-vm/experimental-linux-arm64-gnu": "0.0.
|
|
47
|
-
"@isolated-vm/experimental-linux-x64-musl": "0.0.
|
|
48
|
-
"@isolated-vm/experimental-darwin-x64": "0.0.
|
|
49
|
-
"@isolated-vm/experimental-win32-x64": "0.0.
|
|
50
|
-
"@isolated-vm/experimental-linux-x64-gnu": "0.0.
|
|
44
|
+
"@isolated-vm/experimental-linux-arm64-musl": "0.0.3",
|
|
45
|
+
"@isolated-vm/experimental-darwin-arm64": "0.0.3",
|
|
46
|
+
"@isolated-vm/experimental-linux-arm64-gnu": "0.0.3",
|
|
47
|
+
"@isolated-vm/experimental-linux-x64-musl": "0.0.3",
|
|
48
|
+
"@isolated-vm/experimental-darwin-x64": "0.0.3",
|
|
49
|
+
"@isolated-vm/experimental-win32-x64": "0.0.3",
|
|
50
|
+
"@isolated-vm/experimental-linux-x64-gnu": "0.0.3"
|
|
51
51
|
},
|
|
52
52
|
"scripts": {
|
|
53
53
|
"test": "${NODE-node} --enable-source-maps --expose-gc --test-reporter=spec --test dist/test/*.js"
|