@serverless/platform-sdk
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -11,3 +11,3 @@ 'use strict'; | ||
preview: { | ||
frontendUrl: 'https://deploy-preview-124--eg-dashboard-dev.netlify.com/', | ||
frontendUrl: 'https://deploy-preview-162--eg-dashboard-dev.netlify.com/', | ||
backendUrl: 'https://garkuu3a57.execute-api.us-east-1.amazonaws.com/dev/' | ||
@@ -14,0 +14,0 @@ }, |
@@ -12,6 +12,7 @@ 'use strict'; | ||
var service = require('./service'); | ||
var tenants = require('./tenants'); | ||
var accessKeys = require('./accessKeys'); | ||
var login = require('./login'); | ||
module.exports = Object.assign({}, service, accessKeys, login); | ||
module.exports = Object.assign({}, service, tenants, accessKeys, login); | ||
//# sourceMappingURL=index.js.map |
@@ -14,3 +14,3 @@ 'use strict'; | ||
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() { | ||
var app, server, queries, opnRes; | ||
var app, server, beginLoginQueries, endLoginQueries, opnRes; | ||
return regeneratorRuntime.wrap(function _callee$(_context) { | ||
@@ -25,18 +25,21 @@ while (1) { | ||
server = app.listen(8000); | ||
queries = querystring.stringify({ cli: 'true' }); | ||
_context.next = 7; | ||
return openBrowser(`${platformConfig.frontendUrl}?${queries}`); | ||
beginLoginQueries = querystring.stringify({ cli: 'true' }); | ||
endLoginQueries = querystring.stringify({ cli: 'true', cliLoginSuccessful: 'true' }); | ||
_context.next = 8; | ||
return openBrowser(`${platformConfig.frontendUrl}?${beginLoginQueries}`); | ||
case 7: | ||
case 8: | ||
opnRes = _context.sent; | ||
return _context.abrupt('return', new Promise(function (resolve) { | ||
app.post('/', function (req, res) { | ||
app.get('/', function (req, res) { | ||
if (opnRes) opnRes.kill(); | ||
opnRes.kill(); | ||
res.redirect(`${platformConfig.frontendUrl}?${endLoginQueries}`); | ||
res.end(); | ||
server.close(); | ||
return resolve(req.body); | ||
return resolve(req.query); | ||
}); | ||
})); | ||
case 9: | ||
case 10: | ||
case 'end': | ||
@@ -43,0 +46,0 @@ return _context.stop(); |
{ | ||
"name": "@serverless/platform-sdk", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Serverless Platform SDK", | ||
@@ -5,0 +5,0 @@ "author": "Serverless, Inc.", |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46798
36
383
4