@infomaximum/package-cli 2.17.2 → 2.18.0
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,13 @@
|
|
|
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.18.0](https://github.com/Infomaximum/package-cli/compare/v2.17.2...v2.18.0) (2025-03-08)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* id интеграции перенесен в переменную окружения ([fbfe5c8](https://github.com/Infomaximum/package-cli/commit/fbfe5c82e702c13241be8499bdf6b8b323ce099f))
|
|
11
|
+
|
|
5
12
|
### [2.17.2](https://github.com/Infomaximum/package-cli/compare/v2.17.1...v2.17.2) (2025-03-07)
|
|
6
13
|
|
|
7
14
|
### [2.17.1](https://github.com/Infomaximum/package-cli/compare/v2.17.0...v2.17.1) (2025-03-07)
|
|
@@ -4,5 +4,5 @@ export declare const INTEGRATION_BROWSERLIST_CONFIG = "node >=14\n";
|
|
|
4
4
|
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# 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";
|
|
5
5
|
export declare const INTEGRATION_ESLINTRC = "import js from \"@eslint/js\";\nimport globals from \"globals\";\nimport tseslint from \"typescript-eslint\";\n\nexport default tseslint.config(\n { ignores: [\"dist\", \"build\"] },\n {\n extends: [js.configs.recommended, ...tseslint.configs.recommended],\n files: [\"**/*.{ts,tsx}\"],\n languageOptions: {\n ecmaVersion: 2020,\n globals: globals.browser,\n },\n plugins: {},\n rules: {},\n }\n);\n";
|
|
6
6
|
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";
|
|
7
|
-
export declare const INTEGRATION_RC_CONFIG = "require(\"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 */\nmodule.exports = {\n fetcher: (integrationCode) => {\n return {\n graphqlUrl: process.env.GRAPHQL_URL,\n apiKey: process.env.API_KEY,\n query,\n variables: {\n id:
|
|
8
|
-
export declare const INTEGRATION_ENV_EXAMPLE_CONFIG = "
|
|
7
|
+
export declare const INTEGRATION_RC_CONFIG = "require(\"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 */\nmodule.exports = {\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";
|
|
8
|
+
export declare const INTEGRATION_ENV_EXAMPLE_CONFIG = "INTEGRATION_ID=0\nGRAPHQL_URL=https://example.com/graphql\nAPI_KEY=123456789qwertyuiop\n";
|
|
@@ -119,7 +119,7 @@ module.exports = {
|
|
|
119
119
|
apiKey: process.env.API_KEY,
|
|
120
120
|
query,
|
|
121
121
|
variables: {
|
|
122
|
-
id:
|
|
122
|
+
id: process.env.INTEGRATION_ID,
|
|
123
123
|
js_code: integrationCode,
|
|
124
124
|
},
|
|
125
125
|
};
|
|
@@ -127,6 +127,7 @@ module.exports = {
|
|
|
127
127
|
};
|
|
128
128
|
`;
|
|
129
129
|
export const INTEGRATION_ENV_EXAMPLE_CONFIG = `\
|
|
130
|
-
|
|
130
|
+
INTEGRATION_ID=0
|
|
131
131
|
GRAPHQL_URL=https://example.com/graphql
|
|
132
|
+
API_KEY=123456789qwertyuiop
|
|
132
133
|
`;
|