fix indexdb config check

pull/293/head
Vladimir Mandic 2022-03-16 11:19:56 -04:00
parent f7be4a4c1f
commit f350f01fb0
5 changed files with 721 additions and 720 deletions

View File

@ -9,11 +9,12 @@
## Changelog ## Changelog
### **HEAD -> main** 2022/03/07 mandic00@live.com
### **2.6.4** 2022/02/27 mandic00@live.com ### **2.6.4** 2022/02/27 mandic00@live.com
- fix types typo
### **origin/main** 2022/02/17 mandic00@live.com
- refresh - refresh
- add config option wasmplatformfetch - add config option wasmplatformfetch

View File

@ -53,7 +53,7 @@
"tensorflow" "tensorflow"
], ],
"devDependencies": { "devDependencies": {
"@microsoft/api-extractor": "^7.19.4", "@microsoft/api-extractor": "^7.19.5",
"@tensorflow/tfjs": "^3.14.0", "@tensorflow/tfjs": "^3.14.0",
"@tensorflow/tfjs-backend-cpu": "^3.14.0", "@tensorflow/tfjs-backend-cpu": "^3.14.0",
"@tensorflow/tfjs-backend-wasm": "^3.14.0", "@tensorflow/tfjs-backend-wasm": "^3.14.0",
@ -67,22 +67,22 @@
"@tensorflow/tfjs-node-gpu": "^3.14.0", "@tensorflow/tfjs-node-gpu": "^3.14.0",
"@types/node": "^17.0.21", "@types/node": "^17.0.21",
"@types/offscreencanvas": "^2019.6.4", "@types/offscreencanvas": "^2019.6.4",
"@typescript-eslint/eslint-plugin": "^5.14.0", "@typescript-eslint/eslint-plugin": "^5.15.0",
"@typescript-eslint/parser": "^5.14.0", "@typescript-eslint/parser": "^5.15.0",
"@vladmandic/build": "^0.7.1", "@vladmandic/build": "^0.7.1",
"@vladmandic/pilogger": "^0.4.3", "@vladmandic/pilogger": "^0.4.4",
"@vladmandic/tfjs": "github:vladmandic/tfjs", "@vladmandic/tfjs": "github:vladmandic/tfjs",
"canvas": "^2.9.0", "canvas": "^2.9.0",
"dayjs": "^1.10.8", "dayjs": "^1.11.0",
"esbuild": "^0.14.25", "esbuild": "^0.14.27",
"eslint": "8.10.0", "eslint": "8.11.0",
"eslint-config-airbnb-base": "^15.0.0", "eslint-config-airbnb-base": "^15.0.0",
"eslint-plugin-html": "^6.2.0", "eslint-plugin-html": "^6.2.0",
"eslint-plugin-import": "^2.25.4", "eslint-plugin-import": "^2.25.4",
"eslint-plugin-json": "^3.1.0", "eslint-plugin-json": "^3.1.0",
"eslint-plugin-node": "^11.1.0", "eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^6.0.0", "eslint-plugin-promise": "^6.0.0",
"node-fetch": "^3.2.2", "node-fetch": "^3.2.3",
"rimraf": "^3.0.2", "rimraf": "^3.0.2",
"seedrandom": "^3.0.5", "seedrandom": "^3.0.5",
"tslib": "^2.3.1", "tslib": "^2.3.1",

View File

@ -134,8 +134,8 @@ export class Human {
Object.defineProperty(this, 'version', { value: app.version }); // expose version property directly on class itself Object.defineProperty(this, 'version', { value: app.version }); // expose version property directly on class itself
this.config = JSON.parse(JSON.stringify(defaults)); this.config = JSON.parse(JSON.stringify(defaults));
Object.seal(this.config); Object.seal(this.config);
if (userConfig) this.config = mergeDeep(this.config, userConfig);
this.config.cacheModels = typeof indexedDB !== 'undefined'; this.config.cacheModels = typeof indexedDB !== 'undefined';
if (userConfig) this.config = mergeDeep(this.config, userConfig);
setModelLoadOptions(this.config); setModelLoadOptions(this.config);
this.tf = tf; this.tf = tf;
this.state = 'idle'; this.state = 'idle';

View File

@ -1,24 +1,24 @@
2022-03-07 13:22:50 INFO:  Application: {"name":"@vladmandic/human","version":"2.6.4"} 2022-03-16 11:18:48 INFO:  Application: {"name":"@vladmandic/human","version":"2.6.4"}
2022-03-07 13:22:50 INFO:  Environment: {"profile":"production","config":".build.json","package":"package.json","tsconfig":true,"eslintrc":true,"git":true} 2022-03-16 11:18:48 INFO:  Environment: {"profile":"production","config":".build.json","package":"package.json","tsconfig":true,"eslintrc":true,"git":true}
2022-03-07 13:22:50 INFO:  Toolchain: {"build":"0.7.1","esbuild":"0.14.25","typescript":"4.6.2","typedoc":"0.22.13","eslint":"8.10.0"} 2022-03-16 11:18:48 INFO:  Toolchain: {"build":"0.7.1","esbuild":"0.14.27","typescript":"4.6.2","typedoc":"0.22.13","eslint":"8.11.0"}
2022-03-07 13:22:50 INFO:  Build: {"profile":"production","steps":["clean","compile","typings","typedoc","lint","changelog"]} 2022-03-16 11:18:48 INFO:  Build: {"profile":"production","steps":["clean","compile","typings","typedoc","lint","changelog"]}
2022-03-07 13:22:50 STATE: Clean: {"locations":["dist/*","types/lib/*","typedoc/*"]} 2022-03-16 11:18:48 STATE: Clean: {"locations":["dist/*","types/lib/*","typedoc/*"]}
2022-03-07 13:22:50 STATE: Compile: {"name":"tfjs/nodejs/cpu","format":"cjs","platform":"node","input":"tfjs/tf-node.ts","output":"dist/tfjs.esm.js","files":1,"inputBytes":102,"outputBytes":644} 2022-03-16 11:18:48 STATE: Compile: {"name":"tfjs/nodejs/cpu","format":"cjs","platform":"node","input":"tfjs/tf-node.ts","output":"dist/tfjs.esm.js","files":1,"inputBytes":102,"outputBytes":595}
2022-03-07 13:22:50 STATE: Compile: {"name":"human/nodejs/cpu","format":"cjs","platform":"node","input":"src/human.ts","output":"dist/human.node.js","files":64,"inputBytes":562645,"outputBytes":293118} 2022-03-16 11:18:48 STATE: Compile: {"name":"human/nodejs/cpu","format":"cjs","platform":"node","input":"src/human.ts","output":"dist/human.node.js","files":64,"inputBytes":562596,"outputBytes":292931}
2022-03-07 13:22:50 STATE: Compile: {"name":"tfjs/nodejs/gpu","format":"cjs","platform":"node","input":"tfjs/tf-node-gpu.ts","output":"dist/tfjs.esm.js","files":1,"inputBytes":110,"outputBytes":648} 2022-03-16 11:18:48 STATE: Compile: {"name":"tfjs/nodejs/gpu","format":"cjs","platform":"node","input":"tfjs/tf-node-gpu.ts","output":"dist/tfjs.esm.js","files":1,"inputBytes":110,"outputBytes":599}
2022-03-07 13:22:50 STATE: Compile: {"name":"human/nodejs/gpu","format":"cjs","platform":"node","input":"src/human.ts","output":"dist/human.node-gpu.js","files":64,"inputBytes":562649,"outputBytes":293122} 2022-03-16 11:18:48 STATE: Compile: {"name":"human/nodejs/gpu","format":"cjs","platform":"node","input":"src/human.ts","output":"dist/human.node-gpu.js","files":64,"inputBytes":562600,"outputBytes":292935}
2022-03-07 13:22:50 STATE: Compile: {"name":"tfjs/nodejs/wasm","format":"cjs","platform":"node","input":"tfjs/tf-node-wasm.ts","output":"dist/tfjs.esm.js","files":1,"inputBytes":149,"outputBytes":685} 2022-03-16 11:18:48 STATE: Compile: {"name":"tfjs/nodejs/wasm","format":"cjs","platform":"node","input":"tfjs/tf-node-wasm.ts","output":"dist/tfjs.esm.js","files":1,"inputBytes":149,"outputBytes":651}
2022-03-07 13:22:50 STATE: Compile: {"name":"human/nodejs/wasm","format":"cjs","platform":"node","input":"src/human.ts","output":"dist/human.node-wasm.js","files":64,"inputBytes":562686,"outputBytes":293161} 2022-03-16 11:18:48 STATE: Compile: {"name":"human/nodejs/wasm","format":"cjs","platform":"node","input":"src/human.ts","output":"dist/human.node-wasm.js","files":64,"inputBytes":562652,"outputBytes":292985}
2022-03-07 13:22:50 STATE: Compile: {"name":"tfjs/browser/version","format":"esm","platform":"browser","input":"tfjs/tf-version.ts","output":"dist/tfjs.version.js","files":1,"inputBytes":1063,"outputBytes":394} 2022-03-16 11:18:48 STATE: Compile: {"name":"tfjs/browser/version","format":"esm","platform":"browser","input":"tfjs/tf-version.ts","output":"dist/tfjs.version.js","files":1,"inputBytes":1063,"outputBytes":394}
2022-03-07 13:22:50 STATE: Compile: {"name":"tfjs/browser/esm/nobundle","format":"esm","platform":"browser","input":"tfjs/tf-browser.ts","output":"dist/tfjs.esm.js","files":2,"inputBytes":1068,"outputBytes":615} 2022-03-16 11:18:48 STATE: Compile: {"name":"tfjs/browser/esm/nobundle","format":"esm","platform":"browser","input":"tfjs/tf-browser.ts","output":"dist/tfjs.esm.js","files":2,"inputBytes":1068,"outputBytes":615}
2022-03-07 13:22:50 STATE: Compile: {"name":"human/browser/esm/nobundle","format":"esm","platform":"browser","input":"src/human.ts","output":"dist/human.esm-nobundle.js","files":64,"inputBytes":562616,"outputBytes":291871} 2022-03-16 11:18:48 STATE: Compile: {"name":"human/browser/esm/nobundle","format":"esm","platform":"browser","input":"src/human.ts","output":"dist/human.esm-nobundle.js","files":64,"inputBytes":562616,"outputBytes":291911}
2022-03-07 13:22:50 STATE: Compile: {"name":"tfjs/browser/esm/custom","format":"esm","platform":"browser","input":"tfjs/tf-custom.ts","output":"dist/tfjs.esm.js","files":1,"inputBytes":110,"outputBytes":1335248} 2022-03-16 11:18:49 STATE: Compile: {"name":"tfjs/browser/esm/custom","format":"esm","platform":"browser","input":"tfjs/tf-custom.ts","output":"dist/tfjs.esm.js","files":1,"inputBytes":110,"outputBytes":1344096}
2022-03-07 13:22:50 STATE: Compile: {"name":"human/browser/iife/bundle","format":"iife","platform":"browser","input":"src/human.ts","output":"dist/human.js","files":64,"inputBytes":1897249,"outputBytes":1626282} 2022-03-16 11:18:49 STATE: Compile: {"name":"human/browser/iife/bundle","format":"iife","platform":"browser","input":"src/human.ts","output":"dist/human.js","files":64,"inputBytes":1906097,"outputBytes":1635010}
2022-03-07 13:22:50 STATE: Compile: {"name":"human/browser/esm/bundle","format":"esm","platform":"browser","input":"src/human.ts","output":"dist/human.esm.js","files":64,"inputBytes":1897249,"outputBytes":2102106} 2022-03-16 11:18:49 STATE: Compile: {"name":"human/browser/esm/bundle","format":"esm","platform":"browser","input":"src/human.ts","output":"dist/human.esm.js","files":64,"inputBytes":1906097,"outputBytes":2112905}
2022-03-07 13:22:55 STATE: Typings: {"input":"src/human.ts","output":"types/lib","files":112} 2022-03-16 11:18:54 STATE: Typings: {"input":"src/human.ts","output":"types/lib","files":112}
2022-03-07 13:22:57 STATE: TypeDoc: {"input":"src/human.ts","output":"typedoc","objects":69,"generated":true} 2022-03-16 11:18:56 STATE: TypeDoc: {"input":"src/human.ts","output":"typedoc","objects":69,"generated":true}
2022-03-07 13:22:57 STATE: Compile: {"name":"demo/typescript","format":"esm","platform":"browser","input":"demo/typescript/index.ts","output":"demo/typescript/index.js","files":1,"inputBytes":5863,"outputBytes":2915} 2022-03-16 11:18:56 STATE: Compile: {"name":"demo/typescript","format":"esm","platform":"browser","input":"demo/typescript/index.ts","output":"demo/typescript/index.js","files":1,"inputBytes":5863,"outputBytes":2915}
2022-03-07 13:22:57 STATE: Compile: {"name":"demo/faceid","format":"esm","platform":"browser","input":"demo/faceid/index.ts","output":"demo/faceid/index.js","files":2,"inputBytes":15174,"outputBytes":7820} 2022-03-16 11:18:56 STATE: Compile: {"name":"demo/faceid","format":"esm","platform":"browser","input":"demo/faceid/index.ts","output":"demo/faceid/index.js","files":2,"inputBytes":15174,"outputBytes":7820}
2022-03-07 13:23:05 STATE: Lint: {"locations":["*.json","src/**/*.ts","test/**/*.js","demo/**/*.js"],"files":95,"errors":0,"warnings":0} 2022-03-16 11:19:04 STATE: Lint: {"locations":["*.json","src/**/*.ts","test/**/*.js","demo/**/*.js"],"files":95,"errors":0,"warnings":0}
2022-03-07 13:23:06 STATE: ChangeLog: {"repository":"https://github.com/vladmandic/human","branch":"main","output":"CHANGELOG.md"} 2022-03-16 11:19:04 STATE: ChangeLog: {"repository":"https://github.com/vladmandic/human","branch":"main","output":"CHANGELOG.md"}
2022-03-07 13:23:06 INFO:  Done... 2022-03-16 11:19:04 INFO:  Done...

File diff suppressed because it is too large Load Diff