ableton-js
Advanced tools
Comparing version 1.4.4 to 1.5.0
@@ -74,3 +74,3 @@ "use strict"; | ||
_this.song = new song_1.Song(_this); | ||
_this.client = dgram_1["default"].createSocket("udp4"); | ||
_this.client = dgram_1["default"].createSocket({ type: "udp4", reuseAddr: true }); | ||
_this.client.bind(_this.listenPort, host); | ||
@@ -77,0 +77,0 @@ _this.client.addListener("message", _this.handleIncoming.bind(_this)); |
@@ -40,3 +40,2 @@ "use strict"; | ||
var index_1 = require("../index"); | ||
var a = new index_1.Ableton(); | ||
var gettableProps = [ | ||
@@ -54,6 +53,7 @@ "detail_clip", | ||
it("should be able to read all properties without erroring", function () { return __awaiter(_this, void 0, void 0, function () { | ||
var _a, _b; | ||
var a, _a, _b; | ||
return __generator(this, function (_c) { | ||
switch (_c.label) { | ||
case 0: | ||
a = new index_1.Ableton(); | ||
_b = (_a = console).log; | ||
@@ -63,2 +63,3 @@ return [4 /*yield*/, Promise.all(gettableProps.map(function (p) { return a.song.view.get(p); }))]; | ||
_b.apply(_a, [_c.sent()]); | ||
a.close(); | ||
return [2 /*return*/]; | ||
@@ -69,2 +70,1 @@ } | ||
}); | ||
afterAll(function () { return a.close(); }); |
@@ -40,3 +40,2 @@ "use strict"; | ||
var index_1 = require("../index"); | ||
var a = new index_1.Ableton(); | ||
var gettableProps = [ | ||
@@ -92,7 +91,11 @@ "arrangement_overdub", | ||
it("should be able to read all properties without erroring", function () { return __awaiter(_this, void 0, void 0, function () { | ||
var a; | ||
return __generator(this, function (_a) { | ||
switch (_a.label) { | ||
case 0: return [4 /*yield*/, Promise.all(gettableProps.map(function (p) { return a.song.get(p); }))]; | ||
case 0: | ||
a = new index_1.Ableton(); | ||
return [4 /*yield*/, Promise.all(gettableProps.map(function (p) { return a.song.get(p); }))]; | ||
case 1: | ||
_a.sent(); | ||
a.close(); | ||
return [2 /*return*/]; | ||
@@ -103,2 +106,1 @@ } | ||
}); | ||
afterAll(function () { return a.close(); }); |
{ | ||
"name": "ableton-js", | ||
"version": "1.4.4", | ||
"version": "1.5.0", | ||
"description": "Control Ableton Live from Node", | ||
@@ -21,3 +21,3 @@ "main": "index.js", | ||
"build": "tsc", | ||
"test": "jest" | ||
"test": "jest --runInBand" | ||
}, | ||
@@ -24,0 +24,0 @@ "devDependencies": { |
74013
1682