blockstarter-wl
Advanced tools
Comparing version 0.0.45 to 0.0.46
// Generated by LiveScript 1.5.0 | ||
(function(){ | ||
var superagent, url, check, required, sidBased, support, address, auth, logout, confirmEmail, changePassword, updateProfile, contributors, forgotPassword, resetPassword, panel, helpMe, out$ = typeof exports != 'undefined' && exports || this; | ||
var superagent, url, check, required, sidBased, support, address, auth, logout, confirmEmail, changePassword, updateProfile, contributors, resendConfirmEmail, forgotPassword, resetPassword, panel, helpMe, out$ = typeof exports != 'undefined' && exports || this; | ||
superagent = require('superagent'); | ||
@@ -218,2 +218,26 @@ url = function(root, part){ | ||
}; | ||
out$.resendConfirmEmail = resendConfirmEmail = function(arg$, cb){ | ||
var transport, apiKey, baseUrl, isBrowser, sessionId, fullurl; | ||
transport = arg$.transport, apiKey = arg$.apiKey, baseUrl = arg$.baseUrl, isBrowser = arg$.isBrowser, sessionId = arg$.sessionId; | ||
apiKey = storage.apiKey, sessionId = storage.sessionId, transport = storage.transport, baseUrl = storage.baseUrl, isBrowser = storage.isBrowser; | ||
if (resendConfirmEmail.loading === true && isBrowser) { | ||
return cb("Already in process"); | ||
} | ||
resendConfirmEmail.loading = true; | ||
required({ | ||
apiKey: apiKey, | ||
sessionId: sessionId, | ||
baseUrl: baseUrl | ||
}); | ||
fullurl = url(baseUrl, 'resend-confirm-email'); | ||
return superagent.post(fullurl).send({ | ||
transport: transport | ||
}).set('api-key', apiKey).set('sid', sessionId).end(function(err, resp){ | ||
delete resendConfirmEmail.loading; | ||
if (err != null) { | ||
return cb(err); | ||
} | ||
cb(null, JSON.parse(resp.text)); | ||
}); | ||
}; | ||
out$.forgotPassword = forgotPassword = function(arg$, cb){ | ||
@@ -220,0 +244,0 @@ var returnUrl, transport, apiKey, email, project, baseUrl, isBrowser, fullurl; |
{ | ||
"repository": { | ||
"type": "git", | ||
"url": "git+ssh://git@github.com/blockstarter/white-label.git" | ||
}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"main": "blockstarter.js", | ||
"description": "Blockstarter white-label API for integration", | ||
"subversion": 45, | ||
"homepage": "https://github.com/blockstarter/white-label#readme", | ||
"license": "ISC", | ||
"bugs": { | ||
"url": "https://github.com/blockstarter/white-label/issues" | ||
}, | ||
"license": "ISC", | ||
"author": "Blockstarter Inc", | ||
"homepage": "https://github.com/blockstarter/white-label#readme", | ||
"subversion": 46, | ||
"description": "Blockstarter white-label API for integration", | ||
"main": "blockstarter.js", | ||
"dependencies": { | ||
"superagent": "^3.6.0" | ||
}, | ||
"uperversion": "0.0", | ||
"version": "0.0.46", | ||
"name": "blockstarter-wl", | ||
"keywords": [ | ||
@@ -22,8 +20,10 @@ "white-label", | ||
], | ||
"name": "blockstarter-wl", | ||
"version": "0.0.45", | ||
"uperversion": "0.0", | ||
"dependencies": { | ||
"superagent": "^3.6.0" | ||
"author": "Blockstarter Inc", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+ssh://git@github.com/blockstarter/white-label.git" | ||
}, | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
} | ||
} |
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
Sorry, the diff of this file is not supported yet
480
124479