Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release/4.5.1 #430

Merged
merged 8 commits into from
Jan 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
**/node_modules
types
58 changes: 34 additions & 24 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,41 @@
module.exports = {
"plugins": ["node", "jest"],
"extends": ["plugin:node/recommended", "airbnb-base"],
plugins: ['node', 'jest'],
extends: ['plugin:node/recommended', 'airbnb-base'],
rules: {
"node/exports-style": ["error", "module.exports"],
"prefer-destructuring": ["error", {"object": false, "array": false}],
"strict": 0,
"comma-dangle": ["error", {
"arrays": "always-multiline",
"exports": "always-multiline",
"functions": "never",
"imports": "always-multiline",
"objects": "always-multiline"
'node/exports-style': ['error', 'module.exports'],
'prefer-destructuring': ['error', { object: false, array: false }],
strict: 0,
'comma-dangle': ['error', {
arrays: 'always-multiline',
exports: 'always-multiline',
functions: 'never',
imports: 'always-multiline',
objects: 'always-multiline',
}],
'no-console': 0,
'prefer-object-spread': 0,
'default-param-last': 'off',
'prefer-regex-literals': 'off',
'max-len': ['error', {
code: 100,
tabWidth: 2,
ignoreUrls: true,
ignoreComments: false,
ignoreRegExpLiterals: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
ignorePattern: '\\* @typedef \\{import',
}],
"no-console": 0,
"prefer-object-spread": 0,
"default-param-last": "off",
"prefer-regex-literals": "off"
},
env: {
"node": true,
"jest/globals": true
node: true,
'jest/globals': true,
},
"overrides": [{
"files": "\"./tests/**/*.spec.js\"",
"rules": {
"node/no-unpublished-require": 0,
"node/no-missing-require": 0
}
}]
overrides: [{
files: '"./tests/**/*.spec.js"',
rules: {
'node/no-unpublished-require': 0,
'node/no-missing-require': 0,
},
}],
};
18 changes: 10 additions & 8 deletions examples/aml-check/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 10 additions & 8 deletions examples/digital-identity/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 10 additions & 8 deletions examples/idv-identity-checks/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@ const config = require('../../config');
* Create an IDV session.
*/
async function createSession() {
const idvClient = new IDVClient(
config.YOTI_CLIENT_SDK_ID,
config.YOTI_PEM
);
const idvClient = new IDVClient(config.YOTI_CLIENT_SDK_ID, config.YOTI_PEM);

const subject = {
subject_id: 'subject_id_string',
Expand All @@ -27,8 +24,8 @@ async function createSession() {
};

const sessionSpec = new SessionSpecificationBuilder()
.withClientSessionTokenTtl(600)
.withResourcesTtl(90000)
.withClientSessionTokenTtl(600) // 10 minutes
.withResourcesTtl(90000) // session TTL(10 minutes) + 24 hours(minimum required)
.withUserTrackingId('some-user-tracking-id')
.withSubject(subject)
.withIdentityProfileRequirements(identityProfileRequirements)
Expand Down
18 changes: 10 additions & 8 deletions examples/idv/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ async function createSession() {
);

const sessionSpec = new SessionSpecificationBuilder()
.withClientSessionTokenTtl(600)
.withResourcesTtl(90000)
.withClientSessionTokenTtl(600) // 10 minutes
.withResourcesTtl(90000) // session TTL(10 minutes) + 24 hours(minimum required)
.withUserTrackingId('some-user-tracking-id')
.withRequestedTask(
new RequestedTextExtractionTaskBuilder()
.withManualCheckAlways()
.withManualCheckFallback()
.build()
)
// With OrthogonalRestrictionsFilterBuilder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ async function createSession() {
);

const sessionSpec = new SessionSpecificationBuilder()
.withClientSessionTokenTtl(600)
.withResourcesTtl(90000)
.withClientSessionTokenTtl(600) // 10 minutes
.withResourcesTtl(90000) // session TTL(10 minutes) + 24 hours(minimum required)
.withUserTrackingId('some-user-tracking-id')
.withRequestedTask(
new RequestedTextExtractionTaskBuilder()
.withManualCheckAlways()
.withManualCheckFallback()
.build()
)
// With OrthogonalRestrictionsFilterBuilder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ async function createSession() {
);

const sessionSpec = new SessionSpecificationBuilder()
.withClientSessionTokenTtl(600)
.withResourcesTtl(90000)
.withClientSessionTokenTtl(600) // 10 minutes
.withResourcesTtl(90000) // session TTL(10 minutes) + 24 hours(minimum required)
.withUserTrackingId('some-user-tracking-id')
.withRequestedCheck(
new RequestedDocumentAuthenticityCheckBuilder()
.withManualCheckAlways()
.withManualCheckFallback()
.build()
)
.withRequestedCheck(
Expand All @@ -33,7 +33,7 @@ async function createSession() {
)
.withRequestedTask(
new RequestedTextExtractionTaskBuilder()
.withManualCheckAlways()
.withManualCheckFallback()
.withChipDataDesired()
.withCreateExpandedDocumentFields(true) // default is false
.build()
Expand All @@ -49,8 +49,8 @@ async function createSession() {
.withSuccessUrl(`${config.YOTI_APP_BASE_URL}/success`)
.withErrorUrl(`${config.YOTI_APP_BASE_URL}/error`)
.withAllowHandoff(true)
.withIdDocumentTextExtractionGenericRetries(5)
.withIdDocumentTextExtractionReclassificationRetries(5)
.withIdDocumentTextExtractionGenericRetries(3)
.withIdDocumentTextExtractionReclassificationRetries(3)
.build()
)
.withRequiredDocument(
Expand Down
Loading
Loading