mc8yp 2.8.2 → 2.8.3
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/{add-B3clXbA3.mjs → add-Bt0fMQY3.mjs} +91 -6
- package/dist/cli.mjs +37360 -37149
- package/dist/{creds-CgE3Umno.mjs → creds-BQypJsxt.mjs} +5 -5
- package/dist/{list-DGPagAtJ.mjs → list-Cr6LlrRt.mjs} +5 -2
- package/dist/{remove-C6FCjW31.mjs → remove-DeJzuKJK.mjs} +1 -1
- package/dist/{undici-C4eXkUym.mjs → undici-I2uXV0WL.mjs} +1 -1
- package/package.json +1 -1
- package/dist/rolldown-runtime-CMFfr-1z.mjs +0 -26
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { f as defineCommand, p as runCommand } from "./cli.mjs";
|
|
2
2
|
//#region src/cli/subcommands/creds.ts
|
|
3
3
|
const command = defineCommand({
|
|
4
4
|
meta: {
|
|
@@ -6,12 +6,12 @@ const command = defineCommand({
|
|
|
6
6
|
description: "Manage your Cumulocity credentials"
|
|
7
7
|
},
|
|
8
8
|
subCommands: {
|
|
9
|
-
add: () => import("./add-
|
|
10
|
-
remove: () => import("./remove-
|
|
11
|
-
list: () => import("./list-
|
|
9
|
+
add: () => import("./add-Bt0fMQY3.mjs").then((m) => m.default),
|
|
10
|
+
remove: () => import("./remove-DeJzuKJK.mjs").then((m) => m.default),
|
|
11
|
+
list: () => import("./list-Cr6LlrRt.mjs").then((m) => m.default)
|
|
12
12
|
},
|
|
13
13
|
run: async ({ rawArgs }) => {
|
|
14
|
-
const command = await import("./add-
|
|
14
|
+
const command = await import("./add-Bt0fMQY3.mjs").then((m) => m.default);
|
|
15
15
|
await runCommand(command, { rawArgs });
|
|
16
16
|
}
|
|
17
17
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as consola, f as defineCommand, i as getStoredC8yAuth } from "./cli.mjs";
|
|
2
2
|
import { exit } from "node:process";
|
|
3
3
|
//#region src/cli/subcommands/subcommands/list.ts
|
|
4
4
|
const command = defineCommand({
|
|
@@ -14,7 +14,10 @@ const command = defineCommand({
|
|
|
14
14
|
exit();
|
|
15
15
|
}
|
|
16
16
|
consola.box("Stored credentials");
|
|
17
|
-
for (const c of creds)
|
|
17
|
+
for (const c of creds) {
|
|
18
|
+
const tfa = c.tfaSession ? ` [TFA session ${c.tfaSession.expiresAt <= Date.now() ? "expired" : "valid until"} ${new Date(c.tfaSession.expiresAt).toLocaleString()}]` : "";
|
|
19
|
+
consola.log(`${c.tenantUrl} (${c.tenantId}) - ${c.user}${tfa}`);
|
|
20
|
+
}
|
|
18
21
|
exit();
|
|
19
22
|
} catch (err) {
|
|
20
23
|
consola.error("Failed to list credentials:", err);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { d as consola, f as defineCommand, i as getStoredC8yAuth, r as deleteStoredC8yAuth } from "./cli.mjs";
|
|
2
2
|
import { exit } from "node:process";
|
|
3
3
|
//#region src/cli/subcommands/subcommands/remove.ts
|
|
4
4
|
const command = defineCommand({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { h as __require, m as __commonJSMin } from "./cli.mjs";
|
|
2
2
|
//#region node_modules/.pnpm/undici@8.10.2/node_modules/undici/lib/core/symbols.js
|
|
3
3
|
var require_symbols = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4
4
|
module.exports = {
|
package/package.json
CHANGED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { createRequire } from "node:module";
|
|
2
|
-
//#region \0rolldown/runtime.js
|
|
3
|
-
var __create = Object.create;
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
12
|
-
key = keys[i];
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
-
get: ((k) => from[k]).bind(null, key),
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
21
|
-
value: mod,
|
|
22
|
-
enumerable: true
|
|
23
|
-
}) : target, mod));
|
|
24
|
-
var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
25
|
-
//#endregion
|
|
26
|
-
export { __require as n, __toESM as r, __commonJSMin as t };
|