Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

osc-min

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

osc-min - npm Package Compare versions

Comparing version 0.0.10 to 0.0.11

examples/osc-float-to-int.js

4

lib/index.js

@@ -66,2 +66,3 @@ (function() {

// + `timetag` - numeric value
// + `array` - array of _OSC Arguments_
//

@@ -76,3 +77,4 @@ // Note that `type` is always a string - i.e. `"true"` rather than `true`.

// If the argument is not an object, it will be interpreted as either
// `string`, `float`, or `blob`, depending on its javascript type.
// `string`, `float`, `array` or `blob`, depending on its javascript type
// (String, Number, Array, Buffer, respectively)
//

@@ -79,0 +81,0 @@ // + An _OSC Bundle_ is represented as a javascript object with the following layout

{
"name": "osc-min",
"version": "0.0.10",
"version": "0.0.11",
"main": "lib/index",

@@ -8,3 +8,3 @@ "author": {

"email": "russell.mcclellan@gmail.com",
"url": "http://www.ghostfact.com"
"url": "http://www.russellmcc.com"
},

@@ -11,0 +11,0 @@ "description": "Simple utilities for open sound control in node.js",

@@ -45,7 +45,8 @@ [![build status](https://secure.travis-ci.org/russellmcc/node-osc-min.png)](http://travis-ci.org/russellmcc/node-osc-min)

sock = udp.createSocket("udp4", function(msg, rinfo) {
var error;
try {
return console.log(osc.fromBuffer(msg));
} catch (error) {
} catch (_error) {
error = _error;
return console.log("invalid OSC packet");

@@ -61,3 +62,2 @@ }

sendHeartbeat = function() {

@@ -83,5 +83,4 @@ var buf;

sock = udp.createSocket("udp4", function(msg, rinfo) {
var redirected;
var error, redirected;
try {

@@ -92,3 +91,4 @@ redirected = osc.applyAddressTransform(msg, function(address) {

return sock.send(redirected, 0, redirected.length, outport, "localhost");
} catch (error) {
} catch (_error) {
error = _error;
return console.log("error redirecting: " + error);

@@ -191,2 +191,3 @@ }

+ `timetag` - numeric value
+ `array` - array of _OSC Arguments_

@@ -201,3 +202,4 @@ Note that `type` is always a string - i.e. `"true"` rather than `true`.

If the argument is not an object, it will be interpreted as either
`string`, `float`, or `blob`, depending on its javascript type.
`string`, `float`, `array` or `blob`, depending on its javascript type
(String, Number, Array, Buffer, respectively)

@@ -204,0 +206,0 @@ + An _OSC Bundle_ is represented as a javascript object with the following layout

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc