We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2cd09dd commit 51a9ce5Copy full SHA for 51a9ce5
lib/npa.js
@@ -82,7 +82,7 @@ function isJsrSpec (spec) {
82
if (!spec) {
83
return false
84
}
85
- return spec.toLowerCase().startsWith('jsr:')
+ return spec.startsWith('jsr:')
86
87
88
function resolve (name, spec, where, arg) {
@@ -464,7 +464,7 @@ function fromAlias (res, where) {
464
465
function fromJsr (res, where) {
466
// Remove 'jsr:' prefix
467
- const jsrSpec = res.rawSpec.substr(4)
+ const jsrSpec = res.rawSpec.slice(4)
468
469
// Parse the JSR specifier to extract name and version
470
// JSR format: @scope/name or @scope/name@version
0 commit comments