mirror of
https://github.com/harish2704/npm-offline-registry.git
synced 2026-09-10 06:21:09 +00:00
typo fix
This commit is contained in:
@@ -63,7 +63,7 @@ exports.fetchAndCacheMetadata = function ( packageName, cacheFile ){
|
|||||||
|
|
||||||
exports.fetchAndCacheTarball = function ( packageName, version, tarballPath ){
|
exports.fetchAndCacheTarball = function ( packageName, version, tarballPath ){
|
||||||
//handle slash in scoped package name but do not convert @
|
//handle slash in scoped package name but do not convert @
|
||||||
packageNapackageNamemeEncoded = encodeURIComponent(packageName).replace(/^%40/, '@');
|
packageName = encodeURIComponent(packageName).replace(/^%40/, '@');
|
||||||
|
|
||||||
var tarballUrl = 'http://' + REGISTRY_NAME + '/' + packageName + '/-/' + packageName + '-' + version + '.tgz';
|
var tarballUrl = 'http://' + REGISTRY_NAME + '/' + packageName + '/-/' + packageName + '-' + version + '.tgz';
|
||||||
var packageTarballDir = path.dirname( tarballPath );
|
var packageTarballDir = path.dirname( tarballPath );
|
||||||
|
|||||||
Reference in New Issue
Block a user