@highflame/overwatch-win32-arm64 1.0.12 → 1.0.14
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/bin/ramparts-aarch64-pc-windows-msvc.exe +0 -0
- package/index.js +7 -51
- package/package.json +6 -7
|
Binary file
|
package/index.js
CHANGED
|
@@ -3,27 +3,22 @@
|
|
|
3
3
|
* Platform-specific binaries for Windows ARM64
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
const path = require(
|
|
7
|
-
const fs = require(
|
|
6
|
+
const path = require('path');
|
|
7
|
+
const fs = require('fs');
|
|
8
8
|
|
|
9
|
-
const PLATFORM =
|
|
10
|
-
const ARCH =
|
|
11
|
-
const RUST_TARGET =
|
|
9
|
+
const PLATFORM = 'win32';
|
|
10
|
+
const ARCH = 'arm64';
|
|
11
|
+
const RUST_TARGET = 'aarch64-pc-windows-msvc';
|
|
12
12
|
|
|
13
|
-
/**
|
|
14
|
-
* Get the path to the ramparts binary
|
|
15
|
-
* @returns {string|null} Path to binary or null if not found
|
|
16
|
-
*/
|
|
17
13
|
function getRampartsBinaryPath() {
|
|
18
14
|
const binaryName = `ramparts-${RUST_TARGET}.exe`;
|
|
19
|
-
const binaryPath = path.join(__dirname,
|
|
15
|
+
const binaryPath = path.join(__dirname, 'bin', binaryName);
|
|
20
16
|
|
|
21
17
|
if (fs.existsSync(binaryPath)) {
|
|
22
18
|
return binaryPath;
|
|
23
19
|
}
|
|
24
20
|
|
|
25
|
-
|
|
26
|
-
const genericPath = path.join(__dirname, "bin", "ramparts.exe");
|
|
21
|
+
const genericPath = path.join(__dirname, 'bin', 'ramparts.exe');
|
|
27
22
|
if (fs.existsSync(genericPath)) {
|
|
28
23
|
return genericPath;
|
|
29
24
|
}
|
|
@@ -31,43 +26,6 @@ function getRampartsBinaryPath() {
|
|
|
31
26
|
return null;
|
|
32
27
|
}
|
|
33
28
|
|
|
34
|
-
/**
|
|
35
|
-
* Get the path to the native Cedar module
|
|
36
|
-
* @returns {string|null} Path to native module or null if not found
|
|
37
|
-
*/
|
|
38
|
-
function getNativeModulePath() {
|
|
39
|
-
const moduleName = `highflame-policy-node.${PLATFORM}-${ARCH}.node`;
|
|
40
|
-
const modulePath = path.join(__dirname, "native", moduleName);
|
|
41
|
-
|
|
42
|
-
if (fs.existsSync(modulePath)) {
|
|
43
|
-
return modulePath;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
return null;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Load the Cedar policy engine module
|
|
51
|
-
* @returns {object|null} The loaded module or null if not found
|
|
52
|
-
*/
|
|
53
|
-
function loadCedarModule() {
|
|
54
|
-
const modulePath = getNativeModulePath();
|
|
55
|
-
if (!modulePath) {
|
|
56
|
-
return null;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
try {
|
|
60
|
-
return require(modulePath);
|
|
61
|
-
} catch (error) {
|
|
62
|
-
console.error(`Failed to load Cedar module: ${error.message}`);
|
|
63
|
-
return null;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/**
|
|
68
|
-
* Check if this platform package matches the current runtime
|
|
69
|
-
* @returns {boolean}
|
|
70
|
-
*/
|
|
71
29
|
function isCurrentPlatform() {
|
|
72
30
|
return process.platform === PLATFORM && process.arch === ARCH;
|
|
73
31
|
}
|
|
@@ -77,7 +35,5 @@ module.exports = {
|
|
|
77
35
|
arch: ARCH,
|
|
78
36
|
rustTarget: RUST_TARGET,
|
|
79
37
|
getRampartsBinaryPath,
|
|
80
|
-
getNativeModulePath,
|
|
81
|
-
loadCedarModule,
|
|
82
38
|
isCurrentPlatform,
|
|
83
39
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@highflame/overwatch-win32-arm64",
|
|
3
|
-
"version": "v1.0.
|
|
3
|
+
"version": "v1.0.14",
|
|
4
4
|
"description": "Platform-specific binaries for @highflame/overwatch (Windows ARM64)",
|
|
5
5
|
"os": [
|
|
6
6
|
"win32"
|
|
@@ -11,22 +11,21 @@
|
|
|
11
11
|
"main": "index.js",
|
|
12
12
|
"files": [
|
|
13
13
|
"bin",
|
|
14
|
-
"native",
|
|
15
14
|
"index.js"
|
|
16
15
|
],
|
|
17
|
-
"
|
|
18
|
-
"type": "git",
|
|
19
|
-
"url": "https://github.com/highflame-ai/highflame-ramparts"
|
|
20
|
-
},
|
|
16
|
+
"homepage": "https://docs.highflame.ai/",
|
|
21
17
|
"keywords": [
|
|
22
18
|
"overwatch",
|
|
23
|
-
"guardian",
|
|
24
19
|
"security",
|
|
25
20
|
"windows",
|
|
26
21
|
"arm64"
|
|
27
22
|
],
|
|
28
23
|
"author": "Highflame AI",
|
|
29
24
|
"license": "MIT",
|
|
25
|
+
"publishConfig": {
|
|
26
|
+
"access": "public",
|
|
27
|
+
"tag": "internal"
|
|
28
|
+
},
|
|
30
29
|
"engines": {
|
|
31
30
|
"node": ">=18.0.0"
|
|
32
31
|
}
|