Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

whitespace errors

  • Loading branch information...
commit de885948c1fae439ce53716183c71a52325a7f31 1 parent 7eab543
@isaacs isaacs authored
View
2  LICENSE
@@ -16,4 +16,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
-IN THE SOFTWARE.
+IN THE SOFTWARE.
View
4 lib/activate.js
@@ -25,14 +25,14 @@ function activate (args, cb) {
// If there's already an active version, then deactivate it.
// first, link .npm/{pkg}/{version} to .npm/{pkg}/{active}
// then, link the things in the root without a version to the active one.
-
+
// TODO: remove this when it's more commonplace.
if (args.length === 2 && !semver.valid(args[0]) && semver.valid(args[1])) {
log("http://github.com/isaacs/npm/issues/issue/91", "See:")
return cb(new Error(
"Usage: npm activate <pkg>@<version> [pkg@<version> ...]"))
}
-
+
chain(args.map(function (arg) {
return [activate_, arg]
}).concat(cb))
View
2  lib/uninstall.js
@@ -148,7 +148,7 @@ function secondPart (args, cb) {
}
, [log, "complete", "uninstall "+arg._id]
, cb
- )
+ )
}})
c.push(cb)
chain(c)
View
2  lib/update-dependents.js
@@ -35,7 +35,7 @@ function updateDependents (args, cb) {
if (!args.length) return cb() // nothing to do
readArgs(args, function (er, args) {
if (er) return log.er(cb, "Error reading args")(er)
-
+
cb = (function (cb) { return function (er) {
var a = args.map(function (a) { return a._id })
log( a, (er) ? "failed to update dependents" : "updated dependents")
View
12 lib/utils/ini.js
@@ -1,19 +1,19 @@
// Create a chain of config objects, in this priority order:
-//
+//
// CLI - the --foo things in the command line.
// ENV - all the things starting with npm_config_ in the environment
// USER - $HOME/.npmrc
// GLOBAL - $PREFIX/etc/npmrc
-//
+//
// If the CLI or ENV specify a userconfig, then that file is used
// as the USER config.
-//
+//
// If the CLI or ENV specify a globalconfig, then that file is used
// as the GLOBAL config.
-//
+//
// export npm_config_userconfig=/some/other/file
// export npm_config_globalconfig=global
-//
+//
// For implementation reasons, "_" in env vars is turned into "-". So,
// export npm_config_auto_activate
@@ -239,7 +239,7 @@ function del (key, which) {
})
else if (configList.list[TRANS[which]]) {
delete configList.list[TRANS[which]]
- }
+ }
}
function set (key, value, which) {
which = which || "cli"
Please sign in to comment.
Something went wrong with that request. Please try again.