Comparing version 2.1.0 to 3.0.0
'use strict'; | ||
var dgram = require('./safeDgram'); | ||
var dgram = require('dgram'); | ||
@@ -12,3 +12,6 @@ var min = require('osc-min'); | ||
this.port = port; | ||
this._sock = dgram(); | ||
this._sock = dgram.createSocket({ | ||
type: 'udp4', | ||
reuseAddr: true | ||
}); | ||
this.kill = function() { | ||
@@ -15,0 +18,0 @@ this._sock.close(); |
'use strict'; | ||
var dgram = require('./safeDgram'); | ||
var dgram = require('dgram'); | ||
var util = require('util'); | ||
@@ -14,3 +14,6 @@ var events = require('events'); | ||
this.host = host; | ||
this._sock = dgram(); | ||
this._sock = dgram.createSocket({ | ||
type: 'udp4', | ||
reuseAddr: true | ||
}); | ||
this._sock.bind(port); | ||
@@ -17,0 +20,0 @@ server = this; |
{ | ||
"name": "node-osc", | ||
"description": "pyOSC inspired library", | ||
"version": "2.1.0", | ||
"version": "3.0.0", | ||
"main": "lib/index.js", | ||
@@ -10,2 +10,5 @@ "author": { | ||
}, | ||
"engines": { | ||
"node": ">6" | ||
}, | ||
"license": "LGPL-2.1", | ||
@@ -33,4 +36,3 @@ "scripts": { | ||
"jspack": "0.0.4", | ||
"osc-min": "^1.1.1", | ||
"semver": "^5.1.0" | ||
"osc-min": "^1.1.1" | ||
}, | ||
@@ -46,5 +48,5 @@ "keywords": [ | ||
"devDependencies": { | ||
"eslint": "^3.18.0", | ||
"tap": "^10.3.0" | ||
"eslint": "^5.9.0", | ||
"tap": "^12.1.0" | ||
} | ||
} |
2
41641
13
411
2
- Removedsemver@^5.1.0
- Removedsemver@5.7.2(transitive)