@contentstack/cli-auth 2.0.0-beta.1 → 2.0.0-beta.2

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 Contentstack
3
+ Copyright (c) 2026 Contentstack
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -18,7 +18,7 @@ $ npm install -g @contentstack/cli-auth
18
18
  $ csdx COMMAND
19
19
  running command...
20
20
  $ csdx (--version)
21
- @contentstack/cli-auth/2.0.0-beta.1 linux-x64 node-v22.21.1
21
+ @contentstack/cli-auth/2.0.0-beta.2 linux-x64 node-v22.22.0
22
22
  $ csdx --help [COMMAND]
23
23
  USAGE
24
24
  $ csdx COMMAND
@@ -9,8 +9,10 @@ class BaseCommand extends cli_command_1.Command {
9
9
  * plugins, registering the configuration, and initializing the logger.
10
10
  */
11
11
  async init() {
12
+ var _a, _b;
12
13
  await super.init();
13
- this.contextDetails = Object.assign({}, this.createExportContext());
14
+ // this.contextDetails = { ...this.createExportContext() };
15
+ this.contextDetails = Object.assign({}, (0, cli_utilities_1.createLogContext)(((_b = (_a = this.context) === null || _a === void 0 ? void 0 : _a.info) === null || _b === void 0 ? void 0 : _b.command) || 'auth', '', cli_utilities_1.configHandler.get('authenticationMethod')));
14
16
  }
15
17
  /**
16
18
  * The catch function is used to handle errors from a command, either by adding custom logic or
@@ -359,5 +359,5 @@
359
359
  ]
360
360
  }
361
361
  },
362
- "version": "2.0.0-beta.1"
362
+ "version": "2.0.0-beta.2"
363
363
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@contentstack/cli-auth",
3
3
  "description": "Contentstack CLI plugin for authentication activities",
4
- "version": "2.0.0-beta.1",
4
+ "version": "2.0.0-beta.2",
5
5
  "author": "Contentstack",
6
6
  "bugs": "https://github.com/contentstack/cli/issues",
7
7
  "scripts": {
@@ -22,8 +22,8 @@
22
22
  "test:unit:report": "nyc --extension .ts mocha --forbid-only \"test/unit/**/*.test.ts\""
23
23
  },
24
24
  "dependencies": {
25
- "@contentstack/cli-command": "~1.7.0",
26
- "@contentstack/cli-utilities": "~1.15.0",
25
+ "@contentstack/cli-command": "~1.7.2",
26
+ "@contentstack/cli-utilities": "~1.17.0",
27
27
  "@oclif/core": "^4.3.0",
28
28
  "@oclif/plugin-help": "^6.2.28",
29
29
  "otplib": "^12.0.1"
@@ -36,7 +36,7 @@
36
36
  "@types/mkdirp": "^1.0.2",
37
37
  "@types/mocha": "^8.2.3",
38
38
  "@types/node": "^14.18.63",
39
- "@types/sinon": "^10.0.20",
39
+ "@types/sinon": "^21.0.0",
40
40
  "chai": "^4.5.0",
41
41
  "dotenv": "^16.4.7",
42
42
  "eslint": "^8.57.1",
@@ -45,7 +45,7 @@
45
45
  "mocha": "10.8.2",
46
46
  "nyc": "^15.1.0",
47
47
  "oclif": "^4.17.46",
48
- "sinon": "^19.0.5",
48
+ "sinon": "^21.0.1",
49
49
  "ts-node": "^10.9.2",
50
50
  "typescript": "^4.9.5"
51
51
  },