@infomaximum/package-cli 2.22.1 → 2.22.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,15 @@
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.22.3](https://github.com/Infomaximum/package-cli/compare/v2.22.2...v2.22.3) (2025-04-03)
6
+
7
+ ### [2.22.2](https://github.com/Infomaximum/package-cli/compare/v2.22.1...v2.22.2) (2025-04-03)
8
+
9
+
10
+ ### Bug Fixes
11
+
12
+ * исправлен шаблон ([d628677](https://github.com/Infomaximum/package-cli/commit/d628677a69e6f04a15f07f532b63ffb748219f06))
13
+
5
14
  ### [2.22.1](https://github.com/Infomaximum/package-cli/compare/v2.22.0...v2.22.1) (2025-03-28)
6
15
 
7
16
  ## [2.22.0](https://github.com/Infomaximum/package-cli/compare/v2.22.0-2...v2.22.0) (2025-03-28)
@@ -3,8 +3,8 @@ export declare const INTEGRATION_GITIGNORE = "# dependencies\n/node_modules\n/.p
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
4
  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";
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
- 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 blocks: {},\n connections: {},\n },\n};\n\nmodule.exports = config;\n";
7
- export declare const INTEGRATION_ENV_EXAMPLE_CONFIG = "INTEGRATION_ID=0\nGRAPHQL_URL=https://example.com/graphql\nAPI_KEY=123456789qwertyuiop\n";
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
+ 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";
8
8
  export declare const INTEGRATION_VSCODE_LAUNCH = "{\n \"version\": \"0.2.0\",\n \"configurations\": [\n {\n \"type\": \"node\",\n \"request\": \"launch\",\n \"name\": \"Debug Integration\",\n \"skipFiles\": [\"<node_internals>/**\"],\n\n \"runtimeExecutable\": \"tsx\",\n \"runtimeArgs\": [\"--preserve-symlinks\"],\n \"args\": [\n \"${workspaceFolder}/node_modules/@infomaximum/package-cli/dist/index.js\",\n \"integration\",\n \"debug\"\n ],\n \"sourceMaps\": true,\n \"resolveSourceMapLocations\": [\n \"${workspaceFolder}/**\",\n \"!**/node_modules/**\"\n ],\n \"smartStep\": true,\n \"internalConsoleOptions\": \"openOnSessionStart\"\n }\n ]\n}\n";
9
9
  export declare const INTEGRATION_VSCODE_SETTINGS = "{\n \"typescript.tsdk\": \"node_modules/typescript/lib\",\n \"integration-debugger.isEnabled\": true,\n \"integration-debugger.debugConfigurationName\": \"Debug Integration\",\n \"integration-debugger.functionNames\": {\n \"single\": [\"executePagination\", \"execute\"],\n \"series\": [\"executePagination\"]\n }\n}\n";
10
10
  export declare const INTEGRATION_VSCODE_EXTENSIONS = "{\n \"recommendations\": [\"Jokerok.integration-debugger\"]\n}\n";
@@ -125,6 +125,9 @@ const config = {
125
125
 
126
126
  debugging: {
127
127
  seriesIterations: 3,
128
+ commonAuthData: {
129
+ BASE_URL: process.env.WEBHOOK_URL
130
+ },
128
131
  blocks: {},
129
132
  connections: {},
130
133
  },
@@ -136,6 +139,7 @@ export const INTEGRATION_ENV_EXAMPLE_CONFIG = `\
136
139
  INTEGRATION_ID=0
137
140
  GRAPHQL_URL=https://example.com/graphql
138
141
  API_KEY=123456789qwertyuiop
142
+ WEBHOOK_URL=https://example.com/webhook
139
143
  `;
140
144
  export const INTEGRATION_VSCODE_LAUNCH = `\
141
145
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infomaximum/package-cli",
3
- "version": "2.22.1",
3
+ "version": "2.22.3",
4
4
  "exports": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "type": "module",
@@ -26,7 +26,7 @@
26
26
  "@babel/core": "^7.23.6",
27
27
  "@babel/plugin-transform-runtime": "^7.23.6",
28
28
  "@infomaximum/assert": "^1.1.3",
29
- "@infomaximum/integration-debugger": "^1.5.2",
29
+ "@infomaximum/integration-debugger": "^1.6.1",
30
30
  "@infomaximum/json-modify-webpack-plugin": "^1.1.0",
31
31
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.11",
32
32
  "@saneksa/babel-plugin-function-transform": "^1.0.0",
@@ -71,7 +71,7 @@
71
71
  "zip-webpack-plugin": "^4.0.1"
72
72
  },
73
73
  "devDependencies": {
74
- "@infomaximum/integration-sdk": "^1.4.2",
74
+ "@infomaximum/integration-sdk": "^2.0.0",
75
75
  "@types/babel__core": "^7.20.5",
76
76
  "@types/fs-extra": "^11.0.4",
77
77
  "@types/node": "^20.9.0",