From b817ff2150c804d13ce39bf6304d19e543afc840 Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Thu, 30 Dec 2021 12:39:29 -0500 Subject: [PATCH] update dependencies --- CHANGELOG.md | 2 +- package.json | 17 ++++++++--------- test/test-main.js | 2 +- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c2635e70..6cb93643 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,7 @@ ## Changelog -### **HEAD -> main** 2021/12/28 mandic00@live.com +### **HEAD -> main** 2021/12/30 mandic00@live.com - fix samples - fix(src): typo diff --git a/package.json b/package.json index 0f446514..bdcb1a2f 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,8 @@ "tensorflow" ], "devDependencies": { - "@microsoft/api-extractor": "^7.19.2", + "@microsoft/api-extractor": "^7.19.3", + "@tensorflow/tfjs": "^3.12.0", "@tensorflow/tfjs-backend-cpu": "^3.12.0", "@tensorflow/tfjs-backend-wasm": "^3.12.0", "@tensorflow/tfjs-backend-webgl": "^3.12.0", @@ -62,32 +63,30 @@ "@tensorflow/tfjs-core": "^3.12.0", "@tensorflow/tfjs-data": "^3.12.0", "@tensorflow/tfjs-layers": "^3.12.0", - "@tensorflow/tfjs-node-gpu": "^3.12.0", "@tensorflow/tfjs-node": "^3.12.0", - "@tensorflow/tfjs": "^3.12.0", + "@tensorflow/tfjs-node-gpu": "^3.12.0", "@types/node": "^17.0.5", "@types/offscreencanvas": "^2019.6.4", - "@typescript-eslint/eslint-plugin": "^5.8.0", - "@typescript-eslint/parser": "^5.8.0", + "@typescript-eslint/eslint-plugin": "^5.8.1", + "@typescript-eslint/parser": "^5.8.1", "@vladmandic/build": "^0.6.6", "@vladmandic/pilogger": "^0.4.2", "@vladmandic/tfjs": "github:vladmandic/tfjs", "canvas": "^2.8.0", "dayjs": "^1.10.7", - "esbuild": "^0.14.8", + "esbuild": "^0.14.9", + "eslint": "8.5.0", "eslint-config-airbnb-base": "^15.0.0", "eslint-plugin-html": "^6.2.0", "eslint-plugin-import": "^2.25.3", "eslint-plugin-json": "^3.1.0", "eslint-plugin-node": "^11.1.0", "eslint-plugin-promise": "^6.0.0", - "eslint": "8.5.0", "node-fetch": "^3.1.0", "rimraf": "^3.0.2", "seedrandom": "^3.0.5", "tslib": "^2.3.1", "typedoc": "0.22.10", "typescript": "4.5.4" - }, - "dependencies": {} + } } diff --git a/test/test-main.js b/test/test-main.js index 39c79c67..26d67d9b 100644 --- a/test/test-main.js +++ b/test/test-main.js @@ -163,7 +163,7 @@ async function verifyDetails(human) { verify(res.hand.length === 1, 'details hand length', res.hand.length); for (const hand of res.hand) { verify(hand.score > 0.5 && hand.boxScore > 0.5 && hand.fingerScore > 0.5 && hand.box.length === 4 && hand.boxRaw.length === 4 && hand.label === 'point', 'details hand', hand.boxScore, hand.fingerScore, hand.label); - verify(hand.keypoints.length === 21 && Object.keys(hand.landmarks).length === 5 && Object.keys(hand.annotations).length === 6, 'details hand arrays', hand.keypoints.length, Object.keys(hand.landmarks).length, Object.keys(hand.annotations).length); + verify(hand.keypoints.length === 21 && Object.keys(hand.landmarks).length === 5 && Object.keys(hand.annotations).length === 7, 'details hand arrays', hand.keypoints.length, Object.keys(hand.landmarks).length, Object.keys(hand.annotations).length); } verify(res.gesture.length === 6, 'details gesture length', res.gesture.length); verify(res.gesture[0].gesture === 'facing right', 'details gesture first', res.gesture[0]);