svelte-command 1.1.24 → 1.1.26

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
@@ -21,22 +21,32 @@ general command execution handling for svelte components
21
21
 
22
22
  ### Table of Contents
23
23
 
24
- * [subscribe](#subscribe)
24
+ * [BasicCommand](#basiccommand)
25
25
  * [Parameters](#parameters)
26
+ * [subscribe](#subscribe)
27
+ * [Parameters](#parameters-1)
26
28
  * [Command](#command)
27
- * [Parameters](#parameters-1)
29
+ * [Parameters](#parameters-2)
28
30
  * [Properties](#properties)
29
31
  * [ConfirmCommand](#confirmcommand)
30
- * [Parameters](#parameters-2)
31
- * [FetchCommand](#fetchcommand)
32
32
  * [Parameters](#parameters-3)
33
- * [handleFailedResponse](#handlefailedresponse)
33
+ * [FetchCommand](#fetchcommand)
34
34
  * [Parameters](#parameters-4)
35
+ * [handleFailedResponse](#handlefailedresponse)
36
+ * [Parameters](#parameters-5)
35
37
 
36
- ## subscribe
38
+ ## BasicCommand
37
39
 
38
40
  ### Parameters
39
41
 
42
+ * `start`  
43
+ * `properties`  
44
+ * `options` (optional, default `{}`)
45
+
46
+ ### subscribe
47
+
48
+ #### Parameters
49
+
40
50
  * `subscription` **[Function](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Statements/function)** 
41
51
 
42
52
  ## Command
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-command",
3
- "version": "1.1.24",
3
+ "version": "1.1.26",
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.2",
39
- "ava": "^4.3.1",
40
- "documentation": "^14.0.0",
41
- "mf-styling": "^1.3.0",
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.9"
38
+ "@sveltejs/vite-plugin-svelte": "^2.0.2",
39
+ "ava": "^5.1.0",
40
+ "documentation": "^14.0.1",
41
+ "mf-styling": "^1.7.33",
42
+ "npm-pkgbuild": "^10.15.23",
43
+ "semantic-release": "^19.0.5",
44
+ "svelte": "^3.55.0",
45
+ "testcafe": "^2.2.0",
46
+ "vite": "^4.0.3"
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();