oro-sdk 5.0.1 → 5.0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2021 ORO Health Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -372,13 +372,7 @@ function _wrapRegExp() {
372
372
  var g = _groups.get(re);
373
373
 
374
374
  return Object.keys(g).reduce(function (groups, name) {
375
- var i = g[name];
376
- if ("number" == typeof i) groups[name] = result[i];else {
377
- for (var k = 0; void 0 === result[i[k]] && k + 1 < i.length;) k++;
378
-
379
- groups[name] = result[i[k]];
380
- }
381
- return groups;
375
+ return groups[name] = result[g[name]], groups;
382
376
  }, Object.create(null));
383
377
  }
384
378
 
@@ -445,7 +439,7 @@ function _asyncToGenerator(fn) {
445
439
  }
446
440
 
447
441
  function _extends() {
448
- _extends = Object.assign ? Object.assign.bind() : function (target) {
442
+ _extends = Object.assign || function (target) {
449
443
  for (var i = 1; i < arguments.length; i++) {
450
444
  var source = arguments[i];
451
445
 
@@ -458,6 +452,7 @@ function _extends() {
458
452
 
459
453
  return target;
460
454
  };
455
+
461
456
  return _extends.apply(this, arguments);
462
457
  }
463
458
 
@@ -487,17 +482,18 @@ function _inheritsLoose(subClass, superClass) {
487
482
  }
488
483
 
489
484
  function _getPrototypeOf(o) {
490
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
485
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
491
486
  return o.__proto__ || Object.getPrototypeOf(o);
492
487
  };
493
488
  return _getPrototypeOf(o);
494
489
  }
495
490
 
496
491
  function _setPrototypeOf(o, p) {
497
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
492
+ _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
498
493
  o.__proto__ = p;
499
494
  return o;
500
495
  };
496
+
501
497
  return _setPrototypeOf(o, p);
502
498
  }
503
499
 
@@ -516,7 +512,7 @@ function _isNativeReflectConstruct() {
516
512
 
517
513
  function _construct(Parent, args, Class) {
518
514
  if (_isNativeReflectConstruct()) {
519
- _construct = Reflect.construct.bind();
515
+ _construct = Reflect.construct;
520
516
  } else {
521
517
  _construct = function _construct(Parent, args, Class) {
522
518
  var a = [null];
@@ -631,7 +627,7 @@ var personalMetaToPrefix = (_personalMetaToPrefix = {}, _personalMetaToPrefix[in
631
627
  */
632
628
 
633
629
  function identificationToPersonalInformations(data, category) {
634
- var _data;
630
+ var _data$;
635
631
 
636
632
  var prefix = personalMetaToPrefix[category];
637
633
  return {
@@ -641,7 +637,7 @@ function identificationToPersonalInformations(data, category) {
641
637
  name: data[prefix + "Name"],
642
638
  phone: data[prefix + "Phone"],
643
639
  zip: data[prefix + "Zip"],
644
- hid: (_data = data[prefix + "HID"]) != null ? _data : data[prefix + "ID"],
640
+ hid: (_data$ = data[prefix + "HID"]) != null ? _data$ : data[prefix + "ID"],
645
641
  pharmacy: data[prefix + "Pharmacy"],
646
642
  address: data[prefix + "Address"]
647
643
  };