Skip to content
This repository was archived by the owner on May 3, 2019. It is now read-only.

Commit feef262

Browse files
committed
Fixes toString() in face proto mapping
1 parent f885dcf commit feef262

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lib/device/drivers/detection.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ module.exports = {
4646
if (_.has(d, 'facialRecognition')) {
4747
o.demographics = _.reduce(d.facialRecognition, function (r, v, k) {
4848
// translate from { tag: 'EMOTION', emotion: 'HAPPY' to { emotion: 'happy' }
49-
var tag = v.tag.toLowerCase();
49+
var tag = v.tag.toString().toLowerCase();
5050
if (_.has(v, tag)) {
5151
// simple values
5252
r[tag] = v[tag];
@@ -132,4 +132,4 @@ module.exports = {
132132
}
133133

134134
}
135-
};
135+
};

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "matrix-os",
3-
"version": "0.16.0",
3+
"version": "0.17.1",
44
"description": "Portal to device layer for AdMobilize Matrix devices. Includes global component, npm install -g matrix-cli",
55
"main": "app.js",
66
"repository": "http://github.com/matrix-io/matrix-os",
@@ -74,4 +74,4 @@
7474
"engines": {
7575
"node": ">=0.12.7 <=6.5"
7676
}
77-
}
77+
}

0 commit comments

Comments
 (0)