Skip to content

Commit c6c763d

Browse files
authored
Merge pull request #37 from dbartholomae/fix_type_bug_in_cors
Fix type bug in cors
2 parents b73e993 + 52f035b commit c6c763d

File tree

62 files changed

+1711
-1146
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+1711
-1146
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ assignees: ''
77

88
---
99

10-
**Describe the bug**
10+
## Describe the bug
1111
A clear and concise description of what the bug is.
1212

13-
**To Reproduce**
13+
## To Reproduce
1414
The following minimal code reproduces the error:
1515

16-
**Expected behavior**
16+
## Expected behavior
1717
A clear and concise description of what you expected to happen.
1818

19-
**Additional context**
19+
## Additional context
2020
Add any other context about the problem here.

.github/ISSUE_TEMPLATE/feature_request.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@ assignees: ''
1111
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
1212

1313
** Would you be willing to help with a PR? **
14-
[ ] Yes, absolutely
15-
[ ] Yes, with some guidance
16-
[ ] Unfortunately no time :'-(
14+
- [ ] Yes, absolutely
15+
- [ ] Yes, with some guidance
16+
- [ ] Unfortunately no time :'-(
1717

18-
**Describe the solution you'd like**
18+
## Describe the solution you'd like
1919
A clear and concise description of what you want to happen.
2020

21-
**Describe alternatives you've considered**
21+
## Describe alternatives you've considered
2222
A clear and concise description of any alternative solutions or features you've considered.
2323

24-
**Additional context**
24+
## Additional context
2525
Add any other context or screenshots about the feature request here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!-- Please only open PRs for issues in place. If there is no issue, please open the issue first. Then create this PR and link it to the issue by adding the issue number in the line below. -->
2+
Closes #<!-- Replace this comment with the issue number -->
3+
4+
## Checklist:
5+
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
6+
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
7+
- [ ] I have updated the documentation accordingly.
8+
- [ ] I have read the **CONTRIBUTING** document.
9+
10+
<!-- If you wrote meaningful commit messages, this is it. If you don't feel confident that your commit messages fully explain your changes and your reasoning behind it, then you can add more information to this PR. Or, even better, update your commit messages ;) -->
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
version: 2
22
updates:
33
- package-ecosystem: "npm"
4-
directory: "/packages"
4+
directory: "/"
55
schedule:
6-
interval: "weekly"
6+
interval: "daily"

.github/issue_label_bot.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
label-alias:
2+
bug: 'bug'
3+
feature_request: 'enhancement'
4+
question: 'question'

.github/labels.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
- name: "bug"
2+
color: "d73a4a"
3+
description: "Something isn't working"
4+
- name: "documentation"
5+
color: "0075ca"
6+
description: "Improvements or additions to documentation"
7+
- name: "duplicate"
8+
color: "cfd3d7"
9+
description: "This issue or pull request already exists"
10+
- name: "enhancement"
11+
color: "a2eeef"
12+
description: "New feature or request"
13+
- name: "chore"
14+
color: "CD026F"
15+
description: "Changes to how we maintain the repository"
16+
- name: "good first issue"
17+
color: "7057ff"
18+
description: "Good for newcomers"
19+
- name: "help wanted"
20+
color: "008672"
21+
description: "This issue is ready for contributing a PR"
22+
- name: "question"
23+
color: "d876e3"
24+
description: "Further information is requested"
25+
- name: "wontfix"
26+
color: "ffffff"
27+
description: "This will not be worked on"
28+
- name: "stale"
29+
color: "4252e5"
30+
description: "Stale issues and PRs will be closed automatically"
31+
- name: "hacktoberfest"
32+
color: "FF8AE2"
33+
description: "Issues prepared for Hacktoberfest"
34+
- name: "invalid"
35+
color: "FCBA03"
36+
description: "PRs marked as invalid so they don't count for Hacktoberfest"

.github/mergify.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
pull_request_rules:
2+
- name: merge reviewed and built PRs
3+
conditions:
4+
- base=main
5+
- "#approved-reviews-by>=1"
6+
- status-success=build
7+
- status-success=license/cla
8+
actions:
9+
merge:
10+
method: merge
11+
12+
- name: merge reviewed PRs from the repo owner
13+
conditions:
14+
- author=dbartholomae
15+
- base=main
16+
- status-success=build
17+
actions:
18+
merge:
19+
method: merge
20+
21+
- name: automatic merge for Dependabot pull requests
22+
conditions:
23+
- author~=^dependabot(|-preview)\[bot\]$
24+
- status-success=build
25+
actions:
26+
merge:
27+
method: merge
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: "Close stale issues"
2+
on:
3+
schedule:
4+
- cron: "0 0 * * *"
5+
6+
jobs:
7+
stale:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/stale@v3
11+
with:
12+
repo-token: ${{ secrets.GITHUB_TOKEN }}
13+
days-before-stale: 60
14+
days-before-close: 7
15+
stale-issue-message: This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.
16+
stale-pr-message: This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.
17+
stale-issue-label: stale
18+
stale-pr-label: stale

.github/workflows/update-labels.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Sync labels
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- .github/labels.yml
9+
- .github/workflows/update-labels.yml
10+
11+
jobs:
12+
labeler:
13+
runs-on: ubuntu-latest
14+
steps:
15+
-
16+
name: Checkout
17+
uses: actions/checkout@v2
18+
-
19+
name: Run Labeler
20+
if: success()
21+
uses: crazy-max/ghaction-github-labeler@v3
22+
with:
23+
github-token: ${{ secrets.GITHUB_TOKEN }}
24+
yaml-file: .github/labels.yml

SECURITY.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Security policy
2+
3+
If you find a security vulnerability, do NOT open an issue. Email
4+
[[email protected]](mailto:[email protected]&subject=Security%20vulnerability%20in%20repo)
5+
instead. This reduces the risk of criminals getting aware and exploiting the
6+
vulnerability before we got a chance to fix it.
7+
8+
In order to determine whether you are dealing with a security issue, ask yourself these two questions:
9+
* Can I access something that's not mine, or something I shouldn't have access to?
10+
* Can I disable something for other people?
11+
12+
If the answer to either of those two questions are "yes", then you're probably dealing with a security issue.
13+
Note that even if you answer "no" to both questions, you may still be dealing with a security issue, so if you're
14+
unsure, just email us at [[email protected]](mailto:[email protected]&subject=Security%20vulnerability%20in%20repo).
15+
16+
If the bug is not security related, please use the corresponding issue template
17+
to submit it on GitHub.

SUPPORT.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
At the moment, it is totally fine to open an issue if you have any questions.
2+
This might change though depending on the time needed to answer.
3+
Also, please note that this is free and open source software and there is no guarantees on any kind of support from our side.

_templates/middleware/new/package/package.json.t

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ to: packages/<%= h.inflection.dasherize(name.toLowerCase()) %>/package.json
6969
"supertest": "^4.0.2",
7070
"ts-jest": "^25.3.1",
7171
"ts-loader": "^6.2.2",
72-
"typescript": "^3.7.5",
72+
"typescript": "^4.1.0",
7373
"wait-on": "^5.2.0",
7474
"webpack": "^4.41.5"
7575
},
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@lambda-middleware/class-validator",
5+
"comment": "ast",
6+
"type": "major"
7+
}
8+
],
9+
"packageName": "@lambda-middleware/class-validator",
10+
"email": "[email protected]"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@lambda-middleware/compose",
5+
"comment": "ast",
6+
"type": "minor"
7+
}
8+
],
9+
"packageName": "@lambda-middleware/compose",
10+
"email": "[email protected]"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@lambda-middleware/cors",
5+
"comment": "Before, cors middleware could be used for handler of all kinds of events. Now it can only be used for APIGatewayEvents. This should not cause much trouble, as the middleware already returned APIGatewayResponses only.",
6+
"type": "major"
7+
}
8+
],
9+
"packageName": "@lambda-middleware/cors",
10+
"email": "[email protected]"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@lambda-middleware/do-not-wait",
5+
"comment": "Update TypeScript version",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@lambda-middleware/do-not-wait",
10+
"email": "[email protected]"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@lambda-middleware/http-error-handler",
5+
"comment": "Before, ErrorHandler middleware could be used for handler of all kinds of events. Now it can only be used for APIGatewayEvents. This should not cause much trouble, as the middleware already returned APIGatewayResponses only.",
6+
"type": "major"
7+
}
8+
],
9+
"packageName": "@lambda-middleware/http-error-handler",
10+
"email": "[email protected]"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@lambda-middleware/http-header-normalizer",
5+
"comment": "Update TypeScript version",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@lambda-middleware/http-header-normalizer",
10+
"email": "[email protected]"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@lambda-middleware/ie-no-open",
5+
"comment": "Update TypeScript version",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@lambda-middleware/ie-no-open",
10+
"email": "[email protected]"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@lambda-middleware/json-serializer",
5+
"comment": "Before, JsonSerializer middleware could be used for handler of all kinds of events. Now it can only be used for APIGatewayEvents. This should not cause much trouble, as the middleware already returned APIGatewayResponses only.",
6+
"type": "major"
7+
}
8+
],
9+
"packageName": "@lambda-middleware/json-serializer",
10+
"email": "[email protected]"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@lambda-middleware/jwt-auth",
5+
"comment": "Require node types",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@lambda-middleware/jwt-auth",
10+
"email": "[email protected]"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@lambda-middleware/middy-adaptor",
5+
"comment": "Update TypeScript version",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@lambda-middleware/middy-adaptor",
10+
"email": "[email protected]"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@lambda-middleware/no-sniff",
5+
"comment": "Update TypeScript version",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@lambda-middleware/no-sniff",
10+
"email": "[email protected]"
11+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"changes": [
3+
{
4+
"packageName": "@lambda-middleware/utils",
5+
"comment": "Update TypeScript version",
6+
"type": "patch"
7+
}
8+
],
9+
"packageName": "@lambda-middleware/utils",
10+
"email": "[email protected]"
11+
}

0 commit comments

Comments
 (0)