@coopenomics/factory 2025.11.14-alpha-1 → 2025.11.14-alpha-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.
package/dist/index.cjs CHANGED
@@ -3236,7 +3236,7 @@ class PDFService {
3236
3236
 
3237
3237
  const name = "@coopenomics/factory";
3238
3238
  const type = "module";
3239
- const version = "2025.11.14-alpha-1";
3239
+ const version = "2025.11.14-alpha-2";
3240
3240
  const description = "";
3241
3241
  const author = "Alex Ant <chairman.voskhod@gmail.com>";
3242
3242
  const license = "MIT";
@@ -3286,7 +3286,7 @@ const dependencies = {
3286
3286
  "ajv-formats": "^3.0.1",
3287
3287
  "ajv-i18n": "^4.2.0",
3288
3288
  axios: "^1.7.2",
3289
- cooptypes: "2025.11.14-alpha-1",
3289
+ cooptypes: "2025.11.14-alpha-2",
3290
3290
  dotenv: "^16.4.5",
3291
3291
  "eosjs-ecc": "^4.0.7",
3292
3292
  handlebars: "^4.7.8",
@@ -3317,7 +3317,7 @@ const devDependencies = {
3317
3317
  vite: "^5.2.11",
3318
3318
  vitest: "^1.6.0"
3319
3319
  };
3320
- const gitHead = "a3e0e62efcdac26dfb0f2819b7750c1de2a3b787";
3320
+ const gitHead = "9e1dd02d708a4b7905f0cb4543e61a193c0948c8";
3321
3321
  const packageJson = {
3322
3322
  name: name,
3323
3323
  type: type,
@@ -3625,8 +3625,15 @@ class DocFactory {
3625
3625
  })
3626
3626
  }));
3627
3627
  const draft = templateResponse.results[0]?.value;
3628
- if (!draft)
3629
- throw new Error("\u0428\u0430\u0431\u043B\u043E\u043D \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D");
3628
+ if (!draft) {
3629
+ throw new Error(`\u0428\u0430\u0431\u043B\u043E\u043D \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D: ${JSON.stringify({
3630
+ "code": cooptypes.DraftContract.contractName.production,
3631
+ "scope": scope,
3632
+ "table": cooptypes.DraftContract.Tables.Drafts.tableName,
3633
+ "value.registry_id": String(registry_id),
3634
+ ...block_filter
3635
+ })}`);
3636
+ }
3630
3637
  const translationsResponse = await getFetch(`${getEnvVar("SIMPLE_EXPLORER_API")}/get-tables`, new URLSearchParams({
3631
3638
  filter: JSON.stringify({
3632
3639
  "code": cooptypes.DraftContract.contractName.production,
@@ -3637,8 +3644,15 @@ class DocFactory {
3637
3644
  })
3638
3645
  }));
3639
3646
  const translations = translationsResponse.results;
3640
- if (!translations.length)
3641
- throw new Error("\u041D\u0438 \u043E\u0434\u0438\u043D \u043F\u0435\u0440\u0435\u0432\u043E\u0434 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D");
3647
+ if (!translations.length) {
3648
+ throw new Error(`\u041D\u0438 \u043E\u0434\u0438\u043D \u043F\u0435\u0440\u0435\u0432\u043E\u0434 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D: ${JSON.stringify({
3649
+ "code": cooptypes.DraftContract.contractName.production,
3650
+ "scope": scope,
3651
+ "table": cooptypes.DraftContract.Tables.Translations.tableName,
3652
+ "value.draft_id": String(draft.registry_id),
3653
+ ...block_filter
3654
+ })}`);
3655
+ }
3642
3656
  const filteredTranslations = Object.values(
3643
3657
  translations.reduce((acc, curr) => {
3644
3658
  const lang = curr.value.lang;
package/dist/index.mjs CHANGED
@@ -3223,7 +3223,7 @@ class PDFService {
3223
3223
 
3224
3224
  const name = "@coopenomics/factory";
3225
3225
  const type = "module";
3226
- const version = "2025.11.14-alpha-1";
3226
+ const version = "2025.11.14-alpha-2";
3227
3227
  const description = "";
3228
3228
  const author = "Alex Ant <chairman.voskhod@gmail.com>";
3229
3229
  const license = "MIT";
@@ -3273,7 +3273,7 @@ const dependencies = {
3273
3273
  "ajv-formats": "^3.0.1",
3274
3274
  "ajv-i18n": "^4.2.0",
3275
3275
  axios: "^1.7.2",
3276
- cooptypes: "2025.11.14-alpha-1",
3276
+ cooptypes: "2025.11.14-alpha-2",
3277
3277
  dotenv: "^16.4.5",
3278
3278
  "eosjs-ecc": "^4.0.7",
3279
3279
  handlebars: "^4.7.8",
@@ -3304,7 +3304,7 @@ const devDependencies = {
3304
3304
  vite: "^5.2.11",
3305
3305
  vitest: "^1.6.0"
3306
3306
  };
3307
- const gitHead = "a3e0e62efcdac26dfb0f2819b7750c1de2a3b787";
3307
+ const gitHead = "9e1dd02d708a4b7905f0cb4543e61a193c0948c8";
3308
3308
  const packageJson = {
3309
3309
  name: name,
3310
3310
  type: type,
@@ -3612,8 +3612,15 @@ class DocFactory {
3612
3612
  })
3613
3613
  }));
3614
3614
  const draft = templateResponse.results[0]?.value;
3615
- if (!draft)
3616
- throw new Error("\u0428\u0430\u0431\u043B\u043E\u043D \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D");
3615
+ if (!draft) {
3616
+ throw new Error(`\u0428\u0430\u0431\u043B\u043E\u043D \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D: ${JSON.stringify({
3617
+ "code": DraftContract.contractName.production,
3618
+ "scope": scope,
3619
+ "table": DraftContract.Tables.Drafts.tableName,
3620
+ "value.registry_id": String(registry_id),
3621
+ ...block_filter
3622
+ })}`);
3623
+ }
3617
3624
  const translationsResponse = await getFetch(`${getEnvVar("SIMPLE_EXPLORER_API")}/get-tables`, new URLSearchParams({
3618
3625
  filter: JSON.stringify({
3619
3626
  "code": DraftContract.contractName.production,
@@ -3624,8 +3631,15 @@ class DocFactory {
3624
3631
  })
3625
3632
  }));
3626
3633
  const translations = translationsResponse.results;
3627
- if (!translations.length)
3628
- throw new Error("\u041D\u0438 \u043E\u0434\u0438\u043D \u043F\u0435\u0440\u0435\u0432\u043E\u0434 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D");
3634
+ if (!translations.length) {
3635
+ throw new Error(`\u041D\u0438 \u043E\u0434\u0438\u043D \u043F\u0435\u0440\u0435\u0432\u043E\u0434 \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D: ${JSON.stringify({
3636
+ "code": DraftContract.contractName.production,
3637
+ "scope": scope,
3638
+ "table": DraftContract.Tables.Translations.tableName,
3639
+ "value.draft_id": String(draft.registry_id),
3640
+ ...block_filter
3641
+ })}`);
3642
+ }
3629
3643
  const filteredTranslations = Object.values(
3630
3644
  translations.reduce((acc, curr) => {
3631
3645
  const lang = curr.value.lang;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@coopenomics/factory",
3
3
  "type": "module",
4
- "version": "2025.11.14-alpha-1",
4
+ "version": "2025.11.14-alpha-2",
5
5
  "description": "",
6
6
  "author": "Alex Ant <chairman.voskhod@gmail.com>",
7
7
  "license": "MIT",
@@ -50,7 +50,7 @@
50
50
  "ajv-formats": "^3.0.1",
51
51
  "ajv-i18n": "^4.2.0",
52
52
  "axios": "^1.7.2",
53
- "cooptypes": "2025.11.14-alpha-1",
53
+ "cooptypes": "2025.11.14-alpha-2",
54
54
  "dotenv": "^16.4.5",
55
55
  "eosjs-ecc": "^4.0.7",
56
56
  "handlebars": "^4.7.8",
@@ -81,5 +81,5 @@
81
81
  "vite": "^5.2.11",
82
82
  "vitest": "^1.6.0"
83
83
  },
84
- "gitHead": "a3e0e62efcdac26dfb0f2819b7750c1de2a3b787"
84
+ "gitHead": "9e1dd02d708a4b7905f0cb4543e61a193c0948c8"
85
85
  }