@serverless/platform-sdk
Advanced tools
Comparing version 2.0.2 to 2.0.3-6-g690a296
@@ -11,6 +11,2 @@ 'use strict'; | ||
var _cors = require('cors'); | ||
var _cors2 = _interopRequireDefault(_cors); | ||
var _querystring = require('querystring'); | ||
@@ -77,3 +73,2 @@ | ||
app.use(_bodyParser2.default.json()); | ||
app.use((0, _cors2.default)()); | ||
server = app.listen(8000); | ||
@@ -91,6 +86,6 @@ refreshToken = void 0; | ||
auth0Endpoint = `https://${AUTH0_DOMAIN}/authorize?${auth0Queries}`; | ||
_context3.next = 14; | ||
_context3.next = 13; | ||
return (0, _openBrowser2.default)(auth0Endpoint); | ||
case 14: | ||
case 13: | ||
opnRes = _context3.sent; | ||
@@ -245,3 +240,3 @@ return _context3.abrupt('return', new Promise(function (resolve, reject) { | ||
case 16: | ||
case 15: | ||
case 'end': | ||
@@ -248,0 +243,0 @@ return _context3.stop(); |
@@ -87,3 +87,3 @@ 'use strict'; | ||
* Write Config File | ||
* - Writes a .serverlessrc file on the local machine in the root dir. | ||
* - Writes a .serverlessrc file on the local machine in the root dir | ||
*/ | ||
@@ -107,2 +107,5 @@ | ||
var config = readConfigFile(); | ||
if (!config.userId) { | ||
return null; | ||
} | ||
var user = (0, _ramda.path)(['users', config.userId, 'dashboard'], config); | ||
@@ -109,0 +112,0 @@ if (!user || !user.username) { |
{ | ||
"name": "@serverless/platform-sdk", | ||
"version": "2.0.2", | ||
"version": "2.0.3-6-g690a296", | ||
"description": "Serverless Platform SDK", | ||
@@ -32,3 +32,2 @@ "author": "Serverless, Inc.", | ||
"chalk": "^2.4.1", | ||
"cors": "^2.8.4", | ||
"express": "^4.16.3", | ||
@@ -35,0 +34,0 @@ "is-docker": "^1.1.0", |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
14
173606
1
- Removedcors@^2.8.4
- Removedcors@2.8.5(transitive)
- Removedobject-assign@4.1.1(transitive)