Lines Matching refs:conf
9 npmconf.load({}, function (er, conf) { argument
12 var basic = conf.getCredentialsByURI(URI)
20 npmconf.load(common.builtin, function (er, conf) { argument
24 conf.setCredentialsByURI()
32 npmconf.load(common.builtin, function (er, conf) { argument
36 conf.clearCredentialsByURI()
44 npmconf.load(common.builtin, function (er, conf) { argument
48 conf.setCredentialsByURI(URI)
56 npmconf.load(common.builtin, function (er, conf) { argument
60 conf.setCredentialsByURI(URI, {})
68 npmconf.load(common.builtin, function (er, conf) { argument
72 conf.setCredentialsByURI(URI, { token: 'simple-token' })
85 t.same(conf.getCredentialsByURI(URI), expected, 'got bearer token and scope')
92 npmconf.load(common.builtin, function (er, conf) { argument
96 conf.setCredentialsByURI(URI, { token: 'simple-token' })
100 conf.clearCredentialsByURI(URI)
103 t.notOk(conf.getCredentialsByURI(URI).token, 'token all gone')
110 npmconf.load(common.builtin, function (er, conf) { argument
119 conf.setCredentialsByURI(URI, credentials)
127 npmconf.load(common.builtin, function (er, conf) { argument
136 conf.setCredentialsByURI(URI, credentials)
144 npmconf.load(common.builtin, function (er, conf) { argument
153 conf.setCredentialsByURI(URI, credentials)
161 npmconf.load(common.builtin, function (er, conf) { argument
171 conf.setCredentialsByURI(URI, credentials)
184 t.same(conf.getCredentialsByURI(URI), expected, 'got credentials')
191 npmconf.load(common.builtin, function (er, conf) { argument
201 conf.setCredentialsByURI(URI, credentials)
205 conf.clearCredentialsByURI(URI)
208 t.notOk(conf.getCredentialsByURI(URI).username, 'username cleared')
209 t.notOk(conf.getCredentialsByURI(URI).password, 'password cleared')
216 npmconf.load(common.builtin, function (er, conf) { argument
217 var actual = conf.getCredentialsByURI(conf.get('registry'))
233 npmconf.load(common.builtin, function (er, conf) { argument
243 conf.setCredentialsByURI(URI, credentials)
255 t.same(conf.getCredentialsByURI(URI), expected, 'got credentials')
262 npmconf.load(common.builtin, function (er, conf) { argument
272 conf.setCredentialsByURI(URI, credentials)
284 t.same(conf.getCredentialsByURI(URI), expected, 'got credentials')
291 npmconf.load(common.builtin, function (er, conf) { argument
293 var original = conf.get('always-auth')
294 conf.set('always-auth', true) variable
302 conf.setCredentialsByURI(URI, credentials)
314 t.same(conf.getCredentialsByURI(URI), expected, 'got credentials')
316 conf.set('always-auth', original)
322 npmconf.load(common.builtin, function (er, conf) { argument
324 var original = conf.get('always-auth')
325 conf.set('always-auth', false) variable
333 conf.setCredentialsByURI(URI, credentials)
345 t.same(conf.getCredentialsByURI(URI), expected, 'got credentials')
347 conf.set('always-auth', original)