pear-electron 1.4.8 → 1.4.10

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 (3) hide show
  1. package/index.js +2 -1
  2. package/package.json +2 -3
  3. package/bin.js +0 -9
package/index.js CHANGED
@@ -1,3 +1,4 @@
1
1
  /** @typedef {import('pear-interface')} */ /* global Pear */
2
2
  'use strict'
3
- module.exports = Pear.constructor.UI ? Pear[Pear.constructor.UI] : require('./runtime')
3
+ module.exports = Pear.constructor.UI ? Pear[Pear.constructor.UI] : (Pear.pipe ? require('./pre') : require('./runtime'))
4
+
package/package.json CHANGED
@@ -1,9 +1,8 @@
1
1
  {
2
2
  "name": "pear-electron",
3
- "version": "1.4.8",
3
+ "version": "1.4.10",
4
4
  "description": "Pear User-Interface Library for Electron",
5
5
  "main": "index.js",
6
- "bin": "bin.js",
7
6
  "scripts": {
8
7
  "bootstrap": "pear run scripts/bootstrap.js",
9
8
  "decal": "pear run scripts/decal.js",
@@ -18,7 +17,7 @@
18
17
  "pre.js"
19
18
  ],
20
19
  "pear": {
21
- "bootstrap": "pear://0.2632.yceb7sjhgfzsnza7oc38hy3oxu9dhnywi3mzxdm9ubc48kjnxqgo",
20
+ "bootstrap": "pear://0.2637.yceb7sjhgfzsnza7oc38hy3oxu9dhnywi3mzxdm9ubc48kjnxqgo",
22
21
  "stage": {
23
22
  "skipWarmup": "true",
24
23
  "only": [
package/bin.js DELETED
@@ -1,9 +0,0 @@
1
- #!/usr/bin/env pear
2
- /* global Pear */
3
- if (!global.Pear && global.process) {
4
- const { status } = require('child_process').spawnSync('pear', process.argv.slice(1), { stdio: 'inherit', shell: true })
5
- process.exit(status)
6
- }
7
- if (Pear.pipe === undefined) throw new Error('Incompatible with current Pear version (must be v2+)')
8
- if (Pear.pipe === null) throw new Error('This is a pre script: must have Pear.pipe')
9
- require('./pre')