@contentstack/cli-command 1.2.16 → 1.2.18

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 (3) hide show
  1. package/LICENSE +1 -1
  2. package/lib/index.js +5 -1
  3. package/package.json +4 -4
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2023 Contentstack
3
+ Copyright (c) 2024 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/lib/index.js CHANGED
@@ -28,7 +28,11 @@ class ContentstackCommand extends cli_utilities_1.Command {
28
28
  if (!this._region)
29
29
  this._region = cli_utilities_1.configHandler.get('region');
30
30
  if (!this._region) {
31
- cli_utilities_1.cliux.print('Error: Region not configured. Please set the region.', { color: 'red' });
31
+ //NOTE: this.log suggestion not working
32
+ cli_utilities_1.cliux.print('Error: Region not configured. Please set the region with command $ csdx config:set:region', {
33
+ color: 'red',
34
+ });
35
+ cli_utilities_1.cliux.print(`Suggestions: To set the region https://www.contentstack.com/docs/developers/cli/configure-regions-in-the-cli`, { color: 'yellow' });
32
36
  process.exit(1);
33
37
  }
34
38
  return this._region;
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": "1.2.16",
4
+ "version": "1.2.18",
5
5
  "author": "Contentstack",
6
6
  "main": "lib/index.js",
7
7
  "types": "lib/index.d.ts",
@@ -17,11 +17,11 @@
17
17
  "format": "eslint src/**/*.ts --fix"
18
18
  },
19
19
  "dependencies": {
20
- "@contentstack/cli-utilities": "~1.5.7",
20
+ "@contentstack/cli-utilities": "~1.6.1",
21
21
  "contentstack": "^3.10.1"
22
22
  },
23
23
  "devDependencies": {
24
- "@oclif/test": "^2.2.10",
24
+ "@oclif/test": "^2.5.6",
25
25
  "@types/chai": "^4.2.18",
26
26
  "@types/mkdirp": "^1.0.1",
27
27
  "@types/mocha": "^8.2.2",
@@ -30,7 +30,7 @@
30
30
  "chai": "^4.3.4",
31
31
  "eslint": "^8.18.0",
32
32
  "eslint-config-oclif": "^4.0.0",
33
- "eslint-config-oclif-typescript": "^0.1.0",
33
+ "eslint-config-oclif-typescript": "^3.0.8",
34
34
  "mocha": "10.1.0",
35
35
  "nyc": "^15.1.0",
36
36
  "rimraf": "^2.7.1",