blockstarter-wl
Advanced tools
Comparing version
@@ -74,4 +74,4 @@ // Generated by LiveScript 1.5.0 | ||
out$.auth = auth = function(form, cb){ | ||
var baseUrl, email, password, confirmUrl, isBrowser, fullurl; | ||
baseUrl = form.baseUrl, email = form.email, password = form.password, confirmUrl = form.confirmUrl, isBrowser = form.isBrowser; | ||
var baseUrl, email, password, confirmUrl, isBrowser, apiKey, fullurl; | ||
baseUrl = form.baseUrl, email = form.email, password = form.password, confirmUrl = form.confirmUrl, isBrowser = form.isBrowser, apiKey = form.apiKey; | ||
if (auth.loading === true && isBrowser) { | ||
@@ -85,6 +85,7 @@ return cb("Already in process"); | ||
password: password, | ||
confirmUrl: confirmUrl | ||
confirmUrl: confirmUrl, | ||
apiKey: apiKey | ||
}); | ||
fullurl = url(baseUrl, 'auth'); | ||
return superagent.post(fullurl).send(form).end(function(err, resp){ | ||
return superagent.post(fullurl).set('api-key', apiKey).send(form).end(function(err, resp){ | ||
delete auth.loading; | ||
@@ -91,0 +92,0 @@ if (err != null) { |
{ | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/blockstarter/white-label/issues" | ||
}, | ||
"main": "blockstarter.js", | ||
"description": "Blockstarter white-label API for integration", | ||
"subversion": 37, | ||
"homepage": "https://github.com/blockstarter/white-label#readme", | ||
"uperversion": "0.0", | ||
"dependencies": { | ||
"superagent": "^3.6.0" | ||
}, | ||
"uperversion": "0.0", | ||
"author": "Blockstarter Inc", | ||
"homepage": "https://github.com/blockstarter/white-label#readme", | ||
"subversion": 38, | ||
"description": "Blockstarter white-label API for integration", | ||
"main": "blockstarter.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+ssh://git@github.com/blockstarter/white-label.git" | ||
}, | ||
"version": "0.0.38", | ||
"name": "blockstarter-wl", | ||
"keywords": [ | ||
@@ -19,11 +23,7 @@ "white-label", | ||
], | ||
"name": "blockstarter-wl", | ||
"version": "0.0.37", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+ssh://git@github.com/blockstarter/white-label.git" | ||
}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
"author": "Blockstarter Inc", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/blockstarter/white-label/issues" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
126655
0.36%457
0.22%