@insitue/capture-core 0.2.0 → 0.3.1

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/dist/index.d.ts CHANGED
@@ -22,7 +22,7 @@ declare function breakpointFor(w: number): string;
22
22
  * `__reactFiber$*` expando React attaches to host DOM nodes in dev,
23
23
  * walks `_debugOwner`/`return`, and harvests `_debugSource`
24
24
  * ({ fileName, lineNumber, columnNumber }) plus component names.
25
- * Falls back to a build-injected `data-insitu-source` attribute.
25
+ * Falls back to a build-injected `data-insitue-source` attribute.
26
26
  */
27
27
 
28
28
  declare function resolveTarget(el: Element): CaptureTarget;
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  // src/dom.ts
2
2
  var SKIP_TAGS = /* @__PURE__ */ new Set(["SCRIPT", "STYLE", "NOSCRIPT", "TEMPLATE"]);
3
- var ATTR_DENY = /^(on|data-insitu)/i;
3
+ var ATTR_DENY = /^(on|data-insitue)/i;
4
4
  var SECRETISH = /(token|secret|key|password|authorization|bearer)/i;
5
5
  function serializeNode(el, depth = 3, maxChildren = 12) {
6
6
  const attrs = {};
@@ -138,7 +138,7 @@ function toLoc(workspaceCwdRelative) {
138
138
  function fromAttribute(el) {
139
139
  let cur = el;
140
140
  for (let i = 0; cur && i < 8; i++, cur = cur.parentElement) {
141
- const raw = cur.getAttribute("data-insitu-source");
141
+ const raw = cur.getAttribute("data-insitue-source") ?? cur.getAttribute("data-insitu-source");
142
142
  if (raw) {
143
143
  const m = /^(.*):(\d+):(\d+)$/.exec(raw);
144
144
  if (m) return { file: m[1], line: Number(m[2]), column: Number(m[3]) };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@insitue/capture-core",
3
- "version": "0.2.0",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"