n20-common-lib 2.19.7 → 2.19.8
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/package.json +1 -1
- package/src/plugins/Sign/index.js +24 -12
package/package.json
CHANGED
|
@@ -100,29 +100,41 @@ export function getCert(dn) {
|
|
|
100
100
|
if (window.NetSignVersion === 'signV3') {
|
|
101
101
|
importG('inetSign', () => import(/*webpackChunkName: "inetSign"*/ './signV3/sign.js')).then(
|
|
102
102
|
({ getCertInfo }) => {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
103
|
+
try {
|
|
104
|
+
const itrusGetCert = getCertInfo(dn)
|
|
105
|
+
resolve(itrusGetCert)
|
|
106
|
+
} catch (error) {
|
|
107
|
+
reject()
|
|
108
|
+
}
|
|
106
109
|
}
|
|
107
110
|
)
|
|
108
111
|
} else {
|
|
109
112
|
importG('inetSign', () => import(/*webpackChunkName: "inetSign"*/ './sign.js')).then(({ getCertInfo }) => {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
+
try {
|
|
114
|
+
const itrusGetCert = getCertInfo(dn)
|
|
115
|
+
resolve(itrusGetCert)
|
|
116
|
+
} catch (error) {
|
|
117
|
+
reject()
|
|
118
|
+
}
|
|
113
119
|
})
|
|
114
120
|
}
|
|
115
121
|
} else if (signType === 'SkfSign') {
|
|
116
122
|
importG('SkfSign', () => import(/*webpackChunkName: "SkfSign"*/ './SkfSign/index.js')).then(({ getCertInfo }) => {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
123
|
+
try {
|
|
124
|
+
const itrusGetCert = getCertInfo(dn)
|
|
125
|
+
resolve(itrusGetCert)
|
|
126
|
+
} catch (error) {
|
|
127
|
+
reject()
|
|
128
|
+
}
|
|
120
129
|
})
|
|
121
130
|
} else if (signType === 'NetSM3') {
|
|
122
131
|
importG('NetSM3', () => import(/*webpackChunkName: "NetSM3"*/ './NetSM3/index.js')).then(({ getCertInfo }) => {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
132
|
+
try {
|
|
133
|
+
const itrusGetCert = getCertInfo(dn)
|
|
134
|
+
resolve(itrusGetCert)
|
|
135
|
+
} catch (error) {
|
|
136
|
+
reject()
|
|
137
|
+
}
|
|
126
138
|
})
|
|
127
139
|
} else if (signType === 'ItrusSign') {
|
|
128
140
|
importG('ItrusSign', () => import(/*webpackChunkName: "ItrusSign"*/ './Itrus/index.js')).then(({ getCert }) => {
|