Skip to content

Commit

Permalink
Updates to latest version of all third party dependencies.
Browse files Browse the repository at this point in the history
  • Loading branch information
colinbdclark committed Apr 13, 2022
1 parent 6c0b2d0 commit 071a7fd
Show file tree
Hide file tree
Showing 10 changed files with 65 additions and 64 deletions.
13 changes: 7 additions & 6 deletions dist/osc-browser.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! osc.js 2.4.2, Copyright 2022 Colin Clark | github.com/colinbdclark/osc.js */
/*! osc.js 2.4.3, Copyright 2022 Colin Clark | github.com/colinbdclark/osc.js */

/*
* osc.js: An Open Sound Control library for JavaScript that works in both the browser and Node.js
Expand Down Expand Up @@ -209,20 +209,21 @@ var osc = osc || {};
* @return {Uint8Array} a buffer containing the OSC-formatted string
*/
osc.writeString = function (str) {
var terminated = str + "\u0000",
len = terminated.length,
paddedLen = (len + 3) & ~0x03,
arr = new Uint8Array(paddedLen);

var encoder = osc.isBufferEnv ? osc.writeString.withBuffer :
osc.TextEncoder ? osc.writeString.withTextEncoder : null,
terminated = str + "\u0000",
encodedStr;

if (encoder) {
encodedStr = encoder(terminated);
}

for (var i = 0; i < terminated.length; i++) {
var len = encoder ? encodedStr.length : terminated.length,
paddedLen = (len + 3) & ~0x03,
arr = new Uint8Array(paddedLen);

for (var i = 0; i < len - 1; i++) {
var charCode = encoder ? encodedStr[i] : terminated.charCodeAt(i);
arr[i] = charCode;
}
Expand Down
13 changes: 6 additions & 7 deletions dist/osc-browser.min.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! osc.js 2.4.2, Copyright 2022 Colin Clark | github.com/colinbdclark/osc.js */
/*! osc.js 2.4.3, Copyright 2022 Colin Clark | github.com/colinbdclark/osc.js */
var osc = osc || {}, osc = (!function() {
"use strict";
osc.SECS_70YRS = 2208988800, osc.TWO_32 = 4294967296, osc.defaults = {
Expand Down Expand Up @@ -47,13 +47,12 @@ var osc = osc || {}, osc = (!function() {
}, osc.readString.withBuffer = function(e) {
return Buffer.from(e).toString("utf-8");
}, osc.writeString = function(e) {
var t, r = e + "\0", e = r.length, n = new Uint8Array(e + 3 & -4), i = osc.isBufferEnv ? osc.writeString.withBuffer : osc.TextEncoder ? osc.writeString.withTextEncoder : null;
i && (t = i(r));
for (var s = 0; s < r.length; s++) {
var o = i ? t[s] : r.charCodeAt(s);
n[s] = o;
for (var t, r = osc.isBufferEnv ? osc.writeString.withBuffer : osc.TextEncoder ? osc.writeString.withTextEncoder : null, n = e + "\0", i = (r && (t = r(n)),
(r ? t : n).length), s = new Uint8Array(i + 3 & -4), o = 0; o < i - 1; o++) {
var a = r ? t[o] : n.charCodeAt(o);
s[o] = a;
}
return n;
return s;
}, osc.writeString.withTextEncoder = function(e) {
return osc.TextEncoder.encode(e);
}, osc.writeString.withBuffer = function(e) {
Expand Down
13 changes: 7 additions & 6 deletions dist/osc-chromeapp.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! osc.js 2.4.2, Copyright 2022 Colin Clark | github.com/colinbdclark/osc.js */
/*! osc.js 2.4.3, Copyright 2022 Colin Clark | github.com/colinbdclark/osc.js */

/*
* osc.js: An Open Sound Control library for JavaScript that works in both the browser and Node.js
Expand Down Expand Up @@ -209,20 +209,21 @@ var osc = osc || {};
* @return {Uint8Array} a buffer containing the OSC-formatted string
*/
osc.writeString = function (str) {
var terminated = str + "\u0000",
len = terminated.length,
paddedLen = (len + 3) & ~0x03,
arr = new Uint8Array(paddedLen);

var encoder = osc.isBufferEnv ? osc.writeString.withBuffer :
osc.TextEncoder ? osc.writeString.withTextEncoder : null,
terminated = str + "\u0000",
encodedStr;

if (encoder) {
encodedStr = encoder(terminated);
}

for (var i = 0; i < terminated.length; i++) {
var len = encoder ? encodedStr.length : terminated.length,
paddedLen = (len + 3) & ~0x03,
arr = new Uint8Array(paddedLen);

for (var i = 0; i < len - 1; i++) {
var charCode = encoder ? encodedStr[i] : terminated.charCodeAt(i);
arr[i] = charCode;
}
Expand Down
13 changes: 6 additions & 7 deletions dist/osc-chromeapp.min.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! osc.js 2.4.2, Copyright 2022 Colin Clark | github.com/colinbdclark/osc.js */
/*! osc.js 2.4.3, Copyright 2022 Colin Clark | github.com/colinbdclark/osc.js */
var osc = osc || {}, osc = (!function() {
"use strict";
osc.SECS_70YRS = 2208988800, osc.TWO_32 = 4294967296, osc.defaults = {
Expand Down Expand Up @@ -47,13 +47,12 @@ var osc = osc || {}, osc = (!function() {
}, osc.readString.withBuffer = function(e) {
return Buffer.from(e).toString("utf-8");
}, osc.writeString = function(e) {
var t, r = e + "\0", e = r.length, n = new Uint8Array(e + 3 & -4), i = osc.isBufferEnv ? osc.writeString.withBuffer : osc.TextEncoder ? osc.writeString.withTextEncoder : null;
i && (t = i(r));
for (var s = 0; s < r.length; s++) {
var o = i ? t[s] : r.charCodeAt(s);
n[s] = o;
for (var t, r = osc.isBufferEnv ? osc.writeString.withBuffer : osc.TextEncoder ? osc.writeString.withTextEncoder : null, n = e + "\0", i = (r && (t = r(n)),
(r ? t : n).length), s = new Uint8Array(i + 3 & -4), o = 0; o < i - 1; o++) {
var c = r ? t[o] : n.charCodeAt(o);
s[o] = c;
}
return n;
return s;
}, osc.writeString.withTextEncoder = function(e) {
return osc.TextEncoder.encode(e);
}, osc.writeString.withBuffer = function(e) {
Expand Down
13 changes: 7 additions & 6 deletions dist/osc-module.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! osc.js 2.4.2, Copyright 2022 Colin Clark | github.com/colinbdclark/osc.js */
/*! osc.js 2.4.3, Copyright 2022 Colin Clark | github.com/colinbdclark/osc.js */

(function (root, factory) {
if (typeof exports === "object") {
Expand Down Expand Up @@ -227,20 +227,21 @@ var osc = osc || {};
* @return {Uint8Array} a buffer containing the OSC-formatted string
*/
osc.writeString = function (str) {
var terminated = str + "\u0000",
len = terminated.length,
paddedLen = (len + 3) & ~0x03,
arr = new Uint8Array(paddedLen);

var encoder = osc.isBufferEnv ? osc.writeString.withBuffer :
osc.TextEncoder ? osc.writeString.withTextEncoder : null,
terminated = str + "\u0000",
encodedStr;

if (encoder) {
encodedStr = encoder(terminated);
}

for (var i = 0; i < terminated.length; i++) {
var len = encoder ? encodedStr.length : terminated.length,
paddedLen = (len + 3) & ~0x03,
arr = new Uint8Array(paddedLen);

for (var i = 0; i < len - 1; i++) {
var charCode = encoder ? encodedStr[i] : terminated.charCodeAt(i);
arr[i] = charCode;
}
Expand Down
13 changes: 6 additions & 7 deletions dist/osc-module.min.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! osc.js 2.4.2, Copyright 2022 Colin Clark | github.com/colinbdclark/osc.js */
/*! osc.js 2.4.3, Copyright 2022 Colin Clark | github.com/colinbdclark/osc.js */
!function(i, o) {
"object" == typeof exports ? (i.osc = exports, o(0, require("slip"), require("EventEmitter"), require("long"))) : "function" == typeof define && define.amd ? define([ "exports", "slip", "EventEmitter", "long" ], function(e, t, r, n) {
return i.osc = e, i.osc, o(0, t, r, n);
Expand Down Expand Up @@ -51,13 +51,12 @@
}, c.readString.withBuffer = function(e) {
return Buffer.from(e).toString("utf-8");
}, c.writeString = function(e) {
var t, r = e + "\0", e = r.length, n = new Uint8Array(e + 3 & -4), i = c.isBufferEnv ? c.writeString.withBuffer : c.TextEncoder ? c.writeString.withTextEncoder : null;
i && (t = i(r));
for (var o = 0; o < r.length; o++) {
var a = i ? t[o] : r.charCodeAt(o);
n[o] = a;
for (var t, r = c.isBufferEnv ? c.writeString.withBuffer : c.TextEncoder ? c.writeString.withTextEncoder : null, n = e + "\0", i = (r && (t = r(n)),
(r ? t : n).length), o = new Uint8Array(i + 3 & -4), a = 0; a < i - 1; a++) {
var s = r ? t[a] : n.charCodeAt(a);
o[a] = s;
}
return n;
return o;
}, c.writeString.withTextEncoder = function(e) {
return c.TextEncoder.encode(e);
}, c.writeString.withBuffer = function(e) {
Expand Down
13 changes: 7 additions & 6 deletions dist/osc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! osc.js 2.4.2, Copyright 2022 Colin Clark | github.com/colinbdclark/osc.js */
/*! osc.js 2.4.3, Copyright 2022 Colin Clark | github.com/colinbdclark/osc.js */

/*
* osc.js: An Open Sound Control library for JavaScript that works in both the browser and Node.js
Expand Down Expand Up @@ -209,20 +209,21 @@ var osc = osc || {};
* @return {Uint8Array} a buffer containing the OSC-formatted string
*/
osc.writeString = function (str) {
var terminated = str + "\u0000",
len = terminated.length,
paddedLen = (len + 3) & ~0x03,
arr = new Uint8Array(paddedLen);

var encoder = osc.isBufferEnv ? osc.writeString.withBuffer :
osc.TextEncoder ? osc.writeString.withTextEncoder : null,
terminated = str + "\u0000",
encodedStr;

if (encoder) {
encodedStr = encoder(terminated);
}

for (var i = 0; i < terminated.length; i++) {
var len = encoder ? encodedStr.length : terminated.length,
paddedLen = (len + 3) & ~0x03,
arr = new Uint8Array(paddedLen);

for (var i = 0; i < len - 1; i++) {
var charCode = encoder ? encodedStr[i] : terminated.charCodeAt(i);
arr[i] = charCode;
}
Expand Down
13 changes: 6 additions & 7 deletions dist/osc.min.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*! osc.js 2.4.2, Copyright 2022 Colin Clark | github.com/colinbdclark/osc.js */
/*! osc.js 2.4.3, Copyright 2022 Colin Clark | github.com/colinbdclark/osc.js */
var osc = osc || {};

!function() {
Expand Down Expand Up @@ -49,13 +49,12 @@ var osc = osc || {};
}, osc.readString.withBuffer = function(e) {
return Buffer.from(e).toString("utf-8");
}, osc.writeString = function(e) {
var r, t = e + "\0", e = t.length, n = new Uint8Array(e + 3 & -4), o = osc.isBufferEnv ? osc.writeString.withBuffer : osc.TextEncoder ? osc.writeString.withTextEncoder : null;
o && (r = o(t));
for (var i = 0; i < t.length; i++) {
var a = o ? r[i] : t.charCodeAt(i);
n[i] = a;
for (var r, t = osc.isBufferEnv ? osc.writeString.withBuffer : osc.TextEncoder ? osc.writeString.withTextEncoder : null, n = e + "\0", o = (t && (r = t(n)),
(t ? r : n).length), i = new Uint8Array(o + 3 & -4), a = 0; a < o - 1; a++) {
var s = t ? r[a] : n.charCodeAt(a);
i[a] = s;
}
return n;
return i;
}, osc.writeString.withTextEncoder = function(e) {
return osc.TextEncoder.encode(e);
}, osc.writeString.withBuffer = function(e) {
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "osc",
"main": "src/platforms/osc-node.js",
"version": "2.4.2",
"version": "2.4.3",
"description": "A JavaScript Open Sound Control (OSC) library that works in Node.js and the browser.",
"author": "Colin Clark",
"homepage": "https://github.com/colinbdclark/osc.js",
Expand All @@ -24,30 +24,30 @@
],
"readmeFilename": "README.md",
"devDependencies": {
"grunt": "1.4.1",
"grunt": "1.5.2",
"grunt-contrib-clean": "2.0.0",
"grunt-contrib-concat": "1.0.1",
"grunt-contrib-concat": "2.1.0",
"grunt-replace": "2.0.2",
"grunt-contrib-jshint": "3.0.0",
"grunt-contrib-uglify": "5.0.1",
"infusion": "3.0.0-dev.20210706T155146Z.9ffd91df3",
"grunt-contrib-jshint": "3.2.0",
"grunt-contrib-uglify": "5.1.0",
"infusion": "3.0.0",
"jquery": "3.6.0",
"node-jqunit": "1.1.9",
"requirejs": "2.3.6",
"testem": "3.4.2"
"testem": "3.6.0"
},
"dependencies": {
"long": "4.0.0",
"slip": "1.0.2",
"wolfy87-eventemitter": "5.2.9",
"ws": "7.5.3"
"ws": "8.5.0"
},
"optionalDependencies": {
"serialport": "10.4.0"
},
"scripts": {
"test": "npm run node-test && grunt && npm run browser-test",
"build": "grunt",
"build": "node_modules/.bin/grunt",
"node-test": "node tests/node-all-tests.js",
"browser-test": "testem ci --file tests/testem.json",
"clean-test": "./clean-npm.sh && npm install && npm test"
Expand Down
7 changes: 4 additions & 3 deletions tests/electron-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
"version": "1.0.0",
"author": "Colin Clark",
"dependencies": {
"electron": "13.1.7",
"infusion-electron": "0.8.0",
"electron": "18.0.3",
"infusion-electron": "0.8.1",
"osc": "../.."
},
"scripts": {
"test": "npm rebuild && node_modules/.bin/electron ."
"test": "node_modules/.bin/electron .",
"test-rebuild": "npm rebuild && npm test"
}
}

0 comments on commit 071a7fd

Please sign in to comment.