@hyperframes/inspector 0.9.28-alpha.0 → 0.9.28

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.
Files changed (2) hide show
  1. package/dist/service.js +11 -2
  2. package/package.json +3 -3
package/dist/service.js CHANGED
@@ -38898,6 +38898,7 @@ function findTimelineVar(ast, scope) {
38898
38898
  let ref = null;
38899
38899
  let timelineCount = 0;
38900
38900
  let defaults;
38901
+ let declaration;
38901
38902
  const emptyScope = scope ?? /* @__PURE__ */ new Map();
38902
38903
  simple(ast, {
38903
38904
  VariableDeclarator(node) {
@@ -38907,6 +38908,7 @@ function findTimelineVar(ast, scope) {
38907
38908
  timelineVar = node.id.name;
38908
38909
  ref = { kind: "identifier", name: node.id.name };
38909
38910
  defaults = extractTimelineDefaults(node.init, emptyScope);
38911
+ declaration = { start: node.start, end: node.end };
38910
38912
  }
38911
38913
  }
38912
38914
  },
@@ -38923,11 +38925,12 @@ function findTimelineVar(ast, scope) {
38923
38925
  ref = { kind: "member", node: left };
38924
38926
  defaults = extractTimelineDefaults(node.right, emptyScope);
38925
38927
  }
38928
+ if (ref) declaration = { start: node.start, end: node.end };
38926
38929
  }
38927
38930
  }
38928
38931
  }
38929
38932
  });
38930
- return { timelineVar, ref, timelineCount, defaults };
38933
+ return { timelineVar, ref, timelineCount, defaults, declaration };
38931
38934
  }
38932
38935
  function isTimelineRootedCall(callNode, ref) {
38933
38936
  let obj = callNode.callee?.object;
@@ -39628,7 +39631,13 @@ function parseGsapScriptAcornForWrite(script) {
39628
39631
  call,
39629
39632
  animation: animations[i]
39630
39633
  }));
39631
- return { ast, timelineVar, hasTimeline: detection.ref !== null, located: located2 };
39634
+ return {
39635
+ ast,
39636
+ timelineVar,
39637
+ hasTimeline: detection.ref !== null,
39638
+ timelineDeclaration: detection.declaration,
39639
+ located: located2
39640
+ };
39632
39641
  } catch {
39633
39642
  return null;
39634
39643
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperframes/inspector",
3
- "version": "0.9.28-alpha.0",
3
+ "version": "0.9.28",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/heygen-com/hyperframes",
@@ -43,8 +43,8 @@
43
43
  "htmlparser2": "^10.1.0",
44
44
  "postcss": "^8.5.8",
45
45
  "puppeteer-core": "^25.8.0",
46
- "@hyperframes/parsers": "0.9.28-alpha.0",
47
- "@hyperframes/core": "0.9.28-alpha.0"
46
+ "@hyperframes/parsers": "0.9.28",
47
+ "@hyperframes/core": "0.9.28"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/node": "^25.0.10",