Skip to content

Commit e039e25

Browse files
authored
Merge pull request #162 from jeffbski/update-deps-2024-08-19
update [email protected] and other minor
2 parents a10322f + 672fd83 commit e039e25

File tree

7 files changed

+119
-145
lines changed

7 files changed

+119
-145
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ wait-on http-get://localhost:8000/foo && NEXT_CMD # wait for http 2XX GET
4545
wait-on https-get://myserver/foo && NEXT_CMD # wait for https 2XX GET
4646
wait-on tcp:4000 && NEXT_CMD # wait for service to listen on a TCP port
4747
wait-on socket:/path/mysock # wait for service to listen on domain socket
48-
wait-on http://unix:/var/SOCKPATH:/a/foo # wait for http HEAD on domain socket
49-
wait-on http-get://unix:/var/SOCKPATH:/a/foo # wait for http GET on domain socket
48+
wait-on http://unix:/var/SOCKPATH:http://server/a/foo # wait for http HEAD on domain socket
49+
wait-on http-get://unix:/var/SOCKPATH:http://server/a/foo # wait for http GET on domain socket
5050
```
5151

5252
```
@@ -81,8 +81,8 @@ Description:
8181
tcp: - TCP port is listening. ex: 1.2.3.4:9000 or foo.com:700
8282
socket: - Domain Socket is listening. ex: socket:/path/to/sock
8383
For http over socket, use http://unix:SOCK_PATH:URL_PATH
84-
like http://unix:/path/to/sock:/foo/bar or
85-
http-get://unix:/path/to/sock:/foo/bar
84+
like http://unix:/path/to/sock:http://server/foo/bar or
85+
http-get://unix:/path/to/sock:http://server/foo/bar
8686
8787
Standard Options:
8888
@@ -163,8 +163,8 @@ var opts = {
163163
'https-get://my.com/cat',
164164
'tcp:foo.com:8000',
165165
'socket:/my/sock',
166-
'http://unix:/my/sock:/my/url',
167-
'http-get://unix:/my/sock:/my/url'
166+
'http://unix:/my/sock:http://server/my/url',
167+
'http-get://unix:/my/sock:http://server/my/url'
168168
],
169169
delay: 1000, // initial delay in ms, default 0
170170
interval: 100, // poll interval in ms, default 250ms

bin/usage.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ Description:
2828
tcp: - TCP port is listening. ex: tcp:1.2.3.4:9000 or tcp:foo.com:700
2929
socket: - Domain Socket is listening. ex: socket:/path/to/sock
3030
For http over socket, use http://unix:SOCK_PATH:URL_PATH
31-
like http://unix:/path/to/sock:/foo/bar or
32-
http-get://unix:/path/to/sock:/foo/bar
31+
like http://unix:/path/to/sock:http://server/foo/bar or
32+
http-get://unix:/path/to/sock:http://server/foo/bar
3333

3434
Standard Options:
3535

lib/wait-on.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const fstat = promisify(fs.stat);
2020
const PREFIX_RE = /^((https?-get|https?|tcp|socket|file):)(.+)$/;
2121
const HOST_PORT_RE = /^(([^:]*):)?(\d+)$/;
2222
const HTTP_GET_RE = /^https?-get:/;
23-
const HTTP_UNIX_RE = /^http:\/\/unix:([^:]+):([^:]+)$/;
23+
const HTTP_UNIX_RE = /^http:\/\/unix:([^:]+):(.+)$/;
2424
const TIMEOUT_ERR_MSG = 'Timed out waiting for';
2525

2626
const WAIT_ON_SCHEMA = Joi.object({

0 commit comments

Comments
 (0)