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>2011-02-12 03:16:18 +0300
committerisaacs <i@izs.me>2011-02-12 03:16:18 +0300
commitd876c4a5827366fdbd39787730abcde36142f7e6 (patch)
tree58d89c8629773b99f484d954c56ae573128b7760 /lib/utils/default-config.js
parent5ac308894fb8d55db552748eca3108011edf251e (diff)
Closes GH-547 Split semver into a separate utility
Diffstat (limited to 'lib/utils/default-config.js')
-rw-r--r--lib/utils/default-config.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/utils/default-config.js b/lib/utils/default-config.js
index 23d5c3698..b2191e080 100644
--- a/lib/utils/default-config.js
+++ b/lib/utils/default-config.js
@@ -3,7 +3,7 @@ var log = require("./log")
, path = require("path")
, hasSSL = false
, sslWorks = false
- , semver = require("./semver")
+ , semver = require("semver")
try {
hasSSL = !!(process.binding("crypto") && require("crypto"))
@@ -13,7 +13,7 @@ try {
// TODO: Change this version when node's SSL client can upload properly.
//
if (hasSSL) {
- sslWorks = require("./semver").gt(process.version, "9999.9999.9999-9999")
+ sslWorks = semver.gt(process.version, "9999.9999.9999-9999")
}
if (!process.execPath) {