Skip to content

Commit 5e5f684

Browse files
committed
Renamed systemInfo to interpreterInfo
1 parent f3ca416 commit 5e5f684

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/__tests__/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('RemoteExecution', () => {
2424

2525
expect(motionBuilderSocket.isOpen()).toBe(true);
2626

27-
expect(motionBuilderSocket.systemInfo).toMatch(/^Python [0-9]/);
27+
expect(motionBuilderSocket.interpreterInfo).toMatch(/^Python [0-9]/);
2828
});
2929

3030
test('Hello World', async () => {

src/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ class ErrorWithCode extends Error {
99
export class MotionBuilderSocket {
1010
readonly port = 4242;
1111

12-
/** System information about the connected MotionBuilder instance */
13-
public systemInfo?: string;
12+
/** Python interpreter info regarding the connected MotionBuilder instance */
13+
public interpreterInfo?: string;
1414

1515
private socket?: net.Socket;
1616
private isReady = false;
@@ -121,9 +121,9 @@ export class MotionBuilderSocket {
121121
this.socket.on('data', (data) => {
122122
const dataStr = data.toString().trim();
123123

124-
const systemInfoMatch = dataStr.match(/Python [0-9].*?(\n|$)/);
125-
if (systemInfoMatch)
126-
this.systemInfo = systemInfoMatch[0].trimEnd();
124+
const interpreterMatch = dataStr.match(/Python [0-9].*?(\n|$)/);
125+
if (interpreterMatch)
126+
this.interpreterInfo = interpreterMatch[0].trimEnd();
127127

128128
if (dataStr.endsWith('>>>')) {
129129
this.socket?.removeAllListeners('data');

0 commit comments

Comments
 (0)