Skip to content

Commit

Permalink
Fix for Hermes.js
Browse files Browse the repository at this point in the history
  • Loading branch information
jazz-soft committed Mar 28, 2023
1 parent 4198339 commit 9fa02d8
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 5 deletions.
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,23 @@ or get the full development version and minified scripts from [**GitHub**](https
//...
```

##### CommonJS (Browserify and Node.js command line applications)
##### CommonJS

```js
var JZZ = require('jzz');
require('jzz-midi-gm')(JZZ);
//...
```

##### TypeScript / ES6

```ts
import { JZZ } from 'jzz';
import { GM } from 'jzz-midi-gm';
GM(JZZ);
//...
```

##### AMD

```js
Expand Down
1 change: 1 addition & 0 deletions javascript/JZZ.midi.GM.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
(function(global, factory) {
/* istanbul ignore next */
if (typeof exports === 'object' && typeof module !== 'undefined') {
factory.GM = factory;
module.exports = factory;
}
else if (typeof define === 'function' && define.amd) {
Expand Down
2 changes: 1 addition & 1 deletion minified/JZZ.midi.GM.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jzz-midi-gm",
"version": "1.3.2",
"version": "1.3.3",
"description": "General MIDI / GM2 / GS / XG instrument names",
"main": "javascript/JZZ.midi.GM.js",
"scripts": {
Expand All @@ -18,10 +18,10 @@
],
"author": "jazz-soft (https://jazz-soft.net/)",
"dependencies": {
"jzz": "^1.6.0"
"jzz": "^1.6.1"
},
"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",
Expand Down

0 comments on commit 9fa02d8

Please sign in to comment.