@constructor-io/constructorio-connect-cli 1.13.1 → 1.13.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.
@@ -0,0 +1,30 @@
1
+ import js from "@eslint/js";
2
+ import globals from "globals";
3
+ import pluginJest from "eslint-plugin-jest";
4
+ import { defineConfig } from "eslint/config";
5
+ import stylistic from "@stylistic/eslint-plugin";
6
+
7
+ export default defineConfig([
8
+ {
9
+ files: ["**/*.{js,mjs,cjs}"],
10
+ plugins: { js },
11
+ extends: ["js/recommended"],
12
+ },
13
+ {
14
+ files: ["**/*.{js,mjs,cjs}"],
15
+ languageOptions: { globals: globals.node },
16
+ },
17
+ {
18
+ files: ["**/*.{js,mjs,cjs}"],
19
+ plugins: { jest: pluginJest },
20
+ languageOptions: { globals: pluginJest.environments.globals.globals },
21
+ },
22
+ {
23
+ files: ["**/*.{js,mjs,cjs}"],
24
+ plugins: { "@stylistic": stylistic },
25
+ rules: {
26
+ "@stylistic/indent": ["error", 2],
27
+ "@stylistic/quotes": ["error", "double"],
28
+ },
29
+ },
30
+ ]);
@@ -13,12 +13,15 @@
13
13
  },
14
14
  "devDependencies": {
15
15
  "@babel/preset-env": "^7.26.9",
16
- "@stylistic/eslint-plugin-js": "^2.13.0",
16
+ "@eslint/js": "^9.25.1",
17
+ "@stylistic/eslint-plugin": "^4.2.0",
17
18
  "@types/jest": "^29.5.14",
18
- "eslint": "^9.19.0",
19
+ "eslint": "^9.25.1",
20
+ "eslint-plugin-jest": "^28.11.0",
21
+ "globals": "^16.0.0",
19
22
  "jest": "^29.7.0"
20
23
  },
21
24
  "keywords": [],
22
25
  "author": "",
23
26
  "license": "ISC"
24
- }
27
+ }
@@ -127,7 +127,7 @@ async function readRawConfigFile(configPath) {
127
127
  try {
128
128
  return await fs.readFile(configPath, "utf-8");
129
129
  }
130
- catch (error) {
130
+ catch {
131
131
  // If this function is called and "" is returned, it means that the file does not exist since
132
132
  // connectrc.js is not supposed to be a blank file anyway
133
133
  return "";
@@ -1 +1 @@
1
- {"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../src/customer/path.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,UAErD;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,UAiCvD"}
1
+ {"version":3,"file":"path.d.ts","sourceRoot":"","sources":["../../src/customer/path.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,MAAM,UAErD;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,UAiCvD"}
@@ -2,7 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getCustomerOSSpecificPath = getCustomerOSSpecificPath;
4
4
  exports.cleanupPath = cleanupPath;
5
- /* eslint-disable @typescript-eslint/prefer-nullish-coalescing */
6
5
  const path_1 = require("path");
7
6
  /**
8
7
  * @returns The provided path prepended with the root directory - in the user's OS path pattern.
@@ -15,7 +15,7 @@ async function loadSourceCode(path) {
15
15
  try {
16
16
  return await (0, promises_1.readFile)((0, path_1.getCustomerOSSpecificPath)(path), "utf-8");
17
17
  }
18
- catch (error) {
18
+ catch {
19
19
  throw new errors_1.CLIError(`Could not load "${path}" file. Please check your connectrc.js file.`);
20
20
  }
21
21
  }
@@ -21,7 +21,7 @@ function isGitInstalled() {
21
21
  (0, child_process_1.execSync)("git --version");
22
22
  return true;
23
23
  }
24
- catch (error) {
24
+ catch {
25
25
  return false;
26
26
  }
27
27
  }
@@ -1 +1 @@
1
- {"version":3,"file":"deploy-request.d.ts","sourceRoot":"","sources":["../../src/http/deploy-request.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AAIvC;;GAEG;AACH,wBAAsB,aAAa,CAAC,EAClC,WAAW,EACX,MAAM,EACN,SAAS,EACT,OAAO,GACR,EAAE,UAAU,iBAyCZ;AAED,UAAU,UAAU;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,KAAK,CAAC;QACf,aAAa,EAAE,MAAM,EAAE,CAAC;QACxB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;KAChD,CAAC,CAAC;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
1
+ {"version":3,"file":"deploy-request.d.ts","sourceRoot":"","sources":["../../src/http/deploy-request.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,UAAU,CAAC;AAIvC;;GAEG;AACH,wBAAsB,aAAa,CAAC,EAClC,WAAW,EACX,MAAM,EACN,SAAS,EACT,OAAO,GACR,EAAE,UAAU,iBAyCZ;AAED,UAAU,UAAU;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,KAAK,CAAC;QACf,aAAa,EAAE,MAAM,EAAE,CAAC;QACxB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;KAChD,CAAC,CAAC;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.performDeploy = performDeploy;
4
- /* eslint-disable @typescript-eslint/no-base-to-string */
5
4
  const axios_1 = require("axios");
6
5
  const core_1 = require("@oclif/core");
7
6
  const errors_1 = require("@oclif/core/errors");
@@ -1 +1 @@
1
- {"version":3,"file":"http-client.d.ts","sourceRoot":"","sources":["../../src/http/http-client.ts"],"names":[],"mappings":"AACA,OAAO,KAA6C,MAAM,OAAO,CAAC;AA6BlE,UAAU,iBAAiB;IACzB,YAAY,EAAE,OAAO,CAAC;CACvB;AAOD;;GAEG;AACH,wBAAsB,aAAa,CACjC,EAAE,YAAY,EAAE,GAAE,iBAEjB,gCA6DF;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,GAAG,WAK7C;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,cAcjE"}
1
+ {"version":3,"file":"http-client.d.ts","sourceRoot":"","sources":["../../src/http/http-client.ts"],"names":[],"mappings":"AACA,OAAO,KAA6C,MAAM,OAAO,CAAC;AA6BlE,UAAU,iBAAiB;IACzB,YAAY,EAAE,OAAO,CAAC;CACvB;AAOD;;GAEG;AACH,wBAAsB,aAAa,CACjC,EAAE,YAAY,EAAE,GAAE,iBAEjB,gCA8DF;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,GAAG,WAK7C;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,cAcjE"}
@@ -110,6 +110,7 @@ async function getHttpClient({ requiresAuth } = {
110
110
  });
111
111
  }
112
112
  }
113
+ // eslint-disable-next-line promise/no-promise-in-callback
113
114
  return await Promise.reject(error);
114
115
  });
115
116
  return instance;
@@ -1 +1 @@
1
- {"version":3,"file":"select-connections.d.ts","sourceRoot":"","sources":["../../src/prompt-data/select-connections.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,iBAAiB,GAC5B,UAAS,MAAgC,6EA2B1C,CAAC"}
1
+ {"version":3,"file":"select-connections.d.ts","sourceRoot":"","sources":["../../src/prompt-data/select-connections.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,iBAAiB,GAC5B,UAAS,MAAgC,6EA0B1C,CAAC"}
@@ -19,7 +19,6 @@ const selectConnections = async (message = "Choose the connection") => {
19
19
  value: connection.id,
20
20
  })),
21
21
  });
22
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
23
22
  const selectedConnection = connections.find((connection) => connection.id === connectionId);
24
23
  return selectedConnection;
25
24
  };
@@ -1 +1 @@
1
- {"version":3,"file":"render-template-result.d.ts","sourceRoot":"","sources":["../../src/rendering/render-template-result.ts"],"names":[],"mappings":"AAUA,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,GAAG,QAO/C"}
1
+ {"version":3,"file":"render-template-result.d.ts","sourceRoot":"","sources":["../../src/rendering/render-template-result.ts"],"names":[],"mappings":"AASA,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,GAAG,QAO/C"}
@@ -4,7 +4,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.renderTemplateResult = renderTemplateResult;
7
- /* eslint-disable import/no-named-as-default */
8
7
  const core_1 = require("@oclif/core");
9
8
  const kleur_1 = __importDefault(require("kleur"));
10
9
  const cli_highlight_1 = __importDefault(require("cli-highlight"));
package/dist/version.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- declare const _default: "1.13.1";
1
+ declare const _default: "1.13.2";
2
2
  export default _default;
3
3
  //# sourceMappingURL=version.d.ts.map
package/dist/version.js CHANGED
@@ -1,3 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = '1.13.1';
3
+ exports.default = '1.13.2';
@@ -190,5 +190,5 @@
190
190
  ]
191
191
  }
192
192
  },
193
- "version": "1.13.1"
193
+ "version": "1.13.2"
194
194
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@constructor-io/constructorio-connect-cli",
3
- "version": "1.13.1",
3
+ "version": "1.13.2",
4
4
  "description": "CLI tool to enable users to interface with the Constructor Connect Ecosystem",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -77,22 +77,20 @@
77
77
  "terminal-link": "^2.1.1"
78
78
  },
79
79
  "devDependencies": {
80
+ "@eslint/js": "^9.25.0",
80
81
  "@oclif/test": "^4.1.12",
81
82
  "@types/fs-extra": "^11.0.4",
82
83
  "@types/jest": "^29.5.12",
83
84
  "@types/mock-fs": "^4.13.4",
84
85
  "cross-env": "^7.0.3",
85
- "eslint": "^8.57.0",
86
- "eslint-config-prettier": "^10.0.1",
87
- "eslint-config-standard-with-typescript": "^43.0.1",
88
- "eslint-import-resolver-typescript": "^4.3.1",
89
- "eslint-plugin-import": "^2.29.1",
90
- "eslint-plugin-prettier": "^5.1.3",
91
- "eslint-plugin-promise": "^6.1.1",
86
+ "eslint": "^9.25.0",
87
+ "eslint-plugin-prettier": "^5.2.6",
88
+ "eslint-plugin-promise": "^6.6.0",
89
+ "globals": "^16.0.0",
92
90
  "jest": "^29.7.0",
93
91
  "license-checker": "^25.0.1",
94
92
  "mock-fs": "^5.2.0",
95
- "nock": "14.0.3",
93
+ "nock": "14.0.4",
96
94
  "oclif": "^4.17.42",
97
95
  "prettier": "^3.2.5",
98
96
  "prettier-2": "npm:prettier@^2.8.8",
@@ -100,6 +98,7 @@
100
98
  "stdout-stderr": "^0.1.13",
101
99
  "ts-jest": "^29.1.2",
102
100
  "ts-node": "^10.9.2",
103
- "typescript": "^5.4.5"
101
+ "typescript": "^5.4.5",
102
+ "typescript-eslint": "^8.30.1"
104
103
  }
105
104
  }
@@ -1,12 +0,0 @@
1
- const stylisticJs = require('@stylistic/eslint-plugin-js');
2
-
3
- module.exports = [
4
- {
5
- plugins: {
6
- '@stylistic/js': stylisticJs
7
- },
8
- rules: {
9
- '@stylistic/js/indent': ['error', 2],
10
- }
11
- }
12
- ]