@ashishjain15491/tapcheck 0.1.1 → 0.1.2

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/CHANGELOG.md CHANGED
@@ -1,11 +1,20 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.2 (2026-11-25)
4
+
5
+ - **GitHub Marketplace.** The Action is named "tapcheck audit", since the Marketplace needs a name no GitHub account
6
+ uses. It is still used as `ashishjain15491/tapcheck@<tag>`.
7
+ - **Escaping fixes** (from CodeQL). A backslash in a coverage row no longer breaks its `COVERAGE.md` table cell, and a
8
+ `login.form` field name with a backslash in it finds its field.
9
+
3
10
  ## 0.1.1 (2026-11-25)
4
11
 
5
12
  No change to what tapcheck checks or how it runs.
6
13
 
7
14
  - **README and logo.** A shorter README in the usual layout, with the tapcheck logo (light and dark), a report
8
- screenshot and badges; the logo kit is in `assets/`. The Codex plugin and the Action use the brand colour.
15
+ screenshot and badges, and setup steps for each way to run it: writing `tapcheck.yml`, the Jev key, sign-in
16
+ variables, then the plugin, npm, the Action and Docker. The logo kit and the social preview are in `assets/`; the
17
+ Codex plugin and the Action use the brand colour.
9
18
  - **GitHub Marketplace.** The Action's description fits the Marketplace's 125 characters.
10
19
  - **Action.** It runs on the current `actions/setup-node` and `actions/upload-artifact` (v7).
11
20
  - **Releases from GitHub.** `.github/workflows/publish.yml` publishes to npm when a release is published, through npm
@@ -14,7 +23,8 @@ No change to what tapcheck checks or how it runs.
14
23
 
15
24
  ## 0.1.0 (2026-11-25)
16
25
 
17
- The first release: on npm as `@ashishjain15491/tapcheck` (the CLI is still `tapcheck`), and as the GitHub Action `ashishjain15491/tapcheck@v0.1.0`.
26
+ The first release: on npm as `@ashishjain15491/tapcheck` (the CLI is still `tapcheck`), and as the GitHub Action
27
+ `ashishjain15491/tapcheck@v0.1.0`.
18
28
 
19
29
  - **Core harness.** One `tapcheck.yml` describes the app: how to start, stop and reset it, its sides and how each
20
30
  signs in (`none`, `manual`, `form` with optional TOTP, `command`), screens, tasks and viewports. `$NAME` values come
@@ -61,9 +71,10 @@ The first release: on npm as `@ashishjain15491/tapcheck` (the CLI is still `tapc
61
71
  only pages it actually crawled count toward `crawl.max` (a long route list used to crowd the links out). The
62
72
  signed-out check follows redirects, so `/` → `/admin` → `/login` counts as refused. A CSRF token cookie
63
73
  (`XSRF-TOKEN`, `csrftoken`) may be readable by script. The CSRF probe goes to the sides that sign in (every side
64
- when none does), and a side can have its own `csrf`. Flows get `t.note(name, detail, 'warn' | 'info')` and a `timeout` (default 3600 s), so a flow that hangs fails instead
65
- of stalling the run. A step that returns `{ warn: '…' }` is recorded as a warning, and `t.mail` has `count()` and
66
- `all()`, with each message's `id` and `headers` (for checks such as List-Unsubscribe on every email of a send).
74
+ when none does), and a side can have its own `csrf`. Flows get `t.note(name, detail, 'warn' | 'info')` and a
75
+ `timeout` (default 3600 s), so a flow that hangs fails instead of stalling the run. A step that returns
76
+ `{ warn: '…' }` is recorded as a warning, and `t.mail` has `count()` and `all()`, with each message's `id` and
77
+ `headers` (for checks such as List-Unsubscribe on every email of a send).
67
78
  `t.jev()` waits for the page to settle and looks again when the page reloads under it. The crawl takes a link to a
68
79
  file (a PDF download) for what it is, not a page that answered 0, and a signed-out side skips the routes the list
69
80
  marks `auth`. Stopping the app stops what `app.start` left running in the background too, and `app.stop` runs only
@@ -80,7 +91,8 @@ The first release: on npm as `@ashishjain15491/tapcheck` (the CLI is still `tapc
80
91
  answer's status and skips refused ones; Mailpit and stub calls give up after 30 s or at the timeout;
81
92
  `t.mail.all({ limit })`; a form POST with `_method` is reached as that method.
82
93
  `browser.args` passes extra switches to the run's Chromium (an app on localhost whose sandboxed preview frames load
83
- its own files needs `--disable-features=LocalNetworkAccessChecks`). A side whose sign-in fails says so in the terminal, not only in the report.
94
+ its own files needs `--disable-features=LocalNetworkAccessChecks`). A side whose sign-in fails says so in the
95
+ terminal, not only in the report.
84
96
  Waiting for a page to settle is capped outside the page, so a page whose own timers never fire (one
85
97
  sandboxed by its CSP without `allow-scripts`, such as an email preview) can't hang the run.
86
98
  `t.page({ viewport: 'mobile' })` hands a flow a page at any of the config's viewports (the first one by default), so
package/README.md CHANGED
@@ -63,7 +63,7 @@ npm install --save-dev tapcheck@npm:@ashishjain15491/tapcheck
63
63
  npx playwright install chromium # once
64
64
  ```
65
65
 
66
- Or run it without installing: `npx @ashishjain15491/tapcheck@0.1.1`.
66
+ Or run it without installing: `npx @ashishjain15491/tapcheck@0.1.2`.
67
67
 
68
68
  **GitHub Action** and **Docker**: see [Run it](#3-run-it) below.
69
69
 
@@ -144,7 +144,7 @@ uploads the run folder and fails the step when a check fails; inputs are in [act
144
144
  - uses: actions/checkout@v4
145
145
  with: { fetch-depth: 0 } # for changed: base
146
146
  # …install your app's language, dependencies and a test database…
147
- - uses: ashishjain15491/tapcheck@v0.1.1
147
+ - uses: ashishjain15491/tapcheck@v0.1.2
148
148
  with:
149
149
  changed: base # optional: only what the pull request changed
150
150
  env:
package/dist/auth.js CHANGED
@@ -30,7 +30,7 @@ export function totp(secret, at = Date.now()) {
30
30
  async function field(page, key) {
31
31
  if (/^[#.[]|[\s=>]/.test(key))
32
32
  return page.locator(key).first();
33
- const byName = page.locator(`[name="${key.replace(/"/g, '\\"')}"]`);
33
+ const byName = page.locator(`[name="${key.replace(/[\\"]/g, '\\$&')}"]`);
34
34
  return (await byName.count()) ? byName.first() : page.getByLabel(key, { exact: false }).first();
35
35
  }
36
36
  const off = (cfg, u) => !cfg.loginPaths.test(new URL(u).pathname);
package/dist/coverage.js CHANGED
@@ -18,7 +18,7 @@ export function hits(out) {
18
18
  }
19
19
  /** The coverage map as Markdown, and its counts. `reasons` are matched against "GET /path", "dialog <name>" and "table <headers>: <control>". */
20
20
  export function coverage(all, runs, routes, reasons) {
21
- const cell = (s) => s.replace(/\|/g, '\\|').replace(/\s+/g, ' ');
21
+ const cell = (s) => s.replace(/[\\|]/g, '\\$&').replace(/\s+/g, ' '); // a backslash first, so `a\|b` stays one cell
22
22
  const by = (ok) => [...new Set(all.filter((h) => ok(h.what)).map((h) => (h.step ? `${h.part}: ${h.step}` : h.part)))];
23
23
  const who = (w) => cell(w.slice(0, 2).join(', ') + (w.length > 2 ? ` (+${w.length - 2})` : ''));
24
24
  const kind = (prefix) => [...new Set(all.filter((h) => h.what.startsWith(prefix)).map((h) => h.what))].sort().map((what) => `| ${cell(what.slice(prefix.length))} | ${who(by((w) => w === what))} |`);
package/dist/routes.js CHANGED
@@ -16,7 +16,7 @@ export function matcher(path) {
16
16
  return '.+';
17
17
  if (t.length > 1)
18
18
  return '[^/]+'; // {id}, <int:pk>, <pk>, :id
19
- return t === '(' ? '(?:' : t === ')' ? ')?' : t.replace(/[.+?^$|[\]\\]/, '\\$&');
19
+ return t === '(' ? '(?:' : t === ')' ? ')?' : t.replace(/[.+?^$|[\]\\]/g, '\\$&');
20
20
  });
21
21
  return new RegExp(`^${src}/?$`);
22
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ashishjain15491/tapcheck",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "End-to-end and UI audit harness for any web app, whatever its stack: crawl, API contract, security, accessibility, and Jev judgments of what people see.",
5
5
  "license": "MIT",
6
6
  "author": "ashishjain15491 (https://github.com/ashishjain15491)",