Skip to content

Commit 9b7d755

Browse files
fix: add back root index.js and middleware.js
1 parent 1a7b749 commit 9b7d755

File tree

11 files changed

+57
-13
lines changed

11 files changed

+57
-13
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
<a name="3.3.1"></a>
2+
## [3.3.1](https://github.com/awslabs/aws-serverless-express/compare/v3.3.0...v3.3.1) (2018-08-16)
3+
4+
5+
### Bug Fixes
6+
7+
* fix package.json files ([4f2e56a](https://github.com/awslabs/aws-serverless-express/commit/4f2e56a))
8+
19
<a name="3.3.0"></a>
210
# [3.3.0](https://github.com/awslabs/aws-serverless-express/compare/v3.2.0...v3.3.0) (2018-08-16)
311

__tests__/integration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const path = require('path')
22
const fs = require('fs')
3-
const awsServerlessExpress = require('../src/index')
3+
const awsServerlessExpress = require('../index')
44
const apiGatewayEvent = require('../examples/basic-starter/api-gateway-event.json')
55
const app = require('../examples/basic-starter/app')
66

__tests__/middleware.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict'
2-
const awsServerlessExpressMiddleware = require('../src/middleware')
2+
const awsServerlessExpressMiddleware = require('../middleware')
33
const eventContextMiddleware = awsServerlessExpressMiddleware.eventContext
44
const mockNext = () => true
55
const generateMockReq = () => {

__tests__/unit.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const path = require('path')
44

5-
const awsServerlessExpress = require('../src/index')
5+
const awsServerlessExpress = require('../index')
66

77
test('getPathWithQueryStringParams: no params', () => {
88
const event = {

examples/basic-starter/lambda.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict'
2-
const awsServerlessExpress = require(process.env.NODE_ENV === 'test' ? '../src/index' : 'aws-serverless-express')
2+
const awsServerlessExpress = require(process.env.NODE_ENV === 'test' ? '../../index' : 'aws-serverless-express')
33
const app = require('./app')
44

55
// NOTE: If you get ERR_CONTENT_DECODING_FAILED in your browser, this is likely

examples/basic-starter/package-lock.json

Lines changed: 6 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/basic-starter/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
},
3838
"license": "Apache-2.0",
3939
"dependencies": {
40-
"aws-serverless-express": "^3.0.0",
40+
"aws-serverless-express": "^3.3.0",
4141
"body-parser": "^1.17.1",
4242
"compression": "^1.6.2",
4343
"cors": "^2.8.3",

index.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
* Copyright 2016-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License").
5+
* You may not use this file except in compliance with the License.
6+
* A copy of the License is located at
7+
*
8+
* http://aws.amazon.com/apache2.0/
9+
*
10+
* or in the "license" file accompanying this file.
11+
* This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
* express or implied. See the License for the specific language governing
13+
* permissions and limitations under the License.
14+
*/
15+
'use strict'
16+
17+
module.exports = require('./src/index')

middleware.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/*
2+
* Copyright 2016-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License").
5+
* You may not use this file except in compliance with the License.
6+
* A copy of the License is located at
7+
*
8+
* http://aws.amazon.com/apache2.0/
9+
*
10+
* or in the "license" file accompanying this file.
11+
* This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+
* express or implied. See the License for the specific language governing
13+
* permissions and limitations under the License.
14+
*/
15+
'use strict'
16+
17+
module.exports = require('./src/middleware')

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)