@neofaceid/web-sdk 2.1.1 → 2.1.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/README.md +5 -4
- package/dist/{biometricDetection-8utmtR25.js → biometricDetection-CR31mETT.js} +15 -1
- package/dist/index.d.ts +1 -1
- package/dist/neoface-id-sdk.es.js +2717 -153
- package/dist/neoface-id-sdk.umd.js +1 -1
- package/dist/{qrcode-DYfGiWu6.js → qrcode-DZJ8v41k.js} +5 -6
- package/package.json +4 -2
|
@@ -1305,14 +1305,14 @@ const qr8BitByte = function(data) {
|
|
|
1305
1305
|
};
|
|
1306
1306
|
const qrKanji = function(data) {
|
|
1307
1307
|
const _mode = QRMode.MODE_KANJI;
|
|
1308
|
-
const
|
|
1308
|
+
const stringToBytes = qrcode.stringToBytes;
|
|
1309
1309
|
!(function(c, code) {
|
|
1310
|
-
const test =
|
|
1310
|
+
const test = stringToBytes(c);
|
|
1311
1311
|
if (test.length != 2 || (test[0] << 8 | test[1]) != code) {
|
|
1312
1312
|
throw "sjis not supported.";
|
|
1313
1313
|
}
|
|
1314
1314
|
})("友", 38726);
|
|
1315
|
-
const _bytes =
|
|
1315
|
+
const _bytes = stringToBytes(data);
|
|
1316
1316
|
const _this = {};
|
|
1317
1317
|
_this.getMode = function() {
|
|
1318
1318
|
return _mode;
|
|
@@ -1625,9 +1625,8 @@ const createDataURL = function(width, height, getPixel) {
|
|
|
1625
1625
|
base64.flush();
|
|
1626
1626
|
return "data:image/gif;base64," + base64;
|
|
1627
1627
|
};
|
|
1628
|
-
|
|
1628
|
+
qrcode.stringToBytes;
|
|
1629
1629
|
export {
|
|
1630
1630
|
qrcode as default,
|
|
1631
|
-
qrcode
|
|
1632
|
-
stringToBytes
|
|
1631
|
+
qrcode
|
|
1633
1632
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neofaceid/web-sdk",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -48,9 +48,10 @@
|
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@mediapipe/hands": "^0.4.1675469240",
|
|
50
50
|
"@tensorflow-models/hand-pose-detection": "^2.0.1",
|
|
51
|
+
"@tensorflow/tfjs-backend-cpu": "^4.22.0",
|
|
52
|
+
"@tensorflow/tfjs-backend-webgl": "^4.22.0",
|
|
51
53
|
"@tensorflow/tfjs-converter": "^4.22.0",
|
|
52
54
|
"@tensorflow/tfjs-core": "^4.22.0",
|
|
53
|
-
"face-api.js": "^0.22.2",
|
|
54
55
|
"lucide": "^1.39.0",
|
|
55
56
|
"qrcode-generator": "^2.0.4",
|
|
56
57
|
"zod": "^4.3.6"
|
|
@@ -67,6 +68,7 @@
|
|
|
67
68
|
"@typescript-eslint/parser": "^6.0.0",
|
|
68
69
|
"@vitejs/plugin-react": "^5.1.2",
|
|
69
70
|
"@vitest/coverage-v8": "^4.1.11",
|
|
71
|
+
"@vladmandic/face-api": "^1.7.15",
|
|
70
72
|
"dotenv": "^17.4.2",
|
|
71
73
|
"eslint": "^8.45.0",
|
|
72
74
|
"eslint-config-airbnb": "^19.0.4",
|