@coopenomics/factory 2025.7.3 → 2025.7.20

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
@@ -2916,8 +2916,7 @@ class PDFService {
2916
2916
 
2917
2917
  const name = "@coopenomics/factory";
2918
2918
  const type = "module";
2919
- const version = "2025.7.3";
2920
- const packageManager = "pnpm@9.0.6";
2919
+ const version = "2025.7.20";
2921
2920
  const description = "";
2922
2921
  const author = "Alex Ant <chairman.voskhod@gmail.com>";
2923
2922
  const license = "MIT";
@@ -2967,7 +2966,7 @@ const dependencies = {
2967
2966
  "ajv-formats": "^3.0.1",
2968
2967
  "ajv-i18n": "^4.2.0",
2969
2968
  axios: "^1.7.2",
2970
- cooptypes: "2025.7.3",
2969
+ cooptypes: "2025.7.20",
2971
2970
  dotenv: "^16.4.5",
2972
2971
  "eosjs-ecc": "^4.0.7",
2973
2972
  handlebars: "^4.7.8",
@@ -2998,22 +2997,11 @@ const devDependencies = {
2998
2997
  vite: "^5.2.11",
2999
2998
  vitest: "^1.6.0"
3000
2999
  };
3001
- const pnpm = {
3002
- overrides: {
3003
- "@babel/traverse@<7.23.2": ">=7.23.2",
3004
- "node-fetch@<2.6.7": ">=2.6.7",
3005
- "nth-check@<2.0.1": ">=2.0.1",
3006
- "semver@<5.7.2": ">=5.7.2",
3007
- "tar@<6.2.1": ">=6.2.1",
3008
- "vite@>=5.1.0 <=5.1.6": ">=5.1.7"
3009
- }
3010
- };
3011
- const gitHead = "3bf3c7987336453bf1a5fc0260b8f5b09c230506";
3000
+ const gitHead = "60e319589d8e78f0a9c686b89ef424b7038637d1";
3012
3001
  const packageJson = {
3013
3002
  name: name,
3014
3003
  type: type,
3015
3004
  version: version,
3016
- packageManager: packageManager,
3017
3005
  description: description,
3018
3006
  author: author,
3019
3007
  license: license,
@@ -3031,7 +3019,6 @@ const packageJson = {
3031
3019
  scripts: scripts,
3032
3020
  dependencies: dependencies,
3033
3021
  devDependencies: devDependencies,
3034
- pnpm: pnpm,
3035
3022
  gitHead: gitHead
3036
3023
  };
3037
3024
 
@@ -3390,12 +3377,17 @@ class DocFactory {
3390
3377
  };
3391
3378
  }
3392
3379
  extractOrganizationName(input) {
3393
- const regex = /^\s*(?:[А-ЯЁA-Za-z]{2,4}\s+)?["'«»]?([А-ЯЁа-яёA-Za-z0-9\- ]+(?:\s[А-ЯЁа-яёA-Za-z0-9\- ]+)*)["'«»]?\s*$/;
3380
+ const regex = /["'«»]([^"'«»]+)["'«»]/;
3394
3381
  const match = input.short_name.match(regex);
3395
- if (!match) {
3382
+ if (match) {
3383
+ return match[1].trim().toUpperCase();
3384
+ }
3385
+ const words = input.short_name.trim().split(/\s+/);
3386
+ const lastWord = words[words.length - 1];
3387
+ if (!lastWord) {
3396
3388
  throw new Error(`\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0438\u0437\u0432\u043B\u0435\u0447\u044C \u0438\u043C\u044F \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438 \u0438\u0437: "${input.short_name}"`);
3397
3389
  }
3398
- return match[1].toUpperCase();
3390
+ return lastWord.toUpperCase();
3399
3391
  }
3400
3392
  extractPersonalAbbreviatedName(input) {
3401
3393
  return `${input.first_name[0]}${input.middle_name[0]}${input.last_name[0]}`.toUpperCase();
package/dist/index.mjs CHANGED
@@ -2903,8 +2903,7 @@ class PDFService {
2903
2903
 
2904
2904
  const name = "@coopenomics/factory";
2905
2905
  const type = "module";
2906
- const version = "2025.7.3";
2907
- const packageManager = "pnpm@9.0.6";
2906
+ const version = "2025.7.20";
2908
2907
  const description = "";
2909
2908
  const author = "Alex Ant <chairman.voskhod@gmail.com>";
2910
2909
  const license = "MIT";
@@ -2954,7 +2953,7 @@ const dependencies = {
2954
2953
  "ajv-formats": "^3.0.1",
2955
2954
  "ajv-i18n": "^4.2.0",
2956
2955
  axios: "^1.7.2",
2957
- cooptypes: "2025.7.3",
2956
+ cooptypes: "2025.7.20",
2958
2957
  dotenv: "^16.4.5",
2959
2958
  "eosjs-ecc": "^4.0.7",
2960
2959
  handlebars: "^4.7.8",
@@ -2985,22 +2984,11 @@ const devDependencies = {
2985
2984
  vite: "^5.2.11",
2986
2985
  vitest: "^1.6.0"
2987
2986
  };
2988
- const pnpm = {
2989
- overrides: {
2990
- "@babel/traverse@<7.23.2": ">=7.23.2",
2991
- "node-fetch@<2.6.7": ">=2.6.7",
2992
- "nth-check@<2.0.1": ">=2.0.1",
2993
- "semver@<5.7.2": ">=5.7.2",
2994
- "tar@<6.2.1": ">=6.2.1",
2995
- "vite@>=5.1.0 <=5.1.6": ">=5.1.7"
2996
- }
2997
- };
2998
- const gitHead = "3bf3c7987336453bf1a5fc0260b8f5b09c230506";
2987
+ const gitHead = "60e319589d8e78f0a9c686b89ef424b7038637d1";
2999
2988
  const packageJson = {
3000
2989
  name: name,
3001
2990
  type: type,
3002
2991
  version: version,
3003
- packageManager: packageManager,
3004
2992
  description: description,
3005
2993
  author: author,
3006
2994
  license: license,
@@ -3018,7 +3006,6 @@ const packageJson = {
3018
3006
  scripts: scripts,
3019
3007
  dependencies: dependencies,
3020
3008
  devDependencies: devDependencies,
3021
- pnpm: pnpm,
3022
3009
  gitHead: gitHead
3023
3010
  };
3024
3011
 
@@ -3377,12 +3364,17 @@ class DocFactory {
3377
3364
  };
3378
3365
  }
3379
3366
  extractOrganizationName(input) {
3380
- const regex = /^\s*(?:[А-ЯЁA-Za-z]{2,4}\s+)?["'«»]?([А-ЯЁа-яёA-Za-z0-9\- ]+(?:\s[А-ЯЁа-яёA-Za-z0-9\- ]+)*)["'«»]?\s*$/;
3367
+ const regex = /["'«»]([^"'«»]+)["'«»]/;
3381
3368
  const match = input.short_name.match(regex);
3382
- if (!match) {
3369
+ if (match) {
3370
+ return match[1].trim().toUpperCase();
3371
+ }
3372
+ const words = input.short_name.trim().split(/\s+/);
3373
+ const lastWord = words[words.length - 1];
3374
+ if (!lastWord) {
3383
3375
  throw new Error(`\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u0438\u0437\u0432\u043B\u0435\u0447\u044C \u0438\u043C\u044F \u043E\u0440\u0433\u0430\u043D\u0438\u0437\u0430\u0446\u0438\u0438 \u0438\u0437: "${input.short_name}"`);
3384
3376
  }
3385
- return match[1].toUpperCase();
3377
+ return lastWord.toUpperCase();
3386
3378
  }
3387
3379
  extractPersonalAbbreviatedName(input) {
3388
3380
  return `${input.first_name[0]}${input.middle_name[0]}${input.last_name[0]}`.toUpperCase();
package/package.json CHANGED
@@ -1,8 +1,7 @@
1
1
  {
2
2
  "name": "@coopenomics/factory",
3
3
  "type": "module",
4
- "version": "2025.7.3",
5
- "packageManager": "pnpm@9.0.6",
4
+ "version": "2025.7.20",
6
5
  "description": "",
7
6
  "author": "Alex Ant <chairman.voskhod@gmail.com>",
8
7
  "license": "MIT",
@@ -51,7 +50,7 @@
51
50
  "ajv-formats": "^3.0.1",
52
51
  "ajv-i18n": "^4.2.0",
53
52
  "axios": "^1.7.2",
54
- "cooptypes": "2025.7.3",
53
+ "cooptypes": "2025.7.20",
55
54
  "dotenv": "^16.4.5",
56
55
  "eosjs-ecc": "^4.0.7",
57
56
  "handlebars": "^4.7.8",
@@ -82,15 +81,5 @@
82
81
  "vite": "^5.2.11",
83
82
  "vitest": "^1.6.0"
84
83
  },
85
- "pnpm": {
86
- "overrides": {
87
- "@babel/traverse@<7.23.2": ">=7.23.2",
88
- "node-fetch@<2.6.7": ">=2.6.7",
89
- "nth-check@<2.0.1": ">=2.0.1",
90
- "semver@<5.7.2": ">=5.7.2",
91
- "tar@<6.2.1": ">=6.2.1",
92
- "vite@>=5.1.0 <=5.1.6": ">=5.1.7"
93
- }
94
- },
95
- "gitHead": "3bf3c7987336453bf1a5fc0260b8f5b09c230506"
84
+ "gitHead": "60e319589d8e78f0a9c686b89ef424b7038637d1"
96
85
  }