svelte-log-view 4.2.34 → 5.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelte-log-view",
3
- "version": "4.2.34",
3
+ "version": "5.0.1",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -44,16 +44,16 @@
44
44
  "@sveltejs/vite-plugin-svelte": "^3.1.0",
45
45
  "documentation": "^14.0.3",
46
46
  "mf-styling": "^3.1.6",
47
- "npm-pkgbuild": "^15.3.12",
47
+ "npm-pkgbuild": "^15.3.14",
48
48
  "reader-line-iterator": "^1.2.0",
49
49
  "semantic-release": "^23.1.1",
50
- "svelte": "^5.0.0-next.135",
50
+ "svelte": "^5.0.0-next.136",
51
51
  "testcafe": "^3.6.0",
52
52
  "vite": "^5.2.11",
53
53
  "vite-plugin-compression2": "^1.1.0"
54
54
  },
55
55
  "peerDependencies": {
56
- "svelte": "^4.0.0 || ^5.0.0-next.0"
56
+ "svelte": "^5.0.0-next.0"
57
57
  },
58
58
  "optionalDependencies": {
59
59
  "mf-hosting-cloudflare": "^1.0.6",
@@ -10,14 +10,9 @@
10
10
  export let start = 0; // first visible entry
11
11
 
12
12
  let content;
13
- // let rows;
14
13
 
15
14
  onDestroy(() => source.abort());
16
-
17
- onMount(async () => {
18
- // rows = content.getElementsByTagName("log-row");
19
- fetchFollow();
20
- });
15
+ onMount(() => fetchFollow());
21
16
 
22
17
  async function fetchFollow() {
23
18
  let current;
@@ -100,7 +95,7 @@
100
95
  follow = flag;
101
96
  }
102
97
 
103
- function handleKeydown(event) {
98
+ function onkeydown(event) {
104
99
  switch (event.key) {
105
100
  case "ArrowUp":
106
101
  setFollow(false);
@@ -134,7 +129,7 @@
134
129
  }
135
130
  </script>
136
131
 
137
- <svelte:window on:keydown={handleKeydown} />
132
+ <svelte:window {onkeydown} />
138
133
  <log-content bind:this={content}>
139
134
  {#each visible as entry, i (i)}
140
135
  <log-row>