This repository was archived by the owner on May 1, 2024. It is now read-only.
Replies: 2 comments 12 replies
-
You can't have an "@" in a package name except at the beginning of a scope - so the first one would be "name" at v1.2.3-4.5.6, and the second "name-1.2.3" at v4.5.6. |
Beta Was this translation helpful? Give feedback.
12 replies
-
You do not have enough information from the filename alone to answer that
question. You would need to look at the packument, or even the full URL...
Thanks, that, with the registry examples you gave, is a perfectly
satisfying answer. :-)
(Also a letdown. Oh well.)
…On Tue, Jul 27, 2021 at 3:41 PM Edward Thomson ***@***.***> wrote:
No (if I'm understanding the question correctly) because the URL has the
package in it. (You can see in the above example.)
@ethomson/version-test-1.2.3 version 4.5.6-7.8.9 is URL:
***@***.***/version-test-1.2.3/-/version-test-1.2.3-4.5.6-7.8.9.tgz
@ethomson/version-test-1.2.3-4.5.6 version 7.8.9 is URL:
***@***.***/version-test-1.2.3-4.5.6/-/version-test-1.2.3-4.5.6-7.8.9.tgz
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#507 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACANFJH6JUR45S65XXP2KDTTZ4RZJANCNFSM5BC5AMAA>
.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to know if your team has worked out a solution to this, because it seems to me that even the new rules for package naming (so helpfully implemented in package validate-npm-package-name) are loose enough to allow some major ambiguity, in particular when it comes to naming files in the npm registry.
So how do you resolve the registry URL for "name@1.2.3-4.5.6" versus "name-1.2.3@4.5.6"?
And that's just one of the simplest examples of what's bugging me...
Beta Was this translation helpful? Give feedback.
All reactions