@contentstack/cli-command 2.0.0-beta.9 → 2.0.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.
Files changed (2) hide show
  1. package/lib/index.js +2 -1
  2. package/package.json +13 -9
package/lib/index.js CHANGED
@@ -7,8 +7,9 @@ const cli_utilities_1 = require("@contentstack/cli-utilities");
7
7
  const defaultRateLimit = 5;
8
8
  class ContentstackCommand extends cli_utilities_1.Command {
9
9
  get context() {
10
+ var _a;
10
11
  // @ts-ignore
11
- return this.config.context || {};
12
+ return this.config.context || ((_a = this.config.options) === null || _a === void 0 ? void 0 : _a.context) || {};
12
13
  }
13
14
  get email() {
14
15
  if (this._email)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@contentstack/cli-command",
3
3
  "description": "Contentstack CLI plugin for configuration",
4
- "version": "2.0.0-beta.9",
4
+ "version": "2.0.1",
5
5
  "author": "Contentstack",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",
@@ -14,21 +14,21 @@
14
14
  "lint": "eslint src/**/*.ts"
15
15
  },
16
16
  "dependencies": {
17
- "@contentstack/cli-utilities": "~2.0.0-beta.10",
17
+ "@contentstack/cli-utilities": "~2.0.1",
18
18
  "contentstack": "^3.27.0",
19
- "@oclif/core": "^4.11.4"
19
+ "@oclif/core": "^4.11.14"
20
20
  },
21
21
  "overrides": {
22
22
  "@oclif/core": {
23
- "picomatch": "^4.0.4"
23
+ "picomatch": "^4.0.7"
24
24
  }
25
25
  },
26
26
  "devDependencies": {
27
- "@oclif/test": "^4.1.18",
27
+ "@oclif/test": "^4.1.20",
28
28
  "@types/mocha": "^8.2.3",
29
29
  "@types/node": "^14.18.63",
30
- "eslint": "^10.5.0",
31
- "eslint-config-oclif": "^6.0.15",
30
+ "eslint": "^10.6.0",
31
+ "eslint-config-oclif": "^6.0.175",
32
32
  "eslint-config-oclif-typescript": "^3.1.14",
33
33
  "mocha": "10.8.2",
34
34
  "nyc": "^15.1.0",
@@ -61,5 +61,9 @@
61
61
  "bin": "csdx",
62
62
  "repositoryPrefix": "<%- repo %>/blob/main/packages/contentstack-command/<%- commandPath %>"
63
63
  },
64
- "repository": "contentstack/cli"
65
- }
64
+ "repository": {
65
+ "type": "git",
66
+ "url": "git+https://github.com/contentstack/cli.git",
67
+ "directory": "packages/contentstack-command"
68
+ }
69
+ }