@jbearak/sight 0.14.0 → 0.14.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/sight-server.js
CHANGED
|
@@ -52,7 +52,7 @@ var package_default;
|
|
|
52
52
|
var init_package = __esm(() => {
|
|
53
53
|
package_default = {
|
|
54
54
|
name: "@jbearak/sight",
|
|
55
|
-
version: "0.14.
|
|
55
|
+
version: "0.14.1",
|
|
56
56
|
type: "module",
|
|
57
57
|
workspaces: [
|
|
58
58
|
"client"
|
|
@@ -31402,11 +31402,15 @@ function detect_command_path_context(text_before_cursor) {
|
|
|
31402
31402
|
if (text_before_cursor.includes(",")) {
|
|
31403
31403
|
return null;
|
|
31404
31404
|
}
|
|
31405
|
-
const
|
|
31406
|
-
const command_match = text_before_cursor.match(command_pattern);
|
|
31405
|
+
const command_match = text_before_cursor.match(/^\s*(\w+)/);
|
|
31407
31406
|
if (command_match) {
|
|
31408
31407
|
const command = command_match[1];
|
|
31409
|
-
const
|
|
31408
|
+
const remainder = text_before_cursor.slice(command_match[0].length);
|
|
31409
|
+
const separator_match = remainder.match(/^\s+/);
|
|
31410
|
+
if (!separator_match) {
|
|
31411
|
+
return null;
|
|
31412
|
+
}
|
|
31413
|
+
const path_part = remainder.slice(separator_match[0].length);
|
|
31410
31414
|
if (isFileCommand(command)) {
|
|
31411
31415
|
return {
|
|
31412
31416
|
type: "command_path",
|
|
@@ -73485,4 +73489,4 @@ export {
|
|
|
73485
73489
|
is_cli_entry_point
|
|
73486
73490
|
};
|
|
73487
73491
|
|
|
73488
|
-
//# debugId=
|
|
73492
|
+
//# debugId=B7C3CCA891DAB36764756E2164756E21
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
485a12b31b0af8576f9d9b0abe4d3ee35d6ce7a01780df284071c47cc3f08565 sight-server.js
|