alphatheta-connect 0.25.2 → 0.26.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.
- package/lib/cli.js +22 -13
- package/lib/cli.js.map +1 -1
- package/lib/index.js +22 -13
- package/lib/index.js.map +1 -1
- package/lib/virtualcdj/stagehand.d.ts +13 -3
- package/package.json +7 -1
|
@@ -11,9 +11,19 @@ export declare enum StagehandStartupStage {
|
|
|
11
11
|
KeepAlive = 6
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
|
-
*
|
|
14
|
+
* The protocol-layer MAC a Stagehand device embeds in its 0x02 claim and 0x06
|
|
15
|
+
* keep-alive: the AlphaTheta OUI (c8:3d:fc) followed by the low three bytes of
|
|
16
|
+
* the interface's own MAC.
|
|
17
|
+
*
|
|
18
|
+
* This must stay stable for the life of the host. A CDJ-3000 records a peer by
|
|
19
|
+
* the identity in its claim, and once it holds a record for our IP it ignores
|
|
20
|
+
* later claims from the same IP that carry a different MAC or device number:
|
|
21
|
+
* the new peer never receives the unicast status/position stream. Observed on
|
|
22
|
+
* emulated CDJ-3000 firmware 3.20: a freshly randomized identity on every
|
|
23
|
+
* connect() was served once and then never again until the player rebooted,
|
|
24
|
+
* while the previously registered identity kept being served immediately.
|
|
15
25
|
*/
|
|
16
|
-
export declare function
|
|
26
|
+
export declare function getStagehandMac(iface: NetworkInterfaceInfoIPv4): Uint8Array;
|
|
17
27
|
/**
|
|
18
28
|
* Generates a random Stagehand device ID in the observed range of 141 to 211.
|
|
19
29
|
*/
|
|
@@ -24,7 +34,7 @@ export declare function generateStagehandDeviceId(): number;
|
|
|
24
34
|
* @param iface - The network interface to use
|
|
25
35
|
* @param id - The device ID to use (defaults to random Stagehand ID)
|
|
26
36
|
* @param name - The device name (defaults to 'Stagehand')
|
|
27
|
-
* @param macAddr - The
|
|
37
|
+
* @param macAddr - The protocol-layer MAC (defaults to one derived from iface)
|
|
28
38
|
*/
|
|
29
39
|
export declare const getVirtualStagehand: (iface: NetworkInterfaceInfoIPv4, id?: DeviceID, name?: string, macAddr?: Uint8Array<ArrayBufferLike>) => Device;
|
|
30
40
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "alphatheta-connect",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"author": "Evan Purkhiser <evanpurkhiser@gmail.com>",
|
|
6
6
|
"contributors": [
|
|
@@ -32,6 +32,8 @@
|
|
|
32
32
|
"build": "webpack",
|
|
33
33
|
"build-docs": "typedoc --out docs src/index.ts",
|
|
34
34
|
"test": "jest",
|
|
35
|
+
"build-examples": "webpack --config webpack.examples.config.ts",
|
|
36
|
+
"stagehand": "npm run build-examples && node lib/examples/stagehand-monitor.js",
|
|
35
37
|
"lint": "eslint src/**/*.ts tests/**/*.ts",
|
|
36
38
|
"preversion": "yarn lint; yarn test",
|
|
37
39
|
"prepare": "ts-patch install -s && npm run build",
|
|
@@ -114,5 +116,9 @@
|
|
|
114
116
|
},
|
|
115
117
|
"resolutions": {
|
|
116
118
|
"nan": "^2.28.0"
|
|
119
|
+
},
|
|
120
|
+
"allowScripts": {
|
|
121
|
+
"better-sqlite3-multiple-ciphers": true,
|
|
122
|
+
"cap": true
|
|
117
123
|
}
|
|
118
124
|
}
|