Skip to content

Commit

Permalink
feat: remove es6-promise, use native
Browse files Browse the repository at this point in the history
  • Loading branch information
gierschv committed Sep 4, 2024
1 parent c12e149 commit 60f90b1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 13 deletions.
3 changes: 1 addition & 2 deletions lib/connect.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@
var Driver = require('./connect/driver').Driver;
var Input = require('./connect/input').Input;
var Output = require('./connect/output').Output;
var promise = require('es6-promise');

/**
* Establish a connection to the MIDI driver
*
* @return {Promise} A connection promise
*/
function connect() {
return new promise.Promise(function (resolve, reject) {
return new Promise(function (resolve, reject) {
navigator.requestMIDIAccess().then(function (access) {
resolve(new Driver(access));
}).catch(function () {
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@flat/midijs",
"version": "0.14.2",
"version": "0.15.0",
"description": "Read and write Standard MIDI files and enable communication with MIDI devices!",
"license": "MIT",
"main": "index.js",
Expand All @@ -27,8 +27,7 @@
"url": "https://github.com/MattouFP"
},
"dependencies": {
"buffercursor": "0.0.12",
"es6-promise": "^4.1.0"
"buffercursor": "0.0.12"
},
"devDependencies": {
"@types/node": "^22.5.3",
Expand Down
8 changes: 0 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 60f90b1

Please sign in to comment.