create-snipara 1.3.19 → 1.3.20
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/dist/index.js +3 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import fs from "fs";
|
|
|
9
9
|
import path from "path";
|
|
10
10
|
import { execSync, spawn } from "child_process";
|
|
11
11
|
import { homedir } from "os";
|
|
12
|
-
var VERSION = "1.3.
|
|
12
|
+
var VERSION = "1.3.20";
|
|
13
13
|
var BASE_URL = "https://www.snipara.com";
|
|
14
14
|
var API_URL = "https://api.snipara.com";
|
|
15
15
|
var COMPANION_PACKAGE_NAME = "snipara-companion";
|
|
@@ -2252,15 +2252,10 @@ function printSuccess(answers, report) {
|
|
|
2252
2252
|
}
|
|
2253
2253
|
function commandExists(command) {
|
|
2254
2254
|
try {
|
|
2255
|
-
execSync(
|
|
2255
|
+
execSync(`command -v ${command}`, { stdio: "ignore", shell: "/bin/sh", timeout: 500 });
|
|
2256
2256
|
return true;
|
|
2257
2257
|
} catch {
|
|
2258
|
-
|
|
2259
|
-
execSync(`command -v ${command}`, { stdio: "ignore", shell: "/bin/sh", timeout: 1e3 });
|
|
2260
|
-
return true;
|
|
2261
|
-
} catch {
|
|
2262
|
-
return false;
|
|
2263
|
-
}
|
|
2258
|
+
return false;
|
|
2264
2259
|
}
|
|
2265
2260
|
}
|
|
2266
2261
|
function detectEnvironment() {
|
package/package.json
CHANGED