Compare commits

...

10 Commits

Author SHA1 Message Date
dependabot[bot]
d8622ff6df
Bump webpack from 5.75.0 to 5.97.1 (#55)
Bumps [webpack](https://github.com/webpack/webpack) from 5.75.0 to 5.97.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.75.0...v5.97.1)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Artem Vasilev <kernusr@users.noreply.github.com>
2025-02-07 14:22:09 +03:00
dependabot[bot]
d4b7a9cb29
Bump @babel/traverse from 7.20.1 to 7.26.7 (#53)
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.20.1 to 7.26.7.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.26.7/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Artem Vasilev <kernusr@users.noreply.github.com>
2025-02-07 14:20:41 +03:00
dependabot[bot]
f0ae6b76f0
Bump ws from 7.5.9 to 7.5.10 (#51)
Bumps [ws](https://github.com/websockets/ws) from 7.5.9 to 7.5.10.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](https://github.com/websockets/ws/compare/7.5.9...7.5.10)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-07 14:15:40 +03:00
dependabot[bot]
1f59f7e97e
Bump json5, ts-loader, webpack and webpack-cli (#44)
Bumps [json5](https://github.com/json5/json5) to 2.2.3 and updates ancestor dependencies [json5](https://github.com/json5/json5), [ts-loader](https://github.com/TypeStrong/ts-loader), [webpack](https://github.com/webpack/webpack) and [webpack-cli](https://github.com/webpack/webpack-cli). These dependencies need to be updated together.


Updates `json5` from 2.2.1 to 2.2.3
- [Release notes](https://github.com/json5/json5/releases)
- [Changelog](https://github.com/json5/json5/blob/main/CHANGELOG.md)
- [Commits](https://github.com/json5/json5/compare/v2.2.1...v2.2.3)

Updates `ts-loader` from 6.2.2 to 9.4.2
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/main/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v6.2.2...v9.4.2)

Updates `webpack` from 4.46.0 to 5.75.0
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v4.46.0...v5.75.0)

Updates `webpack-cli` from 3.3.12 to 5.0.1
- [Release notes](https://github.com/webpack/webpack-cli/releases)
- [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-cli/compare/v3.3.12...webpack-cli@5.0.1)

---
updated-dependencies:
- dependency-name: json5
  dependency-type: indirect
- dependency-name: ts-loader
  dependency-type: direct:development
- dependency-name: webpack
  dependency-type: direct:development
- dependency-name: webpack-cli
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Artem Vasilev <kernusr@users.noreply.github.com>
2025-02-07 13:52:43 +03:00
dependabot[bot]
e69224b8b9
Bump decode-uri-component from 0.2.0 to 0.2.2 (#42)
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases)
- [Commits](https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.2)

---
updated-dependencies:
- dependency-name: decode-uri-component
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Artem Vasilev <kernusr@users.noreply.github.com>
2025-02-07 13:47:01 +03:00
dependabot[bot]
3f84487ee8
Bump minimatch from 3.0.4 to 3.1.2 in /examples/script-tag (#32)
Bumps [minimatch](https://github.com/isaacs/minimatch) from 3.0.4 to 3.1.2.
- [Release notes](https://github.com/isaacs/minimatch/releases)
- [Commits](https://github.com/isaacs/minimatch/compare/v3.0.4...v3.1.2)

---
updated-dependencies:
- dependency-name: minimatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-02-07 13:45:23 +03:00
Artem Vasilev
c09fac36c3
Исправления в соответсвии с приказом ФСБ России (#40)
Внесены изменения с учётом Приказа ФСБ России от 13.04.2021 N 142 "О внесении изменения в приказ ФСБ России от 27 декабря 2011 г. N 796 "Об утверждении Требований к средствам электронной подписи и Требований к средствам удостоверяющего центра"

* Добавил чтение полей, перечисленных в приказе ФСБ России от 27 декабря 2011 г. N 796

* Добавил OIDы полей, перечисленных в приказе ФСБ России от 27 декабря 2011 г. N 796

* Расширил варианты названия для полей подписи, в соответствии с рекомендациями ISO/IEC 9594-8:2008

* Выпуск версии 2.3.3
2022-11-11 19:40:20 +03:00
Artem Vasilev
35d99909a8
Обновил зависимости (#39) 2022-11-11 15:37:35 +03:00
Artem Vasilev
319068ffdd
run test only on node 16 (#38)
* run test on node 16 and LTS (18)

* specify the required Node.js version

* run only on node 16
2022-11-10 18:30:19 +03:00
dependabot[bot]
aab6c56ca9
Bump terser from 4.8.0 to 4.8.1 (#30)
Bumps [terser](https://github.com/terser/terser) from 4.8.0 to 4.8.1.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-10 14:59:03 +03:00
23 changed files with 18230 additions and 22216 deletions

View File

@ -13,7 +13,7 @@ jobs:
strategy: strategy:
matrix: matrix:
node-version: [ lts/* ] node-version: [ 16 ]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
@ -21,6 +21,7 @@ jobs:
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
check-latest: true
- name: Clean install, build, test - name: Clean install, build, test
run: | run: |
@ -33,10 +34,12 @@ jobs:
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Use Node.js latest - name: Use Node.js 16
uses: actions/setup-node@v3 uses: actions/setup-node@v3
with: with:
node-version: latest node-version: 16
check-latest: true
- name: Clean install, lint - name: Clean install, lint
run: | run: |
npm ci npm ci

View File

@ -2,6 +2,10 @@ export declare const OIDS_DICTIONARY: {
'1.2.643.2.2.34.6': string; '1.2.643.2.2.34.6': string;
'1.2.643.2.39.1.1': string; '1.2.643.2.39.1.1': string;
'1.2.643.3.131.1.1': string; '1.2.643.3.131.1.1': string;
'1.2.643.100.4': string;
'1.2.643.100.1': string;
'1.2.643.100.5': string;
'1.2.643.100.3': string;
'1.2.643.3.141.1.1': string; '1.2.643.3.141.1.1': string;
'1.2.643.3.141.1.2': string; '1.2.643.3.141.1.2': string;
'1.2.643.3.2.100.65.13.11': string; '1.2.643.3.2.100.65.13.11': string;

View File

@ -1,4 +1,4 @@
// Type definitions for crypto-pro-js 2.3.2 // Type definitions for crypto-pro-js 2.3.3
// Project: crypto-pro-js // Project: crypto-pro-js
// Definitions by: Artem Vasilev https://github.com/kernusr // Definitions by: Artem Vasilev https://github.com/kernusr

195
dist/crypto-pro-js.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
export declare const _extractCommonName: (subjectName: string) => string; export declare const _extractCommonName: (subjectName: string) => string | undefined;

View File

@ -1 +1 @@
export declare const _extractMeaningfulErrorMessage: (error: Error) => string; export declare const _extractMeaningfulErrorMessage: (error: Error) => string | null;

33
examples/script-tag/package-lock.json generated Executable file → Normal file
View File

@ -1,14 +1,14 @@
{ {
"name": "crypto-pro-example-es5-script-tag", "name": "crypto-pro-example-es5-script-tag",
"version": "0.0.0", "version": "2.3.3",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "crypto-pro-example-es5-script-tag", "name": "crypto-pro-example-es5-script-tag",
"version": "0.0.0", "version": "2.3.3",
"dependencies": { "dependencies": {
"crypto-pro-js": "^2.3.2" "crypto-pro-js": "^2.3.3"
}, },
"devDependencies": { "devDependencies": {
"node-static": "0.7.11", "node-static": "0.7.11",
@ -59,9 +59,12 @@
"dev": true "dev": true
}, },
"node_modules/crypto-pro-js": { "node_modules/crypto-pro-js": {
"version": "2.3.2", "version": "2.3.3",
"resolved": "https://registry.npmjs.org/crypto-pro-js/-/crypto-pro-js-2.3.2.tgz", "resolved": "https://registry.npmjs.org/crypto-pro-js/-/crypto-pro-js-2.3.3.tgz",
"integrity": "sha512-XD5STnobroyuli5k/8udnv5oOwZpVhf1/3uoD7/FMSbBQSTstu1IOS+uckFC3I2LRvDOmdzntYAZqyY/1/NB1A==" "integrity": "sha512-ge6PXRw6pu2kXeaqwEpHvmQEuSRQWJcVfQfPfF5gGONIi+jUHFsvkeS5ojFcKKBDqFHnYUQXFZ1aMKDGdoVRqg==",
"engines": {
"node": "~16"
}
}, },
"node_modules/fs.realpath": { "node_modules/fs.realpath": {
"version": "1.0.0", "version": "1.0.0",
@ -142,9 +145,9 @@
} }
}, },
"node_modules/minimatch": { "node_modules/minimatch": {
"version": "3.0.4", "version": "3.1.2",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
"integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"brace-expansion": "^1.1.7" "brace-expansion": "^1.1.7"
@ -311,9 +314,9 @@
"dev": true "dev": true
}, },
"crypto-pro-js": { "crypto-pro-js": {
"version": "2.3.2", "version": "2.3.3",
"resolved": "https://registry.npmjs.org/crypto-pro-js/-/crypto-pro-js-2.3.2.tgz", "resolved": "https://registry.npmjs.org/crypto-pro-js/-/crypto-pro-js-2.3.3.tgz",
"integrity": "sha512-XD5STnobroyuli5k/8udnv5oOwZpVhf1/3uoD7/FMSbBQSTstu1IOS+uckFC3I2LRvDOmdzntYAZqyY/1/NB1A==" "integrity": "sha512-ge6PXRw6pu2kXeaqwEpHvmQEuSRQWJcVfQfPfF5gGONIi+jUHFsvkeS5ojFcKKBDqFHnYUQXFZ1aMKDGdoVRqg=="
}, },
"fs.realpath": { "fs.realpath": {
"version": "1.0.0", "version": "1.0.0",
@ -379,9 +382,9 @@
"dev": true "dev": true
}, },
"minimatch": { "minimatch": {
"version": "3.0.4", "version": "3.1.2",
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",
"integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",
"dev": true, "dev": true,
"requires": { "requires": {
"brace-expansion": "^1.1.7" "brace-expansion": "^1.1.7"

View File

@ -1,6 +1,6 @@
{ {
"name": "crypto-pro-example-es5-script-tag", "name": "crypto-pro-example-es5-script-tag",
"version": "0.0.0", "version": "2.3.3",
"description": "Пример использования пакета crypto-pro через тэг script", "description": "Пример использования пакета crypto-pro через тэг script",
"private": true, "private": true,
"scripts": { "scripts": {
@ -13,6 +13,6 @@
"symlink-dir": "3.1.2" "symlink-dir": "3.1.2"
}, },
"dependencies": { "dependencies": {
"crypto-pro-js": "^2.3.2" "crypto-pro-js": "^2.3.3"
} }
} }

View File

@ -2,6 +2,10 @@ export declare const OIDS_DICTIONARY: {
'1.2.643.2.2.34.6': string; '1.2.643.2.2.34.6': string;
'1.2.643.2.39.1.1': string; '1.2.643.2.39.1.1': string;
'1.2.643.3.131.1.1': string; '1.2.643.3.131.1.1': string;
'1.2.643.100.4': string;
'1.2.643.100.1': string;
'1.2.643.100.5': string;
'1.2.643.100.3': string;
'1.2.643.3.141.1.1': string; '1.2.643.3.141.1.1': string;
'1.2.643.3.141.1.2': string; '1.2.643.3.141.1.2': string;
'1.2.643.3.2.100.65.13.11': string; '1.2.643.3.2.100.65.13.11': string;

View File

@ -1,4 +1,4 @@
// Type definitions for crypto-pro-js 2.3.2 // Type definitions for crypto-pro-js 2.3.3
// Project: crypto-pro-js // Project: crypto-pro-js
// Definitions by: Artem Vasilev https://github.com/kernusr // Definitions by: Artem Vasilev https://github.com/kernusr

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
export declare const _extractCommonName: (subjectName: string) => string; export declare const _extractCommonName: (subjectName: string) => string | undefined;

View File

@ -1 +1 @@
export declare const _extractMeaningfulErrorMessage: (error: Error) => string; export declare const _extractMeaningfulErrorMessage: (error: Error) => string | null;

39735
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,87 +1,90 @@
{ {
"name": "crypto-pro-js", "name": "crypto-pro-js",
"version": "2.3.2", "version": "2.3.3",
"description": "Асинхронный JavaScript API для работы с КриптоПРО ЭЦП Browser Plug-In. Forked from https://github.com/vgoma/crypto-pro", "description": "Асинхронный JavaScript API для работы с КриптоПРО ЭЦП Browser Plug-In. Forked from https://github.com/vgoma/crypto-pro",
"main": "./lib/crypto-pro-js.js", "main": "./lib/crypto-pro-js.js",
"types": "./lib/crypto-pro-js.d.ts", "types": "./lib/crypto-pro-js.d.ts",
"files": [ "files": [
"lib/**/*", "lib/**/*",
"dist/**/*", "dist/**/*",
"bower.json" "bower.json"
], ],
"scripts": { "scripts": {
"clean": "rimraf dist lib package coverage", "clean": "rimraf dist lib package coverage",
"start": "cross-env TS_CONFIG=tsconfig-es5.json webpack --watch", "start": "cross-env TS_CONFIG=tsconfig-es5.json webpack --watch",
"build:uncompressed:es5": "cross-env TS_CONFIG=tsconfig-es5.json webpack", "build:uncompressed:es5": "cross-env TS_CONFIG=tsconfig-es5.json webpack",
"build:compressed:es5": "cross-env TS_CONFIG=tsconfig-es5.json NODE_ENV=production webpack", "build:compressed:es5": "cross-env TS_CONFIG=tsconfig-es5.json NODE_ENV=production webpack",
"build:definition-header:es5": "cross-env TS_CONFIG=tsconfig-es5.json node definition-header.js", "build:definition-header:es5": "cross-env TS_CONFIG=tsconfig-es5.json node definition-header.js",
"build:es5": "npm run build:uncompressed:es5 && npm run build:compressed:es5 && npm run build:definition-header:es5", "build:es5": "npm run build:uncompressed:es5 && npm run build:compressed:es5 && npm run build:definition-header:es5",
"build:uncompressed:esm": "cross-env TS_CONFIG=tsconfig-esm.json webpack", "build:uncompressed:esm": "cross-env TS_CONFIG=tsconfig-esm.json webpack",
"build:definition-header:esm": "cross-env TS_CONFIG=tsconfig-esm.json node definition-header.js", "build:definition-header:esm": "cross-env TS_CONFIG=tsconfig-esm.json node definition-header.js",
"build:esm": "npm run build:uncompressed:esm && npm run build:definition-header:esm", "build:esm": "npm run build:uncompressed:esm && npm run build:definition-header:esm",
"build": "npm run clean && npm run build:es5 && npm run build:esm", "build": "npm run clean && npm run build:es5 && npm run build:esm",
"pack:clean": "cross-env rimraf %npm_package_name%-%npm_package_version%.tgz", "pack:clean": "cross-env rimraf %npm_package_name%-%npm_package_version%.tgz",
"pack:uncompress": "cross-env tar xopf %npm_package_name%-%npm_package_version%.tgz", "pack:uncompress": "cross-env tar xopf %npm_package_name%-%npm_package_version%.tgz",
"test": "jest --coverage", "test": "jest --coverage",
"lint": "eslint --config .eslintrc.js --ext .ts --ext .js src", "lint": "eslint --config .eslintrc.js --ext .ts --ext .js src",
"lint:fix": "eslint --fix --config .eslintrc.js --ext .ts --ext .js src", "lint:fix": "eslint --fix --config .eslintrc.js --ext .ts --ext .js src",
"examples-update": "npm run examples-update:script-tag", "examples-update": "npm run examples-update:script-tag",
"examples-update:script-tag": "npm --prefix ./examples/script-tag r crypto-pro-js && npm --prefix ./examples/script-tag i crypto-pro-js", "examples-update:script-tag": "npm --prefix ./examples/script-tag r crypto-pro-js && npm --prefix ./examples/script-tag i crypto-pro-js",
"prepack": "npm run build", "prepack": "npm run build",
"prepublishOnly": "npm run lint && jest && npm run build", "prepublishOnly": "npm run lint && jest && npm run build",
"postpublish": "npm run examples-update" "postpublish": "npm run examples-update"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/webmasterskaya/crypto-pro-js" "url": "https://github.com/webmasterskaya/crypto-pro-js"
}, },
"author": { "author": {
"name": "Artem Vasilev", "name": "Artem Vasilev",
"email": "kern.usr@gmail.com", "email": "kern.usr@gmail.com",
"url": "https://github.com/kernusr" "url": "https://github.com/kernusr"
}, },
"contributors": [ "contributors": [
{ {
"name": "Vitalii Goma", "name": "Vitalii Goma",
"email": "vgoma@yandex.ru", "email": "vgoma@yandex.ru",
"url": "https://github.com/vgoma" "url": "https://github.com/vgoma"
}, },
{ {
"name": "German Arutyunov", "name": "German Arutyunov",
"email": "germanarutyunov@gmail.com", "email": "germanarutyunov@gmail.com",
"url": "https://github.com/gaarutyunov" "url": "https://github.com/gaarutyunov"
} }
], ],
"keywords": [ "keywords": [
"crypto", "crypto",
"cryptopro", "cryptopro",
"crypto-pro", "crypto-pro",
"crypto-pro-js", "crypto-pro-js",
"cades", "cades",
"КриптоПро", "КриптоПро",
"Крипто ПРО" "Крипто ПРО"
], ],
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {
"@types/jest": "25.1.4", "@types/jest": "25.1.4",
"@types/lodash": "4.14.149", "@types/lodash": "4.14.149",
"@types/node": "13.9.5", "@types/node": "13.9.5",
"@typescript-eslint/eslint-plugin": "2.25.0", "@typescript-eslint/eslint-plugin": "2.25.0",
"@typescript-eslint/parser": "2.25.0", "@typescript-eslint/parser": "2.25.0",
"coveralls": "3.0.11", "coveralls": "3.0.11",
"cross-env": "^7.0.2", "cross-env": "^7.0.2",
"eslint": "6.8.0", "eslint": "6.8.0",
"eslint-config-prettier": "6.10.1", "eslint-config-prettier": "6.10.1",
"eslint-plugin-prettier": "3.1.2", "eslint-plugin-prettier": "3.1.2",
"jest": "25.2.3", "jest": "^25.5.4",
"prettier": "2.0.2", "prettier": "2.0.2",
"rimraf": "3.0.2", "rimraf": "3.0.2",
"sinon": "9.0.1", "sinon": "9.0.1",
"tar": "6.1.9", "tar": "6.1.9",
"ts-jest": "^25.5.1", "ts-jest": "^25.5.1",
"ts-loader": "6.2.2", "ts-loader": "^9.4.2",
"typescript": "3.8.3", "typescript": "^3.9.10",
"webpack": "4.42.1", "webpack": "^5.75.0",
"webpack-cli": "3.3.11" "webpack-cli": "^5.0.1"
} },
"engines": {
"node": "~16"
}
} }

View File

@ -1,18 +1,19 @@
import { TagsTranslations } from './tags-translations'; import { TagsTranslations } from './tags-translations';
export const ISSUER_TAGS_TRANSLATIONS: TagsTranslations[] = [ export const ISSUER_TAGS_TRANSLATIONS: TagsTranslations[] = [
{ possibleNames: ['UnstructuredName'], translation: 'Неструктурированное имя' }, { possibleNames: ['UN', 'UnstructuredName'], translation: 'Неструктурированное имя' },
{ possibleNames: ['CN'], translation: 'Удостоверяющий центр' }, { possibleNames: ['CN', 'commonName'], translation: 'Удостоверяющий центр' },
{ possibleNames: ['C'], translation: 'Страна' }, { possibleNames: ['C', 'countryName'], translation: 'Страна' },
{ possibleNames: ['S'], translation: 'Регион' }, { possibleNames: ['S', 'ST', 'stateOrProvinceName'], translation: 'Регион' },
{ possibleNames: ['STREET'], translation: 'Адрес' }, { possibleNames: ['STREET', 'streetAddress'], translation: 'Адрес' },
{ possibleNames: ['O'], translation: 'Компания' }, { possibleNames: ['O', 'organizationName'], translation: 'Компания' },
{ possibleNames: ['OU'], translation: 'Тип' }, { possibleNames: ['OU', 'organizationalUnitName'], translation: 'Тип' },
{ possibleNames: ['T'], translation: 'Должность' }, { possibleNames: ['T', 'TITLE'], translation: 'Должность' },
{ possibleNames: ['ОГРН', 'OGRN'], translation: 'ОГРН' }, { possibleNames: ['ОГРН', 'OGRN'], translation: 'ОГРН' },
{ possibleNames: ['ОГРНИП', 'OGRNIP'], translation: 'ОГРНИП' }, { possibleNames: ['ОГРНИП', 'OGRNIP'], translation: 'ОГРНИП' },
{ possibleNames: ['СНИЛС', 'SNILS'], translation: 'СНИЛС' }, { possibleNames: ['СНИЛС', 'SNILS'], translation: 'СНИЛС' },
{ possibleNames: ['ИНН', 'INN', 'ИНН организации'], translation: 'ИНН' }, { possibleNames: ['ИНН', 'ИННФЛ', 'ИНН ФЛ', 'INN', 'ИНН физического лица'], translation: 'ИНН' },
{ possibleNames: ['E'], translation: 'Email' }, { possibleNames: ['ИННЮЛ', 'ИНН ЮЛ', 'INN LE', 'INNLE', 'ИНН организации'], translation: 'ИНН организации' },
{ possibleNames: ['L'], translation: 'Город' }, { possibleNames: ['E', 'email', 'emailAddress', 'pkcs9email'], translation: 'Email' },
{ possibleNames: ['L', 'localityName'], translation: 'Город' },
]; ];

View File

@ -2,6 +2,10 @@ export const OIDS_DICTIONARY = {
'1.2.643.2.2.34.6': 'Пользователь Центра Регистрации', '1.2.643.2.2.34.6': 'Пользователь Центра Регистрации',
'1.2.643.2.39.1.1': 'Использование в программных продуктах системы "1С:Предприятие 8"', '1.2.643.2.39.1.1': 'Использование в программных продуктах системы "1С:Предприятие 8"',
'1.2.643.3.131.1.1': 'ИНН', '1.2.643.3.131.1.1': 'ИНН',
'1.2.643.100.4': 'ИНН организации',
'1.2.643.100.1': 'ОГРН',
'1.2.643.100.5': 'ОГРНИП',
'1.2.643.100.3': 'СНИЛС',
'1.2.643.3.141.1.1': 'РНС ФСС', '1.2.643.3.141.1.1': 'РНС ФСС',
'1.2.643.3.141.1.2': 'КП ФСС', '1.2.643.3.141.1.2': 'КП ФСС',
'1.2.643.3.2.100.65.13.11': 'Использование в системе АИС "Госзакупки" Сахалинской области.', '1.2.643.3.2.100.65.13.11': 'Использование в системе АИС "Госзакупки" Сахалинской области.',

View File

@ -1,20 +1,21 @@
import { TagsTranslations } from './tags-translations'; import { TagsTranslations } from './tags-translations';
export const SUBJECT_TAGS_TRANSLATIONS: TagsTranslations[] = [ export const SUBJECT_TAGS_TRANSLATIONS: TagsTranslations[] = [
{ possibleNames: ['UnstructuredName'], translation: 'Неструктурированное имя' }, { possibleNames: ['UN', 'UnstructuredName'], translation: 'Неструктурированное имя' },
{ possibleNames: ['CN'], translation: 'Владелец' }, { possibleNames: ['CN', 'commonName'], translation: 'Владелец' },
{ possibleNames: ['SN'], translation: 'Фамилия' }, { possibleNames: ['SN', 'surname'], translation: 'Фамилия' },
{ possibleNames: ['G'], translation: 'Имя Отчество' }, { possibleNames: ['G', 'givenName', 'gn'], translation: 'Имя Отчество' },
{ possibleNames: ['C'], translation: 'Страна' }, { possibleNames: ['C', 'countryName'], translation: 'Страна' },
{ possibleNames: ['S'], translation: 'Регион' }, { possibleNames: ['S', 'ST', 'stateOrProvinceName'], translation: 'Регион' },
{ possibleNames: ['STREET'], translation: 'Адрес' }, { possibleNames: ['STREET', 'streetAddress'], translation: 'Адрес' },
{ possibleNames: ['O'], translation: 'Компания' }, { possibleNames: ['O', 'organizationName'], translation: 'Компания' },
{ possibleNames: ['OU'], translation: 'Отдел/подразделение' }, { possibleNames: ['OU', 'organizationalUnitName'], translation: 'Отдел/подразделение' },
{ possibleNames: ['T'], translation: 'Должность' }, { possibleNames: ['T', 'TITLE'], translation: 'Должность' },
{ possibleNames: ['ОГРН', 'OGRN'], translation: 'ОГРН' }, { possibleNames: ['ОГРН', 'OGRN'], translation: 'ОГРН' },
{ possibleNames: ['ОГРНИП', 'OGRNIP'], translation: 'ОГРНИП' }, { possibleNames: ['ОГРНИП', 'OGRNIP'], translation: 'ОГРНИП' },
{ possibleNames: ['СНИЛС', 'SNILS'], translation: 'СНИЛС' }, { possibleNames: ['СНИЛС', 'SNILS'], translation: 'СНИЛС' },
{ possibleNames: ['ИНН', 'INN', 'ИНН организации'], translation: 'ИНН' }, { possibleNames: ['ИНН', 'ИННФЛ', 'ИНН ФЛ', 'INN', 'ИНН физического лица'], translation: 'ИНН' },
{ possibleNames: ['E'], translation: 'Email' }, { possibleNames: ['ИННЮЛ', 'ИНН ЮЛ', 'INN LE', 'INNLE', 'ИНН организации'], translation: 'ИНН организации' },
{ possibleNames: ['L'], translation: 'Город' }, { possibleNames: ['E', 'email', 'emailAddress', 'pkcs9email'], translation: 'Email' },
{ possibleNames: ['L', 'localityName'], translation: 'Город' },
]; ];

View File

@ -18,8 +18,8 @@ describe('_parseCertInfo', () => {
'OID.1.2.643.6.3.1.4.1=Петров', 'OID.1.2.643.6.3.1.4.1=Петров',
'UNKNOWN=неизвестный тэг', 'UNKNOWN=неизвестный тэг',
'E=email@example.ru', 'E=email@example.ru',
'INN=007811514257', 'INN=997811514257',
'ИНН организации=007811514257', 'ИНН ЮЛ=007811514257',
'OGRN=1127847087885', 'OGRN=1127847087885',
'SNILS=11617693460', 'SNILS=11617693460',
].join(', '); ].join(', ');
@ -96,13 +96,13 @@ describe('_parseCertInfo', () => {
isTranslated: true, isTranslated: true,
}, },
{ {
description: '007811514257', description: '997811514257',
title: 'ИНН', title: 'ИНН',
isTranslated: true, isTranslated: true,
}, },
{ {
description: '007811514257', description: '007811514257',
title: 'ИНН', title: 'ИНН организации',
isTranslated: true, isTranslated: true,
}, },
{ {
@ -128,8 +128,8 @@ describe('_parseCertInfo', () => {
'L=Санкт-Петербург', 'L=Санкт-Петербург',
'S=78 Санкт-Петербург', 'S=78 Санкт-Петербург',
'C=RU', 'C=RU',
'INN=007813317783', 'INN=997813317783',
'ИНН организации=007813317783', 'INNLE=007813317783',
'OGRN=1057810150892', 'OGRN=1057810150892',
'E=uc@sampokey.ru', 'E=uc@sampokey.ru',
].join(', '); ].join(', ');
@ -176,13 +176,13 @@ describe('_parseCertInfo', () => {
isTranslated: true, isTranslated: true,
}, },
{ {
description: '007813317783', description: '997813317783',
title: 'ИНН', title: 'ИНН',
isTranslated: true, isTranslated: true,
}, },
{ {
description: '007813317783', description: '007813317783',
title: 'ИНН', title: 'ИНН организации',
isTranslated: true, isTranslated: true,
}, },
{ {