pinokiod 7.3.13 → 7.3.14
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/package.json
CHANGED
|
@@ -2,7 +2,7 @@ const test = require('node:test')
|
|
|
2
2
|
const assert = require('node:assert/strict')
|
|
3
3
|
const Module = require('node:module')
|
|
4
4
|
|
|
5
|
-
async function runWithFakeShell ({ platform = 'win32', chunks, response, waitForBreak = false }) {
|
|
5
|
+
async function runWithFakeShell ({ platform = 'win32', chunks, response, waitForBreak = false, on }) {
|
|
6
6
|
class FakeShell {
|
|
7
7
|
constructor () {
|
|
8
8
|
this.id = 'fake-shell'
|
|
@@ -75,7 +75,7 @@ async function runWithFakeShell ({ platform = 'win32', chunks, response, waitFor
|
|
|
75
75
|
}
|
|
76
76
|
const output = []
|
|
77
77
|
const shells = new Shells(kernel)
|
|
78
|
-
const result = await shells.run({ message: 'python wgp.py' }, { cwd: '/tmp/app' }, (stream) => {
|
|
78
|
+
const result = await shells.run({ message: 'python wgp.py', on }, { cwd: '/tmp/app' }, (stream) => {
|
|
79
79
|
output.push(stream.raw || '')
|
|
80
80
|
})
|
|
81
81
|
|