@treelocator/runtime 0.1.4 → 0.1.5
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/.turbo/turbo-build.log
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
|
|
2
|
-
> @treelocator/runtime@0.1.
|
|
2
|
+
> @treelocator/runtime@0.1.5 build /Users/wende/projects/locatorjs/packages/runtime
|
|
3
3
|
> concurrently pnpm:build:*
|
|
4
4
|
|
|
5
|
-
[wrapImage]
|
|
6
|
-
[wrapImage] > @treelocator/runtime@0.1.4 build:wrapImage /Users/wende/projects/locatorjs/packages/runtime
|
|
7
|
-
[wrapImage] > node ./scripts/wrapImage.js
|
|
8
|
-
[wrapImage]
|
|
9
|
-
[tailwind]
|
|
10
|
-
[tailwind] > @treelocator/runtime@0.1.4 build:tailwind /Users/wende/projects/locatorjs/packages/runtime
|
|
11
|
-
[tailwind] > tailwindcss -i ./src/main.css -o ./dist/output.css
|
|
12
|
-
[tailwind]
|
|
13
5
|
[ts]
|
|
14
|
-
[ts] > @treelocator/runtime@0.1.
|
|
6
|
+
[ts] > @treelocator/runtime@0.1.5 build:ts /Users/wende/projects/locatorjs/packages/runtime
|
|
15
7
|
[ts] > tsc --declaration --emitDeclarationOnly --noEmit false --outDir dist
|
|
16
8
|
[ts]
|
|
9
|
+
[tailwind]
|
|
10
|
+
[tailwind] > @treelocator/runtime@0.1.5 build:tailwind /Users/wende/projects/locatorjs/packages/runtime
|
|
11
|
+
[tailwind] > tailwindcss -i ./src/main.css -o ./dist/output.css
|
|
12
|
+
[tailwind]
|
|
13
|
+
[wrapImage]
|
|
14
|
+
[wrapImage] > @treelocator/runtime@0.1.5 build:wrapImage /Users/wende/projects/locatorjs/packages/runtime
|
|
15
|
+
[wrapImage] > node ./scripts/wrapImage.js
|
|
16
|
+
[wrapImage]
|
|
17
17
|
[babel]
|
|
18
|
-
[babel] > @treelocator/runtime@0.1.
|
|
18
|
+
[babel] > @treelocator/runtime@0.1.5 build:babel /Users/wende/projects/locatorjs/packages/runtime
|
|
19
19
|
[babel] > babel src --out-dir dist --extensions .js,.jsx,.ts,.tsx
|
|
20
20
|
[babel]
|
|
21
21
|
[wrapImage] Tree icon file generated
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
[tailwind]
|
|
24
24
|
[tailwind] Rebuilding...
|
|
25
25
|
[tailwind]
|
|
26
|
-
[tailwind] Done in
|
|
26
|
+
[tailwind] Done in 294ms.
|
|
27
27
|
[tailwind] pnpm run build:tailwind exited with code 0
|
|
28
|
-
[babel] Successfully compiled 72 files with Babel (
|
|
28
|
+
[babel] Successfully compiled 72 files with Babel (2364ms).
|
|
29
29
|
[babel] pnpm run build:babel exited with code 0
|
|
30
30
|
[ts] pnpm run build:ts exited with code 0
|
|
@@ -179,13 +179,13 @@ function getTree(element) {
|
|
|
179
179
|
function getParentsPaths(element) {
|
|
180
180
|
const path = [];
|
|
181
181
|
let currentElement = element;
|
|
182
|
-
let
|
|
182
|
+
let previousElementKey = null;
|
|
183
183
|
do {
|
|
184
184
|
if (currentElement) {
|
|
185
185
|
const info = getElementInfo(currentElement);
|
|
186
|
-
const
|
|
187
|
-
if (info &&
|
|
188
|
-
|
|
186
|
+
const currentElementKey = JSON.stringify(info?.thisElement.link);
|
|
187
|
+
if (info && currentElementKey !== previousElementKey) {
|
|
188
|
+
previousElementKey = currentElementKey;
|
|
189
189
|
const link = info.thisElement.link;
|
|
190
190
|
const label = info.thisElement.label;
|
|
191
191
|
if (link) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@treelocator/runtime",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "TreeLocatorJS runtime for component ancestry tracking. Alt+click any element to copy its component tree to clipboard. Exposes window.__treelocator__ API for browser automation (Playwright, Puppeteer, Selenium, Cypress).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"locator",
|
|
@@ -72,5 +72,5 @@
|
|
|
72
72
|
"directory": "packages/runtime"
|
|
73
73
|
},
|
|
74
74
|
"license": "MIT",
|
|
75
|
-
"gitHead": "
|
|
75
|
+
"gitHead": "49e1500d0dee128e4e7b549a012f406cb0b55568"
|
|
76
76
|
}
|
|
@@ -240,14 +240,14 @@ function getTree(element: HTMLElement): TreeState | null {
|
|
|
240
240
|
function getParentsPaths(element: HTMLElement): ParentPathItem[] {
|
|
241
241
|
const path: ParentPathItem[] = [];
|
|
242
242
|
let currentElement: HTMLElement | null = element;
|
|
243
|
-
let
|
|
243
|
+
let previousElementKey: string | null = null;
|
|
244
244
|
|
|
245
245
|
do {
|
|
246
246
|
if (currentElement) {
|
|
247
247
|
const info = getElementInfo(currentElement);
|
|
248
|
-
const
|
|
249
|
-
if (info &&
|
|
250
|
-
|
|
248
|
+
const currentElementKey = JSON.stringify(info?.thisElement.link);
|
|
249
|
+
if (info && currentElementKey !== previousElementKey) {
|
|
250
|
+
previousElementKey = currentElementKey;
|
|
251
251
|
|
|
252
252
|
const link = info.thisElement.link;
|
|
253
253
|
const label = info.thisElement.label;
|