pear-electron 1.3.3 → 1.3.5

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/runtime.js +4 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pear-electron",
3
- "version": "1.3.3",
3
+ "version": "1.3.5",
4
4
  "description": "Pear User-Interface Library for Electron",
5
5
  "main": "index.js",
6
6
  "bin": "bin.js",
@@ -51,7 +51,7 @@
51
51
  "iambus": "^1.0.3",
52
52
  "localdrive": "^1.12.1",
53
53
  "paparam": "^1.6.1",
54
- "pear-api": "^1.10.0",
54
+ "pear-api": "^1.11.0",
55
55
  "pear-ipc": "^6.1.0",
56
56
  "script-linker": "^2.5.3",
57
57
  "streamx": "^2.20.2",
package/runtime.js CHANGED
@@ -13,6 +13,7 @@ const parseLink = require('pear-api/parse-link')
13
13
  const Logger = require('pear-api/logger')
14
14
  const { ERR_INVALID_INPUT, ERR_INVALID_APPLING } = require('pear-api/errors')
15
15
  const { ansi, byteSize, byteDiff, outputter } = require('pear-api/terminal')
16
+ const { Pipe } = require('pear-api/worker')
16
17
  const run = require('pear-api/cmd/run')
17
18
  const pear = require('pear-api/cmd')
18
19
  const pkg = require('./package.json')
@@ -123,8 +124,8 @@ class PearElectron {
123
124
 
124
125
  argv = ['boot.bundle', '--rti', info, ...argv]
125
126
  const stdio = args.detach
126
- ? ['ignore', 'ignore', 'ignore', isWindows ? 'overlapped' : 'pipe']
127
- : ['ignore', 'inherit', 'pipe', isWindows ? 'overlapped' : 'pipe']
127
+ ? ['ignore', 'ignore', 'ignore', 'pipe', 'pipe']
128
+ : ['ignore', 'inherit', 'pipe', 'pipe', 'pipe']
128
129
  const options = {
129
130
  stdio,
130
131
  cwd,
@@ -144,7 +145,7 @@ class PearElectron {
144
145
 
145
146
  sp.on('exit', (code) => { Pear.exitCode = code })
146
147
 
147
- const pipe = sp.stdio[3]
148
+ const pipe = new Pipe([sp.stdio[3], sp.stdio[4]])
148
149
 
149
150
  if (args.detach) return pipe
150
151