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 CHANGED
@@ -1,7 +1,7 @@
1
1
  [![Svelte v3](https://img.shields.io/badge/svelte-v3-orange.svg)](https://svelte.dev)
2
2
  [![npm](https://img.shields.io/npm/v/svelte-command.svg)](https://www.npmjs.com/package/svelte-command)
3
3
  [![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
4
- [![Open Bundle](https://bundlejs.com/badge-light.svg)](https://bundlejs.com/?q=svelte-command)
4
+ [![bundlejs](https://deno.bundlejs.com/?q=svelte-command\&badge=detailed)](https://bundlejs.com/?q=svelte-command)
5
5
  [![downloads](http://img.shields.io/npm/dm/svelte-command.svg?style=flat-square)](https://npmjs.org/package/svelte-command)
6
6
  [![GitHub Issues](https://img.shields.io/github/issues/arlac77/svelte-command.svg?style=flat-square)](https://github.com/arlac77/svelte-command/issues)
7
7
  [![Build Status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Farlac77%2Fsvelte-command%2Fbadge\&style=flat)](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` **FetchResponse** 
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)>**&#x20;
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.39",
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 --experimental-esm $BROWSER:headless tests/cafe/*.*js -s build/test --page-request-timeout 5000 --app-init-delay 8000 --app vite",
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": "^10.0.3",
38
- "@sveltejs/vite-plugin-svelte": "^2.0.3",
39
- "ava": "^5.2.0",
40
- "documentation": "^14.0.1",
41
- "mf-styling": "^1.7.49",
42
- "npm-pkgbuild": "^11.5.18",
43
- "semantic-release": "^21.0.0",
44
- "svelte": "^3.57.0",
45
- "testcafe": "^2.4.0",
46
- "vite": "^4.2.1"
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.7.1"
50
+ "mf-hosting-frontend": "^1.9.3"
51
51
  },
52
52
  "repository": {
53
53
  "type": "git",
@@ -43,9 +43,9 @@ export class FetchCommand extends Command {
43
43
  }
44
44
 
45
45
  /**
46
- * Extract error description from response
47
- * @param {FetchResponse} response
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;