@pnpm/git-resolver
Advanced tools
Comparing version 5.1.8 to 5.1.9
@@ -74,3 +74,3 @@ "use strict"; | ||
const [front, ...backs] = url.split('@'); | ||
const escapedBacks = backs.map(e => e.replace(/:([^/])/, ':/$1')); | ||
const escapedBacks = backs.map(e => e.replace(/:([^/\d]|\d+[^:/\d])/, ':/$1')); | ||
return [front, ...escapedBacks].join('@'); | ||
@@ -168,3 +168,3 @@ } | ||
// ...and various combinations. The username in the beginning is *required*. | ||
const matched = spec.match(/^git\+ssh:\/\/([^:#]+:[^#]+(?:\.git)?)(?:#(.*))?$/i); | ||
const matched = spec.match(/^git\+ssh:\/\/([^:]+:[^#]+(?:\.git)?)(?:#(.*))$/i); | ||
return (matched != null) && (matched[1].match(/:[0-9]+\/?.*$/i) == null) && { | ||
@@ -171,0 +171,0 @@ fetchSpec: matched[1], |
{ | ||
"name": "@pnpm/git-resolver", | ||
"version": "5.1.8", | ||
"version": "5.1.9", | ||
"description": "Resolver for git-hosted packages", | ||
"main": "lib/index.js", | ||
"typings": "lib/index.d.ts", | ||
"types": "lib/index.d.ts", | ||
"files": [ | ||
@@ -8,0 +8,0 @@ "lib", |
Sorry, the diff of this file is not supported yet
22675