-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for AWS SDK v3 (#23)
* update types and integration tests to use sdk v2 and v3 * update README to show usage using sdk v3 * use sdk v3 cognito client. remove unused aws-sdk type package * move eslint to root * format types file * format * format * move config outside of config folder. simplify config * rename inputs to test-cases * refactor unit tests so that they can use all shapes for initiate-auth and respond-to-auth-challenge * stop using js file extensions on import * fix imports, stop using js extensions and index in the import path. add admin variations to tests * update README to mention compatability with v2 and v3 SDK * update README to mention compatability with v2 and v3 SDK * move build before test in workflow * use lock file from main and re-run install to fix workflow issue * update CONTRIBUTING file for remove of auto npm releases * add aws ci creds to workflow * typo in workflow * npm audit fix * tweeks to CONTRIBUTING * update README --------- Co-authored-by: Simon McAllister <simonmcallister@simons-mbp.home> Co-authored-by: Simon McAllister <simonmcallister@Simons-MBP-2.broadband>
- Loading branch information
1 parent
1f9353a
commit ecb55f1
Showing
49 changed files
with
9,693 additions
and
5,121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
module.exports = { | ||
env: { | ||
es6: true, | ||
node: true, | ||
}, | ||
extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended"], | ||
ignorePatterns: ["/*", "!/src"], | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
ecmaVersion: "latest", | ||
sourceType: "module", | ||
}, | ||
plugins: ["prettier", "@typescript-eslint", "simple-import-sort"], | ||
rules: { | ||
// Prettier conflict resolution | ||
"prettier/prettier": "error", | ||
// Sort imports + exports using a consistent format | ||
"simple-import-sort/exports": "error", | ||
"simple-import-sort/imports": [ | ||
"error", | ||
{ | ||
groups: [["^\\u0000"], ["^node:"], ["^@?\\w"], ["^"], ["^\\.\\."], ["^\\."]], | ||
}, | ||
], | ||
// Allow only underscores to be unused | ||
"@typescript-eslint/no-unused-vars": [ | ||
"error", | ||
{ | ||
argsIgnorePattern: "^_+$", | ||
varsIgnorePattern: "^_+$", | ||
caughtErrorsIgnorePattern: "^_+$", | ||
}, | ||
], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/** @type {import('ts-jest').JestConfigWithTsJest} */ | ||
module.exports = { | ||
preset: "ts-jest", | ||
testEnvironment: "node", | ||
rootDir: "src/", | ||
testMatch: ["**/*.test.ts"], | ||
// // coverage | ||
// collectCoverage: true, | ||
// coverageDirectory: "__tests__/coverage/", | ||
transform: { | ||
"^.+\\.tsx?$": [ | ||
"ts-jest", | ||
// required due to custom location of tsconfig.json configuration file | ||
// https://kulshekhar.github.io/ts-jest/docs/getting-started/options/tsconfig | ||
{ tsconfig: ".tsconfig.json" }, | ||
], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
printWidth: 120, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "ESNext", | ||
"rootDir": "src/", | ||
"moduleResolution": "node", | ||
"declaration": false, | ||
"allowSyntheticDefaultImports": true, | ||
"esModuleInterop": true, | ||
"forceConsistentCasingInFileNames": true, | ||
"strict": true, | ||
"skipLibCheck": true | ||
}, | ||
"include": ["src/**/*.ts"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
Oops, something went wrong.