Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2010-07-19 07:22:44 +0400
committerisaacs <i@izs.me>2010-07-25 05:51:20 +0400
commit30a89eef252139cc0995b4b7cacf511b35105922 (patch)
tree954e9df3db913aba6a481b8b77a8121921d5506a
parent6f43ddce1975f821b0c69a4f878ad1b32bdfa135 (diff)
Whitespace
-rwxr-xr-xcli.js2
-rw-r--r--lib/cache.js4
-rw-r--r--lib/utils/registry/publish.js2
-rw-r--r--lib/utils/registry/unpublish.js2
-rwxr-xr-xtest/run.sh6
5 files changed, 8 insertions, 8 deletions
diff --git a/cli.js b/cli.js
index db7bcb13c..10cb5d35e 100755
--- a/cli.js
+++ b/cli.js
@@ -48,7 +48,7 @@ var vindex = arglist.indexOf("-v")
if (printVersion) {
sys.puts(npm.version)
if (vindex !== -1) arglist.splice(vindex, 1)
-} else log(npm.version, "version")
+} else log(npm.version, "version")
process.on("uncaughtException", errorHandler)
process.on("exit", function () { if (!itWorked) log("not ok") })
diff --git a/lib/cache.js b/lib/cache.js
index aff077f04..cbc84b0b8 100644
--- a/lib/cache.js
+++ b/lib/cache.js
@@ -190,7 +190,7 @@ function addLocalDirectory (p, cb) {
if (er) return cb(er)
addLocalTarball(tgz, cb)
})
- })
+ })
}
function unpack (pkg, ver, unpackTarget, cb) {
@@ -227,7 +227,7 @@ function packTar (targetTarball, folder, cb) {
fs.statSync(path.join(folder, ".npminclude"))
include = path.join(folder, ".npminclude")
} catch (ex) {}
-
+
mkdir(path.dirname(targetTarball), function (er) {
if (er) return log.er(cb, "Could not create "+targetTarball)(er)
process.chdir(parent)
diff --git a/lib/utils/registry/publish.js b/lib/utils/registry/publish.js
index b4ec99d28..6d8c90c41 100644
--- a/lib/utils/registry/publish.js
+++ b/lib/utils/registry/publish.js
@@ -60,7 +60,7 @@ function publish (data, cb) {
var sendVersionAgain = !!er
GET(encodeURIComponent(data.name), function (er, d) {
if (er) return cb(er)
-
+
var rev = d && ("-rev/"+d._rev)
, tarball = path.join(npm.cache, data.name, data.version, "package.tgz")
, dataURI = encodeURIComponent(data.name)+"/"+encodeURIComponent(data.version)
diff --git a/lib/utils/registry/unpublish.js b/lib/utils/registry/unpublish.js
index 4930f98ae..350d20740 100644
--- a/lib/utils/registry/unpublish.js
+++ b/lib/utils/registry/unpublish.js
@@ -41,7 +41,7 @@ function detacher (data, version, cb) { return function (er) {
get(data.name, function (er, data) {
if (er) return cb(er)
log(data, "data")
-
+
// delete the attachment
var attURI = encodeURIComponent(data.name)
+ "/-/"
diff --git a/test/run.sh b/test/run.sh
index d0e4823e7..a417443da 100755
--- a/test/run.sh
+++ b/test/run.sh
@@ -11,14 +11,14 @@ main () {
# TODO: add more tests here.
# Run node programs by doing node some-thing.js
-
+
node test-npm-installed.js
-
+
npm install "$TESTDIR"/packages/mjsunit.runner
npm install jsdom
npm rm jsdom 0.0.1
npm rm mjsunit.runner
-
+
# teardown
npm rm npm