Skip to content

Commit

Permalink
Merge branch 'release/v0.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
mosufy committed Nov 11, 2019
2 parents 4553887 + 55e98dd commit f4ba733
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lesgo",
"version": "0.2.7",
"version": "0.3.0",
"description": "A lightweight node.js serverless framework",
"scripts": {
"start": "sls offline start --stage local --env local",
Expand All @@ -17,7 +17,7 @@
},
"dependencies": {
"@sentry/node": "^5.6.2",
"lesgo": "^0.2.7",
"lesgo": "^0.3.0",
"middy": "^0.29.0",
"serverless-api-compression": "^1.0.1"
},
Expand Down
4 changes: 2 additions & 2 deletions src/handlers/ping.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import middy from 'middy';
import { http } from 'lesgo';
import { httpMiddleware } from 'lesgo';

import { connectSentry } from 'Utils/sentry';
import ping from 'Core/ping';
Expand All @@ -14,4 +14,4 @@ const originalHandler = event => {
// eslint-disable-next-line import/prefer-default-export
export const handler = middy(originalHandler);

handler.use(http({ debugMode: app.debug }));
handler.use(httpMiddleware({ debugMode: app.debug }));
4 changes: 2 additions & 2 deletions src/handlers/pingQueue.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import middy from 'middy';
import { http } from 'lesgo';
import { httpMiddleware } from 'lesgo';

import { connectSentry } from 'Utils/sentry';
import pingQueue from 'Core/pingQueue';
Expand All @@ -14,4 +14,4 @@ const originalHandler = event => {
// eslint-disable-next-line import/prefer-default-export
export const handler = middy(originalHandler);

handler.use(http({ debugMode: app.debug }));
handler.use(httpMiddleware({ debugMode: app.debug }));
4 changes: 2 additions & 2 deletions src/handlers/pingQueueProcessor.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import middy from 'middy';
import { normalizeSQSMessage } from 'lesgo';
import { normalizeSQSMessageMiddleware } from 'lesgo';

import { connectSentry } from 'Utils/sentry';
import pingQueueProcessor from 'Core/pingQueueProcessor';
Expand All @@ -13,4 +13,4 @@ const originalHandler = event => {
// eslint-disable-next-line import/prefer-default-export
export const handler = middy(originalHandler);

handler.use(normalizeSQSMessage());
handler.use(normalizeSQSMessageMiddleware());
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5182,10 +5182,10 @@ left-pad@^1.3.0:
resolved "https://registry.yarnpkg.com/left-pad/-/left-pad-1.3.0.tgz#5b8a3a7765dfe001261dde915589e782f8c94d1e"
integrity sha512-XI5MPzVNApjAyhQzphX8BkmKsKUxD4LdyK24iZeQGinBN9yTQT3bFlCBy/aVx2HrNcqQGsdot8ghrjyrvMCoEA==

lesgo@^0.2.7:
version "0.2.7"
resolved "https://registry.yarnpkg.com/lesgo/-/lesgo-0.2.7.tgz#f1235cee524fc562bbca30a04bdfc2d4fa6f7fe0"
integrity sha512-WHGDsExRG6MFdD8/7vcKj4BUYePLRDsMxqJHU9hpddHQkiXs1WsnofZZzmIpwW5yDqIF6heqO2khYRLtD7gUeQ==
lesgo@^0.3.0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/lesgo/-/lesgo-0.3.0.tgz#2bc426d2315913d6de79f2518c439163d7c09eb3"
integrity sha512-jjBNENmbI9HUkx5FwhjR/VToAKehGsvfqC3Oo3oGzmX7OdKoFwq+COu9JOdN0zR2pPaj+6UVtFyQdQMYJGLzGg==
dependencies:
"@sentry/minimal" "^5.6.1"

Expand Down

0 comments on commit f4ba733

Please sign in to comment.