bdy 1.17.16-dev → 1.17.18-dev
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/distTs/package.json
CHANGED
|
@@ -10,13 +10,15 @@ const output_1 = __importDefault(require("../../output"));
|
|
|
10
10
|
const commandPackageDelete = (0, utils_1.newCommand)('delete', texts_1.DESC_COMMAND_PACKAGE_DELETE);
|
|
11
11
|
commandPackageDelete.alias('rm');
|
|
12
12
|
commandPackageDelete.option('-w, --workspace <domain>', texts_1.OPTION_REST_API_WORKSPACE);
|
|
13
|
+
commandPackageDelete.option('-p, --project <name>', texts_1.OPTION_REST_API_PROJECT);
|
|
13
14
|
commandPackageDelete.option('-f, --force', texts_1.OPTION_CONFIRM_FORCE);
|
|
14
15
|
commandPackageDelete.argument('<identifier>', texts_1.OPT_COMMAND_PACKAGE_IDENTIFIER);
|
|
15
16
|
commandPackageDelete.addHelpText('after', texts_1.EXAMPLE_PACKAGE_DELETE);
|
|
16
17
|
commandPackageDelete.action(async (identifier, options) => {
|
|
17
18
|
const workspace = input_1.default.restApiWorkspace(options.workspace);
|
|
19
|
+
const project = input_1.default.restApiProject(options.project);
|
|
18
20
|
const client = input_1.default.restApiTokenClient();
|
|
19
|
-
const data = await client.getPackageVersionByIdentifier(workspace,
|
|
21
|
+
const data = await client.getPackageVersionByIdentifier(workspace, project, identifier);
|
|
20
22
|
if (!data || !data.domain) {
|
|
21
23
|
output_1.default.exitError(texts_1.ERR_WORKSPACE_NOT_FOUND);
|
|
22
24
|
}
|
package/distTs/src/input.js
CHANGED
|
@@ -707,8 +707,8 @@ class Input {
|
|
|
707
707
|
return cert;
|
|
708
708
|
}
|
|
709
709
|
static async tunnelToken(token) {
|
|
710
|
-
const workspace =
|
|
711
|
-
const project =
|
|
710
|
+
const workspace = Input.restApiWorkspace('', true);
|
|
711
|
+
const project = Input.restApiProject('', true);
|
|
712
712
|
let fromLogin = false;
|
|
713
713
|
if (!token && cfg_1.default.getApiToken() && workspace) {
|
|
714
714
|
const client = Input.restApiTokenClient();
|