@squiz/dxp-cli-next 5.12.2-develop.1 → 5.13.0-develop.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/lib/auth/index.js CHANGED
@@ -5,11 +5,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const commander_1 = require("commander");
7
7
  const login_1 = __importDefault(require("./login/login"));
8
+ const logout_1 = __importDefault(require("./logout/logout"));
8
9
  const authCommand = new commander_1.Command('auth');
9
10
  authCommand
10
11
  .description('Authenticate into the DXP-Next CLI')
11
- .addCommand((0, login_1.default)());
12
- // Removed because it does not work
13
- // getting fixed in PLATFORM-940
14
- // .addCommand(createLogoutCommand());
12
+ .addCommand((0, login_1.default)())
13
+ .addCommand((0, logout_1.default)());
15
14
  exports.default = authCommand;
@@ -43,7 +43,7 @@ const createLogoutCommand = () => {
43
43
  const logoutCommand = new commander_1.Command('logout')
44
44
  .name('logout')
45
45
  .description('Log out of the current session')
46
- .addOption(new commander_1.Option('-f, --force', 'Skip confirmation prompt'))
46
+ .addOption(new commander_1.Option('-f, --force', 'skip confirmation prompt'))
47
47
  .action((options) => __awaiter(void 0, void 0, void 0, function* () {
48
48
  try {
49
49
  yield handleLogoutRequest(options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@squiz/dxp-cli-next",
3
- "version": "5.12.2-develop.1",
3
+ "version": "5.13.0-develop.1",
4
4
  "repository": {
5
5
  "url": "https://gitlab.squiz.net/dxp/dxp-cli-next"
6
6
  },