@infomaximum/package-cli 2.22.3 → 2.22.5
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.5](https://github.com/Infomaximum/package-cli/compare/v2.22.4...v2.22.5) (2025-04-04)
|
|
6
|
+
|
|
7
|
+
### [2.22.4](https://github.com/Infomaximum/package-cli/compare/v2.22.3...v2.22.4) (2025-04-04)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Bug Fixes
|
|
11
|
+
|
|
12
|
+
* исправлена проблема старта отладки на windows ([ca45db6](https://github.com/Infomaximum/package-cli/commit/ca45db6f8fe6d7ebccf5ac8bc0cdf57ed1da8a2a))
|
|
13
|
+
|
|
5
14
|
### [2.22.3](https://github.com/Infomaximum/package-cli/compare/v2.22.2...v2.22.3) (2025-04-03)
|
|
6
15
|
|
|
7
16
|
### [2.22.2](https://github.com/Infomaximum/package-cli/compare/v2.22.1...v2.22.2) (2025-04-03)
|
|
@@ -3,6 +3,7 @@ import { IntegrationExecutor } from "@infomaximum/integration-debugger";
|
|
|
3
3
|
import { generateCommonIntegrationPaths } from "../integrationPaths.js";
|
|
4
4
|
import { assertSimple } from "@infomaximum/assert";
|
|
5
5
|
import { INTEGRATION_CONFIG_RC_EXT, INTEGRATION_CONFIG_RC_FILE_NAME, } from "../const.js";
|
|
6
|
+
import { systemRequire } from "../../utils.js";
|
|
6
7
|
const runDebug = (options, rcConfig) => {
|
|
7
8
|
const { entityKey, series } = options;
|
|
8
9
|
const debuggingConfig = rcConfig === null || rcConfig === void 0 ? void 0 : rcConfig.debugging;
|
|
@@ -25,7 +26,6 @@ export const runDebugIntegration = (options, rcConfig) => __awaiter(void 0, void
|
|
|
25
26
|
entry,
|
|
26
27
|
});
|
|
27
28
|
globalThis.integration = globalThis.integration || {};
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
});
|
|
29
|
+
systemRequire(INTEGRATION_PATHS.moduleIndex);
|
|
30
|
+
runDebug(options, rcConfig);
|
|
31
31
|
});
|
|
@@ -5,6 +5,6 @@ export declare const INTEGRATION_ESLINTRC = "import js from \"@eslint/js\";\nimp
|
|
|
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";
|
|
8
|
-
export declare const INTEGRATION_VSCODE_LAUNCH
|
|
8
|
+
export declare const INTEGRATION_VSCODE_LAUNCH: string;
|
|
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";
|
|
@@ -141,6 +141,7 @@ GRAPHQL_URL=https://example.com/graphql
|
|
|
141
141
|
API_KEY=123456789qwertyuiop
|
|
142
142
|
WEBHOOK_URL=https://example.com/webhook
|
|
143
143
|
`;
|
|
144
|
+
const splitLibName = CUSTOM_PACKAGE_CLI_LIB_NAME.split("/");
|
|
144
145
|
export const INTEGRATION_VSCODE_LAUNCH = `\
|
|
145
146
|
{
|
|
146
147
|
"version": "0.2.0",
|
|
@@ -150,14 +151,10 @@ export const INTEGRATION_VSCODE_LAUNCH = `\
|
|
|
150
151
|
"request": "launch",
|
|
151
152
|
"name": "Debug Integration",
|
|
152
153
|
"skipFiles": ["<node_internals>/**"],
|
|
153
|
-
|
|
154
|
-
"
|
|
155
|
-
"
|
|
156
|
-
"args": [
|
|
157
|
-
"\${workspaceFolder}/node_modules/${CUSTOM_PACKAGE_CLI_LIB_NAME}/dist/index.js",
|
|
158
|
-
"integration",
|
|
159
|
-
"debug"
|
|
160
|
-
],
|
|
154
|
+
|
|
155
|
+
"runtimeArgs": ["--preserve-symlinks", "--import", "tsx"],
|
|
156
|
+
"program": "\${workspaceFolder}\${pathSeparator}node_modules\${pathSeparator}${splitLibName.at(0)}\${pathSeparator}${splitLibName.at(1)}\${pathSeparator}dist\${pathSeparator}index.js",
|
|
157
|
+
"args": ["integration", "debug"],
|
|
161
158
|
"sourceMaps": true,
|
|
162
159
|
"resolveSourceMapLocations": [
|
|
163
160
|
"\${workspaceFolder}/**",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infomaximum/package-cli",
|
|
3
|
-
"version": "2.22.
|
|
3
|
+
"version": "2.22.5",
|
|
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.6.
|
|
29
|
+
"@infomaximum/integration-debugger": "^1.6.2",
|
|
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",
|