Skip to content

Commit

Permalink
Merge pull request #89 from MathRobin/esm-only
Browse files Browse the repository at this point in the history
Esm only
  • Loading branch information
MathRobin authored Nov 21, 2023
2 parents aa4d596 + abf74ca commit 8b109b5
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
version: [18, 19, 20, 21]
version: [18, 20]
steps:
- uses: actions/setup-node@v3
with:
Expand Down
7 changes: 7 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -600,3 +600,10 @@ export function isBandwidthLimitExceeded(response: unknown): boolean;
export function isNotExtended(response: unknown): boolean;

export function isNetworkAuthenticationRequired(response: unknown): boolean;

export class HEADERS {
corsBasic: {
'Access-Control-Allow-Origin': '*';
'Access-Control-Allow-Credentials': true;
};
}
7 changes: 7 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -767,3 +767,10 @@ export const isNotExtended = (response) => {
export const isNetworkAuthenticationRequired = (response) => {
return response.statusCode === 511;
};

export const HEADERS = {
corsBasic: {
'Access-Control-Allow-Origin': '*',
'Access-Control-Allow-Credentials': true,
},
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lambda-returns",
"version": "3.0.4",
"version": "3.0.5",
"main": "index.js",
"module": "index.js",
"types": "./index.d.ts",
Expand Down

0 comments on commit 8b109b5

Please sign in to comment.