bun_bun_bundle 0.5.1 → 0.5.2

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 01053ee4f895f8d24614790b64ba21f8b61ba6acbeb538007e88fed6b20d1a92
4
- data.tar.gz: 3f55e7edfa1b5fede049bad52c22a6e28faac5c77cef230083d3ecd48a2c7cbc
3
+ metadata.gz: abea1141b149da530439b191dda1330c09bd9fe4cf59ff8d13d03fb9c507e8d0
4
+ data.tar.gz: a52ee15896ef53643cc62ba368e200bd76306fda27a7379509bbfe52e368998e
5
5
  SHA512:
6
- metadata.gz: 90d8e766d94a452ea7364a1c55e061d927a9e5af80e35aa616ef418eadacaccdd85248845ba912e98d83e08b07440c40bbc984b3632f805549977f52879e543f
7
- data.tar.gz: c62aed94154ca7066a12fde9aa994013b36c67f28ed8c894de902564b4b3a802a08f8103fe71d6e2efd28d557fa5b6463dc5226058f099c9c739f94e47115d9e
6
+ metadata.gz: 9309ab82def987376ff3ac02cb3c7bc2f21605fc2475afd5f521a69338aef17d00eb18a93e11165e68dc2965094ae04030aad5f022cdd0126cf2279056963731
7
+ data.tar.gz: 9f4aa14608e0d6c1c7a56b15eedc97e6fa5a24b3f1745626c988acf11c5d2f986b5cdbb7e28c5fb1b8b965480d509b929abff4f1563eb95677c285e41b9e6f7b
data/README.md CHANGED
@@ -217,6 +217,17 @@ Place a `config/bun.json` in your project root:
217
217
  > Creating a `bun.json` file is entirely optional. All values shown above are
218
218
  > defaults, you only need to specify what you want to override.
219
219
 
220
+ If you're developing inside a Docker container, set `listenHost` so the
221
+ WebSocket server accepts connections from the host machine:
222
+
223
+ ```json
224
+ {
225
+ "devServer": {
226
+ "listenHost": "0.0.0.0"
227
+ }
228
+ }
229
+ ```
230
+
220
231
  ## Plugins
221
232
 
222
233
  Three plugins are included out of the box.
@@ -268,12 +268,13 @@ export default {
268
268
  await this.build()
269
269
  await this.watch()
270
270
 
271
- const {host, port, secure} = this.config.devServer
271
+ const {host, listenHost, port, secure} = this.config.devServer
272
+ const hostname = listenHost || (secure ? '0.0.0.0' : host)
272
273
  const debug = this.debug
273
274
  const wsClients = this.wsClients
274
275
 
275
276
  Bun.serve({
276
- hostname: secure ? '0.0.0.0' : host,
277
+ hostname,
277
278
  port,
278
279
  fetch(req, server) {
279
280
  if (server.upgrade(req)) return
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BunBunBundle
4
- VERSION = '0.5.1'
4
+ VERSION = '0.5.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bun_bun_bundle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wout Fierens