@quatronic/qore 0.2.0-rc.6 → 0.2.0-rc.7
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/cli.js +19 -5
- package/dist/qore-capabilities.json +11 -0
- package/package.json +3 -2
package/dist/cli.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
3
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="4be6a705-edee-51df-8b0e-e26c3410dcc4")}catch(e){}}();
|
|
4
4
|
import { createRequire as __qoreCreateRequire } from "node:module"; const require = __qoreCreateRequire(import.meta.url);
|
|
5
5
|
import {
|
|
6
6
|
addSecretValues,
|
|
@@ -7962,7 +7962,12 @@ async function connectPostgres(url, o) {
|
|
|
7962
7962
|
|
|
7963
7963
|
// src/buildInfo.ts
|
|
7964
7964
|
var SENTRY_DSN = true ? "https://50b592efb53dbc1a31cb10d3945c6d52@o4512129906049024.ingest.de.sentry.io/4512174341750864" : "";
|
|
7965
|
-
|
|
7965
|
+
function sentryEnvironment(version) {
|
|
7966
|
+
if (version === "0.0.0-dev") return "development";
|
|
7967
|
+
if (version.includes("-rc.")) return "next";
|
|
7968
|
+
if (version.includes("-test.")) return "test";
|
|
7969
|
+
return "production";
|
|
7970
|
+
}
|
|
7966
7971
|
|
|
7967
7972
|
// src/platform/proxy.ts
|
|
7968
7973
|
import { execFile as execFile3 } from "child_process";
|
|
@@ -8026,7 +8031,16 @@ function systemProxy(platform = process.platform) {
|
|
|
8026
8031
|
}
|
|
8027
8032
|
|
|
8028
8033
|
// src/version.ts
|
|
8029
|
-
|
|
8034
|
+
import { readFileSync } from "fs";
|
|
8035
|
+
function readVersion() {
|
|
8036
|
+
try {
|
|
8037
|
+
const pkg = JSON.parse(readFileSync(new URL("../package.json", import.meta.url), "utf8"));
|
|
8038
|
+
return typeof pkg.version === "string" ? pkg.version : "0.0.0-dev";
|
|
8039
|
+
} catch {
|
|
8040
|
+
return "0.0.0-dev";
|
|
8041
|
+
}
|
|
8042
|
+
}
|
|
8043
|
+
var VERSION = readVersion();
|
|
8030
8044
|
|
|
8031
8045
|
// src/cli.ts
|
|
8032
8046
|
if (process.env.HTTPS_PROXY || process.env.https_proxy || process.env.HTTP_PROXY) setGlobalDispatcher(new EnvHttpProxyAgent());
|
|
@@ -8073,7 +8087,7 @@ var deps = {
|
|
|
8073
8087
|
telemetry.registerSecrets(values);
|
|
8074
8088
|
},
|
|
8075
8089
|
sentryDsn: SENTRY_DSN,
|
|
8076
|
-
sentryEnvironment:
|
|
8090
|
+
sentryEnvironment: sentryEnvironment(VERSION),
|
|
8077
8091
|
systemProxy: () => systemProxy(process.platform),
|
|
8078
8092
|
viewerDir: fileURLToPath(new URL("../viewer/dist/", import.meta.url)),
|
|
8079
8093
|
postgres: connectPostgres
|
|
@@ -8106,4 +8120,4 @@ if (!drained) {
|
|
|
8106
8120
|
process.exit();
|
|
8107
8121
|
}
|
|
8108
8122
|
//# sourceMappingURL=cli.js.map
|
|
8109
|
-
//# debugId=
|
|
8123
|
+
//# debugId=4be6a705-edee-51df-8b0e-e26c3410dcc4
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quatronic/qore",
|
|
3
|
-
"version": "0.2.0-rc.
|
|
3
|
+
"version": "0.2.0-rc.7",
|
|
4
4
|
"description": "Qore developer CLI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
10
|
"dist/**/*.js",
|
|
11
|
+
"dist/qore-capabilities.json",
|
|
11
12
|
"schema",
|
|
12
13
|
"viewer/dist",
|
|
13
14
|
"README.md"
|
|
@@ -25,7 +26,7 @@
|
|
|
25
26
|
"url": "git+https://github.com/Quatronic-IT/qore-cli.git"
|
|
26
27
|
},
|
|
27
28
|
"scripts": {
|
|
28
|
-
"build": "tsup && vite build --config viewer/vite.config.ts",
|
|
29
|
+
"build": "tsup && vite build --config viewer/vite.config.ts && node scripts/capabilities.mjs > dist/qore-capabilities.json",
|
|
29
30
|
"build:viewer": "vite build --config viewer/vite.config.ts",
|
|
30
31
|
"test": "vitest run",
|
|
31
32
|
"test:watch": "vitest",
|