@commercelayer/cli-plugin-triggers 3.8.1 → 3.8.3

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/base.js CHANGED
@@ -18,7 +18,7 @@ class default_1 extends core_1.Command {
18
18
  handleError(error, flags) {
19
19
  var _a, _b;
20
20
  if ((_a = error.message) === null || _a === void 0 ? void 0 : _a.match(/Missing \d required args?:\nid/)) {
21
- const resName = (error.parse.input.context.id).split(':')[0].replace(/_/g, ' ');
21
+ const resName = cli_core_1.clApi.humanizeResource((error.parse.input.context.id).split(':')[0]);
22
22
  this.error(`Missing the required unique ${cli_core_1.clColor.style.error('id')} of the ${cli_core_1.clColor.cli.command(resName)}`);
23
23
  }
24
24
  else if (sdk_1.CommerceLayerStatic.isApiError(error)) {
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "3.8.1",
2
+ "version": "3.8.3",
3
3
  "commands": {
4
4
  "noc": {
5
5
  "id": "noc",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@commercelayer/cli-plugin-triggers",
3
3
  "description": "Commerce Layer CLI Triggers plugin",
4
- "version": "3.8.1",
4
+ "version": "3.8.3",
5
5
  "author": "Pierluigi Viti <pierluigi@commercelayer.io>",
6
6
  "bugs": "https://github.com/commercelayer/commercelayer-cli-plugin-triggers/issues",
7
7
  "engines": {
@@ -15,7 +15,6 @@
15
15
  ],
16
16
  "homepage": "https://github.com/commercelayer/commercelayer-cli-plugin-triggers",
17
17
  "keywords": [
18
- "oclif",
19
18
  "ecommerce",
20
19
  "cli",
21
20
  "commercelayer"
@@ -44,7 +43,7 @@
44
43
  "repository": "commercelayer/commercelayer-cli-plugin-triggers",
45
44
  "types": "lib/index.d.ts",
46
45
  "devDependencies": {
47
- "@commercelayer/cli-dev": "^2.0.4",
46
+ "@commercelayer/cli-dev": "^2.0.5",
48
47
  "@commercelayer/eslint-config-ts": "^0.1.4",
49
48
  "@oclif/plugin-help": "^5.2.8",
50
49
  "@oclif/test": "^2.3.10",
@@ -52,7 +51,7 @@
52
51
  "@types/inquirer": "^8.2.6",
53
52
  "@types/lodash": "^4.14.191",
54
53
  "@types/mocha": "^10.0.1",
55
- "@types/node": "^18.15.1",
54
+ "@types/node": "^18.15.3",
56
55
  "chai": "^4.3.7",
57
56
  "eslint": "^8.36.0",
58
57
  "inflector-js": "^1.0.1",
@@ -63,10 +62,10 @@
63
62
  "typescript": "4.9.5"
64
63
  },
65
64
  "dependencies": {
66
- "@commercelayer/cli-core": "^3.3.5",
65
+ "@commercelayer/cli-core": "^3.3.6",
67
66
  "@commercelayer/js-auth": "^2.3.0",
68
67
  "@commercelayer/sdk": "^4.25.0",
69
- "@oclif/core": "^2.6.2",
68
+ "@oclif/core": "^2.6.3",
70
69
  "inquirer": "^8.2.5",
71
70
  "tslib": "^2.5.0"
72
71
  },