ionblink-js 0.1.8 → 0.1.10

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,5 +1,28 @@
1
1
  # Changelog: ionblink-js
2
2
 
3
+ ## 0.1.10 - 2026-12-02
4
+
5
+ - Replay: an inline `<style>` whose rules Chrome and Safari can't write back is recorded from its own text. When a
6
+ shorthand holding `var()` is followed by one of its longhands (`font: 800 1em var(--display); font-stretch: 112%`),
7
+ CSSOM's `cssText`, which rrweb records, gives every longhand empty and drops the shorthand, so the replay drew
8
+ headings in the default font. PostHog's recorder reads the element's text and showed them right (2026-12-02
9
+ comparison: ClassMetric's, Zest's, ePlan's and Serpie's inline styles, 42 to 572 lost declarations per page; 0 after).
10
+ The text is used only when it holds the same rules as the sheet at every depth, so rules a script inserted still
11
+ come from CSSOM. Linked stylesheets are unchanged (PostHog's lose the same declarations).
12
+ - Replay: a chunk holding a click, tap or typing goes within 2 s, as PostHog's recorder sends every 2 s, instead of
13
+ at the lane's 10 s. A tab that ends without a hide or pagehide (a killed app, a scripted or crashed browser) kept
14
+ the page but lost its last click (7 of 148 replays with clicks on 2026-12-02). Replay chunk 23,795 -> 24,086 bytes
15
+ brotli (budget 23.25 -> 23.6 KB). It yields to ingest's `flush_s`: when ingest asks for fewer sends, a click waits
16
+ for the raised interval too.
17
+
18
+ ## 0.1.9 - 2026-12-02
19
+
20
+ - Replay starts at the page's load event or 3 s into the page, whichever comes first. A page whose load event came late
21
+ (a hero video, a slow image, a request that hangs) recorded nobody who left before it.
22
+ - A request over 60 KB (a heavy page's full snapshot) goes as a plain fetch, which dies with the page. It now also waits
23
+ in the offline queue until it is through, so a visitor who leaves right after the recording starts still has it: the
24
+ site's next page load sends it again (ingest keeps one copy per batch id).
25
+
3
26
  ## 0.1.8 - 2026-12-02
4
27
 
5
28
  - Masking stays at `inputs` after `identify()` or `set()`: input values are hidden and page text stays readable, signed
package/README.md CHANGED
@@ -45,13 +45,13 @@ release has a URL that never changes, cached for a year; it updates only when yo
45
45
  lazy chunks from the same folder, each with its own integrity hash built in:
46
46
 
47
47
  ```html
48
- <script src="https://cdn.ionblink.com/sdk/0.1.8/ionblink.min.js"
48
+ <script src="https://cdn.ionblink.com/sdk/0.1.10/ionblink.min.js"
49
49
  integrity="sha384-…" crossorigin="anonymous" data-key="ib_pk_…" async></script>
50
50
  ```
51
51
 
52
52
  The `integrity` value for each release is in `dist/integrity.json` of the package (and in the release notes). Every
53
53
  npm release is also on jsDelivr and unpkg with no extra step, for example
54
- `https://cdn.jsdelivr.net/npm/ionblink-js@0.1.8/dist/v1.js` (same bytes, same integrity). Batches still go to
54
+ `https://cdn.jsdelivr.net/npm/ionblink-js@0.1.10/dist/v1.js` (same bytes, same integrity). Batches still go to
55
55
  `https://api.ionblink.com` (or your `data-api-host`).
56
56
 
57
57
  ### Inline snippet (call the API before the SDK loads)
@@ -25,6 +25,35 @@ var __copyProps = (to, from, except, desc) => {
25
25
  };
26
26
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
27
27
 
28
+ // src/protocol.ts
29
+ var LIMITS;
30
+ var init_protocol = __esm({
31
+ "src/protocol.ts"() {
32
+ "use strict";
33
+ LIMITS = {
34
+ /** Events per batch. */
35
+ maxEvents: 200,
36
+ /** Request body cap, bytes as sent (gzipped when `z=gzip`): one Cloudflare Queues operation tier.
37
+ * The SDK splits a bigger batch in half before sending; only a single item it can't split goes alone. On the
38
+ * replay lane that is a big rrweb full snapshot: ingest takes it up to 2 MB as sent (past 120 KB it writes the body
39
+ * to R2 itself and queues only a pointer). One event can't get near this cap (props are cut to 8 KB). A body past
40
+ * ingest's caps is answered 413, and an item that can't be split is then dropped (counted). */
41
+ maxBody: 60 * 1024,
42
+ /** Default cadences. The server stretches them with `flush_s`; batches always coalesce events. */
43
+ eventsFlushMs: 5e3,
44
+ replayFlushMs: 1e4,
45
+ /** Event name length. */
46
+ maxName: 64,
47
+ /** String property values are cut to this many characters. */
48
+ maxString: 1024,
49
+ /** Properties per event (extras are dropped by the SDK). */
50
+ maxProps: 50,
51
+ /** `Sig.acts` length. */
52
+ maxActs: 200
53
+ };
54
+ }
55
+ });
56
+
28
57
  // src/scrub.ts
29
58
  function luhn(d) {
30
59
  let sum = 0;
@@ -228,7 +257,7 @@ var VERSION, now, perf, reporter, hasReporter, pnow;
228
257
  var init_util = __esm({
229
258
  "src/util.ts"() {
230
259
  "use strict";
231
- VERSION = true ? "0.1.8" : "0.0.0-dev";
260
+ VERSION = true ? "0.1.10" : "0.0.0-dev";
232
261
  now = () => Date.now();
233
262
  perf = { total: 0, max: 0, over4: 0, over50: 0, errors: 0 };
234
263
  reporter = null;
@@ -237,6 +266,50 @@ var init_util = __esm({
237
266
  }
238
267
  });
239
268
 
269
+ // src/css.ts
270
+ function same(a, b) {
271
+ if (!a || !b) return !a === !b;
272
+ if (a.length !== b.length) return false;
273
+ for (let i = 0; i < a.length; i++) {
274
+ if (a[i].cssText !== b[i].cssText) return false;
275
+ if (!same(a[i].cssRules, b[i].cssRules)) return false;
276
+ }
277
+ return true;
278
+ }
279
+ function absolutize(css, base) {
280
+ return css.replace(/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/g, (m, q1, u1, q2, u2, u3) => {
281
+ const q = q1 || q2 || "";
282
+ const u = (u1 ?? u2 ?? u3 ?? "").trim();
283
+ if (!u || u[0] === "#" || /^data:/i.test(u)) return m;
284
+ try {
285
+ return "url(" + q + new URL(u, base).href + q + ")";
286
+ } catch (e) {
287
+ return m;
288
+ }
289
+ });
290
+ }
291
+ function styleText(el, recorded) {
292
+ if (!el || el.tagName !== "STYLE" || !EMPTY.test(recorded) || el.childNodes.length !== 1) return null;
293
+ const text2 = el.textContent || "";
294
+ const sheet = el.sheet;
295
+ if (!text2.trim() || !sheet || typeof CSSStyleSheet !== "function") return null;
296
+ try {
297
+ const parsed = new CSSStyleSheet();
298
+ parsed.replaceSync(text2);
299
+ if (!same(parsed.cssRules, sheet.cssRules)) return null;
300
+ } catch (e) {
301
+ return null;
302
+ }
303
+ return absolutize(text2, el.baseURI || location.href);
304
+ }
305
+ var EMPTY;
306
+ var init_css = __esm({
307
+ "src/css.ts"() {
308
+ "use strict";
309
+ EMPTY = /(?:^|[\s;{])(?!--)[a-z-]+: ;/;
310
+ }
311
+ });
312
+
240
313
  // src/mask.ts
241
314
  function attr(el, n) {
242
315
  return (el.getAttribute(n) || "").toLowerCase();
@@ -357,7 +430,8 @@ function maskAttrsFn(level, extraMask, pub) {
357
430
  if (typeof v !== "string" || !v) continue;
358
431
  const n = k.toLowerCase();
359
432
  if (n === "_csstext") {
360
- if (v.length > 1e6) a[k] = v.replace(BIG_DATA, "data:,");
433
+ const css = styleText(el, v) || v;
434
+ a[k] = css.length > 1e6 ? css.replace(BIG_DATA, "data:,") : css;
361
435
  } else if (DROP_ATTR.test(n)) {
362
436
  if (mut) a[k] = null;
363
437
  else delete a[k];
@@ -441,6 +515,7 @@ var init_mask = __esm({
441
515
  "src/mask.ts"() {
442
516
  "use strict";
443
517
  init_dom();
518
+ init_css();
444
519
  init_scrub();
445
520
  NAME_TOKENS = ["pass", "pwd", "card", "ccnum", "cc-num", "cvc", "cvv", "iban", "ssn", "otp", "secret", "token", "email", "phone"];
446
521
  SENSITIVE = "input[type=password],input[type=email],input[type=tel],input[type=hidden],[autocomplete^=cc-],[autocomplete=one-time-code],[autocomplete=current-password],[autocomplete=new-password],[autocomplete=email],[autocomplete=tel],input[name=pin i],input[id=pin i],textarea[name=pin i]," + NAME_TOKENS.map((t) => `input[name*=${t} i],input[id*=${t} i],textarea[name*=${t} i]`).join(",");
@@ -783,16 +858,20 @@ function createReplay(api) {
783
858
  }
784
859
  };
785
860
  }
786
- var arr, glob, afterLoad;
861
+ var arr, glob, LOAD_WAIT_MS, afterLoad;
787
862
  var init_replayctl = __esm({
788
863
  "src/replayctl.ts"() {
789
864
  "use strict";
790
865
  init_util();
791
866
  arr = (v) => Array.isArray(v) ? v : [];
792
867
  glob = (g) => new RegExp("^" + g.split("*").map((s) => s.replace(/[.+?^${}()|[\]\\]/g, "\\$&")).join(".*") + "$");
868
+ LOAD_WAIT_MS = 3e3;
793
869
  afterLoad = (fn) => {
794
- if (document.readyState === "complete") fn();
795
- else addEventListener("load", fn, { once: true });
870
+ if (document.readyState === "complete") return fn();
871
+ let n = 0;
872
+ const once = () => n++ || fn();
873
+ addEventListener("load", once);
874
+ setTimeout(once, LOAD_WAIT_MS - performance.now());
796
875
  };
797
876
  }
798
877
  });
@@ -1428,6 +1507,7 @@ function start2(api, loadInspect) {
1428
1507
  let buf = [];
1429
1508
  let bytes = 0;
1430
1509
  let timer = 0;
1510
+ let due = 0;
1431
1511
  let live = true;
1432
1512
  function flush() {
1433
1513
  if (timer) clearTimeout(timer);
@@ -1454,14 +1534,25 @@ function start2(api, loadInspect) {
1454
1534
  bytes += est;
1455
1535
  total += est;
1456
1536
  if (bytes >= CHUNK) flush();
1457
- else if (!timer)
1458
- timer = setTimeout(() => {
1459
- try {
1460
- flush();
1461
- } catch (e) {
1462
- api.report("replay.flush", e);
1463
- }
1464
- }, api.every());
1537
+ else {
1538
+ const every = api.every();
1539
+ arm(ev.type === 3 && d && ACTS.indexOf(d.source) >= 0 && every <= LIMITS.replayFlushMs ? SOON : every);
1540
+ }
1541
+ }
1542
+ function arm(ms2) {
1543
+ const at = Date.now() + ms2;
1544
+ if (timer) {
1545
+ if (due <= at) return;
1546
+ clearTimeout(timer);
1547
+ }
1548
+ due = at;
1549
+ timer = setTimeout(() => {
1550
+ try {
1551
+ flush();
1552
+ } catch (e) {
1553
+ api.report("replay.flush", e);
1554
+ }
1555
+ }, ms2);
1465
1556
  }
1466
1557
  const stop = (0, import_record.record)({
1467
1558
  ...replayOptions(api.level, extraMask, validSelectors(api.block)),
@@ -1528,17 +1619,20 @@ function start2(api, loadInspect) {
1528
1619
  }
1529
1620
  };
1530
1621
  }
1531
- var import_record, CHUNK, PAGE_MAX, total, CRAWLER, MAX_ELEMENTS;
1622
+ var import_record, CHUNK, PAGE_MAX, total, CRAWLER, ACTS, SOON, MAX_ELEMENTS;
1532
1623
  var init_replay = __esm({
1533
1624
  "src/replay.ts"() {
1534
1625
  "use strict";
1535
1626
  import_record = require("@rrweb/record");
1627
+ init_protocol();
1536
1628
  init_mask();
1537
1629
  init_scrub();
1538
1630
  CHUNK = 200 * 1024;
1539
1631
  PAGE_MAX = 20 * 1024 * 1024;
1540
1632
  total = 0;
1541
1633
  CRAWLER = /bot\b|crawl|spider|slurp|facebookexternalhit|embedly|lighthouse|pagespeed/i;
1634
+ ACTS = [2, 5];
1635
+ SOON = 2e3;
1542
1636
  MAX_ELEMENTS = 15e3;
1543
1637
  }
1544
1638
  });
@@ -2006,28 +2100,8 @@ __export(index_exports, {
2006
2100
  });
2007
2101
  module.exports = __toCommonJS(index_exports);
2008
2102
 
2009
- // src/protocol.ts
2010
- var LIMITS = {
2011
- /** Events per batch. */
2012
- maxEvents: 200,
2013
- /** Request body cap, bytes as sent (gzipped when `z=gzip`): one Cloudflare Queues operation tier.
2014
- * The SDK splits a bigger batch in half before sending; only a single item it can't split goes alone. On the
2015
- * replay lane that is a big rrweb full snapshot: ingest takes it up to 2 MB as sent (past 120 KB it writes the body
2016
- * to R2 itself and queues only a pointer). One event can't get near this cap (props are cut to 8 KB). A body past
2017
- * ingest's caps is answered 413, and an item that can't be split is then dropped (counted). */
2018
- maxBody: 60 * 1024,
2019
- /** Default cadences. The server stretches them with `flush_s`; batches always coalesce events. */
2020
- eventsFlushMs: 5e3,
2021
- replayFlushMs: 1e4,
2022
- /** Event name length. */
2023
- maxName: 64,
2024
- /** String property values are cut to this many characters. */
2025
- maxString: 1024,
2026
- /** Properties per event (extras are dropped by the SDK). */
2027
- maxProps: 50,
2028
- /** `Sig.acts` length. */
2029
- maxActs: 200
2030
- };
2103
+ // src/core.ts
2104
+ init_protocol();
2031
2105
 
2032
2106
  // src/context.ts
2033
2107
  init_scrub();
@@ -2153,6 +2227,7 @@ function buildContext(i) {
2153
2227
  init_dom();
2154
2228
 
2155
2229
  // src/props.ts
2230
+ init_protocol();
2156
2231
  init_scrub();
2157
2232
  function clean(v, scrubStrings, depth = 0) {
2158
2233
  if (v === null) return null;
@@ -2210,8 +2285,8 @@ var sessionCookie = {
2210
2285
  unpack: (c, l) => {
2211
2286
  const m = /^([0-9a-f]{32})\.([0-9a-f]{32})\.([0-9a-z]{1,9})$/.exec(c);
2212
2287
  if (!m) return l;
2213
- const same = !!l && hex(l.s) === m[2];
2214
- const r = { a: dash(m[1]), s: dash(m[2]), st: same ? l.st : parseInt(m[2].slice(0, 12), 16), la: Math.max(parseInt(m[3], 36) * 1e3, same ? l.la : 0) };
2288
+ const same2 = !!l && hex(l.s) === m[2];
2289
+ const r = { a: dash(m[1]), s: dash(m[2]), st: same2 ? l.st : parseInt(m[2].slice(0, 12), 16), la: Math.max(parseInt(m[3], 36) * 1e3, same2 ? l.la : 0) };
2215
2290
  if (l && l.p && hex(l.a) === m[1]) r.p = l.p;
2216
2291
  return r;
2217
2292
  }
@@ -2347,6 +2422,7 @@ function wipe(names, cookieDomain) {
2347
2422
  init_scrub();
2348
2423
 
2349
2424
  // src/transport.ts
2425
+ init_protocol();
2350
2426
  init_util();
2351
2427
  var MAX_TRIES = 8;
2352
2428
  var MAX_AGE_MS = 24 * 60 * 60 * 1e3;
@@ -2445,7 +2521,9 @@ function createTransport(d) {
2445
2521
  return;
2446
2522
  }
2447
2523
  it.sent = true;
2448
- res = await d.send(d.url(it.b, gz), body, size < 6e4);
2524
+ const keep = size < 6e4;
2525
+ if (!keep) store(it);
2526
+ res = await d.send(d.url(it.b, gz), body, keep);
2449
2527
  } catch (e) {
2450
2528
  res = { status: 0 };
2451
2529
  }
@@ -6,6 +6,44 @@ import {
6
6
  seg
7
7
  } from "./c-M56MSQLW.js";
8
8
 
9
+ // src/css.ts
10
+ var EMPTY = /(?:^|[\s;{])(?!--)[a-z-]+: ;/;
11
+ function same(a, b) {
12
+ if (!a || !b) return !a === !b;
13
+ if (a.length !== b.length) return false;
14
+ for (let i = 0; i < a.length; i++) {
15
+ if (a[i].cssText !== b[i].cssText) return false;
16
+ if (!same(a[i].cssRules, b[i].cssRules)) return false;
17
+ }
18
+ return true;
19
+ }
20
+ function absolutize(css, base) {
21
+ return css.replace(/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/g, (m, q1, u1, q2, u2, u3) => {
22
+ const q = q1 || q2 || "";
23
+ const u = (u1 ?? u2 ?? u3 ?? "").trim();
24
+ if (!u || u[0] === "#" || /^data:/i.test(u)) return m;
25
+ try {
26
+ return "url(" + q + new URL(u, base).href + q + ")";
27
+ } catch (e) {
28
+ return m;
29
+ }
30
+ });
31
+ }
32
+ function styleText(el, recorded) {
33
+ if (!el || el.tagName !== "STYLE" || !EMPTY.test(recorded) || el.childNodes.length !== 1) return null;
34
+ const text = el.textContent || "";
35
+ const sheet = el.sheet;
36
+ if (!text.trim() || !sheet || typeof CSSStyleSheet !== "function") return null;
37
+ try {
38
+ const parsed = new CSSStyleSheet();
39
+ parsed.replaceSync(text);
40
+ if (!same(parsed.cssRules, sheet.cssRules)) return null;
41
+ } catch (e) {
42
+ return null;
43
+ }
44
+ return absolutize(text, el.baseURI || location.href);
45
+ }
46
+
9
47
  // src/mask.ts
10
48
  var NAME_TOKENS = ["pass", "pwd", "card", "ccnum", "cc-num", "cvc", "cvv", "iban", "ssn", "otp", "secret", "token", "email", "phone"];
11
49
  var SENSITIVE = "input[type=password],input[type=email],input[type=tel],input[type=hidden],[autocomplete^=cc-],[autocomplete=one-time-code],[autocomplete=current-password],[autocomplete=new-password],[autocomplete=email],[autocomplete=tel],input[name=pin i],input[id=pin i],textarea[name=pin i]," + NAME_TOKENS.map((t) => `input[name*=${t} i],input[id*=${t} i],textarea[name*=${t} i]`).join(",");
@@ -145,7 +183,8 @@ function maskAttrsFn(level, extraMask, pub) {
145
183
  if (typeof v !== "string" || !v) continue;
146
184
  const n = k.toLowerCase();
147
185
  if (n === "_csstext") {
148
- if (v.length > 1e6) a[k] = v.replace(BIG_DATA, "data:,");
186
+ const css = styleText(el, v) || v;
187
+ a[k] = css.length > 1e6 ? css.replace(BIG_DATA, "data:,") : css;
149
188
  } else if (DROP_ATTR.test(n)) {
150
189
  if (mut) a[k] = null;
151
190
  else delete a[k];
@@ -1,5 +1,5 @@
1
1
  // src/util.ts
2
- var VERSION = true ? "0.1.8" : "0.0.0-dev";
2
+ var VERSION = true ? "0.1.10" : "0.0.0-dev";
3
3
  var now = () => Date.now();
4
4
  function rnd(n) {
5
5
  const a = new Uint8Array(n);
@@ -6,7 +6,7 @@ import {
6
6
  now,
7
7
  report,
8
8
  setReporter
9
- } from "./c-F2YMUNOS.js";
9
+ } from "./c-B57L7S6R.js";
10
10
  import {
11
11
  NO_CAPTURE,
12
12
  isSensitive,
@@ -14,7 +14,7 @@ import {
14
14
  selector,
15
15
  shortText,
16
16
  textFor
17
- } from "./c-ATMCVW2I.js";
17
+ } from "./c-AUSDWFTZ.js";
18
18
  import {
19
19
  actionable,
20
20
  boxOf,
@@ -214,9 +214,13 @@ function createAuto(ctx) {
214
214
  // src/replayctl.ts
215
215
  var arr = (v) => Array.isArray(v) ? v : [];
216
216
  var glob = (g) => new RegExp("^" + g.split("*").map((s) => s.replace(/[.+?^${}()|[\]\\]/g, "\\$&")).join(".*") + "$");
217
+ var LOAD_WAIT_MS = 3e3;
217
218
  var afterLoad = (fn) => {
218
- if (document.readyState === "complete") fn();
219
- else addEventListener("load", fn, { once: true });
219
+ if (document.readyState === "complete") return fn();
220
+ let n = 0;
221
+ const once = () => n++ || fn();
222
+ addEventListener("load", once);
223
+ setTimeout(once, LOAD_WAIT_MS - performance.now());
220
224
  };
221
225
  function createReplay(api) {
222
226
  let loading = false;
@@ -1,9 +1,12 @@
1
+ import {
2
+ LIMITS
3
+ } from "./c-MNMQMJ5I.js";
1
4
  import {
2
5
  maskAttrsFn,
3
6
  publicPaths,
4
7
  replayOptions,
5
8
  validSelectors
6
- } from "./c-ATMCVW2I.js";
9
+ } from "./c-AUSDWFTZ.js";
7
10
  import {
8
11
  maskUrl,
9
12
  scrub,
@@ -16,6 +19,8 @@ var CHUNK = 200 * 1024;
16
19
  var PAGE_MAX = 20 * 1024 * 1024;
17
20
  var total = 0;
18
21
  var CRAWLER = /bot\b|crawl|spider|slurp|facebookexternalhit|embedly|lighthouse|pagespeed/i;
22
+ var ACTS = [2, 5];
23
+ var SOON = 2e3;
19
24
  var MAX_ELEMENTS = 15e3;
20
25
  function start(api, loadInspect) {
21
26
  if (CRAWLER.test(navigator.userAgent)) return "crawler";
@@ -47,6 +52,7 @@ function start(api, loadInspect) {
47
52
  let buf = [];
48
53
  let bytes = 0;
49
54
  let timer = 0;
55
+ let due = 0;
50
56
  let live = true;
51
57
  function flush() {
52
58
  if (timer) clearTimeout(timer);
@@ -73,14 +79,25 @@ function start(api, loadInspect) {
73
79
  bytes += est;
74
80
  total += est;
75
81
  if (bytes >= CHUNK) flush();
76
- else if (!timer)
77
- timer = setTimeout(() => {
78
- try {
79
- flush();
80
- } catch (e) {
81
- api.report("replay.flush", e);
82
- }
83
- }, api.every());
82
+ else {
83
+ const every = api.every();
84
+ arm(ev.type === 3 && d && ACTS.indexOf(d.source) >= 0 && every <= LIMITS.replayFlushMs ? SOON : every);
85
+ }
86
+ }
87
+ function arm(ms) {
88
+ const at = Date.now() + ms;
89
+ if (timer) {
90
+ if (due <= at) return;
91
+ clearTimeout(timer);
92
+ }
93
+ due = at;
94
+ timer = setTimeout(() => {
95
+ try {
96
+ flush();
97
+ } catch (e) {
98
+ api.report("replay.flush", e);
99
+ }
100
+ }, ms);
84
101
  }
85
102
  const stop = record({
86
103
  ...replayOptions(api.level, extraMask, validSelectors(api.block)),
package/dist/esm/index.js CHANGED
@@ -1,6 +1,3 @@
1
- import {
2
- LIMITS
3
- } from "./c-MNMQMJ5I.js";
4
1
  import {
5
2
  VERSION,
6
3
  fnv1a,
@@ -12,7 +9,10 @@ import {
12
9
  setReporter,
13
10
  uuid4,
14
11
  uuid7
15
- } from "./c-F2YMUNOS.js";
12
+ } from "./c-B57L7S6R.js";
13
+ import {
14
+ LIMITS
15
+ } from "./c-MNMQMJ5I.js";
16
16
  import {
17
17
  actionable,
18
18
  basicPath,
@@ -425,7 +425,9 @@ function createTransport(d) {
425
425
  return;
426
426
  }
427
427
  it.sent = true;
428
- res = await d.send(d.url(it.b, gz), body, size < 6e4);
428
+ const keep = size < 6e4;
429
+ if (!keep) store(it);
430
+ res = await d.send(d.url(it.b, gz), body, keep);
429
431
  } catch (e) {
430
432
  res = { status: 0 };
431
433
  }
@@ -1304,8 +1306,8 @@ function createIonBlink(deps) {
1304
1306
  // src/index.ts
1305
1307
  var ionblink = createIonBlink({
1306
1308
  dist: "npm",
1307
- loadX: () => import("./c-7SGWDJXK.js").then((m) => m.start),
1308
- loadReplay: () => import("./c-ILNKGNGM.js").then((m) => m.start)
1309
+ loadX: () => import("./c-BBI6FGIB.js").then((m) => m.start),
1310
+ loadReplay: () => import("./c-SYVPEP5E.js").then((m) => m.start)
1309
1311
  });
1310
1312
  var index_default = ionblink;
1311
1313
  export {
@@ -1,10 +1,10 @@
1
1
  {
2
- "version": "0.1.8",
2
+ "version": "0.1.10",
3
3
  "files": {
4
- "v1.js": "sha384-7ZYMK9UV0ML1hTQeONxspIxyShjnyDp/QhubQOORpkFW3dRx7oX/W1Z6ZIlz4DeV",
5
- "ionblink.min.js": "sha384-7ZYMK9UV0ML1hTQeONxspIxyShjnyDp/QhubQOORpkFW3dRx7oX/W1Z6ZIlz4DeV",
6
- "x-52d413936f.js": "sha384-M4V+//RRtE846AzdbMBIYUfhb6EKmS6MSVa3B3qFwmkvepCrxYG2hWk5Ocvy9ntA",
7
- "r-4b7dd9e8ad.js": "sha384-rYdF5PUHTQIEmahGp0KoEjWgcJWMKh2yX5mPv4wq834Z3EqyuZa5+igwgvQATNWg",
4
+ "v1.js": "sha384-F9CrRWsGLGOxqy1eq2pwzJUScJd3+9iizYYFDGlxCk3tqKbtHcbvmySye2SPu1Hr",
5
+ "ionblink.min.js": "sha384-F9CrRWsGLGOxqy1eq2pwzJUScJd3+9iizYYFDGlxCk3tqKbtHcbvmySye2SPu1Hr",
6
+ "x-62de3f6b6d.js": "sha384-WpebGIA7A4DOpt8dR557fRwZlTpBDFpQ6RgHD7jkqQ87HiYs+8wQBoX/iY+jIKLh",
7
+ "r-df284190a8.js": "sha384-xcWGSPjGyHR0v3Pe8e1XMxwC9Ux90KAOs6mWJaopCHymUzHGjBzVuYowliiTKrOE",
8
8
  "i-729781ba45.js": "sha384-73Y7j46JXga2EHgU54+2Gp/OI888ldpFEuOCWYr1eDcn65kpxSBeY/RLWoTijQKw",
9
9
  "snippet.min.js": "sha384-4AftRho4Kc/OMwLQQAHLFqKJ7j6N7O6yATMVxr5aLAkOwNrjSVfzvhJA624i0AkL"
10
10
  }