nuxt-dev-ready 3.0.0 → 4.0.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.
- package/LICENSE.md +13 -4
- package/README.md +44 -44
- package/dist/index.d.ts +2 -0
- package/dist/index.js +10 -7
- package/package.json +17 -9
package/LICENSE.md
CHANGED
|
@@ -6,7 +6,7 @@ Copyright © Sebastian Landwehr <info@sebastianlandwehr.com>
|
|
|
6
6
|
|
|
7
7
|
and licensed under:
|
|
8
8
|
|
|
9
|
-
[MIT License](https://opensource.org/
|
|
9
|
+
[MIT License](https://opensource.org/license/mit/)
|
|
10
10
|
|
|
11
11
|
## MIT License
|
|
12
12
|
|
|
@@ -14,8 +14,17 @@ MIT License
|
|
|
14
14
|
|
|
15
15
|
Copyright (c) <year> <copyright holders>
|
|
16
16
|
|
|
17
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
|
17
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
|
|
18
|
+
associated documentation files (the "Software"), to deal in the Software without restriction, including
|
|
19
|
+
without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
20
|
+
copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the
|
|
21
|
+
following conditions:
|
|
18
22
|
|
|
19
|
-
The above copyright notice and this permission notice shall be included in all copies or substantial
|
|
23
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial
|
|
24
|
+
portions of the Software.
|
|
20
25
|
|
|
21
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
|
26
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
|
|
27
|
+
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO
|
|
28
|
+
EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
29
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
30
|
+
USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
CHANGED
|
@@ -3,49 +3,49 @@
|
|
|
3
3
|
<!-- /TITLE -->
|
|
4
4
|
|
|
5
5
|
<!-- BADGES/ -->
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
6
|
+
<p>
|
|
7
|
+
<a href="https://npmjs.org/package/nuxt-dev-ready">
|
|
8
|
+
<img
|
|
9
|
+
src="https://img.shields.io/npm/v/nuxt-dev-ready.svg"
|
|
10
|
+
alt="npm version"
|
|
11
|
+
>
|
|
12
|
+
</a><img src="https://img.shields.io/badge/os-linux%20%7C%C2%A0macos%20%7C%C2%A0windows-blue" alt="Linux macOS Windows compatible"><a href="https://github.com/dword-design/nuxt-dev-ready/actions">
|
|
13
|
+
<img
|
|
14
|
+
src="https://github.com/dword-design/nuxt-dev-ready/workflows/build/badge.svg"
|
|
15
|
+
alt="Build status"
|
|
16
|
+
>
|
|
17
|
+
</a><a href="https://codecov.io/gh/dword-design/nuxt-dev-ready">
|
|
18
|
+
<img
|
|
19
|
+
src="https://codecov.io/gh/dword-design/nuxt-dev-ready/branch/master/graph/badge.svg"
|
|
20
|
+
alt="Coverage status"
|
|
21
|
+
>
|
|
22
|
+
</a><a href="https://david-dm.org/dword-design/nuxt-dev-ready">
|
|
23
|
+
<img src="https://img.shields.io/david/dword-design/nuxt-dev-ready" alt="Dependency status">
|
|
24
|
+
</a><img src="https://img.shields.io/badge/renovate-enabled-brightgreen" alt="Renovate enabled"><br/><a href="https://gitpod.io/#https://github.com/dword-design/nuxt-dev-ready">
|
|
25
|
+
<img
|
|
26
|
+
src="https://gitpod.io/button/open-in-gitpod.svg"
|
|
27
|
+
alt="Open in Gitpod"
|
|
28
|
+
width="114"
|
|
29
|
+
>
|
|
30
|
+
</a><a href="https://www.buymeacoffee.com/dword">
|
|
31
|
+
<img
|
|
32
|
+
src="https://www.buymeacoffee.com/assets/img/guidelines/download-assets-sm-2.svg"
|
|
33
|
+
alt="Buy Me a Coffee"
|
|
34
|
+
width="114"
|
|
35
|
+
>
|
|
36
|
+
</a><a href="https://paypal.me/SebastianLandwehr">
|
|
37
|
+
<img
|
|
38
|
+
src="https://sebastianlandwehr.com/images/paypal.svg"
|
|
39
|
+
alt="PayPal"
|
|
40
|
+
width="163"
|
|
41
|
+
>
|
|
42
|
+
</a><a href="https://www.patreon.com/dworddesign">
|
|
43
|
+
<img
|
|
44
|
+
src="https://sebastianlandwehr.com/images/patreon.svg"
|
|
45
|
+
alt="Patreon"
|
|
46
|
+
width="163"
|
|
47
|
+
>
|
|
48
|
+
</a>
|
|
49
49
|
</p>
|
|
50
50
|
<!-- /BADGES -->
|
|
51
51
|
|
|
@@ -138,5 +138,5 @@ Thanks a lot for your support! ❤️
|
|
|
138
138
|
|
|
139
139
|
## License
|
|
140
140
|
|
|
141
|
-
[MIT License](https://opensource.org/
|
|
141
|
+
[MIT License](https://opensource.org/license/mit/) © [Sebastian Landwehr](https://sebastianlandwehr.com)
|
|
142
142
|
<!-- /LICENSE -->
|
package/dist/index.d.ts
ADDED
package/dist/index.js
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import axios from
|
|
2
|
-
import pWaitFor from
|
|
3
|
-
import portReady from
|
|
4
|
-
export default
|
|
1
|
+
import axios from "axios";
|
|
2
|
+
import pWaitFor from "p-wait-for";
|
|
3
|
+
import portReady from "port-ready";
|
|
4
|
+
export default async (port = 3e3) => {
|
|
5
5
|
await portReady(port);
|
|
6
6
|
await pWaitFor(async () => {
|
|
7
7
|
try {
|
|
8
|
-
|
|
8
|
+
const {
|
|
9
|
+
data
|
|
10
|
+
} = await axios.get(`http://localhost:${port}`);
|
|
11
|
+
return !data.includes('id="nuxt_loading_screen"');
|
|
9
12
|
} catch (error) {
|
|
10
|
-
return error.response !==
|
|
13
|
+
return error.response !== void 0 && error.response.status !== 503;
|
|
11
14
|
}
|
|
12
15
|
}, {
|
|
13
16
|
interval: 100
|
|
14
17
|
});
|
|
15
|
-
}
|
|
18
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-dev-ready",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "Waits until the Nuxt dev server is loaded. Mainly useful for testing.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"wait"
|
|
@@ -10,7 +10,14 @@
|
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"author": "Sebastian Landwehr <info@sebastianlandwehr.com>",
|
|
12
12
|
"type": "module",
|
|
13
|
-
"exports":
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"import": {
|
|
16
|
+
"default": "./dist/index.js",
|
|
17
|
+
"types": "./dist/index.d.ts"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
},
|
|
14
21
|
"main": "dist/index.js",
|
|
15
22
|
"files": [
|
|
16
23
|
"dist"
|
|
@@ -31,16 +38,17 @@
|
|
|
31
38
|
"port-ready": "^0.1.0"
|
|
32
39
|
},
|
|
33
40
|
"devDependencies": {
|
|
34
|
-
"@dword-design/base": "^
|
|
35
|
-
"@
|
|
36
|
-
"
|
|
41
|
+
"@dword-design/base": "^13.0.7",
|
|
42
|
+
"@playwright/test": "^1.53.0",
|
|
43
|
+
"endent": "npm:@dword-design/endent@^1.4.1",
|
|
44
|
+
"execa": "^9.6.0",
|
|
37
45
|
"fs-extra": "^11.1.1",
|
|
38
|
-
"
|
|
46
|
+
"get-port": "^7.1.0",
|
|
47
|
+
"jsdom": "^26.0.0",
|
|
39
48
|
"nuxt": "^3.4.2",
|
|
40
|
-
"
|
|
41
|
-
"tree-kill-promise": "^3.0.14",
|
|
42
|
-
"with-local-tmp-dir": "^5.0.1"
|
|
49
|
+
"tree-kill-promise": "^3.0.14"
|
|
43
50
|
},
|
|
51
|
+
"packageManager": "pnpm@10.12.1+sha512.f0dda8580f0ee9481c5c79a1d927b9164f2c478e90992ad268bbb2465a736984391d6333d2c327913578b2804af33474ca554ba29c04a8b13060a717675ae3ac",
|
|
44
52
|
"engines": {
|
|
45
53
|
"node": ">=18"
|
|
46
54
|
},
|