Skip to content

Commit fa88e75

Browse files
committed
Fixed deprecated expression
1 parent 89394ed commit fa88e75

3 files changed

Lines changed: 9 additions & 7 deletions

File tree

LICENSE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2020-25 Jazz-Soft
3+
Copyright (c) 2020-26 Jazz-Soft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ RawClip.prototype.load = function(s) {
108108
if (s.length < off + len) {
109109
for (i = off; i < s.length; i++) a.push(_hex(s.charCodeAt(i)));
110110
this._complain(off, 'Incomplete message', a.join(' '));
111-
off += len;
111+
// off += len;
112112
break;
113113
}
114114
for (i = 0; i < len; i++) a.push(s.charCodeAt(off + i));
@@ -145,7 +145,7 @@ RawClip.prototype.insertDelta = function(from, to) {
145145
};
146146
JZZ.lib.copyMidi2Helpers(RawClip);
147147

148-
if (module.parent) {
148+
if (require.main !== module) {
149149
module.exports.play = function(smf) {
150150
if (smf instanceof JZZ.MIDI.SMF || smf instanceof JZZ.MIDI.SYX || smf instanceof JZZ.MIDI.Clip || smf instanceof RawClip) smf = smf.dump();
151151
try {

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,13 @@
2828
"jzz-synth-tiny": "^1.4.4"
2929
},
3030
"devDependencies": {
31-
"eslint": "^9.36.0",
31+
"@eslint/js": "^10.0.1",
32+
"eslint": "^10.2.0",
33+
"globals": "^17.4.0",
3234
"grunt": "^1.6.1",
33-
"mocha": "^11.7.2",
34-
"node-web-audio-api": "^1.0.4",
35-
"nyc": "^17.1.0"
35+
"mocha": "^11.7.5",
36+
"node-web-audio-api": "^1.0.9",
37+
"nyc": "^18.0.0"
3638
},
3739
"repository": {
3840
"type": "git",

0 commit comments

Comments
 (0)