svelte-command 1.1.23 → 1.1.25

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,4 +1,3 @@
1
- [![Svelte v3](https://img.shields.io/badge/svelte-v3-orange.svg)](https://svelte.dev)
2
1
  [![npm](https://img.shields.io/npm/v/svelte-command.svg)](https://www.npmjs.com/package/svelte-command)
3
2
  [![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
4
3
  [![Open Bundle](https://bundlejs.com/badge-light.svg)](https://bundlejs.com/?q=svelte-command)
@@ -37,7 +36,7 @@ general command execution handling for svelte components
37
36
 
38
37
  ### Parameters
39
38
 
40
- * `subscription` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)**
39
+ * `subscription` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)** 
41
40
 
42
41
  ## Command
43
42
 
@@ -45,18 +44,18 @@ general command execution handling for svelte components
45
44
 
46
45
  ### Parameters
47
46
 
48
- * `_start`
47
+ * `_start`  
49
48
  * `options` (optional, default `{}`)
50
49
 
51
50
  ### Properties
52
51
 
53
- * `title` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
54
- * `description` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
55
- * `shortcuts` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
56
- * `disabled` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)**
57
- * `active` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)**
58
- * `failed` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)**
59
- * `completed` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)**
52
+ * `title` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
53
+ * `description` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
54
+ * `shortcuts` **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
55
+ * `disabled` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** 
56
+ * `active` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** 
57
+ * `failed` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** 
58
+ * `completed` **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean)** 
60
59
 
61
60
  ## ConfirmCommand
62
61
 
@@ -66,7 +65,7 @@ Ask for confirmation before esxecution a given Command.
66
65
 
67
66
  ### Parameters
68
67
 
69
- * `command`
68
+ * `command`  
70
69
 
71
70
  ## FetchCommand
72
71
 
@@ -76,8 +75,8 @@ Command executing a fetch request.
76
75
 
77
76
  ### Parameters
78
77
 
79
- * `url`
80
- * `fetchOptions`
78
+ * `url`  
79
+ * `fetchOptions`  
81
80
  * `options` (optional, default `{}`)
82
81
 
83
82
  ## handleFailedResponse
@@ -86,9 +85,9 @@ Extract error description from response
86
85
 
87
86
  ### Parameters
88
87
 
89
- * `response` **FetchResponse**
88
+ * `response` **FetchResponse** 
90
89
 
91
- Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)**
90
+ Returns **[string](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String)** 
92
91
 
93
92
  # install
94
93
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-command",
3
- "version": "1.1.23",
3
+ "version": "1.1.25",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -25,7 +25,7 @@
25
25
  "start": "vite",
26
26
  "test": "npm run test:ava && npm run test:cafe",
27
27
  "test:cafe": "testcafe $BROWSER:headless tests/cafe/*.js -s build/test --page-request-timeout 3000 --app-init-delay 3000 --app \"vite preview\"",
28
- "test:ava": "ava --timeout 2m tests/*.mjs",
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",
31
31
  "lint:docs": "documentation lint ./src/**/*.mjs",
@@ -35,18 +35,18 @@
35
35
  "@semantic-release/commit-analyzer": "^9.0.2",
36
36
  "@semantic-release/exec": "^6.0.3",
37
37
  "@semantic-release/release-notes-generator": "^10.0.3",
38
- "@sveltejs/vite-plugin-svelte": "^1.0.1",
39
- "ava": "^4.3.1",
40
- "documentation": "^13.2.5",
41
- "mf-styling": "^1.2.45",
42
- "npm-pkgbuild": "^10.14.8",
43
- "semantic-release": "^19.0.3",
44
- "svelte": "^3.49.0",
45
- "testcafe": "^1.20.1",
46
- "vite": "^3.0.8"
38
+ "@sveltejs/vite-plugin-svelte": "^2.0.0",
39
+ "ava": "^5.1.0",
40
+ "documentation": "^14.0.0",
41
+ "mf-styling": "^1.7.31",
42
+ "npm-pkgbuild": "^10.15.20",
43
+ "semantic-release": "^19.0.5",
44
+ "svelte": "^3.54.0",
45
+ "testcafe": "^2.1.0",
46
+ "vite": "^4.0.0"
47
47
  },
48
48
  "optionalDependencies": {
49
- "mf-hosting": "^1.7.2"
49
+ "mf-hosting": "^1.8.0"
50
50
  },
51
51
  "repository": {
52
52
  "type": "git",
@@ -72,10 +72,24 @@
72
72
  [
73
73
  "@semantic-release/exec",
74
74
  {
75
- "publishCmd": "npx npm-pkgbuild --available --continue --verbose"
75
+ "publishCmd": "npx npm-pkgbuild --available --continue --publish dist"
76
76
  }
77
77
  ],
78
- "@semantic-release/github"
78
+ [
79
+ "@semantic-release/github",
80
+ {
81
+ "assets": [
82
+ {
83
+ "path": "dist/*.deb",
84
+ "label": "Debian Package"
85
+ },
86
+ {
87
+ "path": "dist/*.pkg.*",
88
+ "label": "Arch Linux Package"
89
+ }
90
+ ]
91
+ }
92
+ ]
79
93
  ]
80
94
  },
81
95
  "template": {
@@ -2,7 +2,7 @@
2
2
  export let command;
3
3
 
4
4
  function handleKeydown(event) {
5
- if (command && command.matchesKeydown && command.matchesKeydown(event)) {
5
+ if (command?.matchesKeydown && command.matchesKeydown(event)) {
6
6
  command.start();
7
7
  }
8
8
  }
package/src/command.mjs CHANGED
@@ -1,3 +1,7 @@
1
+
2
+ /**
3
+ *
4
+ */
1
5
  export class BasicCommand {
2
6
 
3
7
  subscriptions = new Set();