@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.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
uploadSourcemaps
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XRDNHVYP.js";
|
|
5
5
|
|
|
6
6
|
// src/index.ts
|
|
7
7
|
import { program } from "commander";
|
|
@@ -19,6 +19,10 @@ program.command("upload-sourcemaps").option("-k, --serviceKey <string>", "The Hy
|
|
|
19
19
|
).option(
|
|
20
20
|
"-bp, --basePath [string]",
|
|
21
21
|
"An optional base path for the uploaded sourcemaps"
|
|
22
|
+
).option(
|
|
23
|
+
"--apiVersion [string]",
|
|
24
|
+
"The API version to use (v1 or v2)",
|
|
25
|
+
"v1"
|
|
22
26
|
).action(uploadSourcemaps);
|
|
23
27
|
program.parse();
|
|
24
28
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["#!/usr/bin/env node\nimport { program } from 'commander';\nimport { uploadSourcemaps } from './lib.js';\n\nprogram.name('@hyperdx/cli').description('HyperDX Command Line Interface');\n\nprogram\n .command('upload-sourcemaps')\n .option('-k, --serviceKey <string>', 'The HyperDX service account API key')\n .option(\n '-u, --apiUrl [string]',\n 'An optional api url for self-hosted deployments',\n )\n .option(\n '-rid, --releaseId [string]',\n 'An optional release id to associate the sourcemaps with',\n )\n .option(\n '-p, --path [string]',\n 'Sets the directory of where the sourcemaps are',\n '.',\n )\n .option(\n '-bp, --basePath [string]',\n 'An optional base path for the uploaded sourcemaps',\n )\n .action(uploadSourcemaps);\n\nprogram.parse();\n"],"mappings":";;;;;;AACA,SAAS,eAAe;AAGxB,QAAQ,KAAK,cAAc,EAAE,YAAY,gCAAgC;AAEzE,QACG,QAAQ,mBAAmB,EAC3B,OAAO,6BAA6B,qCAAqC,EACzE;AAAA,EACC;AAAA,EACA;AACF,EACC;AAAA,EACC;AAAA,EACA;AACF,EACC;AAAA,EACC;AAAA,EACA;AAAA,EACA;AACF,EACC;AAAA,EACC;AAAA,EACA;AACF,EACC,OAAO,gBAAgB;AAE1B,QAAQ,MAAM;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["#!/usr/bin/env node\nimport { program } from 'commander';\nimport { uploadSourcemaps } from './lib.js';\n\nprogram.name('@hyperdx/cli').description('HyperDX Command Line Interface');\n\nprogram\n .command('upload-sourcemaps')\n .option('-k, --serviceKey <string>', 'The HyperDX service account API key')\n .option(\n '-u, --apiUrl [string]',\n 'An optional api url for self-hosted deployments',\n )\n .option(\n '-rid, --releaseId [string]',\n 'An optional release id to associate the sourcemaps with',\n )\n .option(\n '-p, --path [string]',\n 'Sets the directory of where the sourcemaps are',\n '.',\n )\n .option(\n '-bp, --basePath [string]',\n 'An optional base path for the uploaded sourcemaps',\n )\n .option(\n '--apiVersion [string]',\n 'The API version to use (v1 or v2)',\n 'v1',\n )\n .action(uploadSourcemaps);\n\nprogram.parse();\n"],"mappings":";;;;;;AACA,SAAS,eAAe;AAGxB,QAAQ,KAAK,cAAc,EAAE,YAAY,gCAAgC;AAEzE,QACG,QAAQ,mBAAmB,EAC3B,OAAO,6BAA6B,qCAAqC,EACzE;AAAA,EACC;AAAA,EACA;AACF,EACC;AAAA,EACC;AAAA,EACA;AACF,EACC;AAAA,EACC;AAAA,EACA;AAAA,EACA;AACF,EACC;AAAA,EACC;AAAA,EACA;AACF,EACC;AAAA,EACC;AAAA,EACA;AAAA,EACA;AACF,EACC,OAAO,gBAAgB;AAE1B,QAAQ,MAAM;","names":[]}
|
package/dist/lib.cjs
CHANGED
|
@@ -317,8 +317,12 @@ var require_package = __commonJS({
|
|
|
317
317
|
"package.json"(exports, module2) {
|
|
318
318
|
module2.exports = {
|
|
319
319
|
name: "@hyperdx/cli",
|
|
320
|
-
version: "0.1.
|
|
320
|
+
version: "0.1.1",
|
|
321
321
|
description: "HyperDX command line tool",
|
|
322
|
+
repository: {
|
|
323
|
+
type: "git",
|
|
324
|
+
url: "https://github.com/hyperdxio/hyperdx-js.git"
|
|
325
|
+
},
|
|
322
326
|
publishConfig: {
|
|
323
327
|
access: "public"
|
|
324
328
|
},
|
|
@@ -7455,6 +7459,7 @@ var uploadSourcemaps = (_0) => __async(void 0, [_0], function* ({
|
|
|
7455
7459
|
allowNoop,
|
|
7456
7460
|
serviceKey,
|
|
7457
7461
|
apiUrl,
|
|
7462
|
+
apiVersion,
|
|
7458
7463
|
basePath,
|
|
7459
7464
|
path: path2,
|
|
7460
7465
|
releaseId
|
|
@@ -7468,7 +7473,8 @@ var uploadSourcemaps = (_0) => __async(void 0, [_0], function* ({
|
|
|
7468
7473
|
}
|
|
7469
7474
|
}
|
|
7470
7475
|
const backend = apiUrl || "https://api.hyperdx.io";
|
|
7471
|
-
const
|
|
7476
|
+
const version = apiVersion || "v1";
|
|
7477
|
+
const res = yield (0, import_cross_fetch.default)((0, import_path.join)(backend, "api", version), {
|
|
7472
7478
|
method: "get",
|
|
7473
7479
|
headers: {
|
|
7474
7480
|
"Content-Type": "application/json",
|
|
@@ -7498,7 +7504,7 @@ var uploadSourcemaps = (_0) => __async(void 0, [_0], function* ({
|
|
|
7498
7504
|
releaseId
|
|
7499
7505
|
}));
|
|
7500
7506
|
const urlRes = yield (0, import_cross_fetch.default)(
|
|
7501
|
-
(0, import_path.join)(backend, "api",
|
|
7507
|
+
(0, import_path.join)(backend, "api", version, "sourcemaps", "upload-presigned-urls"),
|
|
7502
7508
|
{
|
|
7503
7509
|
method: "post",
|
|
7504
7510
|
headers: {
|