diff options
Diffstat (limited to 'deps/npm/node_modules/npmconf/config-defs.js')
-rw-r--r-- | deps/npm/node_modules/npmconf/config-defs.js | 150 |
1 files changed, 41 insertions, 109 deletions
diff --git a/deps/npm/node_modules/npmconf/config-defs.js b/deps/npm/node_modules/npmconf/config-defs.js index 5410400f1..f879a941d 100644 --- a/deps/npm/node_modules/npmconf/config-defs.js +++ b/deps/npm/node_modules/npmconf/config-defs.js @@ -7,6 +7,7 @@ var path = require("path") , semver = require("semver") , stableFamily = semver.parse(process.version) , nopt = require("nopt") + , os = require('os') , osenv = require("osenv") try { @@ -74,8 +75,8 @@ nopt.invalidHandler = function (k, val, type, data) { } } -if (!stableFamily || (+stableFamily[2] % 2)) stableFamily = null -else stableFamily = stableFamily[1] + "." + stableFamily[2] +if (!stableFamily || (+stableFamily.minor % 2)) stableFamily = null +else stableFamily = stableFamily.major + "." + stableFamily.minor var defaults @@ -116,94 +117,7 @@ Object.defineProperty(exports, "defaults", {get: function () { , "bin-links" : true , browser : null - , ca: // the npm CA certificate. - [ "-----BEGIN CERTIFICATE-----\n"+ - "MIIChzCCAfACCQDauvz/KHp8ejANBgkqhkiG9w0BAQUFADCBhzELMAkGA1UEBhMC\n"+ - "VVMxCzAJBgNVBAgTAkNBMRAwDgYDVQQHEwdPYWtsYW5kMQwwCgYDVQQKEwNucG0x\n"+ - "IjAgBgNVBAsTGW5wbSBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkxDjAMBgNVBAMTBW5w\n"+ - "bUNBMRcwFQYJKoZIhvcNAQkBFghpQGl6cy5tZTAeFw0xMTA5MDUwMTQ3MTdaFw0y\n"+ - "MTA5MDIwMTQ3MTdaMIGHMQswCQYDVQQGEwJVUzELMAkGA1UECBMCQ0ExEDAOBgNV\n"+ - "BAcTB09ha2xhbmQxDDAKBgNVBAoTA25wbTEiMCAGA1UECxMZbnBtIENlcnRpZmlj\n"+ - "YXRlIEF1dGhvcml0eTEOMAwGA1UEAxMFbnBtQ0ExFzAVBgkqhk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RQyV+dTZsXjAzlAcmgQWpzU/qlULRuJQ/7\n"+ - "TBj0/VLZjmmx6BEP3ojY+x1J96relc8geMJgEtslQIxq/H5COEBkEveegeGTLg==\n"+ - "-----END CERTIFICATE-----\n", - - // GlobalSign Organization Validation CA - G2 - "-----BEGIN CERTIFICATE-----\n"+ - "MIIEYDCCA0igAwIBAgILBAAAAAABL07hRQwwDQYJKoZIhvcNAQEFBQAwVzELMAkG\n"+ - "A1UEBhMCQkUxGTAXBgNVBAoTEEdsb2JhbFNpZ24gbnYtc2ExEDAOBgNVBAsTB1Jv\n"+ - "b3QgQ0ExGzAZBgNVBAMTEkdsb2JhbFNpZ24gUm9vdCBDQTAeFw0xMTA0MTMxMDAw\n"+ - "MDBaFw0yMjA0MTMxMDAwMDBaMF0xCzAJBgNVBAYTAkJFMRkwFwYDVQQKExBHbG9i\n"+ - "YWxTaWduIG52LXNhMTMwMQYDVQQDEypHbG9iYWxTaWduIE9yZ2FuaXphdGlvbiBW\n"+ - "YWxpZGF0aW9uIENBIC0gRzIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB\n"+ - "AQDdNR3yIFQmGtDvpW+Bdllw3Of01AMkHyQOnSKf1Ccyeit87ovjYWI4F6+0S3qf\n"+ - "ZyEcLZVUunm6tsTyDSF0F2d04rFkCJlgePtnwkv3J41vNnbPMYzl8QbX3FcOW6zu\n"+ - "zi2rqqlwLwKGyLHQCAeV6irs0Z7kNlw7pja1Q4ur944+ABv/hVlrYgGNguhKujiz\n"+ - "4MP0bRmn6gXdhGfCZsckAnNate6kGdn8AM62pI3ffr1fsjqdhDFPyGMM5NgNUqN+\n"+ - "ARvUZ6UYKOsBp4I82Y4d5UcNuotZFKMfH0vq4idGhs6dOcRmQafiFSNrVkfB7cVT\n"+ - "5NSAH2v6gEaYsgmmD5W+ZoiTAgMBAAGjggElMIIBITAOBgNVHQ8BAf8EBAMCAQYw\n"+ - "EgYDVR0TAQH/BAgwBgEB/wIBADAdBgNVHQ4EFgQUXUayjcRLdBy77fVztjq3OI91\n"+ - "nn4wRwYDVR0gBEAwPjA8BgRVHSAAMDQwMgYIKwYBBQUHAgEWJmh0dHBzOi8vd3d3\n"+ - "Lmdsb2JhbHNpZ24uY29tL3JlcG9zaXRvcnkvMDMGA1UdHwQsMCowKKAmoCSGImh0\n"+ - "dHA6Ly9jcmwuZ2xvYmFsc2lnbi5uZXQvcm9vdC5jcmwwPQYIKwYBBQUHAQEEMTAv\n"+ - "MC0GCCsGAQUFBzABhiFodHRwOi8vb2NzcC5nbG9iYWxzaWduLmNvbS9yb290cjEw\n"+ - "HwYDVR0jBBgwFoAUYHtmGkUNl8qJUC99BM00qP/8/UswDQYJKoZIhvcNAQEFBQAD\n"+ - "ggEBABvgiADHBREc/6stSEJSzSBo53xBjcEnxSxZZ6CaNduzUKcbYumlO/q2IQen\n"+ - "fPMOK25+Lk2TnLryhj5jiBDYW2FQEtuHrhm70t8ylgCoXtwtI7yw07VKoI5lkS/Z\n"+ - "9oL2dLLffCbvGSuXL+Ch7rkXIkg/pfcNYNUNUUflWP63n41edTzGQfDPgVRJEcYX\n"+ - "pOBWYdw9P91nbHZF2krqrhqkYE/Ho9aqp9nNgSvBZnWygI/1h01fwlr1kMbawb30\n"+ - "hag8IyrhFHvBN91i0ZJsumB9iOQct+R2UTjEqUdOqCsukNK1OFHrwZyKarXMsh3o\n"+ - "wFZUTKiL8IkyhtyTMr5NGvo1dbU=\n"+ - "-----END CERTIFICATE-----\n" - ] - + , ca: null , cache : cache @@ -214,12 +128,14 @@ Object.defineProperty(exports, "defaults", {get: function () { , "cache-max": Infinity , "cache-min": 10 + , cert: null + , color : true - , coverage: false , depth: Infinity , description : true , dev : false , editor : osenv.editor() + , email: "" , "engine-strict": false , force : false @@ -229,47 +145,51 @@ Object.defineProperty(exports, "defaults", {get: function () { , "fetch-retry-maxtimeout": 60000 , git: "git" + , "git-tag-version": true , global : false , globalconfig : path.resolve(globalPrefix, "etc", "npmrc") - , globalignorefile : path.resolve( globalPrefix, "etc", "npmignore") , group : process.platform === "win32" ? 0 : process.env.SUDO_GID || (process.getgid && process.getgid()) - , ignore: "" + , heading: "npm" + , "ignore-scripts": false , "init-module": path.resolve(home, '.npm-init.js') - , "init.version" : "0.0.0" , "init.author.name" : "" , "init.author.email" : "" , "init.author.url" : "" + , "init.license": "ISC" , json: false + , key: null , link: false + , "local-address" : undefined , loglevel : "http" , logstream : process.stderr , long : false , message : "%s" , "node-version" : process.version - , npaturl : "http://npat.npmjs.org/" , npat : false , "onload-script" : false , optional: true , parseable : false - , pre: false , prefix : globalPrefix , production: process.env.NODE_ENV === "production" , "proprietary-attribs": true , proxy : process.env.HTTP_PROXY || process.env.http_proxy || null , "https-proxy" : process.env.HTTPS_PROXY || process.env.https_proxy || process.env.HTTP_PROXY || process.env.http_proxy || null - , "user-agent" : "node/" + process.version - + ' ' + process.platform - + ' ' + process.arch + , "user-agent" : "npm/{npm-version} " + + "node/{node-version} " + + "{platform} " + + "{arch}" , "rebuild-bundle" : true , registry : "https://registry.npmjs.org/" , rollback : true , save : false , "save-bundle": false , "save-dev" : false + , "save-exact" : false , "save-optional" : false + , "save-prefix": "^" , searchopts: "" , searchexclude: null , searchsort: "name" @@ -289,12 +209,10 @@ Object.defineProperty(exports, "defaults", {get: function () { , user : process.platform === "win32" ? 0 : "nobody" , username : "" , userconfig : path.resolve(home, ".npmrc") - , userignorefile : path.resolve(home, ".npmignore") , umask: 022 , version : false , versions : false , viewer: process.platform === "win32" ? "browser" : "man" - , yes: null , _exit : true } @@ -311,12 +229,13 @@ exports.types = , "cache-lock-wait": Number , "cache-max": Number , "cache-min": Number + , cert: [null, String] , color : ["always", Boolean] - , coverage: Boolean , depth : Number , description : Boolean , dev : Boolean , editor : String + , email: [null, String] , "engine-strict": Boolean , force : Boolean , "fetch-retries": Number @@ -324,31 +243,43 @@ exports.types = , "fetch-retry-mintimeout": Number , "fetch-retry-maxtimeout": Number , git: String + , "git-tag-version": Boolean , global : Boolean , globalconfig : path - , globalignorefile: path , group : [Number, String] , "https-proxy" : [null, url] , "user-agent" : String - , ignore : String + , "heading": String + , "ignore-scripts": Boolean , "init-module": path - , "init.version" : [null, semver] , "init.author.name" : String , "init.author.email" : String , "init.author.url" : ["", url] + , "init.license": String , json: Boolean + , key: [null, String] , link: Boolean + // local-address must be listed as an IP for a local network interface + // must be IPv4 due to node bug + , "local-address" : Object.keys(os.networkInterfaces()).map(function (nic) { + return os.networkInterfaces()[nic].filter(function (addr) { + return addr.family === "IPv4" + }) + .map(function (addr) { + return addr.address + }) + }).reduce(function (curr, next) { + return curr.concat(next) + }, []) , loglevel : ["silent","win","error","warn","http","info","verbose","silly"] , logstream : Stream , long : Boolean , message: String , "node-version" : [null, semver] - , npaturl : url , npat : Boolean , "onload-script" : [null, String] , optional: Boolean , parseable : Boolean - , pre: Boolean , prefix: path , production: Boolean , "proprietary-attribs": Boolean @@ -359,7 +290,9 @@ exports.types = , save : Boolean , "save-bundle": Boolean , "save-dev" : Boolean + , "save-exact" : Boolean , "save-optional" : Boolean + , "save-prefix": String , searchopts : String , searchexclude: [null, String] , searchsort: [ "name", "-name" @@ -379,12 +312,10 @@ exports.types = , user : [Number, String] , username : String , userconfig : path - , userignorefile : path , umask: Octal , version : Boolean , versions : Boolean , viewer: String - , yes: [false, null, Boolean] , _exit : Boolean , _password: String } @@ -420,6 +351,7 @@ exports.shorthands = , g : ["--global"] , S : ["--save"] , D : ["--save-dev"] + , E : ["--save-exact"] , O : ["--save-optional"] , y : ["--yes"] , n : ["--no-yes"] |