osc
Advanced tools
Comparing version 2.2.3 to 2.2.4
@@ -1,2 +0,2 @@ | ||
/*! osc.js 2.2.3, Copyright 2018 Colin Clark | github.com/colinbdclark/osc.js */ | ||
/*! osc.js 2.2.4, Copyright 2018 Colin Clark | github.com/colinbdclark/osc.js */ | ||
@@ -404,3 +404,3 @@ | ||
function s(e, t) { | ||
if (isNaN(e)) return t ? w : y; | ||
if (isNaN(e)) return t ? w : v; | ||
if (t) { | ||
@@ -420,3 +420,3 @@ if (e < 0) return w; | ||
if (0 === e.length) throw Error("empty string"); | ||
if ("NaN" === e || "Infinity" === e || "+Infinity" === e || "-Infinity" === e) return y; | ||
if ("NaN" === e || "Infinity" === e || "+Infinity" === e || "-Infinity" === e) return v; | ||
if ("number" == typeof t ? (r = t, t = !1) : t = !!t, (r = r || 10) < 2 || 36 < r) throw RangeError("radix"); | ||
@@ -426,3 +426,3 @@ var n; | ||
if (0 === n) return a(e.substring(1), t, r).neg(); | ||
for (var i = s(d(r, 8)), o = y, u = 0; u < e.length; u += 8) { | ||
for (var i = s(d(r, 8)), o = v, u = 0; u < e.length; u += 8) { | ||
var c = Math.min(8, e.length - u), h = parseInt(e.substring(u, u + c), r); | ||
@@ -451,4 +451,4 @@ if (c < 8) { | ||
r.fromString = a, r.fromValue = u; | ||
var g = 4294967296, l = g * g, p = l / 2, v = i(1 << 24), y = i(0); | ||
r.ZERO = y; | ||
var g = 4294967296, l = g * g, p = l / 2, y = i(1 << 24), v = i(0); | ||
r.ZERO = v; | ||
var w = i(0, !0); | ||
@@ -537,10 +537,10 @@ r.UZERO = w; | ||
}, B.sub = B.subtract, B.multiply = function(e) { | ||
if (this.isZero()) return y; | ||
if (this.isZero()) return v; | ||
if (n(e) || (e = u(e)), c) return o(c.mul(this.low, this.high, e.low, e.high), c.get_high(), this.unsigned); | ||
if (e.isZero()) return y; | ||
if (this.eq(P)) return e.isOdd() ? P : y; | ||
if (e.eq(P)) return this.isOdd() ? P : y; | ||
if (e.isZero()) return v; | ||
if (this.eq(P)) return e.isOdd() ? P : v; | ||
if (e.eq(P)) return this.isOdd() ? P : v; | ||
if (this.isNegative()) return e.isNegative() ? this.neg().mul(e.neg()) : this.neg().mul(e).neg(); | ||
if (e.isNegative()) return this.mul(e.neg()).neg(); | ||
if (this.lt(v) && e.lt(v)) return s(this.toNumber() * e.toNumber(), this.unsigned); | ||
if (this.lt(y) && e.lt(y)) return s(this.toNumber() * e.toNumber(), this.unsigned); | ||
var t = this.high >>> 16, r = 65535 & this.high, i = this.low >>> 16, a = 65535 & this.low, h = e.high >>> 16, f = 65535 & e.high, d = e.low >>> 16, g = 65535 & e.low, l = 0, p = 0, w = 0, m = 0; | ||
@@ -553,3 +553,3 @@ return w += (m += a * g) >>> 16, p += (w += i * g) >>> 16, w &= 65535, p += (w += a * d) >>> 16, | ||
if (c) return this.unsigned || -2147483648 !== this.high || -1 !== e.low || -1 !== e.high ? o((this.unsigned ? c.div_u : c.div_s)(this.low, this.high, e.low, e.high), c.get_high(), this.unsigned) : this; | ||
if (this.isZero()) return this.unsigned ? w : y; | ||
if (this.isZero()) return this.unsigned ? w : v; | ||
var t, r, i; | ||
@@ -561,8 +561,8 @@ if (this.unsigned) { | ||
} else { | ||
if (this.eq(P)) return e.eq(m) || e.eq(E) ? P : e.eq(P) ? m : (t = this.shr(1).div(e).shl(1)).eq(y) ? e.isNegative() ? m : E : (r = this.sub(e.mul(t)), | ||
if (this.eq(P)) return e.eq(m) || e.eq(E) ? P : e.eq(P) ? m : (t = this.shr(1).div(e).shl(1)).eq(v) ? e.isNegative() ? m : E : (r = this.sub(e.mul(t)), | ||
i = t.add(r.div(e))); | ||
if (e.eq(P)) return this.unsigned ? w : y; | ||
if (e.eq(P)) return this.unsigned ? w : v; | ||
if (this.isNegative()) return e.isNegative() ? this.neg().div(e.neg()) : this.neg().div(e).neg(); | ||
if (e.isNegative()) return this.div(e.neg()).neg(); | ||
i = y; | ||
i = v; | ||
} | ||
@@ -757,3 +757,3 @@ for (r = this; r.gte(e); ) { | ||
}) : "object" == typeof module && module.exports ? module.exports = t : e.EventEmitter = t; | ||
}(this || {}); | ||
}("undefined" != typeof window ? window : this || {}); | ||
@@ -760,0 +760,0 @@ osc = osc || require("./osc.js"); |
@@ -1,2 +0,2 @@ | ||
/*! osc.js 2.2.3, Copyright 2018 Colin Clark | github.com/colinbdclark/osc.js */ | ||
/*! osc.js 2.2.4, Copyright 2018 Colin Clark | github.com/colinbdclark/osc.js */ | ||
@@ -750,3 +750,3 @@ | ||
}) : "object" == typeof module && module.exports ? module.exports = e : t.EventEmitter = e; | ||
}(this || {}); | ||
}("undefined" != typeof window ? window : this || {}); | ||
@@ -753,0 +753,0 @@ osc = osc || require("./osc.js"); |
@@ -1,2 +0,2 @@ | ||
/*! osc.js 2.2.3, Copyright 2018 Colin Clark | github.com/colinbdclark/osc.js */ | ||
/*! osc.js 2.2.4, Copyright 2018 Colin Clark | github.com/colinbdclark/osc.js */ | ||
@@ -3,0 +3,0 @@ (function (root, factory) { |
@@ -1,2 +0,2 @@ | ||
/*! osc.js 2.2.3, Copyright 2018 Colin Clark | github.com/colinbdclark/osc.js */ | ||
/*! osc.js 2.2.4, Copyright 2018 Colin Clark | github.com/colinbdclark/osc.js */ | ||
@@ -3,0 +3,0 @@ |
@@ -1,2 +0,2 @@ | ||
/*! osc.js 2.2.3, Copyright 2018 Colin Clark | github.com/colinbdclark/osc.js */ | ||
/*! osc.js 2.2.4, Copyright 2018 Colin Clark | github.com/colinbdclark/osc.js */ | ||
@@ -3,0 +3,0 @@ /* |
@@ -1,2 +0,2 @@ | ||
/*! osc.js 2.2.3, Copyright 2018 Colin Clark | github.com/colinbdclark/osc.js */ | ||
/*! osc.js 2.2.4, Copyright 2018 Colin Clark | github.com/colinbdclark/osc.js */ | ||
@@ -3,0 +3,0 @@ |
{ | ||
"name": "osc", | ||
"main": "src/platforms/osc-node.js", | ||
"version": "2.2.3", | ||
"version": "2.2.4", | ||
"description": "A JavaScript Open Sound Control (OSC) library that works in Node.js and the browser.", | ||
@@ -36,10 +36,10 @@ "author": "Colin Clark", | ||
"requirejs": "2.3.5", | ||
"testem": "2.8.0" | ||
"testem": "2.9.2" | ||
}, | ||
"dependencies": { | ||
"long": "4.0.0", | ||
"serialport": "6.2.0", | ||
"serialport": "6.2.2", | ||
"slip": "1.0.2", | ||
"wolfy87-eventemitter": "5.2.4", | ||
"ws": "5.2.0" | ||
"wolfy87-eventemitter": "5.2.5", | ||
"ws": "6.0.0" | ||
}, | ||
@@ -46,0 +46,0 @@ "scripts": { |
@@ -16,16 +16,2 @@ /* | ||
var requireModules = function (paths) { | ||
if (paths.forEach === undefined) { | ||
paths = [paths]; | ||
} | ||
var modules = []; | ||
paths.forEach(function (path) { | ||
var module = require(path); | ||
modules.push(module); | ||
}); | ||
return modules; | ||
}; | ||
var shallowMerge = function (target, toMerge) { | ||
@@ -50,7 +36,7 @@ target = target || {}; | ||
WebSocket = require("ws"), | ||
modules = requireModules([ | ||
"../osc.js", | ||
"../osc-transports.js", | ||
"./osc-websocket-client.js" | ||
]), | ||
modules = [ | ||
require("../osc.js"), | ||
require("../osc-transports.js"), | ||
require("./osc-websocket-client.js") | ||
], | ||
osc = shallowMerge({}, modules); | ||
@@ -57,0 +43,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
4
993420
16186
+ Added@serialport/parser-byte-length@1.0.5(transitive)
+ Added@serialport/parser-cctalk@1.0.5(transitive)
+ Added@serialport/parser-delimiter@1.0.5(transitive)
+ Added@serialport/parser-readline@1.0.5(transitive)
+ Added@serialport/parser-ready@1.0.5(transitive)
+ Added@serialport/parser-regex@1.0.5(transitive)
+ Addedprebuild-install@4.0.0(transitive)
+ Addedserialport@6.2.2(transitive)
+ Addedwolfy87-eventemitter@5.2.5(transitive)
+ Addedws@6.0.0(transitive)
- Removedparser-byte-length@1.0.2(transitive)
- Removedparser-cctalk@1.0.2(transitive)
- Removedparser-delimiter@1.0.2(transitive)
- Removedparser-readline@1.0.2(transitive)
- Removedparser-ready@1.0.2(transitive)
- Removedparser-regex@1.0.2(transitive)
- Removedprebuild-install@2.5.3(transitive)
- Removedserialport@6.2.0(transitive)
- Removedwolfy87-eventemitter@5.2.4(transitive)
- Removedws@5.2.0(transitive)
Updatedserialport@6.2.2
Updatedwolfy87-eventemitter@5.2.5
Updatedws@6.0.0