web-pki 2.16.0 → 2.16.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/lacuna-web-pki.d.ts +4 -3
- package/lacuna-web-pki.js +16 -6
- package/package.json +1 -1
package/lacuna-web-pki.d.ts
CHANGED
|
@@ -1052,7 +1052,8 @@ export namespace LacunaWebPKI {
|
|
|
1052
1052
|
v1_6_1 = '1.6.1',
|
|
1053
1053
|
v1_7_0 = '1.7.0',
|
|
1054
1054
|
v1_7_2 = '1.7.2',
|
|
1055
|
-
v1_8_0 = '1.8.0'
|
|
1055
|
+
v1_8_0 = '1.8.0',
|
|
1056
|
+
v1_8_1 = '1.8.1'
|
|
1056
1057
|
}
|
|
1057
1058
|
|
|
1058
1059
|
/**************************************************************
|
|
@@ -1431,8 +1432,8 @@ export interface CertificateModel {
|
|
|
1431
1432
|
thumbprint: string,
|
|
1432
1433
|
/** Object with boolean properties indicating wether each possible key usage is set on the certificate. */
|
|
1433
1434
|
keyUsage: KeyUsagesModel,
|
|
1434
|
-
/** Object with boolean properties indicating wether each possible EXTENDED key usage is set on the certificate. */
|
|
1435
|
-
extendedKeyUsage
|
|
1435
|
+
/** Object with boolean properties indicating wether each possible EXTENDED key usage is set on the certificate. If null, certificate does not have the ExtendedKeyUsage extension */
|
|
1436
|
+
extendedKeyUsage?: ExtendedKeyUsagesModel,
|
|
1436
1437
|
/** Array with certificate policies info */
|
|
1437
1438
|
certificatePolicies: CertificatePolicyModel[],
|
|
1438
1439
|
/** Object with Brazil-specific fields. */
|
package/lacuna-web-pki.js
CHANGED
|
@@ -130,16 +130,16 @@ LacunaWebPKI = function (license) {
|
|
|
130
130
|
$._edgeExtensionId = 'nedeegdmhlnmboboahchfpkmdnnemapd';
|
|
131
131
|
$._edgeLegacyProductId = 'd2798a85-9698-425a-add7-3db79a39ca8a';
|
|
132
132
|
$._chromeExtensionFirstVersionWithSelfUpdate = '2.0.20';
|
|
133
|
-
$._jslibVersion = '2.16.
|
|
133
|
+
$._jslibVersion = '2.16.2';
|
|
134
134
|
$._mobileSupported = 'true' === 'true';
|
|
135
135
|
$._buildChannel = 'stable';
|
|
136
136
|
|
|
137
137
|
// latest components version ----------------------
|
|
138
138
|
$._extensionRequiredVersion = '2.16.0';
|
|
139
|
-
$._chromeNativeWinRequiredVersion = '2.12.
|
|
140
|
-
$._chromeNativeLinuxRequiredVersion = '2.13.
|
|
141
|
-
$._chromeNativeMacRequiredVersion = '2.13.
|
|
142
|
-
$._ieAddonRequiredVersion = '2.9.
|
|
139
|
+
$._chromeNativeWinRequiredVersion = '2.12.1';
|
|
140
|
+
$._chromeNativeLinuxRequiredVersion = '2.13.1';
|
|
141
|
+
$._chromeNativeMacRequiredVersion = '2.13.1';
|
|
142
|
+
$._ieAddonRequiredVersion = '2.9.1';
|
|
143
143
|
$._mobileRequiredVersion = '3.2.0';
|
|
144
144
|
// ------------------------------------------------
|
|
145
145
|
|
|
@@ -191,6 +191,7 @@ LacunaWebPKI = function (license) {
|
|
|
191
191
|
v1_7_0: '1.7.0',
|
|
192
192
|
v1_7_2: '1.7.2',
|
|
193
193
|
v1_8_0: '1.8.0',
|
|
194
|
+
v1_8_1: '1.8.1',
|
|
194
195
|
latest: 'latest'
|
|
195
196
|
};
|
|
196
197
|
|
|
@@ -218,6 +219,7 @@ LacunaWebPKI = function (license) {
|
|
|
218
219
|
$._apiMap.nativeWin[$.apiVersions.v1_7_0] = '2.11.0';
|
|
219
220
|
$._apiMap.nativeWin[$.apiVersions.v1_7_2] = '2.11.0';
|
|
220
221
|
$._apiMap.nativeWin[$.apiVersions.v1_8_0] = '2.12.0';
|
|
222
|
+
$._apiMap.nativeWin[$.apiVersions.v1_8_1] = '2.12.1';
|
|
221
223
|
|
|
222
224
|
// IE
|
|
223
225
|
$._apiMap.ieAddon[$.apiVersions.v1_0] = '2.0.4';
|
|
@@ -234,6 +236,7 @@ LacunaWebPKI = function (license) {
|
|
|
234
236
|
$._apiMap.ieAddon[$.apiVersions.v1_7_0] = '2.8.0';
|
|
235
237
|
$._apiMap.ieAddon[$.apiVersions.v1_7_2] = '2.8.0';
|
|
236
238
|
$._apiMap.ieAddon[$.apiVersions.v1_8_0] = '2.9.0';
|
|
239
|
+
$._apiMap.ieAddon[$.apiVersions.v1_8_1] = '2.9.1';
|
|
237
240
|
|
|
238
241
|
// Linux
|
|
239
242
|
$._apiMap.nativeLinux[$.apiVersions.v1_0] = '2.0.0';
|
|
@@ -250,6 +253,7 @@ LacunaWebPKI = function (license) {
|
|
|
250
253
|
$._apiMap.nativeLinux[$.apiVersions.v1_7_0] = '2.12.0';
|
|
251
254
|
$._apiMap.nativeLinux[$.apiVersions.v1_7_2] = '2.12.1';
|
|
252
255
|
$._apiMap.nativeLinux[$.apiVersions.v1_8_0] = '2.13.0';
|
|
256
|
+
$._apiMap.nativeLinux[$.apiVersions.v1_8_1] = '2.13.1';
|
|
253
257
|
|
|
254
258
|
// Mac
|
|
255
259
|
$._apiMap.nativeMac[$.apiVersions.v1_0] = '2.3.0';
|
|
@@ -266,6 +270,7 @@ LacunaWebPKI = function (license) {
|
|
|
266
270
|
$._apiMap.nativeMac[$.apiVersions.v1_7_0] = '2.12.0';
|
|
267
271
|
$._apiMap.nativeMac[$.apiVersions.v1_7_2] = '2.12.1';
|
|
268
272
|
$._apiMap.nativeMac[$.apiVersions.v1_8_0] = '2.13.0';
|
|
273
|
+
$._apiMap.nativeMac[$.apiVersions.v1_8_1] = '2.13.1';
|
|
269
274
|
|
|
270
275
|
// WebExtension
|
|
271
276
|
$._apiMap.extension[$.apiVersions.v1_0] = '2.3.2';
|
|
@@ -282,6 +287,7 @@ LacunaWebPKI = function (license) {
|
|
|
282
287
|
$._apiMap.extension[$.apiVersions.v1_7_0] = '2.16.0';
|
|
283
288
|
$._apiMap.extension[$.apiVersions.v1_7_2] = '2.16.0';
|
|
284
289
|
$._apiMap.extension[$.apiVersions.v1_8_0] = '2.16.0';
|
|
290
|
+
$._apiMap.extension[$.apiVersions.v1_8_1] = '2.16.0';
|
|
285
291
|
|
|
286
292
|
// Mobile
|
|
287
293
|
$._apiMap.mobile[$.apiVersions.v1_0] = '1.1.0';
|
|
@@ -298,6 +304,7 @@ LacunaWebPKI = function (license) {
|
|
|
298
304
|
$._apiMap.mobile[$.apiVersions.v1_7_0] = '3.0.0';
|
|
299
305
|
$._apiMap.mobile[$.apiVersions.v1_7_2] = '3.0.0';
|
|
300
306
|
$._apiMap.mobile[$.apiVersions.v1_8_0] = '3.2.0';
|
|
307
|
+
$._apiMap.mobile[$.apiVersions.v1_8_1] = '3.2.0';
|
|
301
308
|
|
|
302
309
|
// All latest
|
|
303
310
|
$._apiMap.nativeWin [$.apiVersions.latest] = $._chromeNativeWinRequiredVersion;
|
|
@@ -777,7 +784,7 @@ LacunaWebPKI = function (license) {
|
|
|
777
784
|
cert.validityStart = new Date(cert.validityStart);
|
|
778
785
|
cert.validityEnd = new Date(cert.validityEnd);
|
|
779
786
|
cert.keyUsage = $._processKeyUsage(cert.keyUsage);
|
|
780
|
-
cert.extendedKeyUsage = $._processExtendedKeyUsage(cert.extendedKeyUsage
|
|
787
|
+
cert.extendedKeyUsage = $._processExtendedKeyUsage(cert.extendedKeyUsage);
|
|
781
788
|
if (cert.pkiBrazil && cert.pkiBrazil.dateOfBirth) {
|
|
782
789
|
var s = cert.pkiBrazil.dateOfBirth;
|
|
783
790
|
cert.pkiBrazil.dateOfBirth = new Date(parseInt(s.slice(0, 4), 10), parseInt(s.slice(5, 7), 10) - 1, parseInt(s.slice(8, 10), 10));
|
|
@@ -856,6 +863,9 @@ LacunaWebPKI = function (license) {
|
|
|
856
863
|
};
|
|
857
864
|
|
|
858
865
|
$._processExtendedKeyUsage = function (extendedKeyUsageValue) {
|
|
866
|
+
if (typeof extendedKeyUsageValue !== 'number') {
|
|
867
|
+
return null;
|
|
868
|
+
}
|
|
859
869
|
return {
|
|
860
870
|
clientAuth: (extendedKeyUsageValue & $._certExtendedKeyUsages.clientAuth) !== 0,
|
|
861
871
|
serverAuth: (extendedKeyUsageValue & $._certExtendedKeyUsages.serverAuth) !== 0,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "web-pki",
|
|
3
|
-
"version": "2.16.
|
|
3
|
+
"version": "2.16.2",
|
|
4
4
|
"description": "The Lacuna Web PKI component enables web applications to interact with digital certificates through javascript, without the need of Java.",
|
|
5
5
|
"main": "lacuna-web-pki.js",
|
|
6
6
|
"types": "lacuna-web-pki.d.ts",
|