@hyperdx/cli 0.1.0-next.1 → 0.1.1
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/CHANGELOG.md +16 -0
- package/dist/{chunk-C6NAKRYT.js → chunk-XRDNHVYP.js} +10 -4
- package/dist/chunk-XRDNHVYP.js.map +1 -0
- package/dist/index.cjs +13 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/lib.cjs +9 -3
- package/dist/lib.cjs.map +1 -1
- package/dist/lib.d.ts +2 -1
- package/dist/lib.js +1 -1
- package/package.json +5 -1
- package/dist/chunk-C6NAKRYT.js.map +0 -1
package/dist/index.cjs
CHANGED
|
@@ -313,8 +313,12 @@ var require_package = __commonJS({
|
|
|
313
313
|
"package.json"(exports, module2) {
|
|
314
314
|
module2.exports = {
|
|
315
315
|
name: "@hyperdx/cli",
|
|
316
|
-
version: "0.1.
|
|
316
|
+
version: "0.1.1",
|
|
317
317
|
description: "HyperDX command line tool",
|
|
318
|
+
repository: {
|
|
319
|
+
type: "git",
|
|
320
|
+
url: "https://github.com/hyperdxio/hyperdx-js.git"
|
|
321
|
+
},
|
|
318
322
|
publishConfig: {
|
|
319
323
|
access: "public"
|
|
320
324
|
},
|
|
@@ -7449,6 +7453,7 @@ var uploadSourcemaps = (_0) => __async(void 0, [_0], function* ({
|
|
|
7449
7453
|
allowNoop,
|
|
7450
7454
|
serviceKey,
|
|
7451
7455
|
apiUrl,
|
|
7456
|
+
apiVersion,
|
|
7452
7457
|
basePath,
|
|
7453
7458
|
path: path2,
|
|
7454
7459
|
releaseId
|
|
@@ -7462,7 +7467,8 @@ var uploadSourcemaps = (_0) => __async(void 0, [_0], function* ({
|
|
|
7462
7467
|
}
|
|
7463
7468
|
}
|
|
7464
7469
|
const backend = apiUrl || "https://api.hyperdx.io";
|
|
7465
|
-
const
|
|
7470
|
+
const version = apiVersion || "v1";
|
|
7471
|
+
const res = yield (0, import_cross_fetch.default)((0, import_path.join)(backend, "api", version), {
|
|
7466
7472
|
method: "get",
|
|
7467
7473
|
headers: {
|
|
7468
7474
|
"Content-Type": "application/json",
|
|
@@ -7492,7 +7498,7 @@ var uploadSourcemaps = (_0) => __async(void 0, [_0], function* ({
|
|
|
7492
7498
|
releaseId
|
|
7493
7499
|
}));
|
|
7494
7500
|
const urlRes = yield (0, import_cross_fetch.default)(
|
|
7495
|
-
(0, import_path.join)(backend, "api",
|
|
7501
|
+
(0, import_path.join)(backend, "api", version, "sourcemaps", "upload-presigned-urls"),
|
|
7496
7502
|
{
|
|
7497
7503
|
method: "post",
|
|
7498
7504
|
headers: {
|
|
@@ -7594,6 +7600,10 @@ import_commander.program.command("upload-sourcemaps").option("-k, --serviceKey <
|
|
|
7594
7600
|
).option(
|
|
7595
7601
|
"-bp, --basePath [string]",
|
|
7596
7602
|
"An optional base path for the uploaded sourcemaps"
|
|
7603
|
+
).option(
|
|
7604
|
+
"--apiVersion [string]",
|
|
7605
|
+
"The API version to use (v1 or v2)",
|
|
7606
|
+
"v1"
|
|
7597
7607
|
).action(uploadSourcemaps);
|
|
7598
7608
|
import_commander.program.parse();
|
|
7599
7609
|
//# sourceMappingURL=index.cjs.map
|