@microblink/blinkid-core 7.4.2 → 7.6.0

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.
Files changed (30) hide show
  1. package/dist/blinkid-core.js +18 -18
  2. package/dist/resources/blinkid-worker.js +445 -399
  3. package/dist/resources/full/advanced/BlinkIdModule.data +0 -0
  4. package/dist/resources/full/advanced/BlinkIdModule.js +124 -138
  5. package/dist/resources/full/advanced/BlinkIdModule.wasm +0 -0
  6. package/dist/resources/full/advanced-threads/BlinkIdModule.data +0 -0
  7. package/dist/resources/full/advanced-threads/BlinkIdModule.js +145 -162
  8. package/dist/resources/full/advanced-threads/BlinkIdModule.wasm +0 -0
  9. package/dist/resources/full/basic/BlinkIdModule.data +0 -0
  10. package/dist/resources/full/basic/BlinkIdModule.js +120 -134
  11. package/dist/resources/full/basic/BlinkIdModule.wasm +0 -0
  12. package/dist/resources/lightweight/advanced/BlinkIdModule.data +0 -0
  13. package/dist/resources/lightweight/advanced/BlinkIdModule.js +124 -137
  14. package/dist/resources/lightweight/advanced/BlinkIdModule.wasm +0 -0
  15. package/dist/resources/lightweight/advanced-threads/BlinkIdModule.data +0 -0
  16. package/dist/resources/lightweight/advanced-threads/BlinkIdModule.js +145 -162
  17. package/dist/resources/lightweight/advanced-threads/BlinkIdModule.wasm +0 -0
  18. package/dist/resources/lightweight/basic/BlinkIdModule.data +0 -0
  19. package/dist/resources/lightweight/basic/BlinkIdModule.js +120 -133
  20. package/dist/resources/lightweight/basic/BlinkIdModule.wasm +0 -0
  21. package/dist/resources/size-manifest.json +12 -12
  22. package/package.json +1 -1
  23. package/types/deviceInfo/createDerivedDeviceInfo.d.ts +1 -1
  24. package/types/deviceInfo/createDerivedDeviceInfo.d.ts.map +1 -1
  25. package/types/deviceInfo/deviceInfo.d.ts +1 -1
  26. package/types/deviceInfo/deviceInfo.d.ts.map +1 -1
  27. package/types/deviceInfo/getBrowserFromUserAgent.d.ts.map +1 -1
  28. package/types/index.d.ts +1 -1
  29. package/types/index.d.ts.map +1 -1
  30. package/types/index.rollup.d.ts +3150 -0
@@ -724,13 +724,6 @@ const Se = [
724
724
  ];
725
725
  function ye() {
726
726
  const e = navigator.userAgent;
727
- if (window.webkit?.messageHandlers) {
728
- const n = e.match(/OS ([\d_]+)/);
729
- return {
730
- name: "iOS WebView",
731
- version: n ? n[1].replace(/_/g, ".") : ""
732
- };
733
- }
734
727
  for (const n of Se) {
735
728
  const r = e.match(n.regex);
736
729
  if (r)
@@ -739,6 +732,13 @@ function ye() {
739
732
  version: n.getVersion(r, e)
740
733
  };
741
734
  }
735
+ if (window.webkit?.messageHandlers) {
736
+ const n = e.match(/OS ([\d_]+)/);
737
+ return {
738
+ name: "iOS WebView",
739
+ version: n ? n[1].replace(/_/g, ".") : ""
740
+ };
741
+ }
742
742
  return { name: "Unknown", version: "" };
743
743
  }
744
744
  function Ee(e, n) {
@@ -798,30 +798,30 @@ function Ie() {
798
798
  function xe(e, n) {
799
799
  const r = ve();
800
800
  let t = "";
801
- if (e?.model)
802
- t = e.model;
801
+ if (n?.model)
802
+ t = n.model;
803
803
  else if (r)
804
804
  t = r;
805
805
  else {
806
- const u = n.match(/Android.*?; ([^)]+)\)/);
806
+ const u = e.match(/Android.*?; ([^)]+)\)/);
807
807
  u?.[1] && (t = u[1]);
808
808
  }
809
809
  let o = ["Desktop"];
810
- e?.formFactors?.length ? o = e.formFactors : e?.mobile ? o = ["Mobile"] : r && (r === "iPhone" ? o = ["Mobile"] : r === "iPad" && (o = ["Tablet"]));
810
+ n?.formFactors?.length ? o = n.formFactors : n?.mobile ? o = ["Mobile"] : r && (r === "iPhone" ? o = ["Mobile"] : r === "iPad" && (o = ["Tablet"]));
811
811
  let a = "";
812
- e?.platform ? a = e.platform : a = Ie().os;
812
+ n?.platform ? a = n.platform : a = Ie().os;
813
813
  let i = "", s = "";
814
- if (e?.brands?.length)
815
- i = (e.brands.find(
814
+ if (n?.brands?.length)
815
+ i = (n.brands.find(
816
816
  (c) => !/not.a.brand/i.test(c.brand) && c.brand !== "Chromium"
817
- ) ?? e.brands.find((c) => !/not.a.brand/i.test(c.brand)))?.brand ?? "", e.fullVersionList ? s = e.fullVersionList.find((c) => c.brand === i)?.version ?? "" : s = e.brands.find((c) => c.brand === i)?.version ?? "";
817
+ ) ?? n.brands.find((c) => !/not.a.brand/i.test(c.brand)))?.brand ?? "", n.fullVersionList ? s = n.fullVersionList.find((c) => c.brand === i)?.version ?? "" : s = n.brands.find((c) => c.brand === i)?.version ?? "";
818
818
  else {
819
819
  const u = ye();
820
820
  i = u.name, s = u.version;
821
821
  }
822
822
  return t === "" && a === "macOS" && (t = "Mac"), {
823
823
  model: t,
824
- formFactor: o,
824
+ formFactors: o,
825
825
  platform: a,
826
826
  browser: {
827
827
  brand: i,
@@ -889,8 +889,8 @@ async function _e() {
889
889
  localStorageEnabled: Te()
890
890
  },
891
891
  derivedDeviceInfo: xe(
892
- e,
893
- navigator.userAgent
892
+ navigator.userAgent,
893
+ e
894
894
  )
895
895
  };
896
896
  }