@ulpi/browse 1.0.4 → 1.0.6
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/bin/browse +8 -1
- package/dist/browse.cjs +2 -2
- package/package.json +1 -1
package/bin/browse
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
#!/bin/sh
|
|
2
|
-
|
|
2
|
+
# Resolve symlinks to find the actual package directory
|
|
3
|
+
SELF="$0"
|
|
4
|
+
while [ -L "$SELF" ]; do
|
|
5
|
+
DIR="$(cd "$(dirname "$SELF")" && pwd)"
|
|
6
|
+
SELF="$(readlink "$SELF")"
|
|
7
|
+
case "$SELF" in /*) ;; *) SELF="$DIR/$SELF" ;; esac
|
|
8
|
+
done
|
|
9
|
+
SCRIPT_DIR="$(cd "$(dirname "$SELF")/.." && pwd)"
|
|
3
10
|
CLI="$SCRIPT_DIR/dist/browse.cjs"
|
|
4
11
|
if command -v bun >/dev/null 2>&1; then
|
|
5
12
|
exec bun "$CLI" "$@"
|
package/dist/browse.cjs
CHANGED
|
@@ -124,7 +124,7 @@ var require_package = __commonJS({
|
|
|
124
124
|
"package.json"(exports2, module2) {
|
|
125
125
|
module2.exports = {
|
|
126
126
|
name: "@ulpi/browse",
|
|
127
|
-
version: "1.0.
|
|
127
|
+
version: "1.0.6",
|
|
128
128
|
repository: {
|
|
129
129
|
type: "git",
|
|
130
130
|
url: "https://github.com/ulpi-io/browse"
|
|
@@ -4976,7 +4976,7 @@ ${warnings.join("\n")}`;
|
|
|
4976
4976
|
let elementSelector = null;
|
|
4977
4977
|
let screenshotPath;
|
|
4978
4978
|
const firstArg = filteredArgs[0];
|
|
4979
|
-
if (firstArg && (firstArg.startsWith("@e") || firstArg.startsWith("@c") || /^[.#\[]/.test(firstArg))) {
|
|
4979
|
+
if (firstArg && (firstArg.startsWith("@e") || firstArg.startsWith("@c") || /^[.#\[]/.test(firstArg) && !firstArg.includes("/"))) {
|
|
4980
4980
|
if (clip) throw new Error("Cannot use --clip with element selector");
|
|
4981
4981
|
elementSelector = firstArg;
|
|
4982
4982
|
screenshotPath = filteredArgs[1] || (currentSession ? `${currentSession.outputDir}/screenshot.png` : `${LOCAL_DIR}/browse-screenshot.png`);
|