@infomaximum/package-cli 2.26.1 → 2.26.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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,20 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [2.26.3](https://github.com/Infomaximum/package-cli/compare/v2.26.2...v2.26.3) (2026-01-29)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* remove useless rule ([38a6858](https://github.com/Infomaximum/package-cli/commit/38a6858188e770b6bf1d9295452c7607774eeb62))
|
|
11
|
+
|
|
12
|
+
### [2.26.2](https://github.com/Infomaximum/package-cli/compare/v2.26.1...v2.26.2) (2026-01-22)
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
### Bug Fixes
|
|
16
|
+
|
|
17
|
+
* исправлено подключение полифилов ([67d748d](https://github.com/Infomaximum/package-cli/commit/67d748d681079c4da915214f04611570f9e605ce))
|
|
18
|
+
|
|
5
19
|
### [2.26.1](https://github.com/Infomaximum/package-cli/compare/v2.26.0...v2.26.1) (2026-01-22)
|
|
6
20
|
|
|
7
21
|
## [2.26.0](https://github.com/Infomaximum/package-cli/compare/v2.25.0...v2.26.0) (2026-01-22)
|
|
@@ -21,9 +21,9 @@ export const getCommonIntegrationConfig = ({ PATHS, mode, isBeautifyCode, }) =>
|
|
|
21
21
|
resolve: {
|
|
22
22
|
extensions: [".ts", ".js", ".json"],
|
|
23
23
|
fallback: {
|
|
24
|
-
stream:
|
|
25
|
-
util:
|
|
26
|
-
zlib:
|
|
24
|
+
stream: systemRequire.resolve("stream-browserify"),
|
|
25
|
+
util: systemRequire.resolve("util"),
|
|
26
|
+
zlib: systemRequire.resolve("browserify-zlib"),
|
|
27
27
|
},
|
|
28
28
|
},
|
|
29
29
|
module: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const INTEGRATION_TSCONFIG_JSON = "{\n \"compilerOptions\": {\n \"target\": \"ES2024\",\n \"lib\": [\"ES2024\",\"DOM\"],\n \"types\": [\"@infomaximum/integration-sdk\"],\n \"module\": \"Preserve\",\n \"esModuleInterop\": true,\n \"forceConsistentCasingInFileNames\": true,\n \"strict\": true,\n \"skipLibCheck\": true,\n \"isolatedModules\": false\n },\n \"include\": [\"src\"]\n}\n";
|
|
2
2
|
export declare const INTEGRATION_GITIGNORE = "# dependencies\n/node_modules\n/.pnp\n.pnp.js\n\n# testing\n/coverage\n\n# production\n/dist\n\n#documentation\n/docs\n\n\n# misc\n.DS_Store\n.env\n.env.local\n.env.development.local\n.env.test.local\n.env.production.local\n\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\n\n/build\n.ultra.cache.json\n*.tsbuildinfo\n.node-xmlhttprequest-content-*\n.node-xmlhttprequest-sync-*\n";
|
|
3
3
|
export declare const INTEGRATION_BABEL_CONFIG = "module.exports = {\n sourceType: \"unambiguous\",\n presets: [],\n plugins: [\"@babel/plugin-transform-block-scoping\"],\n};\n";
|
|
4
|
-
export declare const INTEGRATION_ESLINTRC = "import eslint from \"@eslint/js\";\nimport { defineConfig } from \"eslint/config\";\nimport tseslint from \"typescript-eslint\";\nimport fp from \"eslint-plugin-fp\";\nimport sonarPlugin from \"eslint-plugin-sonarjs\";\nexport default defineConfig(\n eslint.configs.recommended,\n tseslint.configs.recommended,\n tseslint.configs.strict,\n tseslint.configs.stylistic,\n\n [\n {\n ignores: [\n \"**/dist/**\",\n \"**/build/**\",\n \"**/node_modules/**\",\n \"**/*.config.js\",\n \"**/*.config.cjs\",\n \"**/*.config.mjs\",\n ],\n files: [\"**/*.ts\", \"**/*.tsx\"],\n languageOptions: {\n ecmaVersion: \"latest\",\n sourceType: \"module\",\n parserOptions: {\n project: \"./tsconfig.json\",\n },\n },\n plugins: {\n \"@typescript-eslint\": tseslint.plugin,\n fp,\n sonarjs: sonarPlugin,\n },\n rules: {\n \"@typescript-eslint/no-unused-vars\": [\n \"error\",\n {\n argsIgnorePattern: \"^_\",\n varsIgnorePattern: \"^_\",\n },\n ],\n \"@typescript-eslint/no-explicit-any\": \"warn\",\n \"@typescript-eslint/consistent-type-definitions\": [\n \"error\",\n \"interface\",\n ],\n \"@typescript-eslint/explicit-function-return-type\": [\n \"error\",\n {\n allowExpressions: true,\n allowTypedFunctionExpressions: true,\n },\n ],\n \"@typescript-eslint/naming-convention\": [\n \"error\",\n {\n selector: [\"
|
|
4
|
+
export declare const INTEGRATION_ESLINTRC = "import eslint from \"@eslint/js\";\nimport { defineConfig } from \"eslint/config\";\nimport tseslint from \"typescript-eslint\";\nimport fp from \"eslint-plugin-fp\";\nimport sonarPlugin from \"eslint-plugin-sonarjs\";\nexport default defineConfig(\n eslint.configs.recommended,\n tseslint.configs.recommended,\n tseslint.configs.strict,\n tseslint.configs.stylistic,\n\n [\n {\n ignores: [\n \"**/dist/**\",\n \"**/build/**\",\n \"**/node_modules/**\",\n \"**/*.config.js\",\n \"**/*.config.cjs\",\n \"**/*.config.mjs\",\n ],\n files: [\"**/*.ts\", \"**/*.tsx\"],\n languageOptions: {\n ecmaVersion: \"latest\",\n sourceType: \"module\",\n parserOptions: {\n project: \"./tsconfig.json\",\n },\n },\n plugins: {\n \"@typescript-eslint\": tseslint.plugin,\n fp,\n sonarjs: sonarPlugin,\n },\n rules: {\n \"@typescript-eslint/no-unused-vars\": [\n \"error\",\n {\n argsIgnorePattern: \"^_\",\n varsIgnorePattern: \"^_\",\n },\n ],\n \"@typescript-eslint/no-explicit-any\": \"warn\",\n \"@typescript-eslint/consistent-type-definitions\": [\n \"error\",\n \"interface\",\n ],\n \"@typescript-eslint/explicit-function-return-type\": [\n \"error\",\n {\n allowExpressions: true,\n allowTypedFunctionExpressions: true,\n },\n ],\n \"@typescript-eslint/naming-convention\": [\n \"error\",\n {\n selector: [\"function\"],\n format: [\"camelCase\"],\n leadingUnderscore: \"allow\",\n trailingUnderscore: \"forbid\",\n },\n\n {\n selector: [\"typeLike\", \"class\"],\n format: [\"PascalCase\"],\n },\n {\n selector: \"interface\",\n format: [\"PascalCase\"],\n custom: {\n regex: \"^I[A-Z]\",\n match: true,\n },\n },\n {\n selector: \"typeAlias\",\n format: [\"PascalCase\"],\n custom: {\n regex: \"^T[A-Z]\",\n match: true,\n },\n },\n {\n selector: \"enum\",\n format: [\"PascalCase\"],\n custom: {\n regex: \"^E[A-Z]\",\n match: true,\n },\n },\n {\n selector: \"enumMember\",\n format: [\"PascalCase\"],\n },\n {\n selector: \"method\",\n format: [\"camelCase\"],\n },\n {\n selector: \"parameter\",\n format: [\"camelCase\"],\n leadingUnderscore: \"allow\",\n },\n ],\n \"@typescript-eslint/prefer-for-of\": \"error\",\n \"prefer-const\": \"error\",\n \"no-var\": \"error\",\n \"prefer-arrow-callback\": \"error\",\n\n eqeqeq: [\"error\", \"always\"],\n yoda: \"error\",\n \"no-lonely-if\": \"error\",\n curly: \"error\",\n // \u041E\u0433\u0440\u0430\u0447\u0438\u0447\u0435\u043D\u0438\u0435 \u043D\u0430 \u043A\u043E\u043B\u0438\u0447\u0435\u0441\u0442\u0432\u043E \u0441\u0442\u0440\u043E\u043A \u0432 \u0444\u0443\u043D\u043A\u0446\u0438\u0438, \u0447\u0442\u043E\u0431\u044B \u043F\u043E\u043E\u0449\u0440\u044F\u0442\u044C \u0431\u043E\u043B\u0435\u0435 \u043C\u0435\u043B\u043A\u0438\u0435, \u0431\u043E\u043B\u0435\u0435 \u0443\u043F\u0440\u0430\u0432\u043B\u044F\u0435\u043C\u044B\u0435 \u0444\u0443\u043D\u043A\u0446\u0438\u0438.\n \"max-lines-per-function\": [\n \"error\",\n { max: 100, skipComments: true, skipBlankLines: true },\n ],\n \"max-depth\": [\"error\", { max: 3 }],\n\n \"no-param-reassign\": [\"error\", { props: true }],\n //sonarjs \u043F\u0440\u0430\u0432\u0438\u043B\u0430\n \"sonarjs/cognitive-complexity\": [\"error\", 10],\n \"sonarjs/no-identical-expressions\": \"error\",\n \"sonarjs/no-ignored-return\": \"error\",\n \"sonarjs/no-redundant-boolean\": \"error\",\n },\n },\n ]\n);\n";
|
|
5
5
|
export declare const INTEGRATION_VITEST_CONFIG = "import { defineConfig } from 'vitest/config';\n\nexport default defineConfig({\n test: {\n coverage: {\n provider:'v8',\n exclude: [\n '**/*.config.*',\n 'src/index.ts',\n ],\n },\n },\n});\n";
|
|
6
6
|
export declare const INTEGRATION_RC_CONFIG = "//@ts-check\n\nrequire(\"dotenv\").config();\n\nconst query = `\nmutation UpdateIntegration($id: Long!, $js_code: String) {\n automation {\n integration {\n update(id: $id, js_code: $js_code) {\n id\n }\n }\n }\n}`;\n\n/**\n * @type {import(\"@infomaximum/package-cli\").IntegrationRCConfig}\n */\nconst config = {\n entry: \"src/index.ts\",\n fetcher: (integrationCode) => {\n return {\n graphqlUrl: process.env.GRAPHQL_URL,\n apiKey: process.env.API_KEY,\n query,\n variables: {\n id: process.env.INTEGRATION_ID,\n js_code: integrationCode,\n },\n };\n },\n\n debugging: {\n seriesIterations: 3,\n commonAuthData: {\n BASE_URL: process.env.WEBHOOK_URL\n },\n blocks: {},\n connections: {},\n },\n};\n\nmodule.exports = config;\n";
|
|
7
7
|
export declare const INTEGRATION_ENV_EXAMPLE_CONFIG = "INTEGRATION_ID=0\nGRAPHQL_URL=https://example.com/graphql\nAPI_KEY=123456789qwertyuiop\nWEBHOOK_URL=https://example.com/webhook\n";
|
|
@@ -115,7 +115,7 @@ export default defineConfig(
|
|
|
115
115
|
"@typescript-eslint/naming-convention": [
|
|
116
116
|
"error",
|
|
117
117
|
{
|
|
118
|
-
selector: ["
|
|
118
|
+
selector: ["function"],
|
|
119
119
|
format: ["camelCase"],
|
|
120
120
|
leadingUnderscore: "allow",
|
|
121
121
|
trailingUnderscore: "forbid",
|