File tree 5 files changed +34
-8
lines changed
5 files changed +34
-8
lines changed Original file line number Diff line number Diff line change 1
1
language : node_js
2
2
node_js :
3
3
- " 4.8.4"
4
- - " 6.11.1"
5
- - " 7.10.1"
6
- - " 8.1.4"
4
+ - " 6"
5
+ - " 7"
6
+ - " 8"
7
+ - " 9"
7
8
install :
8
9
- npm install --all
9
10
script :
Original file line number Diff line number Diff line change
1
+ # v0.3.3
2
+
3
+ ### Enhancements
4
+
5
+ * Add raw of version to ` getFirmware `
6
+ * Bump mathjs to 4.0.0 to resolve insecurity
7
+
1
8
# v0.3.1
2
9
3
10
### Enhancements
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " openbci-utilities" ,
3
- "version" : " 0.3.1 " ,
3
+ "version" : " 0.3.3 " ,
4
4
"description" : " The official utility package of Node.js SDK for the OpenBCI Biosensor Boards." ,
5
5
"main" : " dist/openbci-utilities.js" ,
6
6
"module" : " src/index.js" ,
30
30
"buffer-equal" : " ^1.0.0" ,
31
31
"clone" : " ^2.0.0" ,
32
32
"gaussian" : " ^1.0.0" ,
33
- "mathjs" : " ^3.3 .0" ,
33
+ "mathjs" : " ^4.0 .0" ,
34
34
"performance-now" : " ^2.1.0" ,
35
35
"streamsearch" : " ^0.1.2"
36
36
},
Original file line number Diff line number Diff line change @@ -2164,7 +2164,8 @@ function getFirmware (dataBuffer) {
2164
2164
return {
2165
2165
major : Number ( elems [ 0 ] [ 1 ] ) ,
2166
2166
minor : Number ( elems [ 1 ] ) ,
2167
- patch : Number ( elems [ 2 ] )
2167
+ patch : Number ( elems [ 2 ] ) ,
2168
+ raw : ret [ 0 ]
2168
2169
} ;
2169
2170
} else return ret ;
2170
2171
}
Original file line number Diff line number Diff line change @@ -2125,7 +2125,8 @@ $$$`);
2125
2125
expect ( openBCIUtilities . getFirmware ( buf ) ) . to . deep . equal ( {
2126
2126
major : 2 ,
2127
2127
minor : 0 ,
2128
- patch : 1
2128
+ patch : 1 ,
2129
+ raw : 'v2.0.1'
2129
2130
} ) ;
2130
2131
} ) ;
2131
2132
it ( 'should find a v3' , function ( ) {
@@ -2139,7 +2140,23 @@ $$$`);
2139
2140
expect ( openBCIUtilities . getFirmware ( buf ) ) . to . deep . equal ( {
2140
2141
major : 3 ,
2141
2142
minor : 0 ,
2142
- patch : 1
2143
+ patch : 1 ,
2144
+ raw : 'v3.0.1'
2145
+ } ) ;
2146
+ } ) ;
2147
+ it ( 'should find a v3 and remove rc' , function ( ) {
2148
+ let buf = new Buffer ( `OpenBCI V3 Simulator
2149
+ On Board ADS1299 Device ID: 0x12345
2150
+ On Daisy ADS1299 Device ID: 0xFFFFF
2151
+ LIS3DH Device ID: 0x38422
2152
+ Firmware: v3.0.1-rc1
2153
+ $$$` ) ;
2154
+
2155
+ expect ( openBCIUtilities . getFirmware ( buf ) ) . to . deep . equal ( {
2156
+ major : 3 ,
2157
+ minor : 0 ,
2158
+ patch : 1 ,
2159
+ raw : 'v3.0.1'
2143
2160
} ) ;
2144
2161
} ) ;
2145
2162
} ) ;
You can’t perform that action at this time.
0 commit comments