@escape-game-over/atlas 0.1.116 → 0.1.118

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.
@@ -1,29 +0,0 @@
1
- import type { NonEmpty } from "../types.ts";
2
- import { invalidId, TIKTOK_PIXEL_ID } from "./ids.ts";
3
-
4
- /**
5
- * TikTok's pixel. Marketing: it loads only once a visitor grants that.
6
- *
7
- * @see https://ads.tiktok.com/help/article/get-started-pixel
8
- * @see https://ads.tiktok.com/help/article/standard-events-parameters
9
- * @see https://ads.tiktok.com/help/article/how-to-use-cookies-with-tiktok-pixel
10
- */
11
- export interface TikTokPixelSettings {
12
- /** From TikTok Events Manager: 20 capital letters and digits. */
13
- readonly pixelIds: NonEmpty<string>;
14
- }
15
-
16
- /** Fails the build on an id that is not a pixel id: it would report nowhere. */
17
- export function checkTikTokPixel(
18
- tiktok: TikTokPixelSettings | undefined,
19
- at: string
20
- ): void {
21
- for (const id of tiktok?.pixelIds ?? []) {
22
- if (!TIKTOK_PIXEL_ID.test(id)) {
23
- invalidId(
24
- at,
25
- `TikTok pixel id "${id}" is not 20 capital letters and digits, so it would report nowhere. Copy it from TikTok Events Manager.`
26
- );
27
- }
28
- }
29
- }