@serverless/platform-sdk
Advanced tools
Comparing version 0.0.4 to 0.0.5
@@ -20,3 +20,3 @@ 'use strict'; | ||
_context.next = 2; | ||
return fetch(`${platformConfig.BACKEND_BASE_URL}/tenants/${data.tenant}/accessKeys`, { | ||
return fetch(`${platformConfig.BACKEND_BASE_URL}tenants/${data.tenant}/accessKeys`, { | ||
method: 'POST', | ||
@@ -23,0 +23,0 @@ body: JSON.stringify({ |
{ | ||
"BACKEND_BASE_URL": "https://5xe6lexe8e.execute-api.us-east-1.amazonaws.com/dev", | ||
"BACKEND_BASE_URL": "https://5xe6lexe8e.execute-api.us-east-1.amazonaws.com/dev/", | ||
"FRONTEND_BASE_URL": "https://dashboard.serverless-dev.com/" | ||
} |
@@ -14,3 +14,3 @@ 'use strict'; | ||
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(data) { | ||
var response, text; | ||
var response, text, serviceUrl; | ||
return regeneratorRuntime.wrap(function _callee$(_context) { | ||
@@ -21,3 +21,3 @@ while (1) { | ||
_context.next = 2; | ||
return fetch(`${platformConfig.BACKEND_BASE_URL}/tenants/${data.tenant}/applications/${data.app}/services/${data.name}`, { | ||
return fetch(`${platformConfig.BACKEND_BASE_URL}tenants/${data.tenant}/applications/${data.app}/services/${data.name}`, { | ||
method: 'DELETE', | ||
@@ -46,5 +46,6 @@ headers: { | ||
case 8: | ||
return _context.abrupt('return', response); | ||
serviceUrl = `${platformConfig.FRONTEND_BASE_URL}tenants/${data.tenant}/applications/${data.app}/services/${data.name}`; | ||
return _context.abrupt('return', serviceUrl); | ||
case 9: | ||
case 10: | ||
case 'end': | ||
@@ -51,0 +52,0 @@ return _context.stop(); |
@@ -14,3 +14,3 @@ 'use strict'; | ||
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(data) { | ||
var response, text; | ||
var response, text, serviceUrl; | ||
return regeneratorRuntime.wrap(function _callee$(_context) { | ||
@@ -21,3 +21,3 @@ while (1) { | ||
_context.next = 2; | ||
return fetch(`${platformConfig.BACKEND_BASE_URL}/tenants/${data.tenant}/applications/${data.app}/services`, { | ||
return fetch(`${platformConfig.BACKEND_BASE_URL}tenants/${data.tenant}/applications/${data.app}/services`, { | ||
method: 'POST', | ||
@@ -47,5 +47,6 @@ body: JSON.stringify(data), | ||
case 8: | ||
return _context.abrupt('return', response); | ||
serviceUrl = `${platformConfig.FRONTEND_BASE_URL}tenants/${data.tenant}/applications/${data.app}/services/${data.service.name}`; | ||
return _context.abrupt('return', serviceUrl); | ||
case 9: | ||
case 10: | ||
case 'end': | ||
@@ -52,0 +53,0 @@ return _context.stop(); |
{ | ||
"name": "@serverless/platform-sdk", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"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
36186
297