node-osc 9.1.6 → 10.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5,6 +5,10 @@ on:
|
|
|
5
5
|
|
|
6
6
|
name: Create Release
|
|
7
7
|
|
|
8
|
+
permissions:
|
|
9
|
+
id-token: write
|
|
10
|
+
contents: read
|
|
11
|
+
|
|
8
12
|
jobs:
|
|
9
13
|
publish-to-npm:
|
|
10
14
|
name: Publish to npm
|
|
@@ -17,17 +21,15 @@ jobs:
|
|
|
17
21
|
- name: Setup node
|
|
18
22
|
uses: actions/setup-node@v4
|
|
19
23
|
with:
|
|
20
|
-
node-version:
|
|
24
|
+
node-version: 22
|
|
21
25
|
registry-url: 'https://registry.npmjs.org'
|
|
22
26
|
cache: npm
|
|
23
|
-
- name: Install latest npm
|
|
24
|
-
run: npm
|
|
27
|
+
- name: Install latest npm
|
|
28
|
+
run: npm i -g npm
|
|
25
29
|
- name: Install dependencies and build
|
|
26
30
|
run: npm ci
|
|
27
31
|
- name: Publish package
|
|
28
|
-
run: npm publish
|
|
29
|
-
env:
|
|
30
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
32
|
+
run: npm publish
|
|
31
33
|
|
|
32
34
|
create-github-release:
|
|
33
35
|
name: Create GitHub Release
|
package/examples/esm.mjs
CHANGED
|
@@ -7,8 +7,8 @@ server.on('listening', () => {
|
|
|
7
7
|
console.log('OSC Server is Listening');
|
|
8
8
|
});
|
|
9
9
|
|
|
10
|
-
server.on('message', (msg) => {
|
|
11
|
-
console.log(`Message: ${msg}`);
|
|
10
|
+
server.on('message', (msg, rinfo) => {
|
|
11
|
+
console.log(`Message: ${msg}\nReceived from: ${rinfo.address}:${rinfo.port}`);
|
|
12
12
|
server.close();
|
|
13
13
|
});
|
|
14
14
|
|
package/examples/server.js
CHANGED
|
@@ -3,7 +3,7 @@ var { Server } = require('node-osc');
|
|
|
3
3
|
|
|
4
4
|
var oscServer = new Server(3333, '0.0.0.0');
|
|
5
5
|
|
|
6
|
-
oscServer.on('message', function (msg) {
|
|
7
|
-
console.log(`Message: ${msg}`);
|
|
6
|
+
oscServer.on('message', function (msg, rinfo) {
|
|
7
|
+
console.log(`Message: ${msg}\nReceived from: ${rinfo.address}:${rinfo.port}`);
|
|
8
8
|
oscServer.close();
|
|
9
9
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "node-osc",
|
|
3
3
|
"description": "pyOSC inspired library for sending and receiving OSC messages",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "10.0.0",
|
|
5
5
|
"exports": {
|
|
6
6
|
"require": "./dist/lib/index.js",
|
|
7
7
|
"default": "./lib/index.mjs"
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"email": "myles.borins@gmail.com"
|
|
18
18
|
},
|
|
19
19
|
"engines": {
|
|
20
|
-
"node": "^
|
|
20
|
+
"node": "^20.9.0 || ^22.11.0 || >=24.0.0"
|
|
21
21
|
},
|
|
22
22
|
"license": "LGPL-3.0-or-later",
|
|
23
23
|
"scripts": {
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"osc-min": "^1.1.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@eslint/js": "^9.
|
|
50
|
-
"eslint": "^9.
|
|
51
|
-
"globals": "^16.
|
|
52
|
-
"rollup": "^4.
|
|
49
|
+
"@eslint/js": "^9.32.0",
|
|
50
|
+
"eslint": "^9.32.0",
|
|
51
|
+
"globals": "^16.3.0",
|
|
52
|
+
"rollup": "^4.46.2",
|
|
53
53
|
"tap": "^21.1.0"
|
|
54
54
|
}
|
|
55
55
|
}
|