@ulpi/browse 1.0.5 → 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.
Files changed (2) hide show
  1. package/dist/browse.cjs +2 -2
  2. package/package.json +1 -1
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.5",
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`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ulpi/browse",
3
- "version": "1.0.5",
3
+ "version": "1.0.6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/ulpi-io/browse"