svelte-log-view 4.2.14 → 4.2.15

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/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2019-2022 by arlac77
1
+ Copyright (c) 2019-2023 by arlac77
2
2
  All rights reserved.
3
3
 
4
4
  Redistribution and use in source and binary forms, with or without
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "svelte-log-view",
3
- "version": "4.2.14",
3
+ "version": "4.2.15",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
7
7
  "svelte": "./src/index.svelte",
8
- "description": "show log content",
8
+ "description": "svelte log viewer component",
9
9
  "keywords": [
10
10
  "component",
11
11
  "log",
@@ -24,7 +24,7 @@
24
24
  "prepare": "vite build",
25
25
  "start": "vite",
26
26
  "test": "npm run test:cafe",
27
- "test:cafe": "testcafe $BROWSER:headless tests/cafe/*.js -s build/test --page-request-timeout 3000 --app-init-delay 3000 --app vite",
27
+ "test:cafe": "testcafe $BROWSER:headless tests/cafe/*.js -s build/test --page-request-timeout 3000 --app-init-delay 3000 --app \"vite preview\"",
28
28
  "docs": "documentation readme --section=API ./src/**/*.mjs && documentation readme --section=API {{javascript.source}}",
29
29
  "lint": "npm run lint:docs",
30
30
  "lint:docs": "documentation lint ./src/**/*.mjs && documentation lint {{javascript.source}}",
@@ -34,22 +34,23 @@
34
34
  "@semantic-release/commit-analyzer": "^9.0.2",
35
35
  "@semantic-release/exec": "^6.0.3",
36
36
  "@semantic-release/release-notes-generator": "^10.0.3",
37
- "@sveltejs/vite-plugin-svelte": "^1.0.1",
38
- "documentation": "^13.2.5",
39
- "mf-styling": "^1.2.33",
40
- "npm-pkgbuild": "^10.12.2",
41
- "reader-line-iterator": "^1.1.4",
42
- "semantic-release": "^19.0.3",
43
- "svelte": "^3.49.0",
44
- "testcafe": "^1.20.0",
45
- "vite": "^3.0.2"
37
+ "@sveltejs/vite-plugin-svelte": "^2.0.2",
38
+ "documentation": "^14.0.1",
39
+ "mf-styling": "^1.7.42",
40
+ "npm-pkgbuild": "^11.1.11",
41
+ "reader-line-iterator": "^1.1.5",
42
+ "semantic-release": "^20.1.0",
43
+ "svelte": "^3.55.1",
44
+ "testcafe": "^2.2.0",
45
+ "vite": "^4.0.4"
46
46
  },
47
47
  "optionalDependencies": {
48
- "mf-hosting": "^1.7.1"
48
+ "mf-hosting-cloudflare": "^1.0.5",
49
+ "mf-hosting-frontend": "^1.6.0"
49
50
  },
50
51
  "repository": {
51
52
  "type": "git",
52
- "url": "https://github.com/arlac77/svelte-log-view.git"
53
+ "url": "https://github.com/arlac77/svelte-log-view"
53
54
  },
54
55
  "bugs": {
55
56
  "url": "https://github.com/arlac77/svelte-log-view/issues"
@@ -57,10 +58,11 @@
57
58
  "homepage": "https://github.com/arlac77/svelte-log-view#readme",
58
59
  "pkgbuild": {
59
60
  "content": {
60
- "${install.dir}": "build/",
61
- "${nginx.sites.dir}${name}.conf": "pkg/nginx.conf"
61
+ "${install.dir}": "build/"
62
62
  },
63
- "groups": "examples"
63
+ "api": "${http.path}/api/log",
64
+ "example": true,
65
+ "frontend": true
64
66
  },
65
67
  "release": {
66
68
  "plugins": [
@@ -70,10 +72,44 @@
70
72
  [
71
73
  "@semantic-release/exec",
72
74
  {
73
- "publishCmd": "npx npm-pkgbuild --available --continue --verbose"
75
+ "publishCmd": "npx npm-pkgbuild --available --continue --publish dist"
74
76
  }
75
77
  ],
76
- "@semantic-release/github"
78
+ [
79
+ "@semantic-release/github",
80
+ {
81
+ "assets": [
82
+ {
83
+ "path": "dist/*.deb",
84
+ "label": "any Debian Package"
85
+ },
86
+ {
87
+ "path": "dist/*any.pkg.*",
88
+ "label": "any Arch Linux Package"
89
+ },
90
+ {
91
+ "path": "dist/*x86_64.pkg.*",
92
+ "label": "x86_64 Arch Linux Package"
93
+ },
94
+ {
95
+ "path": "dist/*aarch64.pkg.*",
96
+ "label": "arm64 Arch Linux Package"
97
+ },
98
+ {
99
+ "path": "dist/*noarch.rpm",
100
+ "label": "noarch RPM"
101
+ },
102
+ {
103
+ "path": "dist/*x86_64.rpm",
104
+ "label": "x86_64 RPM"
105
+ },
106
+ {
107
+ "path": "dist/*aarch64.rpm",
108
+ "label": "arm64 RPM"
109
+ }
110
+ ]
111
+ }
112
+ ]
77
113
  ]
78
114
  },
79
115
  "template": {
@@ -81,7 +117,7 @@
81
117
  "arlac77/template-arlac77-github",
82
118
  "arlac77/template-cloudflare",
83
119
  "arlac77/template-pacman",
84
- "arlac77/template-svelte-component#next"
120
+ "arlac77/template-svelte-component"
85
121
  ]
86
122
  }
87
123
  }
@@ -53,16 +53,15 @@
53
53
  const cursor = entries[0];
54
54
 
55
55
  let number = 5;
56
- let i;
57
56
 
58
- for (i = 0; i < number; i++) {
57
+ for (let i = 0; i < number; i++) {
59
58
  entries.unshift();
60
59
  }
61
60
 
62
61
  selected += number;
63
62
  start += number;
64
63
 
65
- i = 0;
64
+ let i = 0;
66
65
  for await (const entry of source.fetch(cursor, -number, number)) {
67
66
  entries[i++] = entry;
68
67
  if (i >= number) {