Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed Mar 25, 2023
1 parent f152770 commit 8491ffa
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 18 deletions.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.*
minified
scripts
web-midi-api
test*
coverage
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@ by running `npm remove midi-test --save-dev`.

```html
<script src="https://cdn.jsdelivr.net/npm/jzz"></script> // the latest version, or
<script src="https://cdn.jsdelivr.net/npm/jzz@1.6.0"></script> // any particular version
<script src="https://cdn.jsdelivr.net/npm/jzz@1.6.1"></script> // any particular version
//...
```

##### CDN (unpkg)

```html
<script src="https://unpkg.com/jzz"></script> // the latest version, or
<script src="https://unpkg.com/jzz@1.6.0"></script> // any particular version
<script src="https://unpkg.com/jzz@1.6.1"></script> // any particular version
//...
```

Expand All @@ -89,7 +89,7 @@ var JZZ = require('jzz');
##### TypeScript / ES6

```ts
import * as JZZ from 'jzz';
import { JZZ } from 'jzz';
//...
```

Expand Down
2 changes: 1 addition & 1 deletion javascript/JZZ.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
})(this, function() {

var _scope = typeof window === 'undefined' ? global : window;
var _version = '1.6.0';
var _version = '1.6.1';
var i, j, k, m, n;

/* istanbul ignore next */
Expand Down
2 changes: 1 addition & 1 deletion minified/JZZ.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jzz",
"version": "1.6.0",
"version": "1.6.1",
"description": "MIDI library for Node.js and web-browsers",
"main": "javascript/JZZ.js",
"scripts": {
Expand All @@ -21,15 +21,15 @@
"jazz-midi": "^1.7.9"
},
"devDependencies": {
"eslint": "^8.35.0",
"eslint": "^8.36.0",
"grunt": "^1.6.1",
"grunt-contrib-jshint": "^3.2.0",
"grunt-contrib-uglify": "^5.2.2",
"midi-test": "^1.2.4",
"midi-test": "^1.2.5",
"mocha": "^10.2.0",
"nyc": "^15.1.0",
"web-audio-test": "^0.0.5",
"web-midi-test": "^1.2.3"
"web-midi-test": "^1.2.4"
},
"runkitExampleFilename": "runkit.js",
"repository": {
Expand Down
10 changes: 7 additions & 3 deletions test/common.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
var assert = require('assert');
var JZZ = require('..');
var test = require('./tests.js')(JZZ, { engine: ['webmidi', 'none'] });
const assert = require('assert');
const JZZ = require('..');
const version = require('../package.json').version;
const test = require('./tests.js')(JZZ, { engine: ['webmidi', 'none'] });

describe('Info', function() {
console.log('Node:', process.versions.node);
console.log('process.platform:', process.platform);
console.log('process.arch:', process.arch);
console.log('JZZ:', JZZ.info().ver);
it('version ' + version, function() {
assert.equal(JZZ.info().ver, version);
});
});

describe('MIDI messages', function() {
Expand Down
4 changes: 0 additions & 4 deletions test/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ module.exports = function(JZZ, PARAMS, DRIVER) {

mask_midi_in: function() {
it('Mask MIDI-In', function(done) {
var port;
var widget = JZZ.Widget();
JZZ.addMidiIn('Widget MIDI-In', widget);
JZZ.maskMidiIn('Widget MIDI-In');
Expand All @@ -171,7 +170,6 @@ module.exports = function(JZZ, PARAMS, DRIVER) {

mask_midi_out: function() {
it('Mask MIDI-In', function(done) {
var port;
var widget = JZZ.Widget();
JZZ.addMidiOut('Widget MIDI-Out', widget);
JZZ.maskMidiOut('Widget MIDI-Out');
Expand All @@ -182,7 +180,6 @@ module.exports = function(JZZ, PARAMS, DRIVER) {

unmask_midi_in: function() {
it('Unmask MIDI-In', function(done) {
var port;
var widget = JZZ.Widget();
JZZ.addMidiIn('Widget MIDI-In', widget);
JZZ.unmaskMidiIn('Widget MIDI-In');
Expand All @@ -194,7 +191,6 @@ module.exports = function(JZZ, PARAMS, DRIVER) {

unmask_midi_out: function() {
it('Unmask MIDI-In', function(done) {
var port;
var widget = JZZ.Widget();
JZZ.addMidiOut('Widget MIDI-Out', widget);
JZZ.unmaskMidiOut('Widget MIDI-Out');
Expand Down
4 changes: 2 additions & 2 deletions web-midi-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web-midi-api",
"version": "2.2.3",
"version": "2.2.4",
"description": "Web MIDI API for Node.js",
"main": "index.js",
"scripts": {
Expand All @@ -13,7 +13,7 @@
"web-midi-api"
],
"dependencies": {
"jzz": "^1.6.0"
"jzz": "^1.6.1"
},
"contributors": [
{
Expand Down

0 comments on commit 8491ffa

Please sign in to comment.