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