@dpuse/dpuse-tool-file-previewer 0.0.62 → 0.0.65
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 +139 -102
- package/dist/dpuse-tool-file-previewer.es.js +581 -229
- package/dist/dpuse-tool-file-previewer.es.js.map +1 -1
- package/dist/types/src/index.d.ts +1 -1
- package/package.json +12 -17
- package/dist/types/eslint.config.d.ts +0 -3
- package/dist/types/vite.config.d.ts +0 -2
- package/dist/types/vitest.config.d.ts +0 -2
package/README.md
CHANGED
|
@@ -7,15 +7,22 @@
|
|
|
7
7
|
|
|
8
8
|
[](./LICENSE)
|
|
9
9
|
[](https://github.com/dpuse/dpuse-tool-file-previewer/releases/latest)
|
|
10
|
+
[](https://www.npmjs.com/package/@dpuse/dpuse-tool-file-previewer)
|
|
10
11
|
[](https://github.com/dpuse/dpuse-tool-file-previewer/actions/workflows/ci.yml)
|
|
11
|
-
[](https://github.com/dpuse/dpuse-tool-file-previewer/actions/workflows/codeql.yml)
|
|
12
|
-
[](https://sonarcloud.io/summary/new_code?id=dpuse_dpuse-tool-file-previewer)
|
|
13
12
|
|
|
14
|
-
[
|
|
13
|
+
[DPUse](https://www.dpuse.app) · [Report a Vulnerability](https://github.com/dpuse/dpuse-tool-file-previewer/security/advisories/new) · [Open an Issue](https://github.com/dpuse/dpuse-tool-file-previewer/issues)
|
|
15
14
|
|
|
16
15
|
## About DPUse
|
|
17
16
|
|
|
18
|
-
DPUse (Data Positioning & Use) is an in-browser application that positions your data for use through three core activities: sourcing, contextualising, and publishing.
|
|
17
|
+
DPUse (Data Positioning & Use) is an in-browser application that positions your data for use through three core activities: sourcing, contextualising, and publishing.
|
|
18
|
+
|
|
19
|
+
**Sourcing** uses a library of [Connectors](https://www.dpuse.app/connectors) to establish [Connections](https://www.dpuse.app) to applications, databases, file stores, and curated datasets; these connections are subsequently used to configure structured [Data Views](https://www.dpuse.app) from the underlying sources.
|
|
20
|
+
|
|
21
|
+
**Contextualising** extracts chronological events from those [Data Views](https://www.dpuse.app) and maps them into comprehensive [Context Models](https://www.dpuse.app). This gives the DPUse Engine the structural framework needed to generate deterministic transactions, facts, or observations.
|
|
22
|
+
|
|
23
|
+
**Publishing** uses a library of [Presenters](https://www.dpuse.app) to render standard [Presentations](https://www.dpuse.app) immediately using the contextualised data; additionally, [Cookbooks](https://www.dpuse.app) of [Recipes](https://www.dpuse.app) let you build Data Apps using your preferred tools.
|
|
24
|
+
|
|
25
|
+
In addition, DPUse provides [Tools](https://www.dpuse.app) used by the application, and you can use them to construct connectors and presenters.
|
|
19
26
|
|
|
20
27
|
## Introduction
|
|
21
28
|
|
|
@@ -25,9 +32,15 @@ DPUse (Data Positioning & Use) is an in-browser application that positions your
|
|
|
25
32
|
|
|
26
33
|
<!-- USAGE_START -->
|
|
27
34
|
|
|
28
|
-
|
|
35
|
+
## Usage
|
|
29
36
|
|
|
30
|
-
|
|
37
|
+
This [package](https://www.npmjs.com/package/@dpuse/dpuse-tool-file-previewer) is available on [npm](https://www.npmjs.com/). Install it with:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
npm install @dpuse/dpuse-tool-file-previewer
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
To work on the source instead, clone this repository.
|
|
31
44
|
|
|
32
45
|
```bash
|
|
33
46
|
git clone https://github.com/dpuse/dpuse-tool-file-previewer.git
|
|
@@ -35,146 +48,170 @@ cd dpuse-tool-file-previewer
|
|
|
35
48
|
npm install
|
|
36
49
|
```
|
|
37
50
|
|
|
38
|
-
_Requires [Node.js](https://nodejs.org/)
|
|
51
|
+
_Requires [Node.js](https://nodejs.org/) 24 or later, [npm](https://www.npmjs.com/) 12 or later, and [TypeScript](https://www.typescriptlang.org/) 6.0.3 or later._
|
|
52
|
+
|
|
53
|
+
This repository is managed using the common set of actions provided by [@dpuse/dpuse-development](https://github.com/dpuse/dpuse-development). See the `scripts` block in [package.json](https://github.com/dpuse/dpuse-tool-file-previewer/blob/main/package.json) for details.
|
|
39
54
|
|
|
40
55
|
<!-- USAGE_END -->
|
|
41
56
|
|
|
42
57
|
<!-- DEPENDENCY_LICENSES_START -->
|
|
43
58
|
|
|
44
|
-
|
|
59
|
+
## Dependency Licenses
|
|
60
|
+
|
|
61
|
+
License data is updated each time `npm run document` is run, using [license-checker](https://github.com/RSeidelsohn/license-checker-rseidelsohn). The following table lists all production dependencies. These dependencies (including transitive ones) have been checked and confirmed to use BSD-3-Clause or MIT — all permissive, commercially-friendly licenses. Users of the uploaded library are covered by these checks; developers cloning this repository should independently verify development dependencies.
|
|
45
62
|
|
|
46
63
|
| Dependency | Version | License(s) | Document |
|
|
47
64
|
| :--------------------------------------------------------------------- | :-----: | :----------- | :-------------------------------------------------------------------- |
|
|
48
65
|
| [@borewit/text-codec](https://github.com/Borewit/text-codec) | 0.2.2 | MIT | [LICENSE](licenses/downloads/@borewit/text-codec@0.2.2-LICENSE.txt) |
|
|
49
|
-
| [@dpuse/dpuse-shared](https://github.com/dpuse/dpuse-shared) | 0.3.
|
|
66
|
+
| [@dpuse/dpuse-shared](https://github.com/dpuse/dpuse-shared) | 0.3.865 | MIT | [LICENSE](licenses/downloads/@dpuse/dpuse-shared@0.3.865-LICENSE.txt) |
|
|
50
67
|
| [@tokenizer/inflate](https://github.com/Borewit/tokenizer-inflate) | 0.4.1 | MIT | [LICENSE](licenses/downloads/@tokenizer/inflate@0.4.1-LICENSE.txt) |
|
|
51
68
|
| [@tokenizer/token](https://github.com/Borewit/tokenizer-token) | 0.3.0 | MIT | [LICENSE](licenses/downloads/@tokenizer/token@0.3.0-LICENSE.txt) |
|
|
52
69
|
| [chardet](https://github.com/runk/node-chardet) | 2.2.0 | MIT | [LICENSE](licenses/downloads/chardet@2.2.0-LICENSE.txt) |
|
|
53
70
|
| [debug](https://github.com/debug-js/debug) | 4.4.3 | MIT | [LICENSE](licenses/downloads/debug@4.4.3-LICENSE.txt) |
|
|
54
|
-
| [file-type](https://github.com/sindresorhus/file-type) | 22.
|
|
71
|
+
| [file-type](https://github.com/sindresorhus/file-type) | 22.1.1 | MIT | [LICENSE](licenses/downloads/file-type@22.1.1-LICENSE.txt) |
|
|
55
72
|
| [ieee754](https://github.com/feross/ieee754) | 1.2.1 | BSD-3-Clause | [LICENSE](licenses/downloads/ieee754@1.2.1-LICENSE.txt) |
|
|
56
73
|
| [ms](https://github.com/vercel/ms) | 2.1.3 | MIT | [LICENSE](licenses/downloads/ms@2.1.3-LICENSE.txt) |
|
|
57
74
|
| [strtok3](https://github.com/Borewit/strtok3) | 10.3.5 | MIT | [LICENSE](licenses/downloads/strtok3@10.3.5-LICENSE.txt) |
|
|
58
75
|
| [token-types](https://github.com/Borewit/token-types) | 6.1.2 | MIT | [LICENSE](licenses/downloads/token-types@6.1.2-LICENSE.txt) |
|
|
59
76
|
| [uint8array-extras](https://github.com/sindresorhus/uint8array-extras) | 1.5.0 | MIT | [LICENSE](licenses/downloads/uint8array-extras@1.5.0-LICENSE.txt) |
|
|
77
|
+
| [valibot](https://github.com/open-circle/valibot) | 1.5.0 | MIT | [LICENSE](licenses/downloads/valibot@1.5.0-LICENSE.txt) |
|
|
78
|
+
|
|
79
|
+
### Dependency Tree
|
|
80
|
+
|
|
81
|
+
The dependency tree below lists every package in this project — direct and transitive — along with its installed version, release date, and update status. Packages flagged ❗ have a newer version available; ⚠️ indicates a package that hasn't been updated in the last 6 months or longer. Neither flag necessarily indicates a problem: we let new releases stabilise before upgrading, and some packages are mature and stable (have limited or no dependencies), so they require no active development.
|
|
82
|
+
|
|
83
|
+
- **[@dpuse/dpuse-shared](https://github.com/dpuse/dpuse-shared)** 0.3.865 — this month: 2026-09-29
|
|
84
|
+
- **[file-type](https://github.com/sindresorhus/file-type)** 22.1.1 — this month: 2026-09-17
|
|
85
|
+
- **[valibot](https://github.com/open-circle/valibot)** 1.5.0 — this month: 2026-09-09
|
|
86
|
+
- **[chardet](https://github.com/runk/node-chardet)** 2.2.0 — **3 months** ago: 2026-06-20
|
|
87
|
+
- **[file-type](https://github.com/sindresorhus/file-type)** 22.1.1 — this month: 2026-09-17
|
|
88
|
+
- **[@tokenizer/inflate](https://github.com/Borewit/tokenizer-inflate)** 0.4.1 — **10 months** ago: 2025-11-18 ⚠️
|
|
89
|
+
- **[debug](https://github.com/debug-js/debug)** 4.4.3 — **12 months** ago: 2025-09-13 ⚠️
|
|
90
|
+
- **[ms](https://github.com/vercel/ms)** 2.1.3 — **69 months** ago: 2020-12-08 ⚠️
|
|
91
|
+
- **[token-types](https://github.com/Borewit/token-types)** 6.1.2 — **8 months** ago: 2026-01-01 ⚠️
|
|
92
|
+
- **[strtok3](https://github.com/Borewit/strtok3)** 10.3.5 — **6 months** ago: 2026-03-21
|
|
93
|
+
- **[@tokenizer/token](https://github.com/Borewit/tokenizer-token)** 0.3.0 — **62 months** ago: 2021-07-12 ⚠️
|
|
94
|
+
- **[token-types](https://github.com/Borewit/token-types)** 6.1.2 — **8 months** ago: 2026-01-01 ⚠️
|
|
95
|
+
- **[@borewit/text-codec](https://github.com/Borewit/text-codec)** 0.2.2 — **6 months** ago: 2026-03-11
|
|
96
|
+
- **[@tokenizer/token](https://github.com/Borewit/tokenizer-token)** 0.3.0 — **62 months** ago: 2021-07-12 ⚠️
|
|
97
|
+
- **[ieee754](https://github.com/feross/ieee754)** 1.2.1 — **71 months** ago: 2020-10-27 ⚠️
|
|
98
|
+
- **[uint8array-extras](https://github.com/sindresorhus/uint8array-extras)** 1.5.0 — **13 months** ago: 2025-08-22 ⚠️ → **latest**: 1.6.0 — this month: 2026-09-26 ❗
|
|
60
99
|
|
|
61
100
|
<!-- DEPENDENCY_LICENSES_END -->
|
|
62
101
|
|
|
63
|
-
<!--
|
|
102
|
+
<!-- BUNDLE_START -->
|
|
64
103
|
|
|
65
|
-
|
|
104
|
+
## Bundle Analysis
|
|
66
105
|
|
|
67
|
-
|
|
68
|
-
- **[chardet](https://github.com/runk/node-chardet)** 2.2.0 — **1 month** ago: 2026-06-20
|
|
69
|
-
- **[file-type](https://github.com/sindresorhus/file-type)** 22.0.1 — **3 months** ago: 2026-04-09
|
|
70
|
-
- **[@tokenizer/inflate](https://github.com/Borewit/tokenizer-inflate)** 0.4.1 — **8 months** ago: 2025-11-18 ⚠️
|
|
71
|
-
- **[debug](https://github.com/debug-js/debug)** 4.4.3 — **10 months** ago: 2025-09-13 ⚠️
|
|
72
|
-
- **[ms](https://github.com/vercel/ms)** 2.1.3 — **67 months** ago: 2020-12-08 ⚠️
|
|
73
|
-
- **[token-types](https://github.com/Borewit/token-types)** 6.1.2 — **7 months** ago: 2026-01-01 ⚠️
|
|
74
|
-
- **[strtok3](https://github.com/Borewit/strtok3)** 10.3.5 — **4 months** ago: 2026-03-21
|
|
75
|
-
- **[@tokenizer/token](https://github.com/Borewit/tokenizer-token)** 0.3.0 — **60 months** ago: 2021-07-12 ⚠️
|
|
76
|
-
- **[token-types](https://github.com/Borewit/token-types)** 6.1.2 — **7 months** ago: 2026-01-01 ⚠️
|
|
77
|
-
- **[@borewit/text-codec](https://github.com/Borewit/text-codec)** 0.2.2 — **4 months** ago: 2026-03-11
|
|
78
|
-
- **[@tokenizer/token](https://github.com/Borewit/tokenizer-token)** 0.3.0 — **60 months** ago: 2021-07-12 ⚠️
|
|
79
|
-
- **[ieee754](https://github.com/feross/ieee754)** 1.2.1 — **69 months** ago: 2020-10-27 ⚠️
|
|
80
|
-
- **[uint8array-extras](https://github.com/sindresorhus/uint8array-extras)** 1.5.0 — **11 months** ago: 2025-08-22 ⚠️
|
|
106
|
+
This report is updated with each release, from the bundle the release builds, using [Sonda](https://sonda.dev/), which analyses final source maps to reveal the actual effects of tree-shaking and minification rather than relying on pre-build estimates.
|
|
81
107
|
|
|
82
|
-
|
|
108
|
+
_Note: Sonda's Vite reports currently exclude CSS files, since Vite does not generate source maps for CSS._
|
|
83
109
|
|
|
84
|
-
|
|
110
|
+
| Chunk/Module/File | Composition |
|
|
111
|
+
| :----------------------------------------------------------------------------------- | :--------------------------- |
|
|
112
|
+
| dist/dpuse-tool-file-previewer.es.js | 171.2 kB · gzip 38.7 kB |
|
|
113
|
+
| chardet | `██████░░░░░░░░░░░░░░` 28.2% |
|
|
114
|
+
| lib/encoding/sbcs.js | `████░░░░░░░░░░░░░░░░` 19.3% |
|
|
115
|
+
| lib/encoding/mbcs.js | `█░░░░░░░░░░░░░░░░░░░` 4.1% |
|
|
116
|
+
| lib/index.js | `░░░░░░░░░░░░░░░░░░░░` 1.9% |
|
|
117
|
+
| lib/encoding/iso2022.js | `░░░░░░░░░░░░░░░░░░░░` 1.0% |
|
|
118
|
+
| lib/encoding/unicode.js | `░░░░░░░░░░░░░░░░░░░░` 0.9% |
|
|
119
|
+
| lib/encoding/utf8.js | `░░░░░░░░░░░░░░░░░░░░` 0.5% |
|
|
120
|
+
| lib/encoding/ascii.js | `░░░░░░░░░░░░░░░░░░░░` 0.2% |
|
|
121
|
+
| lib/utils.js | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
|
|
122
|
+
| lib/match.js | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
|
|
123
|
+
| lib/fs/browser.js | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
|
|
124
|
+
| file-type | `█████░░░░░░░░░░░░░░░` 26.6% |
|
|
125
|
+
| source/index.js | `███░░░░░░░░░░░░░░░░░` 14.6% |
|
|
126
|
+
| source/detectors/zip.js | `█░░░░░░░░░░░░░░░░░░░` 6.3% |
|
|
127
|
+
| source/supported.js | `█░░░░░░░░░░░░░░░░░░░` 2.8% |
|
|
128
|
+
| source/detectors/asf.js | `░░░░░░░░░░░░░░░░░░░░` 0.8% |
|
|
129
|
+
| source/detectors/ebml.js | `░░░░░░░░░░░░░░░░░░░░` 0.7% |
|
|
130
|
+
| source/detectors/png.js | `░░░░░░░░░░░░░░░░░░░░` 0.6% |
|
|
131
|
+
| source/parser.js | `░░░░░░░░░░░░░░░░░░░░` 0.5% |
|
|
132
|
+
| source/tokens.js | `░░░░░░░░░░░░░░░░░░░░` 0.4% |
|
|
133
|
+
| (bundler output, whitespace & JSON) | `████░░░░░░░░░░░░░░░░` 20.1% |
|
|
134
|
+
| @dpuse/dpuse-shared → dist/dpuse-shared.es.js | `██░░░░░░░░░░░░░░░░░░` 7.7% |
|
|
135
|
+
| strtok3 | `█░░░░░░░░░░░░░░░░░░░` 4.1% |
|
|
136
|
+
| lib/ReadStreamTokenizer.js | `░░░░░░░░░░░░░░░░░░░░` 0.9% |
|
|
137
|
+
| lib/AbstractTokenizer.js | `░░░░░░░░░░░░░░░░░░░░` 0.8% |
|
|
138
|
+
| lib/stream/AbstractStreamReader.js | `░░░░░░░░░░░░░░░░░░░░` 0.6% |
|
|
139
|
+
| lib/stream/WebStreamDefaultReader.js | `░░░░░░░░░░░░░░░░░░░░` 0.4% |
|
|
140
|
+
| lib/BlobTokenizer.js | `░░░░░░░░░░░░░░░░░░░░` 0.4% |
|
|
141
|
+
| lib/BufferTokenizer.js | `░░░░░░░░░░░░░░░░░░░░` 0.4% |
|
|
142
|
+
| lib/stream/WebStreamByobReader.js | `░░░░░░░░░░░░░░░░░░░░` 0.2% |
|
|
143
|
+
| lib/core.js | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
|
|
144
|
+
| lib/stream/Errors.js | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
|
|
145
|
+
| lib/stream/WebStreamReaderFactory.js | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
|
|
146
|
+
| lib/stream/WebStreamReader.js | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
|
|
147
|
+
| @tokenizer/inflate | `█░░░░░░░░░░░░░░░░░░░` 3.8% |
|
|
148
|
+
| lib/ZipHandler.js | `█░░░░░░░░░░░░░░░░░░░` 2.9% |
|
|
149
|
+
| lib/ZipToken.js | `░░░░░░░░░░░░░░░░░░░░` 0.7% |
|
|
150
|
+
| lib/GzipHandler.js | `░░░░░░░░░░░░░░░░░░░░` 0.2% |
|
|
151
|
+
| debug | `█░░░░░░░░░░░░░░░░░░░` 3.0% |
|
|
152
|
+
| src/browser.js | `░░░░░░░░░░░░░░░░░░░░` 1.6% |
|
|
153
|
+
| src/common.js | `░░░░░░░░░░░░░░░░░░░░` 1.4% |
|
|
154
|
+
| src → index.ts | `█░░░░░░░░░░░░░░░░░░░` 2.6% |
|
|
155
|
+
| @borewit/text-codec → lib/index.js | `░░░░░░░░░░░░░░░░░░░░` 2.0% |
|
|
156
|
+
| ms → index.js | `░░░░░░░░░░░░░░░░░░░░` 0.9% |
|
|
157
|
+
| token-types → lib/index.js | `░░░░░░░░░░░░░░░░░░░░` 0.6% |
|
|
158
|
+
| uint8array-extras → index.js | `░░░░░░░░░░░░░░░░░░░░` 0.6% |
|
|
159
|
+
|
|
160
|
+
(bundler output, whitespace & JSON) = bytes Sonda can't trace to a source file: whitespace (indentation and line breaks), code the bundler generates (region comments, the combined import/export lines, its small runtime helper and wrappers), and imported JSON such as `config.json`, which the bundler doesn't map. The JSON and the generated code are real bytes that ship; the whitespace mostly disappears once compressed.
|
|
85
161
|
|
|
86
|
-
|
|
162
|
+
<!-- BUNDLE_END -->
|
|
87
163
|
|
|
88
|
-
|
|
164
|
+
<!-- QUALITY_SECURITY_START -->
|
|
89
165
|
|
|
90
|
-
|
|
91
|
-
|:------ |:-----------|
|
|
92
|
-
| dist/dpuse-tool-file-previewer.es.js | 162.4 kB · brotli 29.0 kB |
|
|
93
|
-
| chardet | `██████░░░░░░░░░░░░░░` 29.7% |
|
|
94
|
-
| lib/encoding/sbcs.js | `████░░░░░░░░░░░░░░░░` 20.3% |
|
|
95
|
-
| lib/encoding/mbcs.js | `█░░░░░░░░░░░░░░░░░░░` 4.3% |
|
|
96
|
-
| lib/index.js | `░░░░░░░░░░░░░░░░░░░░` 2.0% |
|
|
97
|
-
| lib/encoding/iso2022.js | `░░░░░░░░░░░░░░░░░░░░` 1.1% |
|
|
98
|
-
| lib/encoding/unicode.js | `░░░░░░░░░░░░░░░░░░░░` 0.9% |
|
|
99
|
-
| lib/encoding/utf8.js | `░░░░░░░░░░░░░░░░░░░░` 0.5% |
|
|
100
|
-
| lib/encoding/ascii.js | `░░░░░░░░░░░░░░░░░░░░` 0.2% |
|
|
101
|
-
| lib/utils.js | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
|
|
102
|
-
| lib/match.js | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
|
|
103
|
-
| lib/fs/browser.js | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
|
|
104
|
-
| file-type | `██████░░░░░░░░░░░░░░` 28.0% |
|
|
105
|
-
| source/index.js | `███░░░░░░░░░░░░░░░░░` 15.4% |
|
|
106
|
-
| source/detectors/zip.js | `█░░░░░░░░░░░░░░░░░░░` 6.6% |
|
|
107
|
-
| source/supported.js | `█░░░░░░░░░░░░░░░░░░░` 3.0% |
|
|
108
|
-
| source/detectors/asf.js | `░░░░░░░░░░░░░░░░░░░░` 0.8% |
|
|
109
|
-
| source/detectors/ebml.js | `░░░░░░░░░░░░░░░░░░░░` 0.7% |
|
|
110
|
-
| source/detectors/png.js | `░░░░░░░░░░░░░░░░░░░░` 0.6% |
|
|
111
|
-
| source/parser.js | `░░░░░░░░░░░░░░░░░░░░` 0.5% |
|
|
112
|
-
| source/tokens.js | `░░░░░░░░░░░░░░░░░░░░` 0.4% |
|
|
113
|
-
| (unassigned) → [unassigned] | `████░░░░░░░░░░░░░░░░` 20.5% |
|
|
114
|
-
| strtok3 | `█░░░░░░░░░░░░░░░░░░░` 4.3% |
|
|
115
|
-
| lib/ReadStreamTokenizer.js | `░░░░░░░░░░░░░░░░░░░░` 0.9% |
|
|
116
|
-
| lib/AbstractTokenizer.js | `░░░░░░░░░░░░░░░░░░░░` 0.9% |
|
|
117
|
-
| lib/stream/AbstractStreamReader.js | `░░░░░░░░░░░░░░░░░░░░` 0.6% |
|
|
118
|
-
| lib/stream/WebStreamDefaultReader.js | `░░░░░░░░░░░░░░░░░░░░` 0.4% |
|
|
119
|
-
| lib/BlobTokenizer.js | `░░░░░░░░░░░░░░░░░░░░` 0.4% |
|
|
120
|
-
| lib/BufferTokenizer.js | `░░░░░░░░░░░░░░░░░░░░` 0.4% |
|
|
121
|
-
| lib/stream/WebStreamByobReader.js | `░░░░░░░░░░░░░░░░░░░░` 0.2% |
|
|
122
|
-
| lib/core.js | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
|
|
123
|
-
| lib/stream/Errors.js | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
|
|
124
|
-
| lib/stream/WebStreamReaderFactory.js | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
|
|
125
|
-
| lib/stream/WebStreamReader.js | `░░░░░░░░░░░░░░░░░░░░` 0.1% |
|
|
126
|
-
| @tokenizer/inflate | `█░░░░░░░░░░░░░░░░░░░` 4.0% |
|
|
127
|
-
| lib/ZipHandler.js | `█░░░░░░░░░░░░░░░░░░░` 3.0% |
|
|
128
|
-
| lib/ZipToken.js | `░░░░░░░░░░░░░░░░░░░░` 0.7% |
|
|
129
|
-
| lib/GzipHandler.js | `░░░░░░░░░░░░░░░░░░░░` 0.2% |
|
|
130
|
-
| @dpuse/dpuse-shared | `█░░░░░░░░░░░░░░░░░░░` 3.4% |
|
|
131
|
-
| dist/dpuse-shared-encoding.es.js | `█░░░░░░░░░░░░░░░░░░░` 2.7% |
|
|
132
|
-
| dist/dpuse-shared-errors.es.js | `░░░░░░░░░░░░░░░░░░░░` 0.7% |
|
|
133
|
-
| debug | `█░░░░░░░░░░░░░░░░░░░` 3.1% |
|
|
134
|
-
| src/browser.js | `░░░░░░░░░░░░░░░░░░░░` 1.6% |
|
|
135
|
-
| src/common.js | `░░░░░░░░░░░░░░░░░░░░` 1.5% |
|
|
136
|
-
| src → index.ts | `█░░░░░░░░░░░░░░░░░░░` 2.7% |
|
|
137
|
-
| @borewit/text-codec → lib/index.js | `░░░░░░░░░░░░░░░░░░░░` 2.1% |
|
|
138
|
-
| ms → index.js | `░░░░░░░░░░░░░░░░░░░░` 1.0% |
|
|
139
|
-
| token-types → lib/index.js | `░░░░░░░░░░░░░░░░░░░░` 0.6% |
|
|
140
|
-
| uint8array-extras → index.js | `░░░░░░░░░░░░░░░░░░░░` 0.6% |
|
|
141
|
-
|
|
142
|
-
(unassigned) = bytes Sonda can't trace to a specific source line (whitespace, stray keywords, bundler-injected region markers) — not actual missing/unknown code.
|
|
166
|
+
## Quality & Security
|
|
143
167
|
|
|
144
|
-
|
|
168
|
+
This section is updated each time `npm run document` is run. Settings come from the repository's workflow files and GitHub. Test coverage and the Fallow score are measured at the same time.
|
|
145
169
|
|
|
146
|
-
|
|
170
|
+
### Testing
|
|
147
171
|
|
|
148
|
-
|
|
172
|
+
| Check | Status | What it does |
|
|
173
|
+
| :------------------- | :----- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
174
|
+
| Unit tests | ✅ On | [Vitest](https://vitest.dev) runs the unit tests. Part of the [CI workflow](https://github.com/dpuse/dpuse-tool-file-previewer/actions/workflows/ci.yml) on every push and pull request to `main`. |
|
|
175
|
+
| Property-based tests | ❌ Off | [fast-check](https://fast-check.dev) runs many random inputs per test to find edge cases, alongside the unit tests. |
|
|
149
176
|
|
|
150
|
-
###
|
|
177
|
+
### Code Quality
|
|
151
178
|
|
|
152
|
-
|
|
179
|
+
| Check | Status | What it does |
|
|
180
|
+
| :------------ | :----- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
181
|
+
| Code analysis | ❌ Off | [SonarCloud](https://sonarcloud.io) checks every push for bugs, code smells and vulnerabilities. |
|
|
182
|
+
| Linting | ✅ On | [ESLint](https://eslint.org) checks the code for errors and style problems. Part of the [CI workflow](https://github.com/dpuse/dpuse-tool-file-previewer/actions/workflows/ci.yml) on every push and pull request to `main`. |
|
|
153
183
|
|
|
154
|
-
###
|
|
184
|
+
### Security Analysis
|
|
155
185
|
|
|
156
|
-
|
|
186
|
+
| Check | Status | What it does |
|
|
187
|
+
| :-------------- | :----- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
188
|
+
| Push protection | ✅ On | [GitHub push protection](https://docs.github.com/en/code-security/secret-scanning/push-protection-for-repositories-and-organizations) blocks pushes that contain credentials. |
|
|
189
|
+
| Static analysis | ✅ On | [](https://github.com/dpuse/dpuse-tool-file-previewer/security/code-scanning) [CodeQL](https://codeql.github.com) scans GitHub Actions and JavaScript/TypeScript for security vulnerabilities, using the extended security queries, on every push and pull request to `main` and weekly. |
|
|
190
|
+
| Secret scanning | ✅ On | [GitHub secret scanning](https://docs.github.com/en/code-security/secret-scanning) detects credentials, such as API keys and tokens, committed to the repository. |
|
|
157
191
|
|
|
158
|
-
###
|
|
192
|
+
### Dependencies
|
|
159
193
|
|
|
160
|
-
|
|
194
|
+
| Check | Status | What it does |
|
|
195
|
+
| :------------------ | :----- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
196
|
+
| Vulnerability audit | ✅ On | [npm audit](https://docs.npmjs.com/cli/commands/npm-audit) fails when a shipped dependency has any known vulnerability, or a development dependency has a high or critical one. Part of the [CI workflow](https://github.com/dpuse/dpuse-tool-file-previewer/actions/workflows/ci.yml) on every push and pull request to `main`. |
|
|
197
|
+
| Supply chain risk | ✅ On | [Socket](https://socket.dev) flags malicious packages, typosquatting and suspicious behaviour that may not yet have a CVE. |
|
|
198
|
+
| Security alerts | ✅ On | [Dependabot](https://docs.github.com/en/code-security/dependabot) alerts when a dependency has a known vulnerability, using the GitHub Advisory Database. |
|
|
199
|
+
| Security updates | ❌ Off | [Dependabot](https://docs.github.com/en/code-security/dependabot) opens pull requests that update vulnerable dependencies. These are handled manually. |
|
|
200
|
+
| Version updates | ❌ Off | [Dependabot](https://docs.github.com/en/code-security/dependabot) opens pull requests for new dependency versions. These are handled manually. |
|
|
161
201
|
|
|
162
|
-
|
|
163
|
-
- [GitHub Dependabot](https://docs.github.com/en/code-security/dependabot) automatically raises pull requests to update vulnerable dependencies, drawing on the GitHub Advisory Database which combines NVD and npm-specific advisories.
|
|
202
|
+
### OpenSSF 🚧
|
|
164
203
|
|
|
165
|
-
|
|
204
|
+
[](https://scorecard.dev/viewer/?uri=github.com/dpuse/dpuse-tool-file-previewer)
|
|
166
205
|
|
|
167
|
-
[
|
|
206
|
+
This project is working towards the [OpenSSF Best Practices](https://www.bestpractices.dev) Passing badge, a self-certification covering security policy, vulnerability reporting, build processes, code quality, and more. Currently the [OpenSSF Scorecard](https://scorecard.dev) provides an independent automated assessment of the project's security practices and is an ongoing area of improvement.
|
|
168
207
|
|
|
169
208
|
### Reporting Vulnerabilities
|
|
170
209
|
|
|
171
210
|
Please do not open public GitHub issues for security vulnerabilities. Use [GitHub private vulnerability reporting](https://github.com/dpuse/dpuse-tool-file-previewer/security/advisories/new) instead. See [SECURITY.md](./SECURITY.md) for the full disclosure policy, contact details, and expected response times.
|
|
172
211
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
[](https://scorecard.dev/viewer/?uri=github.com/dpuse/dpuse-tool-file-previewer)
|
|
212
|
+
<!-- QUALITY_SECURITY_END -->
|
|
176
213
|
|
|
177
|
-
|
|
214
|
+
<!-- CONTRIBUTING_LICENSE_START -->
|
|
178
215
|
|
|
179
216
|
## Contributing
|
|
180
217
|
|
|
@@ -186,6 +223,6 @@ For security vulnerabilities, see [Reporting Vulnerabilities](#reporting-vulnera
|
|
|
186
223
|
|
|
187
224
|
This project is licensed under the MIT License, permitting free use, modification, and distribution.
|
|
188
225
|
|
|
189
|
-
[MIT](./LICENSE) © 2026
|
|
226
|
+
[MIT](./LICENSE) © 2026 Jonathan Terrell
|
|
190
227
|
|
|
191
|
-
<!--
|
|
228
|
+
<!-- CONTRIBUTING_LICENSE_END -->
|