Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add typescript * Add typescript config * Convert src/constants.js to typescript * Convert src/helpers to typescript * Convert src/signature to ts * Add shared.ts for shared types * convert utilities to ts * Convert web-token to s * Convert id-api to ts * Convert web-api to ts * Convert index.js to ts * Resolve id spread issue in webapi * Add typescript support for jest Change tests to typescript * Remove es exports, defer to typescript export * Chnange require to import Fix test: object check error * Add typescript lint support Use es2021 in typescript config Change tests to typescript * Move examples into single folder Fix lint issue Update eslint config Build js files in ci before test and deployment Install example dependency before lint * Fix failing test Remove example package install from ci * Fix types * Change biometric kyc example to ts * Fix lint * change document verfication example to ts * Fix lint * Change enhasned kyc to typescript * Change smart selfie example to typescript * Update package.json Co-authored-by: Michael <michael.l.dangelo@gmail.com> * Fix helpers test * remove npm build from workflow * Export interface inline * Add babel cli * Compile js in prepublish using babel Build declaration in prepublish Add tsc check in lint Remove comments from tsconfigs * Change console error to warn, since execution will still continue * Add tsconfig to generate single d.ts file for all declarations Add js and type generation in prepublish * Fix index path in package.json * Add contributors field in package.json * Use require for server.js * Upgrade json5 json5/json5#295 * Add source map to config * restrict sidServerMapping keys to number Co-authored-by: Michael <michael.l.dangelo@gmail.com>
- Loading branch information
Showing
37 changed files
with
1,821 additions
and
283 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
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.
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 was deleted.
Oops, something went wrong.
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.
File renamed without changes.
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,13 @@ | ||
import { IDApi } from './src/id-api'; | ||
import Signature from './src/signature'; | ||
import { Utilities } from './src/utilities'; | ||
import { WebApi } from './src/web-api'; | ||
import { JOB_TYPE, IMAGE_TYPE } from './src/constants'; | ||
|
||
if ((typeof process === 'undefined' && typeof (process as NodeJS.Process).versions.node === 'undefined') || typeof window !== 'undefined') { | ||
console.warn('This is a server-side library meant for a node.js (or compatible) runtime, and is not meant to work in the browser.'); | ||
} | ||
|
||
export { | ||
IDApi, Signature, Utilities, WebApi, JOB_TYPE, IMAGE_TYPE, | ||
}; |
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,9 @@ | ||
import type { Config } from 'jest'; | ||
import { defaults } from 'jest-config'; | ||
|
||
const config: Config = { | ||
moduleFileExtensions: [...defaults.moduleFileExtensions, 'ts'], | ||
modulePathIgnorePatterns: ['<rootDir>/dist'], | ||
}; | ||
|
||
export default config; |
Oops, something went wrong.