@preventive/triage 1.0.0-alpha.72 → 1.0.0-alpha.74
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/common/bundle-compare-diff.d.ts +4 -1
- package/common/bundle-compare-diff.js +4 -3
- package/common/bundle-sources.d.ts +2 -0
- package/common/bundle-sources.js +22 -3
- package/common/finding-duplicates.js +5 -0
- package/common/finding-filters.js +45 -4
- package/common/line-diff.d.ts +2 -2
- package/common/line-diff.js +20 -8
- package/common/managed/finding-detail.js +1 -1
- package/common/managed/review-view-routes.js +23 -0
- package/common/managed/risk-routes.js +30 -0
- package/common/managed/routes.js +11 -6
- package/common/managed/team-app.d.ts +8 -6
- package/common/managed/team-app.js +15 -3
- package/common/stasis-files.d.ts +5 -0
- package/common/stasis-files.js +20 -0
- package/common/stasis-tgz.d.ts +6 -0
- package/common/stasis-tgz.js +27 -0
- package/common/workspace-app.js +20 -0
- package/out/activity.js +2 -4
- package/out/{chunk-2F3CYNPZ.js → chunk-2IHCVA3Y.js} +1 -1
- package/out/{chunk-HAZKDK4M.js → chunk-2V6Q4ZOZ.js} +1 -1
- package/out/{chunk-RRBIJL2B.js → chunk-4IW3VD3H.js} +1 -1
- package/out/chunk-4YZOXAXR.js +2 -0
- package/out/chunk-5YP7P5KA.js +1 -0
- package/out/chunk-62QT2RXR.js +6 -0
- package/out/chunk-6VOB5WXX.js +2 -0
- package/out/chunk-A4BBBHQU.js +1 -0
- package/out/{chunk-4ISO5F7Y.js → chunk-ADMVRLNP.js} +1 -1
- package/out/{chunk-HETCVNO4.js → chunk-BLPHP4U3.js} +1 -1
- package/out/{chunk-Y5ZHFNBD.js → chunk-BXQCCW7F.js} +1 -1
- package/out/chunk-C6OPCPCA.js +1 -0
- package/out/{chunk-JFL7WLRV.js → chunk-CU3FPB3P.js} +1 -1
- package/out/chunk-DQJEVHRE.js +52 -0
- package/out/chunk-ESJZZF2Y.js +255 -0
- package/out/{chunk-M37X4LCF.js → chunk-EXQQ5VQJ.js} +1 -1
- package/out/{chunk-NXATZJQ2.js → chunk-GSNSP3EF.js} +1 -1
- package/out/chunk-GV5U7OLP.js +40 -0
- package/out/{chunk-JOXLZXMI.js → chunk-GX5UXWT4.js} +1 -1
- package/out/chunk-HLMQ7QYS.js +1 -0
- package/out/{chunk-YF4M5OCI.js → chunk-I6UQQKAH.js} +1 -1
- package/out/{chunk-UCP3JRE2.js → chunk-LVW7WWV4.js} +1 -1
- package/out/chunk-NEFCZAIY.js +11 -0
- package/out/{chunk-TOXMUOIW.js → chunk-OQS2USZM.js} +1 -1
- package/out/chunk-PLF4LBLE.js +1 -0
- package/out/chunk-QBFT2DDR.js +1 -0
- package/out/{chunk-QMVOEBWC.js → chunk-S2ZIKK45.js} +1 -1
- package/out/chunk-S5HSDGTP.js +8 -0
- package/out/chunk-SSPDMA6D.js +1 -0
- package/out/{chunk-4XIH7YTX.js → chunk-UH6NZBSU.js} +1 -1
- package/out/{chunk-M3Y6SLC4.js → chunk-UJP4PQJA.js} +1 -1
- package/out/{chunk-PAD2JHZT.js → chunk-UJSJMXEG.js} +1 -1
- package/out/chunk-VRAJCPV5.js +3 -0
- package/out/chunk-VS7RV24Z.js +4 -0
- package/out/{chunk-E3LFSUDJ.js → chunk-VYYUMYVW.js} +1 -1
- package/out/chunk-W5PRH5D7.js +2 -0
- package/out/{chunk-VRX2APNA.js → chunk-XVKDPU4D.js} +1 -1
- package/out/{chunk-WKFBZYJX.js → chunk-YI4D6XVX.js} +1 -1
- package/out/client-managed-import.js +3 -3
- package/out/client-managed.js +30 -28
- package/out/compare.js +16 -23
- package/out/dialogs.js +38 -38
- package/out/graph.js +14 -14
- package/out/index.html +31 -51
- package/out/scan.js +2 -2
- package/out/terminal.js +239 -240
- package/out/view.css +1 -1
- package/out/view.js +15 -15
- package/package.json +21 -13
- package/risk/actions/resolve.js +47 -16
- package/risk/actions/uses.js +27 -9
- package/risk/actions/workflow.js +75 -2
- package/risk/files/hosts.js +4 -4
- package/risk/files/readability.js +5 -2
- package/risk/files/runs-code.js +12 -25
- package/risk/files/script.js +141 -19
- package/risk/index.d.ts +24 -7
- package/risk/index.js +1 -0
- package/risk/npm/assess.js +1 -1
- package/risk/npm/compare.js +5 -4
- package/risk/npm/diff.js +1 -1
- package/risk/npm/held.js +6 -2
- package/risk/npm/registry.js +5 -2
- package/risk/npm/tarball.js +79 -22
- package/server-managed/bundle-advisories.ts +12 -36
- package/server-managed/bundle-build-worker.js +29 -11
- package/server-managed/bundle-build.ts +4 -3
- package/server-managed/bundle-cache.ts +53 -13
- package/server-managed/bundle.ts +45 -13
- package/server-managed/comparison.ts +7 -6
- package/server-managed/db-methods.ts +54 -17
- package/server-managed/db-neon.ts +9 -2
- package/server-managed/db-schema.ts +12 -2
- package/server-managed/db.ts +4 -1
- package/server-managed/dependency-reviews.ts +8 -5
- package/server-managed/github-errors.ts +22 -0
- package/server-managed/github-requests.ts +4 -2
- package/server-managed/http.ts +238 -27
- package/server-managed/management.ts +10 -4
- package/server-managed/npm-delta.ts +1 -1
- package/server-managed/npm-loads.ts +2 -2
- package/server-managed/npm-packages.ts +34 -29
- package/server-managed/npm-patch-paths.ts +57 -0
- package/server-managed/npm-patch.ts +77 -82
- package/server-managed/package-entry-points.ts +54 -6
- package/server-managed/rename-diff-worker.js +11 -7
- package/server-managed/rename-diff.ts +5 -4
- package/server-managed/report-opening.ts +77 -0
- package/server-managed/report-sources.ts +2 -1
- package/server-managed/repository-aliases.ts +34 -0
- package/server-managed/repository-browser.ts +87 -32
- package/server-managed/repository-code.ts +14 -8
- package/server-managed/repository-dependency-reviews.ts +21 -0
- package/server-managed/repository-risk-read.ts +71 -4
- package/server-managed/repository-risk.ts +9 -2
- package/server-managed/stasis-config.ts +97 -5
- package/server-managed/team-reports.ts +5 -3
- package/server-managed/type-only-proof.js +26 -4
- package/server-managed/upstream-cache.ts +18 -12
- package/server-managed/workspace-shares.ts +4 -4
- package/out/chunk-27Y75UQR.js +0 -4
- package/out/chunk-4RS3NDOG.js +0 -1
- package/out/chunk-4XSH6ZLT.js +0 -1
- package/out/chunk-7CHIFYQW.js +0 -42
- package/out/chunk-CZ3U2LI4.js +0 -2
- package/out/chunk-ETL5ZPPR.js +0 -259
- package/out/chunk-L6VIWL2Y.js +0 -1
- package/out/chunk-OSHR3N4S.js +0 -3
- package/out/chunk-UD33S2MG.js +0 -52
- package/out/chunk-VG5RH6KN.js +0 -2
- package/out/chunk-WFDXHPT2.js +0 -12
- package/out/chunk-WMFDQS2L.js +0 -11
- package/out/chunk-WREU7JAG.js +0 -1
- /package/out/{chunk-4LZK6C6N.js → chunk-74JZTGTO.js} +0 -0
- /package/out/{chunk-JMG5DXII.js → chunk-7HP2VYIC.js} +0 -0
- /package/out/{chunk-HOB3YPS5.js → chunk-K4XJHM2T.js} +0 -0
- /package/out/{chunk-4EMM6UCD.js → chunk-QI66YA4F.js} +0 -0
- /package/out/{chunk-G3LY2FV4.js → chunk-WCDYSIKG.js} +0 -0
package/out/index.html
CHANGED
|
@@ -4,20 +4,13 @@
|
|
|
4
4
|
<base href="/">
|
|
5
5
|
<meta charset="utf-8">
|
|
6
6
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
7
|
-
<!-- `worker-src
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
names the only policies that may bless one: Lit's `lit-html` for
|
|
15
|
-
its templates, and `deepview` (view/trusted-types.js) for the
|
|
16
|
-
markup and the worker URL the app sets outside Lit.
|
|
17
|
-
`style-src 'self'` takes no inline style: no `style` attribute in
|
|
18
|
-
markup and no style element. Styles come from the stylesheets,
|
|
19
|
-
Lit's adopted sheets, and the CSSOM (`styleMap`, `element.style`),
|
|
20
|
-
so markup that gets in can't restyle the page. -->
|
|
7
|
+
<!-- `worker-src` runs the brotli fallback off the main thread; `child-src`
|
|
8
|
+
repeats it for browsers predating `worker-src`, and `frame-src 'none'`
|
|
9
|
+
keeps that repeat from admitting frames. Trusted types: only Lit's
|
|
10
|
+
`lit-html` and `deepview` (view/trusted-types.js) may bless HTML or a
|
|
11
|
+
script URL. `style-src 'self'` allows no inline style, only
|
|
12
|
+
stylesheets, adopted sheets and the CSSOM, so injected markup can't
|
|
13
|
+
restyle the page. -->
|
|
21
14
|
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'self'; require-trusted-types-for 'script'; trusted-types lit-html deepview; worker-src 'self'; child-src 'self'; frame-src 'none'; style-src 'self'; img-src 'self'; manifest-src 'self'; form-action 'none'; connect-src 'self'">
|
|
22
15
|
<title>DeepView</title>
|
|
23
16
|
<link rel="icon" href="./icon.svg" type="image/svg+xml" />
|
|
@@ -31,28 +24,30 @@
|
|
|
31
24
|
<link rel="preload" href="./view.css" as="style" />
|
|
32
25
|
<link rel="modulepreload" href="./view.js" />
|
|
33
26
|
<link rel="modulepreload" href="./chunk-R3NZFXVR.js" />
|
|
34
|
-
<link rel="modulepreload" href="./chunk-
|
|
35
|
-
<link rel="modulepreload" href="./chunk-
|
|
27
|
+
<link rel="modulepreload" href="./chunk-VS7RV24Z.js" />
|
|
28
|
+
<link rel="modulepreload" href="./chunk-ESJZZF2Y.js" />
|
|
29
|
+
<link rel="modulepreload" href="./chunk-A4BBBHQU.js" />
|
|
36
30
|
<link rel="modulepreload" href="./chunk-JCIIBLKR.js" />
|
|
37
|
-
<link rel="modulepreload" href="./chunk-
|
|
38
|
-
<link rel="modulepreload" href="./chunk-
|
|
31
|
+
<link rel="modulepreload" href="./chunk-VYYUMYVW.js" />
|
|
32
|
+
<link rel="modulepreload" href="./chunk-7HP2VYIC.js" />
|
|
39
33
|
<link rel="modulepreload" href="./chunk-PQPKHAI5.js" />
|
|
40
|
-
<link rel="modulepreload" href="./chunk-
|
|
41
|
-
<link rel="modulepreload" href="./chunk-
|
|
42
|
-
<link rel="modulepreload" href="./chunk-
|
|
34
|
+
<link rel="modulepreload" href="./chunk-2IHCVA3Y.js" />
|
|
35
|
+
<link rel="modulepreload" href="./chunk-DQJEVHRE.js" />
|
|
36
|
+
<link rel="modulepreload" href="./chunk-62QT2RXR.js" />
|
|
37
|
+
<link rel="modulepreload" href="./chunk-S5HSDGTP.js" />
|
|
43
38
|
<link rel="modulepreload" href="./chunk-NRPC74AM.js" />
|
|
44
39
|
<link rel="modulepreload" href="./chunk-7BKKYVWR.js" />
|
|
45
40
|
<link rel="modulepreload" href="./chunk-7C7DWL7I.js" />
|
|
46
41
|
<link rel="modulepreload" href="./chunk-PNHBZGDD.js" />
|
|
47
|
-
<link rel="modulepreload" href="./chunk-
|
|
48
|
-
<link rel="modulepreload" href="./chunk-
|
|
49
|
-
<link rel="modulepreload" href="./chunk-
|
|
42
|
+
<link rel="modulepreload" href="./chunk-GV5U7OLP.js" />
|
|
43
|
+
<link rel="modulepreload" href="./chunk-BLPHP4U3.js" />
|
|
44
|
+
<link rel="modulepreload" href="./chunk-74JZTGTO.js" />
|
|
50
45
|
<link rel="modulepreload" href="./chunk-IYPY47MC.js" />
|
|
51
|
-
<link rel="modulepreload" href="./chunk-PWFUOLZK.js" />
|
|
52
|
-
<link rel="modulepreload" href="./chunk-4RS3NDOG.js" />
|
|
53
|
-
<link rel="modulepreload" href="./chunk-QRKFPLA4.js" />
|
|
54
46
|
<link rel="modulepreload" href="./chunk-74AEKRES.js" />
|
|
47
|
+
<link rel="modulepreload" href="./chunk-PWFUOLZK.js" />
|
|
55
48
|
<link rel="modulepreload" href="./chunk-C4Z6ZBXV.js" />
|
|
49
|
+
<link rel="modulepreload" href="./chunk-5YP7P5KA.js" />
|
|
50
|
+
<link rel="modulepreload" href="./chunk-QRKFPLA4.js" />
|
|
56
51
|
<link rel="modulepreload" href="./chunk-2XUEZHIP.js" />
|
|
57
52
|
<link rel="modulepreload" href="./chunk-TUII34K2.js" />
|
|
58
53
|
<link rel="modulepreload" href="./chunk-OOJM4CTU.js" />
|
|
@@ -63,12 +58,8 @@
|
|
|
63
58
|
|
|
64
59
|
<theme-toggle></theme-toggle>
|
|
65
60
|
|
|
66
|
-
<!--
|
|
67
|
-
|
|
68
|
-
brand wordmark inside is the click target that routes to
|
|
69
|
-
`goHome` via the sidebar's own click delegate; in WCO PWA
|
|
70
|
-
mode the same brand is what the OS controls strip overlays
|
|
71
|
-
onto (no light-DOM duplicate needed). -->
|
|
61
|
+
<!-- Its own shadow DOM holds the brand, search, list and sync button;
|
|
62
|
+
window-controls-overlay mode overlays the OS controls on its brand. -->
|
|
72
63
|
<app-sidebar role="complementary" aria-label="Reports and workspaces" inert></app-sidebar>
|
|
73
64
|
|
|
74
65
|
<main id="main-content">
|
|
@@ -97,11 +88,8 @@
|
|
|
97
88
|
</button>
|
|
98
89
|
<p class="drop-import-hint">Or reopen a report from the sidebar.</p>
|
|
99
90
|
</div>
|
|
100
|
-
<!--
|
|
101
|
-
|
|
102
|
-
same SVG markup the sidebar uses for its file / bundle /
|
|
103
|
-
workspace rows (see view/file-display.js + view/icons.js
|
|
104
|
-
for the source of truth). `data-icon` keys the lookup. -->
|
|
91
|
+
<!-- view/drop-supported-icons.js fills each `data-icon` with the
|
|
92
|
+
sidebar's own icon for it. -->
|
|
105
93
|
<div class="drop-supported" aria-label="Supported formats">
|
|
106
94
|
<section class="drop-supported-section">
|
|
107
95
|
<h2>Reports</h2>
|
|
@@ -127,20 +115,15 @@
|
|
|
127
115
|
<li><span class="drop-supported-icon" data-icon="workspace" aria-hidden="true"></span><span class="drop-supported-label">Workspace exports</span></li>
|
|
128
116
|
</ul>
|
|
129
117
|
</section>
|
|
130
|
-
<!-- Not a report:
|
|
131
|
-
reports above are the same finding reported twice. Listed
|
|
132
|
-
here because it is something you drop, and the drop zone
|
|
133
|
-
is where the app says what it accepts. -->
|
|
118
|
+
<!-- Not a report: which findings of the reports are the same one. -->
|
|
134
119
|
<section class="drop-supported-section">
|
|
135
120
|
<h2>Links</h2>
|
|
136
121
|
<ul>
|
|
137
122
|
<li><span class="drop-supported-icon" data-icon="links" aria-hidden="true"></span><span class="drop-supported-label">Linked findings</span></li>
|
|
138
123
|
</ul>
|
|
139
124
|
</section>
|
|
140
|
-
<!-- Not saved: a lockfile
|
|
141
|
-
|
|
142
|
-
One row per ecosystem, with the icon the Code tab's tree gives
|
|
143
|
-
its packages or files (view/lockfile-view.js reads them). -->
|
|
125
|
+
<!-- Not saved: a dropped lockfile opens alone (view/lockfile-drop.js).
|
|
126
|
+
One row per ecosystem, with its Code tab icon. -->
|
|
144
127
|
<section class="drop-supported-section">
|
|
145
128
|
<h2>Lockfiles</h2>
|
|
146
129
|
<ul>
|
|
@@ -169,11 +152,8 @@
|
|
|
169
152
|
<div id="report"></div>
|
|
170
153
|
</main>
|
|
171
154
|
|
|
172
|
-
<!--
|
|
173
|
-
|
|
174
|
-
the same modal regardless of which view the user is on,
|
|
175
|
-
without having to switch them to the bundles view first.
|
|
176
|
-
Kept empty until render() puts the modal HTML in. -->
|
|
155
|
+
<!-- The bundle source modal, outside #main-content so a finding's [Code →]
|
|
156
|
+
opens it from any view; empty until render() fills it. -->
|
|
177
157
|
<div id="bundle-source-overlay-slot"></div>
|
|
178
158
|
|
|
179
159
|
</body>
|