@narumitw/pi-statusline 0.31.0 → 0.34.0
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/package.json +1 -1
- package/src/extension-status.ts +1 -1
package/package.json
CHANGED
package/src/extension-status.ts
CHANGED
|
@@ -309,7 +309,7 @@ function packageNameForSource(source: string, baseDirectory: string): string | u
|
|
|
309
309
|
|
|
310
310
|
export function npmPackageName(source: string): string {
|
|
311
311
|
const spec = source.slice("npm:".length);
|
|
312
|
-
if (spec.startsWith("@")) return spec.split("@").slice(0, 2).join("@")
|
|
312
|
+
if (spec.startsWith("@")) return spec.split("@").slice(0, 2).join("@");
|
|
313
313
|
return spec.split("@")[0] ?? spec;
|
|
314
314
|
}
|
|
315
315
|
|