fix webpack compatibility issue

pull/50/head
Vladimir Mandic 2020-10-27 12:49:52 -04:00
parent 8941c332dc
commit a35682756b
11 changed files with 3965 additions and 7539 deletions

View File

@ -5777,10 +5777,10 @@ var require_config = __commonJS((exports) => {
var require_package = __commonJS((exports, module) => { var require_package = __commonJS((exports, module) => {
module.exports = { module.exports = {
name: "@vladmandic/human", name: "@vladmandic/human",
version: "0.4.5", version: "0.4.6",
description: "human: 3D Face Detection, Iris Tracking and Age & Gender Prediction", description: "human: 3D Face Detection, Iris Tracking and Age & Gender Prediction",
sideEffects: false, sideEffects: false,
main: "dist/human.cjs", main: "dist/human.node.js",
module: "dist/human.esm.js", module: "dist/human.esm.js",
browser: "dist/human.esm.js", browser: "dist/human.esm.js",
author: "Vladimir Mandic <mandic00@live.com>", author: "Vladimir Mandic <mandic00@live.com>",
@ -5819,7 +5819,7 @@ var require_package = __commonJS((exports, module) => {
"build-iife": "esbuild --bundle --platform=browser --sourcemap --target=esnext --format=iife --external:fs --global-name=Human --metafile=dist/human.json --outfile=dist/human.js src/human.js", "build-iife": "esbuild --bundle --platform=browser --sourcemap --target=esnext --format=iife --external:fs --global-name=Human --metafile=dist/human.json --outfile=dist/human.js src/human.js",
"build-esm-bundle": "esbuild --bundle --platform=browser --sourcemap --target=esnext --format=esm --external:fs --metafile=dist/human.esm.json --outfile=dist/human.esm.js src/human.js", "build-esm-bundle": "esbuild --bundle --platform=browser --sourcemap --target=esnext --format=esm --external:fs --metafile=dist/human.esm.json --outfile=dist/human.esm.js src/human.js",
"build-esm-nobundle": "esbuild --bundle --platform=browser --sourcemap --target=esnext --format=esm --external:@tensorflow --external:fs --metafile=dist/human.esm-nobundle.json --outfile=dist/human.esm-nobundle.js src/human.js", "build-esm-nobundle": "esbuild --bundle --platform=browser --sourcemap --target=esnext --format=esm --external:@tensorflow --external:fs --metafile=dist/human.esm-nobundle.json --outfile=dist/human.esm-nobundle.js src/human.js",
"build-node": "esbuild --bundle --platform=node --sourcemap --target=esnext --format=cjs --external:@tensorflow --metafile=dist/human.cjs.json --outfile=dist/human.cjs src/human.js", "build-node": "esbuild --bundle --platform=node --sourcemap --target=esnext --format=cjs --external:@tensorflow --metafile=dist/human.node.json --outfile=dist/human.node.js src/human.js",
build: "rimraf dist/* && npm run build-iife && npm run build-esm-bundle && npm run build-esm-nobundle && npm run build-node && ls -l dist/", build: "rimraf dist/* && npm run build-iife && npm run build-esm-bundle && npm run build-esm-nobundle && npm run build-node && ls -l dist/",
update: "npm update --depth 20 && npm dedupe && npm prune && npm audit", update: "npm update --depth 20 && npm dedupe && npm prune && npm audit",
changelog: "node changelog.js" changelog: "node changelog.js"

View File

@ -5,7 +5,7 @@
"imports": [] "imports": []
}, },
"package.json": { "package.json": {
"bytes": 2607, "bytes": 2616,
"imports": [] "imports": []
}, },
"src/emotion/emotion.js": { "src/emotion/emotion.js": {
@ -353,7 +353,7 @@
"bytesInOutput": 2230 "bytesInOutput": 2230
}, },
"package.json": { "package.json": {
"bytesInOutput": 2747 "bytesInOutput": 2756
}, },
"src/human.js": { "src/human.js": {
"bytesInOutput": 10775 "bytesInOutput": 10775
@ -362,7 +362,7 @@
"bytesInOutput": 0 "bytesInOutput": 0
} }
}, },
"bytes": 154973 "bytes": 154982
} }
} }
} }

5673
dist/human.esm.js vendored

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

28
dist/human.esm.json vendored
View File

@ -5,7 +5,7 @@
"imports": [] "imports": []
}, },
"node_modules/@tensorflow/tfjs-backend-cpu/dist/tf-backend-cpu.node.js": { "node_modules/@tensorflow/tfjs-backend-cpu/dist/tf-backend-cpu.node.js": {
"bytes": 297728, "bytes": 272720,
"imports": [ "imports": [
{ {
"path": "node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js" "path": "node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js"
@ -16,7 +16,7 @@
] ]
}, },
"node_modules/@tensorflow/tfjs-backend-webgl/dist/tf-backend-webgl.node.js": { "node_modules/@tensorflow/tfjs-backend-webgl/dist/tf-backend-webgl.node.js": {
"bytes": 607535, "bytes": 571410,
"imports": [ "imports": [
{ {
"path": "node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js" "path": "node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js"
@ -24,7 +24,7 @@
] ]
}, },
"node_modules/@tensorflow/tfjs-converter/dist/tf-converter.node.js": { "node_modules/@tensorflow/tfjs-converter/dist/tf-converter.node.js": {
"bytes": 312103, "bytes": 294510,
"imports": [ "imports": [
{ {
"path": "node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js" "path": "node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js"
@ -32,7 +32,7 @@
] ]
}, },
"node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js": { "node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js": {
"bytes": 1313261, "bytes": 1305668,
"imports": [ "imports": [
{ {
"path": "empty:/home/vlado/dev/human/node_modules/node-fetch/browser.js" "path": "empty:/home/vlado/dev/human/node_modules/node-fetch/browser.js"
@ -46,7 +46,7 @@
] ]
}, },
"node_modules/@tensorflow/tfjs-data/dist/tf-data.node.js": { "node_modules/@tensorflow/tfjs-data/dist/tf-data.node.js": {
"bytes": 217014, "bytes": 217016,
"imports": [ "imports": [
{ {
"path": "node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js" "path": "node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js"
@ -149,7 +149,7 @@
] ]
}, },
"package.json": { "package.json": {
"bytes": 2607, "bytes": 2616,
"imports": [] "imports": []
}, },
"src/emotion/emotion.js": { "src/emotion/emotion.js": {
@ -468,7 +468,7 @@
"dist/human.esm.js.map": { "dist/human.esm.js.map": {
"imports": [], "imports": [],
"inputs": {}, "inputs": {},
"bytes": 5121598 "bytes": 4993458
}, },
"dist/human.esm.js": { "dist/human.esm.js": {
"imports": [], "imports": [],
@ -483,19 +483,19 @@
"bytesInOutput": 44 "bytesInOutput": 44
}, },
"node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js": { "node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js": {
"bytesInOutput": 1010337 "bytesInOutput": 1004764
}, },
"node_modules/@tensorflow/tfjs-layers/dist/tf-layers.node.js": { "node_modules/@tensorflow/tfjs-layers/dist/tf-layers.node.js": {
"bytesInOutput": 514491 "bytesInOutput": 514491
}, },
"node_modules/@tensorflow/tfjs-converter/dist/tf-converter.node.js": { "node_modules/@tensorflow/tfjs-converter/dist/tf-converter.node.js": {
"bytesInOutput": 258960 "bytesInOutput": 246275
}, },
"empty:/home/vlado/dev/human/node_modules/string_decoder/lib/string_decoder.js": { "empty:/home/vlado/dev/human/node_modules/string_decoder/lib/string_decoder.js": {
"bytesInOutput": 52 "bytesInOutput": 52
}, },
"node_modules/@tensorflow/tfjs-data/dist/tf-data.node.js": { "node_modules/@tensorflow/tfjs-data/dist/tf-data.node.js": {
"bytesInOutput": 129585 "bytesInOutput": 129586
}, },
"node_modules/seedrandom/lib/alea.js": { "node_modules/seedrandom/lib/alea.js": {
"bytesInOutput": 2112 "bytesInOutput": 2112
@ -522,10 +522,10 @@
"bytesInOutput": 458 "bytesInOutput": 458
}, },
"node_modules/@tensorflow/tfjs-backend-cpu/dist/tf-backend-cpu.node.js": { "node_modules/@tensorflow/tfjs-backend-cpu/dist/tf-backend-cpu.node.js": {
"bytesInOutput": 272394 "bytesInOutput": 246000
}, },
"node_modules/@tensorflow/tfjs-backend-webgl/dist/tf-backend-webgl.node.js": { "node_modules/@tensorflow/tfjs-backend-webgl/dist/tf-backend-webgl.node.js": {
"bytesInOutput": 561656 "bytesInOutput": 527935
}, },
"node_modules/@tensorflow/tfjs/dist/tf.node.js": { "node_modules/@tensorflow/tfjs/dist/tf.node.js": {
"bytesInOutput": 3025 "bytesInOutput": 3025
@ -618,7 +618,7 @@
"bytesInOutput": 2230 "bytesInOutput": 2230
}, },
"package.json": { "package.json": {
"bytesInOutput": 2747 "bytesInOutput": 2756
}, },
"src/human.js": { "src/human.js": {
"bytesInOutput": 10765 "bytesInOutput": 10765
@ -627,7 +627,7 @@
"bytesInOutput": 0 "bytesInOutput": 0
} }
}, },
"bytes": 2923601 "bytes": 2845238
} }
} }
} }

5673
dist/human.js vendored

File diff suppressed because it is too large Load Diff

6
dist/human.js.map vendored

File diff suppressed because one or more lines are too long

28
dist/human.json vendored
View File

@ -5,7 +5,7 @@
"imports": [] "imports": []
}, },
"node_modules/@tensorflow/tfjs-backend-cpu/dist/tf-backend-cpu.node.js": { "node_modules/@tensorflow/tfjs-backend-cpu/dist/tf-backend-cpu.node.js": {
"bytes": 297728, "bytes": 272720,
"imports": [ "imports": [
{ {
"path": "node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js" "path": "node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js"
@ -16,7 +16,7 @@
] ]
}, },
"node_modules/@tensorflow/tfjs-backend-webgl/dist/tf-backend-webgl.node.js": { "node_modules/@tensorflow/tfjs-backend-webgl/dist/tf-backend-webgl.node.js": {
"bytes": 607535, "bytes": 571410,
"imports": [ "imports": [
{ {
"path": "node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js" "path": "node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js"
@ -24,7 +24,7 @@
] ]
}, },
"node_modules/@tensorflow/tfjs-converter/dist/tf-converter.node.js": { "node_modules/@tensorflow/tfjs-converter/dist/tf-converter.node.js": {
"bytes": 312103, "bytes": 294510,
"imports": [ "imports": [
{ {
"path": "node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js" "path": "node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js"
@ -32,7 +32,7 @@
] ]
}, },
"node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js": { "node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js": {
"bytes": 1313261, "bytes": 1305668,
"imports": [ "imports": [
{ {
"path": "empty:/home/vlado/dev/human/node_modules/node-fetch/browser.js" "path": "empty:/home/vlado/dev/human/node_modules/node-fetch/browser.js"
@ -46,7 +46,7 @@
] ]
}, },
"node_modules/@tensorflow/tfjs-data/dist/tf-data.node.js": { "node_modules/@tensorflow/tfjs-data/dist/tf-data.node.js": {
"bytes": 217014, "bytes": 217016,
"imports": [ "imports": [
{ {
"path": "node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js" "path": "node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js"
@ -149,7 +149,7 @@
] ]
}, },
"package.json": { "package.json": {
"bytes": 2607, "bytes": 2616,
"imports": [] "imports": []
}, },
"src/emotion/emotion.js": { "src/emotion/emotion.js": {
@ -468,7 +468,7 @@
"dist/human.js.map": { "dist/human.js.map": {
"imports": [], "imports": [],
"inputs": {}, "inputs": {},
"bytes": 5125454 "bytes": 4997268
}, },
"dist/human.js": { "dist/human.js": {
"imports": [], "imports": [],
@ -483,19 +483,19 @@
"bytesInOutput": 48 "bytesInOutput": 48
}, },
"node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js": { "node_modules/@tensorflow/tfjs-core/dist/tf-core.node.js": {
"bytesInOutput": 1061246 "bytesInOutput": 1055423
}, },
"node_modules/@tensorflow/tfjs-layers/dist/tf-layers.node.js": { "node_modules/@tensorflow/tfjs-layers/dist/tf-layers.node.js": {
"bytesInOutput": 541660 "bytesInOutput": 541660
}, },
"node_modules/@tensorflow/tfjs-converter/dist/tf-converter.node.js": { "node_modules/@tensorflow/tfjs-converter/dist/tf-converter.node.js": {
"bytesInOutput": 273096 "bytesInOutput": 259681
}, },
"empty:/home/vlado/dev/human/node_modules/string_decoder/lib/string_decoder.js": { "empty:/home/vlado/dev/human/node_modules/string_decoder/lib/string_decoder.js": {
"bytesInOutput": 56 "bytesInOutput": 56
}, },
"node_modules/@tensorflow/tfjs-data/dist/tf-data.node.js": { "node_modules/@tensorflow/tfjs-data/dist/tf-data.node.js": {
"bytesInOutput": 136972 "bytesInOutput": 136974
}, },
"node_modules/seedrandom/lib/alea.js": { "node_modules/seedrandom/lib/alea.js": {
"bytesInOutput": 2276 "bytesInOutput": 2276
@ -522,10 +522,10 @@
"bytesInOutput": 490 "bytesInOutput": 490
}, },
"node_modules/@tensorflow/tfjs-backend-cpu/dist/tf-backend-cpu.node.js": { "node_modules/@tensorflow/tfjs-backend-cpu/dist/tf-backend-cpu.node.js": {
"bytesInOutput": 284249 "bytesInOutput": 256749
}, },
"node_modules/@tensorflow/tfjs-backend-webgl/dist/tf-backend-webgl.node.js": { "node_modules/@tensorflow/tfjs-backend-webgl/dist/tf-backend-webgl.node.js": {
"bytesInOutput": 581862 "bytesInOutput": 546737
}, },
"node_modules/@tensorflow/tfjs/dist/tf.node.js": { "node_modules/@tensorflow/tfjs/dist/tf.node.js": {
"bytesInOutput": 3189 "bytesInOutput": 3189
@ -618,13 +618,13 @@
"bytesInOutput": 2424 "bytesInOutput": 2424
}, },
"package.json": { "package.json": {
"bytesInOutput": 2875 "bytesInOutput": 2884
}, },
"src/human.js": { "src/human.js": {
"bytesInOutput": 11994 "bytesInOutput": 11994
} }
}, },
"bytes": 3069474 "bytes": 2987622
} }
} }
} }

View File

@ -5777,10 +5777,10 @@ var require_config = __commonJS((exports2) => {
var require_package = __commonJS((exports2, module2) => { var require_package = __commonJS((exports2, module2) => {
module2.exports = { module2.exports = {
name: "@vladmandic/human", name: "@vladmandic/human",
version: "0.4.5", version: "0.4.6",
description: "human: 3D Face Detection, Iris Tracking and Age & Gender Prediction", description: "human: 3D Face Detection, Iris Tracking and Age & Gender Prediction",
sideEffects: false, sideEffects: false,
main: "dist/human.cjs", main: "dist/human.node.js",
module: "dist/human.esm.js", module: "dist/human.esm.js",
browser: "dist/human.esm.js", browser: "dist/human.esm.js",
author: "Vladimir Mandic <mandic00@live.com>", author: "Vladimir Mandic <mandic00@live.com>",
@ -5819,7 +5819,7 @@ var require_package = __commonJS((exports2, module2) => {
"build-iife": "esbuild --bundle --platform=browser --sourcemap --target=esnext --format=iife --external:fs --global-name=Human --metafile=dist/human.json --outfile=dist/human.js src/human.js", "build-iife": "esbuild --bundle --platform=browser --sourcemap --target=esnext --format=iife --external:fs --global-name=Human --metafile=dist/human.json --outfile=dist/human.js src/human.js",
"build-esm-bundle": "esbuild --bundle --platform=browser --sourcemap --target=esnext --format=esm --external:fs --metafile=dist/human.esm.json --outfile=dist/human.esm.js src/human.js", "build-esm-bundle": "esbuild --bundle --platform=browser --sourcemap --target=esnext --format=esm --external:fs --metafile=dist/human.esm.json --outfile=dist/human.esm.js src/human.js",
"build-esm-nobundle": "esbuild --bundle --platform=browser --sourcemap --target=esnext --format=esm --external:@tensorflow --external:fs --metafile=dist/human.esm-nobundle.json --outfile=dist/human.esm-nobundle.js src/human.js", "build-esm-nobundle": "esbuild --bundle --platform=browser --sourcemap --target=esnext --format=esm --external:@tensorflow --external:fs --metafile=dist/human.esm-nobundle.json --outfile=dist/human.esm-nobundle.js src/human.js",
"build-node": "esbuild --bundle --platform=node --sourcemap --target=esnext --format=cjs --external:@tensorflow --metafile=dist/human.cjs.json --outfile=dist/human.cjs src/human.js", "build-node": "esbuild --bundle --platform=node --sourcemap --target=esnext --format=cjs --external:@tensorflow --metafile=dist/human.node.json --outfile=dist/human.node.js src/human.js",
build: "rimraf dist/* && npm run build-iife && npm run build-esm-bundle && npm run build-esm-nobundle && npm run build-node && ls -l dist/", build: "rimraf dist/* && npm run build-iife && npm run build-esm-bundle && npm run build-esm-nobundle && npm run build-node && ls -l dist/",
update: "npm update --depth 20 && npm dedupe && npm prune && npm audit", update: "npm update --depth 20 && npm dedupe && npm prune && npm audit",
changelog: "node changelog.js" changelog: "node changelog.js"
@ -6122,4 +6122,4 @@ class Human {
}); });
} }
} }
//# sourceMappingURL=human.cjs.map //# sourceMappingURL=human.node.js.map

View File

@ -5,7 +5,7 @@
"imports": [] "imports": []
}, },
"package.json": { "package.json": {
"bytes": 2607, "bytes": 2616,
"imports": [] "imports": []
}, },
"src/emotion/emotion.js": { "src/emotion/emotion.js": {
@ -257,12 +257,12 @@
} }
}, },
"outputs": { "outputs": {
"dist/human.cjs.map": { "dist/human.node.js.map": {
"imports": [], "imports": [],
"inputs": {}, "inputs": {},
"bytes": 260880 "bytes": 260880
}, },
"dist/human.cjs": { "dist/human.node.js": {
"imports": [], "imports": [],
"inputs": { "inputs": {
"src/facemesh/blazeface.js": { "src/facemesh/blazeface.js": {
@ -353,7 +353,7 @@
"bytesInOutput": 2232 "bytesInOutput": 2232
}, },
"package.json": { "package.json": {
"bytesInOutput": 2750 "bytesInOutput": 2759
}, },
"src/human.js": { "src/human.js": {
"bytesInOutput": 47 "bytesInOutput": 47
@ -362,7 +362,7 @@
"bytesInOutput": 10775 "bytesInOutput": 10775
} }
}, },
"bytes": 155114 "bytes": 155127
} }
} }
} }