@blakearoberts/visage 0.0.5-rc.1 → 0.0.5-rc.3

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/dist/index.js CHANGED
@@ -670,12 +670,6 @@ function writeComposeConfig(config) {
670
670
  }
671
671
  function renderComposeConfig(config) {
672
672
  const { dex, nginx, oauth2_proxy, ...services } = config.services;
673
- const bridge = spawnSync('docker', [
674
- 'network',
675
- 'inspect',
676
- 'bridge',
677
- '--format={{ (index .IPAM.Config 0).Gateway }}',
678
- ], { encoding: 'utf8' }).stdout.trim();
679
673
  return stringify({
680
674
  secrets: {
681
675
  [config.secrets.cookieSecret]: {
@@ -711,7 +705,9 @@ function renderComposeConfig(config) {
711
705
  ? {
712
706
  vite_loopback: {
713
707
  image: DockerImages.socat.image,
714
- command: `tcp-listen:${config.upstreams.vite.port},fork,bind=${bridge} tcp-connect:127.0.0.1:${config.upstreams.vite.port}`,
708
+ command: `tcp-listen:${config.upstreams.vite.port},fork,bind=host.docker.internal ` +
709
+ `tcp-connect:127.0.0.1:${config.upstreams.vite.port}`,
710
+ extra_hosts: ['host.docker.internal:host-gateway'],
715
711
  network_mode: 'host',
716
712
  profiles: ['linux'],
717
713
  restart: 'always',
@@ -1 +1 @@
1
- {"version":3,"file":"compose.d.ts","sourceRoot":"","sources":["../../src/render/compose.ts"],"names":[],"mappings":"AAMA,OAAO,EAAgB,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AAE5D,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAI7D"}
1
+ {"version":3,"file":"compose.d.ts","sourceRoot":"","sources":["../../src/render/compose.ts"],"names":[],"mappings":"AAKA,OAAO,EAAgB,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AAE5D,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAI7D"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blakearoberts/visage",
3
- "version": "0.0.5-rc.1",
3
+ "version": "0.0.5-rc.3",
4
4
  "description": "Vite plugin for local development with HMR and OIDC session cookie lifecycle semantics.",
5
5
  "type": "module",
6
6
  "author": "Blake Roberts",
@@ -59,13 +59,13 @@
59
59
  "vite": "^8.0.0"
60
60
  },
61
61
  "devDependencies": {
62
- "@playwright/test": "^1.61.0",
62
+ "@playwright/test": "^1.61.1",
63
63
  "@rollup/plugin-typescript": "^12.3.0",
64
- "@types/node": "^26.0.0",
65
- "rollup": "^4.62.1",
64
+ "@types/node": "^26.0.1",
65
+ "rollup": "^4.62.2",
66
66
  "tslib": "^2.8.1",
67
67
  "tsx": "^4.22.3",
68
68
  "typescript": "^6.0.3",
69
- "vite": "^8.0.13"
69
+ "vite": "^8.1.2"
70
70
  }
71
71
  }