Skip to content

Commit

Permalink
Support NodeJS>=10
Browse files Browse the repository at this point in the history
  • Loading branch information
gpotter2 committed Jul 24, 2023
1 parent 39e83a5 commit 33eab15
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12, 14, 15, 16, 18]
node-version: [10, 12, 14, 15, 16, 18]
steps:
- uses: actions/checkout@v3
- name: Get Node.js ${{ matrix.node-version }}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
}
],
"engines": {
"node": ">=12"
"node": ">=10"
},
"dependencies": {
"commander": "^10.0.1",
Expand All @@ -43,7 +43,7 @@
"devDependencies": {
"@types/node": "^20.4.2",
"chai": "^4.3.7",
"mocha": "^10.2.0",
"mocha": "<9.0.0",
"sinon": "^15.2.0",
"typescript": "<5.1.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/lib/streaming.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class HttpResponseStream {
}
}

globalThis.awslambda = globalThis.awslambda || {
global.awslambda = global.awslambda || {
streamifyResponse,
HttpResponseStream,
};

0 comments on commit 33eab15

Please sign in to comment.