@blakearoberts/visage 0.0.5-rc.15 → 0.0.5-rc.17
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 +2 -1
- package/dist/render/nginx.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -5,6 +5,7 @@ import { parse, stringify } from 'yaml';
|
|
|
5
5
|
import { spawnSync, spawn } from 'node:child_process';
|
|
6
6
|
import { hashSync } from 'bcryptjs';
|
|
7
7
|
import { Eta } from 'eta';
|
|
8
|
+
import { isIP } from 'node:net';
|
|
8
9
|
|
|
9
10
|
const VisageEdgeKeyHeader$1 = 'X-Visage-Edge-Key';
|
|
10
11
|
const DockerImages = parse(readFileSync(new URL('../docker-compose.images.yml', import.meta.url), 'utf8')).services;
|
|
@@ -986,7 +987,7 @@ function renderNginxConfig(config) {
|
|
|
986
987
|
...upstream,
|
|
987
988
|
resolve: upstream.host === 'host.docker.internal'
|
|
988
989
|
? process.platform !== 'linux'
|
|
989
|
-
: upstream.
|
|
990
|
+
: isIP(upstream.host) === 0,
|
|
990
991
|
},
|
|
991
992
|
])),
|
|
992
993
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nginx.d.ts","sourceRoot":"","sources":["../../src/render/nginx.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"nginx.d.ts","sourceRoot":"","sources":["../../src/render/nginx.ts"],"names":[],"mappings":"AAKA,OAAO,EAAuB,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AA4KnE,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,YAAY,GAAG,IAAI,CAQ3D"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blakearoberts/visage",
|
|
3
|
-
"version": "0.0.5-rc.
|
|
3
|
+
"version": "0.0.5-rc.17",
|
|
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",
|
|
@@ -61,11 +61,11 @@
|
|
|
61
61
|
"devDependencies": {
|
|
62
62
|
"@playwright/test": "^1.61.1",
|
|
63
63
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
64
|
-
"@types/node": "^26.1.
|
|
64
|
+
"@types/node": "^26.1.1",
|
|
65
65
|
"rollup": "^4.62.2",
|
|
66
66
|
"tslib": "^2.8.1",
|
|
67
|
-
"tsx": "^4.
|
|
67
|
+
"tsx": "^4.23.0",
|
|
68
68
|
"typescript": "^6.0.3",
|
|
69
|
-
"vite": "^8.1.
|
|
69
|
+
"vite": "^8.1.4"
|
|
70
70
|
}
|
|
71
71
|
}
|