@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.
- package/dist/blinkid-core.js +18 -18
- package/dist/resources/blinkid-worker.js +445 -399
- package/dist/resources/full/advanced/BlinkIdModule.data +0 -0
- package/dist/resources/full/advanced/BlinkIdModule.js +124 -138
- package/dist/resources/full/advanced/BlinkIdModule.wasm +0 -0
- package/dist/resources/full/advanced-threads/BlinkIdModule.data +0 -0
- package/dist/resources/full/advanced-threads/BlinkIdModule.js +145 -162
- package/dist/resources/full/advanced-threads/BlinkIdModule.wasm +0 -0
- package/dist/resources/full/basic/BlinkIdModule.data +0 -0
- package/dist/resources/full/basic/BlinkIdModule.js +120 -134
- package/dist/resources/full/basic/BlinkIdModule.wasm +0 -0
- package/dist/resources/lightweight/advanced/BlinkIdModule.data +0 -0
- package/dist/resources/lightweight/advanced/BlinkIdModule.js +124 -137
- package/dist/resources/lightweight/advanced/BlinkIdModule.wasm +0 -0
- package/dist/resources/lightweight/advanced-threads/BlinkIdModule.data +0 -0
- package/dist/resources/lightweight/advanced-threads/BlinkIdModule.js +145 -162
- package/dist/resources/lightweight/advanced-threads/BlinkIdModule.wasm +0 -0
- package/dist/resources/lightweight/basic/BlinkIdModule.data +0 -0
- package/dist/resources/lightweight/basic/BlinkIdModule.js +120 -133
- package/dist/resources/lightweight/basic/BlinkIdModule.wasm +0 -0
- package/dist/resources/size-manifest.json +12 -12
- package/package.json +1 -1
- package/types/deviceInfo/createDerivedDeviceInfo.d.ts +1 -1
- package/types/deviceInfo/createDerivedDeviceInfo.d.ts.map +1 -1
- package/types/deviceInfo/deviceInfo.d.ts +1 -1
- package/types/deviceInfo/deviceInfo.d.ts.map +1 -1
- package/types/deviceInfo/getBrowserFromUserAgent.d.ts.map +1 -1
- package/types/index.d.ts +1 -1
- package/types/index.d.ts.map +1 -1
- package/types/index.rollup.d.ts +3150 -0
package/dist/blinkid-core.js
CHANGED
|
@@ -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 (
|
|
802
|
-
t =
|
|
801
|
+
if (n?.model)
|
|
802
|
+
t = n.model;
|
|
803
803
|
else if (r)
|
|
804
804
|
t = r;
|
|
805
805
|
else {
|
|
806
|
-
const u =
|
|
806
|
+
const u = e.match(/Android.*?; ([^)]+)\)/);
|
|
807
807
|
u?.[1] && (t = u[1]);
|
|
808
808
|
}
|
|
809
809
|
let o = ["Desktop"];
|
|
810
|
-
|
|
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
|
-
|
|
812
|
+
n?.platform ? a = n.platform : a = Ie().os;
|
|
813
813
|
let i = "", s = "";
|
|
814
|
-
if (
|
|
815
|
-
i = (
|
|
814
|
+
if (n?.brands?.length)
|
|
815
|
+
i = (n.brands.find(
|
|
816
816
|
(c) => !/not.a.brand/i.test(c.brand) && c.brand !== "Chromium"
|
|
817
|
-
) ??
|
|
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
|
-
|
|
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
|
-
|
|
893
|
-
|
|
892
|
+
navigator.userAgent,
|
|
893
|
+
e
|
|
894
894
|
)
|
|
895
895
|
};
|
|
896
896
|
}
|