Skip to content

Commit 7713f59

Browse files
committed
1.0.4
1 parent 45c235f commit 7713f59

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"author": {
55
"name": "xiaobaidadada"
66
},
7-
"version": "1.0.3",
7+
"version": "1.0.4",
88
"license": "MIT",
99
"main": "./lib/index.js",
1010
"types": "./typings/node-pty.d.ts",

src/windowsPtyAgent.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,8 @@ export class WindowsPtyAgent {
217217
this.getConsoleProcessList = __non_webpack_require__('../build/Release/conpty_console_list.node').getConsoleProcessList;
218218
}
219219
} catch (err) {
220-
this.getConsoleProcessList = __non_webpack_require__('../build/Debug/conpty_console_list.node').getConsoleProcessList;
220+
const debugPath = '../build/Debug/conpty_console_list.node';
221+
this.getConsoleProcessList = require(debugPath).getConsoleProcessList;
221222
}
222223
return new Promise<number[]>(resolve => {
223224
// const agent = fork(path.join(__dirname, 'conpty_console_list_agent'), [ this._innerPid.toString() ]);

0 commit comments

Comments
 (0)