Skip to content

Commit

Permalink
Updated dependencies and cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed May 19, 2024
1 parent 19b63b7 commit 37db765
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18.x'
node-version: '20.x'
- run: npm install
- run: npm test
- run: npm run coverage
- uses: coverallsapp/github-action@master
- uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions data/assemble.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ module.exports = function(grunt) {
if (_x[v][m]) grunt.fail.fatal(['duplicated model id', a[0], a[1], a[2], a[3]].join(' '));
_x[v][m] = a[1] == _v[v] ? {m:a[2], d:a[3], s:mod[i]} : {b:a[1], m:a[2], d:a[3], s:mod[i]};
for (var j = 4; j <=8; j++) {
var s = m.substr(0, j);
var s = m.substring(0, j);
_c[v][s] = _c[v][s] ? _c[v][s] + 1 : 1;
}
}
Expand Down Expand Up @@ -93,7 +93,7 @@ module.exports = function(grunt) {
for (var k = 0; k < kk.length; k++) {
var m;
for (var j = 4; j < 9; j++) {
var s = kk[k].substr(0, j);
var s = kk[k].substring(0, j);
if (_c[v][s] > 1) continue;
m = s;
break;
Expand Down
2 changes: 1 addition & 1 deletion javascript/JZZ.midi.Gear.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ JZZ.MIDI.prototype.gearInfo = function() {
var ret = { brand: _v[vnd] };
if (!_m[vnd]) return ret;
for (var j = 8; j >= 4; j--) {
var m = _m[vnd][mod.substr(0, j)];
var m = _m[vnd][mod.substring(0, j)];
if (m) {
ret.model = m.m;
ret.descr = m.d;
Expand Down
Loading

0 comments on commit 37db765

Please sign in to comment.