bare-runtime 1.27.0 → 1.28.1

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 +1 -3
  2. package/lib/spawn.js +2 -11
  3. package/package.json +15 -15
package/index.js CHANGED
@@ -27,9 +27,7 @@ module.exports = function runtime(referrer, opts) {
27
27
  }
28
28
 
29
29
  if (filename in mod === false) {
30
- throw new Error(
31
- `No binary found for target '${platform}-${arch}' for referrer '${referrer}'`
32
- )
30
+ throw new Error(`No binary found for target '${platform}-${arch}' for referrer '${referrer}'`)
33
31
  }
34
32
 
35
33
  return mod[filename]
package/lib/spawn.js CHANGED
@@ -17,9 +17,7 @@ module.exports = function spawn(referrer, opts) {
17
17
  const {
18
18
  suppressSignals = false,
19
19
  forwardExitCode = false,
20
- args = typeof Bare !== 'undefined'
21
- ? Bare.argv.slice(2)
22
- : process.argv.slice(2)
20
+ args = typeof Bare !== 'undefined' ? Bare.argv.slice(2) : process.argv.slice(2)
23
21
  } = opts
24
22
 
25
23
  const bin = runtime(referrer, opts)
@@ -33,14 +31,7 @@ module.exports = function spawn(referrer, opts) {
33
31
  const job = childProcess.spawn(bin, args, opts)
34
32
 
35
33
  if (suppressSignals) {
36
- const signals = [
37
- 'SIGUSR1',
38
- 'SIGUSR2',
39
- 'SIGTERM',
40
- 'SIGINT',
41
- 'SIGPIPE',
42
- 'SIGHUP'
43
- ]
34
+ const signals = ['SIGUSR1', 'SIGUSR2', 'SIGTERM', 'SIGINT', 'SIGPIPE', 'SIGHUP']
44
35
 
45
36
  for (const signal of signals) process.on(signal, onsignal)
46
37
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-runtime",
3
- "version": "1.27.0",
3
+ "version": "1.28.1",
4
4
  "description": "Prebuilt Bare binaries for macOS, iOS, Linux, Android, and Windows",
5
5
  "exports": {
6
6
  ".": "./index.js",
@@ -62,22 +62,22 @@
62
62
  "bare-subprocess": "^5.0.0"
63
63
  },
64
64
  "optionalDependencies": {
65
- "bare-runtime-android-arm": "1.27.0",
66
- "bare-runtime-android-arm64": "1.27.0",
67
- "bare-runtime-android-ia32": "1.27.0",
68
- "bare-runtime-android-x64": "1.27.0",
69
- "bare-runtime-darwin-arm64": "1.27.0",
70
- "bare-runtime-darwin-x64": "1.27.0",
71
- "bare-runtime-ios-arm64": "1.27.0",
72
- "bare-runtime-ios-arm64-simulator": "1.27.0",
73
- "bare-runtime-ios-x64-simulator": "1.27.0",
74
- "bare-runtime-linux-arm64": "1.27.0",
75
- "bare-runtime-linux-x64": "1.27.0",
76
- "bare-runtime-win32-arm64": "1.27.0",
77
- "bare-runtime-win32-x64": "1.27.0"
65
+ "bare-runtime-android-arm": "1.28.1",
66
+ "bare-runtime-android-arm64": "1.28.1",
67
+ "bare-runtime-android-ia32": "1.28.1",
68
+ "bare-runtime-android-x64": "1.28.1",
69
+ "bare-runtime-darwin-arm64": "1.28.1",
70
+ "bare-runtime-darwin-x64": "1.28.1",
71
+ "bare-runtime-ios-arm64": "1.28.1",
72
+ "bare-runtime-ios-arm64-simulator": "1.28.1",
73
+ "bare-runtime-ios-x64-simulator": "1.28.1",
74
+ "bare-runtime-linux-arm64": "1.28.1",
75
+ "bare-runtime-linux-x64": "1.28.1",
76
+ "bare-runtime-win32-arm64": "1.28.1",
77
+ "bare-runtime-win32-x64": "1.28.1"
78
78
  },
79
79
  "devDependencies": {
80
80
  "prettier": "^3.3.3",
81
- "prettier-config-standard": "^7.0.0"
81
+ "prettier-config-holepunch": "^2.0.0"
82
82
  }
83
83
  }