-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore(client-sdk): Refactor SDK Dependencies (#80)
* chore(client-sdk): refactor as dependencies into a single client package * chore(middleware): abstract all middleware builder functions - refactor code to abstract the auth middleware - refactor code to abstract the http middleware - write test for the new refactored code * chore(tests): debug tests to isolate issues causing circleci to fail * debugging circleci * debugging circleci error * debugging circleci error * debugging circleci errors * chore(tsconfig): use existing tsconfig.json configurations from existing (history) package * fix OOM issue on cicleci * chore(sdk-client): refactor entire all middleware package into sdk-client package - add a builder class - add all sdk-middleware - remove unwanted comments and code blocks * chore(auth-middlewares): add other authentication middlewares methods to the build class * refactor middleware order and auth methods * refactor(ClientBuilder): rename ApiRootBuilder to ClientBuilder refactor ClientBuilder to return the client only * rewrite tests to conform with new ClientBuilder class * chore(client-builder): remove the private identifier from the withMiddleware method. Co-authored-by: Jens Schulze <jenschude@gmail.com>
- Loading branch information
Showing
72 changed files
with
1,164 additions
and
516 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 |
---|---|---|
|
@@ -34,3 +34,7 @@ setupEnv.sh | |
|
||
# editor specific | ||
*.swp | ||
|
||
# training files | ||
training-tmp/ | ||
loadtest/ |
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
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
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,11 @@ | ||
{ | ||
"compilerOptions": { | ||
"module": "ES6", | ||
"moduleResolution": "node", | ||
"removeComments": false, | ||
"outDir": "dist", | ||
"baseUrl": ".", | ||
"esModuleInterop": true | ||
}, | ||
"include": ["./src/**/*", "./test/runner"] | ||
} |
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 |
---|---|---|
@@ -1,23 +1,14 @@ | ||
module.exports = { | ||
preset: 'ts-jest', | ||
testEnvironment: 'node', | ||
collectCoverage: true, | ||
coverageDirectory: 'coverage', | ||
testPathIgnorePatterns: [ | ||
"/node_modules/" | ||
], | ||
verbose: true, | ||
coverageThreshold: { | ||
global: { | ||
// branches: 100, | ||
// lines: 100, | ||
// functions: 100, | ||
statements: 90 | ||
} | ||
}, | ||
globals: { | ||
'ts-jest': { | ||
diagnostics: false, | ||
} | ||
} | ||
roots: ['<rootDir>/test'], | ||
reporters: [ | ||
'default', | ||
process.env.CI === 'true' | ||
? [ | ||
'jest-junit', | ||
{ outputName: 'results.xml', outputDirectory: 'test-results' }, | ||
] | ||
: null, | ||
].filter(elem => elem !== null), | ||
} |
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
Oops, something went wrong.