svelte-command 1.1.39 → 1.1.41
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/README.md +4 -4
- package/package.json +13 -13
- package/src/fetch-command.mjs +3 -3
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
[](https://svelte.dev)
|
|
2
2
|
[](https://www.npmjs.com/package/svelte-command)
|
|
3
3
|
[](https://opensource.org/licenses/BSD-3-Clause)
|
|
4
|
-
[](https://bundlejs.com/?q=svelte-command)
|
|
5
5
|
[](https://npmjs.org/package/svelte-command)
|
|
6
6
|
[](https://github.com/arlac77/svelte-command/issues)
|
|
7
7
|
[](https://actions-badge.atrox.dev/arlac77/svelte-command/goto)
|
|
@@ -92,13 +92,13 @@ Command executing a fetch request.
|
|
|
92
92
|
|
|
93
93
|
## handleFailedResponse
|
|
94
94
|
|
|
95
|
-
Extract error description from response
|
|
95
|
+
Extract error description from response.
|
|
96
96
|
|
|
97
97
|
### Parameters
|
|
98
98
|
|
|
99
|
-
* `response` **
|
|
99
|
+
* `response` **[Response](https://developer.mozilla.org/docs/Web/Guide/HTML/HTML5)** 
|
|
100
100
|
|
|
101
|
-
Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)
|
|
101
|
+
Returns **[Promise](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)<[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)>** 
|
|
102
102
|
|
|
103
103
|
# install
|
|
104
104
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "svelte-command",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.41",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"prepare": "vite build",
|
|
25
25
|
"start": "vite",
|
|
26
26
|
"test": "npm run test:ava && npm run test:cafe",
|
|
27
|
-
"test:cafe": "testcafe
|
|
27
|
+
"test:cafe": "testcafe $BROWSER:headless tests/cafe/*.*js --esm -s build/test --page-request-timeout 5000 --app-init-delay 8000 --app vite",
|
|
28
28
|
"test:ava": "ava --timeout 2m tests/*-ava.mjs tests/*-ava-node.mjs",
|
|
29
29
|
"docs": "documentation readme --section=API ./src/**/*.mjs",
|
|
30
30
|
"lint": "npm run lint:docs",
|
|
@@ -34,20 +34,20 @@
|
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@semantic-release/commit-analyzer": "^9.0.2",
|
|
36
36
|
"@semantic-release/exec": "^6.0.3",
|
|
37
|
-
"@semantic-release/release-notes-generator": "^
|
|
38
|
-
"@sveltejs/vite-plugin-svelte": "^2.0
|
|
39
|
-
"ava": "^5.
|
|
40
|
-
"documentation": "^14.0.
|
|
41
|
-
"mf-styling": "^1.7.
|
|
42
|
-
"npm-pkgbuild": "^11.
|
|
43
|
-
"semantic-release": "^21.0.
|
|
44
|
-
"svelte": "^3.
|
|
45
|
-
"testcafe": "^2.
|
|
46
|
-
"vite": "^4.
|
|
37
|
+
"@semantic-release/release-notes-generator": "^11.0.1",
|
|
38
|
+
"@sveltejs/vite-plugin-svelte": "^2.4.0",
|
|
39
|
+
"ava": "^5.3.0",
|
|
40
|
+
"documentation": "^14.0.2",
|
|
41
|
+
"mf-styling": "^1.7.56",
|
|
42
|
+
"npm-pkgbuild": "^11.8.6",
|
|
43
|
+
"semantic-release": "^21.0.2",
|
|
44
|
+
"svelte": "^3.59.1",
|
|
45
|
+
"testcafe": "^2.6.0",
|
|
46
|
+
"vite": "^4.3.9"
|
|
47
47
|
},
|
|
48
48
|
"optionalDependencies": {
|
|
49
49
|
"mf-hosting-cloudflare": "^1.0.5",
|
|
50
|
-
"mf-hosting-frontend": "^1.
|
|
50
|
+
"mf-hosting-frontend": "^1.9.3"
|
|
51
51
|
},
|
|
52
52
|
"repository": {
|
|
53
53
|
"type": "git",
|
package/src/fetch-command.mjs
CHANGED
|
@@ -43,9 +43,9 @@ export class FetchCommand extends Command {
|
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
|
-
* Extract error description from response
|
|
47
|
-
* @param {
|
|
48
|
-
* @return {string}
|
|
46
|
+
* Extract error description from response.
|
|
47
|
+
* @param {Response} response
|
|
48
|
+
* @return {Promise<string>}
|
|
49
49
|
*/
|
|
50
50
|
export async function handleFailedResponse(response) {
|
|
51
51
|
let message = response.statusText;
|