vaderjs 1.4.0-22bho234 → 1.4.0-80gbho234
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/binaries/generator.js +6 -2
- package/package.json +2 -1
- package/vader.js +4 -5
- package/binaries/win32/check.ps1 +0 -7
package/binaries/generator.js
CHANGED
|
@@ -89,9 +89,11 @@ wss.on("connection", async function connection(ws) {
|
|
|
89
89
|
baseFolder = baseFolder.replace("//", "/");
|
|
90
90
|
globalThis.routeDocuments[folder] = `<!DOCTYPE html>
|
|
91
91
|
|
|
92
|
-
<html>
|
|
92
|
+
<html lang="en">
|
|
93
93
|
<head>
|
|
94
94
|
<meta charset="UTF-8">
|
|
95
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
96
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
95
97
|
<title>Document</title>
|
|
96
98
|
<script id="server">
|
|
97
99
|
window.$SERVER = true
|
|
@@ -195,4 +197,6 @@ wss.on("connection", async function connection(ws) {
|
|
|
195
197
|
|
|
196
198
|
}
|
|
197
199
|
});
|
|
198
|
-
});
|
|
200
|
+
});
|
|
201
|
+
|
|
202
|
+
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "vaderjs",
|
|
3
3
|
"description": "A Reactive library aimed to helping you build reactive applications inspired by react.js",
|
|
4
4
|
"module": "vader.js",
|
|
5
|
-
"version": "1.4.0-
|
|
5
|
+
"version": "1.4.0-80gbho234",
|
|
6
6
|
"bin": {
|
|
7
7
|
"vader": "./vader.js"
|
|
8
8
|
},
|
|
@@ -32,5 +32,6 @@
|
|
|
32
32
|
"dotenv":"latest",
|
|
33
33
|
"prettier": "latest",
|
|
34
34
|
"source-map": "latest"
|
|
35
|
+
|
|
35
36
|
}
|
|
36
37
|
}
|
package/vader.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { exec } from "child_process";
|
|
3
3
|
import fs from "fs";
|
|
4
4
|
globalThis.currentCommand = null;
|
|
5
|
-
globalThis.isRunning = false;
|
|
6
5
|
let vaderisInstalled = process.cwd() + "/node_modules/vaderjs/vader.js";
|
|
7
6
|
if (!fs.existsSync(process.cwd() + "/_dev")) {
|
|
8
7
|
fs.mkdirSync(process.cwd() + "/_dev");
|
|
@@ -99,7 +98,7 @@ console.log(`
|
|
|
99
98
|
function checkIFChromeIumIsInstalled() {
|
|
100
99
|
let platform = process.platform;
|
|
101
100
|
let findChrome = {
|
|
102
|
-
windows:`powershell -c "${ process.cwd()
|
|
101
|
+
windows:`powershell -c "${ process.cwd() + '\\test.ps1'}"`,
|
|
103
102
|
others: "/usr/bin/chromium-browser --version",
|
|
104
103
|
};
|
|
105
104
|
let installCommands = {
|
|
@@ -127,7 +126,8 @@ function checkIFChromeIumIsInstalled() {
|
|
|
127
126
|
resolve(
|
|
128
127
|
`${platform === "win32" ? "Google Chrome" : "Chromium"} is installed: ${stdout}`
|
|
129
128
|
);
|
|
130
|
-
fs.writeFileSync(process.cwd() + '/_dev/chrome', `Installed: ${stdout}`);
|
|
129
|
+
fs.writeFileSync(process.cwd() + '/_dev/chrome', `Installed: ${stdout}`);
|
|
130
|
+
run();
|
|
131
131
|
}
|
|
132
132
|
if (stderr) {
|
|
133
133
|
console.log(stderr);
|
|
@@ -197,12 +197,11 @@ checkIFChromeIumIsInstalled()
|
|
|
197
197
|
if (stdout) {
|
|
198
198
|
checkIFBundleIsInstalled()
|
|
199
199
|
.then((stdout) => {
|
|
200
|
-
if (stdout
|
|
200
|
+
if (stdout) {
|
|
201
201
|
if(!fs.existsSync(process.cwd() + '/_dev/bun')){
|
|
202
202
|
fs.writeFileSync(process.cwd() + "/_dev/bun", `Installed: ${stdout}`);
|
|
203
203
|
}
|
|
204
204
|
run();
|
|
205
|
-
globalThis.isRunning = true;
|
|
206
205
|
}
|
|
207
206
|
})
|
|
208
207
|
.catch(async (err) => {
|