vishwam-react-ent-sdk 1.0.1 → 1.0.3

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.js CHANGED
@@ -928,6 +928,7 @@ var aspectRatios = {
928
928
  pan: 0.625,
929
929
  passport: 0.67,
930
930
  voter: 1.2,
931
+ dl: 0.625,
931
932
  pwd: 1.414,
932
933
  others: 1.414
933
934
  };
@@ -1442,6 +1443,8 @@ function getDocType(docType) {
1442
1443
  return '3';
1443
1444
  case 'pwd':
1444
1445
  return 'pwd';
1446
+ case 'dl':
1447
+ return '5';
1445
1448
  case 'others':
1446
1449
  return 'others';
1447
1450
  default:
@@ -1487,8 +1490,8 @@ var faceMatch = function faceMatch(url, referenceId, userId, appId, matchType, i
1487
1490
  formData.append('match_type', matchType);
1488
1491
  formData.append('image', dataURItoBlob$2(image, imageType));
1489
1492
  formData.append('image2', dataURItoBlob$2(image2, imageType));
1490
- return Promise.resolve(requestToken(url + '/v2/get_auth_token', '1h')).then(function (token) {
1491
- return Promise.resolve(request(url + '/v1/face_match', formData, 'POST', token));
1493
+ return Promise.resolve(requestToken(url + '/get_auth_token', '1h')).then(function (token) {
1494
+ return Promise.resolve(request(url + '/face_match', formData, 'POST', token));
1492
1495
  });
1493
1496
  } catch (e) {
1494
1497
  return Promise.reject(e);