@yopdev/dev-server 1.5.0-alpha.4 → 1.5.0-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -37,6 +37,8 @@ function mapToLambdaEvent(req, requestBody) {
37
37
  headers['Content-Type'] = req.headers['content-type'];
38
38
  if (req.headers['accept'])
39
39
  headers['Accept'] = req.headers['accept'];
40
+ if (req.headers['authorization'])
41
+ headers['authorization'] = req.headers['authorization'];
40
42
  return {
41
43
  httpMethod: req.method,
42
44
  body: requestBody,
@@ -29,13 +29,12 @@ var SnsHttpProxy = /** @class */ (function () {
29
29
  this.topic = topic;
30
30
  this.start = function (config) { return Promise.resolve(_this.server)
31
31
  .then(function (server) { return server.start(); })
32
- .then(function (endpoint) {
32
+ .tap(function () {
33
33
  var _a;
34
34
  _this.config = {
35
35
  topic: (_a = _this.topic) !== null && _a !== void 0 ? _a : config.eventsProxy.topic.arn,
36
36
  sns: config.sns
37
37
  };
38
- return endpoint;
39
38
  })
40
39
  .then(function (endpoint) { return endpoint; }); };
41
40
  this.stop = function () { return _this.onlyWhenStarted(_this.server).stop()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yopdev/dev-server",
3
- "version": "1.5.0-alpha.4",
3
+ "version": "1.5.0-alpha.6",
4
4
  "scripts": {
5
5
  "compile": "tsc",
6
6
  "pretest": "npm run compile",