File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " patch-package" ,
3
- "version" : " 6.4.13 " ,
3
+ "version" : " 6.4.14 " ,
4
4
"description" : " Fix broken node modules with no fuss" ,
5
5
"main" : " dist/index.js" ,
6
6
"repository" : " github:ds300/patch-package" ,
Original file line number Diff line number Diff line change @@ -28,13 +28,13 @@ function parseNameAndVersion(
28
28
}
29
29
case 2 : {
30
30
const [ nameOrScope , versionOrName ] = parts
31
- if ( versionOrName . match ( / ^ [ ^ ~ ] \d + / ) ) {
32
- return {
33
- name : nameOrScope ,
34
- version : versionOrName ,
35
- }
31
+ if ( nameOrScope [ 0 ] == "@" ) {
32
+ return { name : `${ nameOrScope } /${ versionOrName } ` }
33
+ }
34
+ return {
35
+ name : nameOrScope ,
36
+ version : versionOrName ,
36
37
}
37
- return { name : `${ nameOrScope } /${ versionOrName } ` }
38
38
}
39
39
case 3 : {
40
40
const [ scope , name , version ] = parts
You can’t perform that action at this time.
0 commit comments