alphatheta-connect 0.23.1 → 0.23.2
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 +66 -8
- package/lib/cli.js.map +1 -1
- package/lib/db/getMetadata.d.ts +23 -1
- package/lib/db/index.d.ts +2 -1
- package/lib/index.js +66 -8
- package/lib/index.js.map +1 -1
- package/lib/remotedb/fields.d.ts +6 -6
- package/lib/remotedb/index.d.ts +7 -0
- package/package.json +1 -1
package/lib/remotedb/fields.d.ts
CHANGED
|
@@ -65,7 +65,7 @@ export declare const UInt8: {
|
|
|
65
65
|
data: Buffer;
|
|
66
66
|
};
|
|
67
67
|
type: NumberFieldType;
|
|
68
|
-
bytesToRead: 1 |
|
|
68
|
+
bytesToRead: 1 | 4 | 2;
|
|
69
69
|
};
|
|
70
70
|
/**
|
|
71
71
|
* Field representing a UInt16
|
|
@@ -81,7 +81,7 @@ export declare const UInt16: {
|
|
|
81
81
|
data: Buffer;
|
|
82
82
|
};
|
|
83
83
|
type: NumberFieldType;
|
|
84
|
-
bytesToRead: 1 |
|
|
84
|
+
bytesToRead: 1 | 4 | 2;
|
|
85
85
|
};
|
|
86
86
|
/**
|
|
87
87
|
* Field representing a UInt32
|
|
@@ -97,7 +97,7 @@ export declare const UInt32: {
|
|
|
97
97
|
data: Buffer;
|
|
98
98
|
};
|
|
99
99
|
type: NumberFieldType;
|
|
100
|
-
bytesToRead: 1 |
|
|
100
|
+
bytesToRead: 1 | 4 | 2;
|
|
101
101
|
};
|
|
102
102
|
/**
|
|
103
103
|
* Field representing a null-terminated big endian UTF-16 string
|
|
@@ -131,7 +131,7 @@ declare const fieldMap: {
|
|
|
131
131
|
data: Buffer;
|
|
132
132
|
};
|
|
133
133
|
type: NumberFieldType;
|
|
134
|
-
bytesToRead: 1 |
|
|
134
|
+
bytesToRead: 1 | 4 | 2;
|
|
135
135
|
};
|
|
136
136
|
readonly 16: {
|
|
137
137
|
new (value: number | Buffer): {
|
|
@@ -144,7 +144,7 @@ declare const fieldMap: {
|
|
|
144
144
|
data: Buffer;
|
|
145
145
|
};
|
|
146
146
|
type: NumberFieldType;
|
|
147
|
-
bytesToRead: 1 |
|
|
147
|
+
bytesToRead: 1 | 4 | 2;
|
|
148
148
|
};
|
|
149
149
|
readonly 17: {
|
|
150
150
|
new (value: number | Buffer): {
|
|
@@ -157,7 +157,7 @@ declare const fieldMap: {
|
|
|
157
157
|
data: Buffer;
|
|
158
158
|
};
|
|
159
159
|
type: NumberFieldType;
|
|
160
|
-
bytesToRead: 1 |
|
|
160
|
+
bytesToRead: 1 | 4 | 2;
|
|
161
161
|
};
|
|
162
162
|
readonly 20: typeof Binary;
|
|
163
163
|
readonly 38: typeof String;
|
package/lib/remotedb/index.d.ts
CHANGED
|
@@ -139,6 +139,13 @@ export declare class QueryInterface {
|
|
|
139
139
|
export default class RemoteDatabase {
|
|
140
140
|
#private;
|
|
141
141
|
constructor(deviceManager: DeviceManager, hostDevice: Device);
|
|
142
|
+
/**
|
|
143
|
+
* The device we introduce ourselves as when opening a remote database
|
|
144
|
+
* connection. CDJs only answer queries from a host announcing an ID in the
|
|
145
|
+
* 1-6 range, so callers need to read this before deciding a remote lookup is
|
|
146
|
+
* even possible.
|
|
147
|
+
*/
|
|
148
|
+
get hostDevice(): Device;
|
|
142
149
|
/**
|
|
143
150
|
* Open a connection to the specified device for querying
|
|
144
151
|
*/
|