@simmalugnt-se/payload-consent 0.6.8 → 0.6.9
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 +8 -0
- package/README.md +7 -2
- package/dist/scans.js +3 -1
- package/dist/types.d.ts +3 -1
- package/dist/types.js +3 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.6.9
|
|
4
|
+
|
|
5
|
+
- A scan visits every page it finds as a new visitor, up to 500 in all, and 30 pages in each other
|
|
6
|
+
consent state, spread over the lists or sitemaps. Before, the scanner's defaults applied: the
|
|
7
|
+
start page and 10 pages from each list or sitemap, and the first 10 of them in the other states,
|
|
8
|
+
whatever `scanner.pages` sent. Needs `consent-scanner` at `8fc560c` or later: an older one refuses
|
|
9
|
+
the scan. Scans take longer on large sites, roughly 3–4 seconds per page.
|
|
10
|
+
|
|
3
11
|
## 0.6.8
|
|
4
12
|
|
|
5
13
|
- Add to service on a scan's finding gives the row the cookie's description from the Open Cookie
|
package/README.md
CHANGED
|
@@ -145,8 +145,13 @@ sends the published documents of those collections instead: read as a visitor wo
|
|
|
145
145
|
default locale, each turned into a path or address by `url` (return nothing to leave one out).
|
|
146
146
|
Paths are taken relative to the scanned address, and addresses on another origin are left out.
|
|
147
147
|
Each collection goes as its own list, and the scanner picks from each as from one sitemap, so a
|
|
148
|
-
thousand news articles do not crowd out the pages
|
|
149
|
-
|
|
148
|
+
thousand news articles do not crowd out the pages. Without the option, or when no page is left,
|
|
149
|
+
the scanner reads the sitemaps.
|
|
150
|
+
|
|
151
|
+
A scan visits every page it finds as a new visitor, up to 500 shared evenly between the lists or
|
|
152
|
+
sitemaps, and a list shorter than its share leaves the rest to the others. Each other state visits
|
|
153
|
+
30 of them: the start page and a spread from every list. This needs `consent-scanner` at
|
|
154
|
+
`8fc560c` or later; an older one refuses the scan.
|
|
150
155
|
|
|
151
156
|
Scan now scans the site's address (the Site address field; with it empty, `callbackBaseUrl`, then
|
|
152
157
|
`serverURL`, as the field's placeholder and help say) as a new visitor, after rejecting, after
|
package/dist/scans.js
CHANGED
|
@@ -6,7 +6,7 @@ import { evidenceEndpoint } from "./evidence.js";
|
|
|
6
6
|
import { notifyScan } from "./notify.js";
|
|
7
7
|
import { retentionIn } from "./retention.js";
|
|
8
8
|
import { readConsent, toConsentConfig, } from "./site-config.js";
|
|
9
|
-
import { CONSENT_GLOBAL, CONSENT_SCAN_EVIDENCE, CONSENT_SCANS, CONSENT_SERVICES, MAX_SCAN_PAGES, POLICY_COOKIE, SCAN_TASK, } from "./types.js";
|
|
9
|
+
import { CONSENT_GLOBAL, CONSENT_SCAN_EVIDENCE, CONSENT_SCANS, CONSENT_SERVICES, MAX_SCAN_PAGES, POLICY_COOKIE, SCAN_STATE_PAGES, SCAN_TASK, } from "./types.js";
|
|
10
10
|
/**
|
|
11
11
|
* The states a scan runs: a new visitor, rejecting, accepting everything and, with more than one
|
|
12
12
|
* optional category, each category on its own. Each state presets c15t's cookie as c15t 2.2.1
|
|
@@ -163,6 +163,8 @@ export async function startScan({ payload, options, url: given, trigger = "manua
|
|
|
163
163
|
callbackUrl: `${base}/result`,
|
|
164
164
|
...(scanner.keepEvidence === 0 ? {} : { evidenceUrl: `${base}/evidence` }),
|
|
165
165
|
...(pages ? { pages } : {}),
|
|
166
|
+
maxPerSitemap: MAX_SCAN_PAGES,
|
|
167
|
+
statePages: SCAN_STATE_PAGES,
|
|
166
168
|
states: states.map(({ id, cookies }) => ({ id, cookies })),
|
|
167
169
|
}),
|
|
168
170
|
signal: AbortSignal.timeout(20_000),
|
package/dist/types.d.ts
CHANGED
|
@@ -88,5 +88,7 @@ export declare const POLICY_COOKIE = "c15t-policy";
|
|
|
88
88
|
/** Three years, unless the host sets `records.retentionDays`. */
|
|
89
89
|
export declare const DEFAULT_RETENTION_DAYS: number;
|
|
90
90
|
export declare const DEFAULT_KEEP_EVIDENCE = 12;
|
|
91
|
-
/** The most pages a scan sends, in all its lists; the scanner
|
|
91
|
+
/** The most pages a scan sends and visits as a new visitor, in all its lists; the scanner's limit. */
|
|
92
92
|
export declare const MAX_SCAN_PAGES = 500;
|
|
93
|
+
/** The pages visited in each other consent state: the start page and a spread from every list. */
|
|
94
|
+
export declare const SCAN_STATE_PAGES = 30;
|
package/dist/types.js
CHANGED
|
@@ -15,5 +15,7 @@ export const POLICY_COOKIE = "c15t-policy";
|
|
|
15
15
|
/** Three years, unless the host sets `records.retentionDays`. */
|
|
16
16
|
export const DEFAULT_RETENTION_DAYS = 3 * 365;
|
|
17
17
|
export const DEFAULT_KEEP_EVIDENCE = 12;
|
|
18
|
-
/** The most pages a scan sends, in all its lists; the scanner
|
|
18
|
+
/** The most pages a scan sends and visits as a new visitor, in all its lists; the scanner's limit. */
|
|
19
19
|
export const MAX_SCAN_PAGES = 500;
|
|
20
|
+
/** The pages visited in each other consent state: the start page and a spread from every list. */
|
|
21
|
+
export const SCAN_STATE_PAGES = 30;
|