Skip to content

Commit

Permalink
fix: #10663 mfa app (#10667)
Browse files Browse the repository at this point in the history
* fix: #10663 mfa app fetch authenticators bug

* fix: #10663 adds housekeeping

* fix: #10663 update snapshot
  • Loading branch information
willmcvay authored Feb 2, 2024
1 parent 8b5ed9b commit edf85fb
Show file tree
Hide file tree
Showing 202 changed files with 1,772 additions and 1,124 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
14 changes: 7 additions & 7 deletions packages/admin-portal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,17 +45,17 @@
"@reapit/foundations-ts-definitions": "workspace:packages/foundations-ts-definitions",
"@reapit/ts-scripts": "workspace:packages/ts-scripts",
"@reapit/ts-types": "workspace:packages/ts-types",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@typescript-eslint/parser": "^6.20.0",
"concurrently": "^6.5.1",
"cross-env": "^6.0.3",
"eslint": "8.54.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint": "8.56.0",
"eslint-plugin-prettier": "^5.1.3",
"jest": "^29.7.0",
"jest-coverage-badges": "^1.1.2",
"ts-jest": "^29.1.1",
"typescript": "^5.3.2",
"vite": "^5.0.6"
"ts-jest": "^29.1.2",
"typescript": "^5.3.3",
"vite": "^5.0.12"
},
"snyk": true
}
12 changes: 6 additions & 6 deletions packages/api-key-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@
"@reapit/ts-types": "workspace:packages/ts-types",
"@reapit/utils-common": "workspace:packages/utils-common",
"@reapit/utils-node": "workspace:packages/utils-node",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@typescript-eslint/parser": "^6.20.0",
"babel-jest": "^29.7.0",
"concurrently": "^6.5.1",
"cross-env": "^7.0.3",
"eslint": "^8.54.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint": "^8.56.0",
"eslint-plugin-prettier": "^5.1.3",
"jest": "29.7.0",
"ts-node": "^10.9.1",
"ts-node": "^10.9.2",
"tsup": "^6.7.0",
"typescript": "^5.3.2"
"typescript": "^5.3.3"
},
"scripts": {
"start": "NODE_ENV=local nodemon src/local-http.ts",
Expand Down
12 changes: 6 additions & 6 deletions packages/api-key-verify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@
"@reapit/ts-scripts": "workspace:packages/ts-scripts",
"@reapit/ts-types": "workspace:packages/ts-types",
"@reapit/utils-nest": "workspace:packages/utils-nest",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@typescript-eslint/parser": "^6.20.0",
"concurrently": "^6.5.1",
"cross-env": "^7.0.3",
"eslint": "8.54.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint": "8.56.0",
"eslint-plugin-prettier": "^5.1.3",
"jest": "^29.7.0",
"jest-coverage-badges": "^1.1.2",
"reflect-metadata": "^0.1.13",
"ts-jest": "^29.1.1",
"ts-jest": "^29.1.2",
"tsup": "^6.7.0",
"typescript": "^5.3.2"
"typescript": "^5.3.3"
}
}
12 changes: 6 additions & 6 deletions packages/app-builder-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@
"@reapit/ts-scripts": "workspace:packages/ts-scripts",
"@reapit/utils-common": "workspace:packages/utils-common",
"@types/luxon": "^2.4.0",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@typescript-eslint/parser": "^6.20.0",
"apollo-server-core": "^3.13.0",
"apollo-server-express": "^3.13.0",
"apollo-server-lambda": "^3.13.0",
"app-builder": "workspace:packages/app-builder",
"class-validator": "^0.14.0",
"cors": "^2.8.5",
"dataloader": "^2.2.2",
"eslint": "^8.54.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint": "^8.56.0",
"eslint-plugin-prettier": "^5.1.3",
"express": "^4.18.2",
"fs-extra": "^10.1.0",
"graphql": "^15.8.0",
Expand All @@ -59,7 +59,7 @@
"reflect-metadata": "^0.1.13",
"slugify": "^1.6.6",
"type-graphql": "^1.1.1",
"typescript": "^5.3.2",
"typescript": "^5.3.3",
"uuid": "^9.0.1"
},
"devDependencies": {
Expand All @@ -76,7 +76,7 @@
"fetch-mock-jest": "^1.5.1",
"jest": "^29.7.0",
"jest-coverage-badges": "^1.1.2",
"ts-jest": "^29.1.1",
"ts-jest": "^29.1.2",
"ts-node-dev": "^2.0.0"
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { html } from './js'

export const generateIndexHtml = () => html`
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
Expand Down
4 changes: 2 additions & 2 deletions packages/app-builder-backend/src/eject/templates/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ export const generateRoutes = (pages: Pages) =>
.map(
(page) => js`
import ${slugToCamel(page.id === '~' ? 'index' : page.id)} from '${page.fileLoc
.replace('src', '.')
.replace('.tsx', '')}'
.replace('src', '.')
.replace('.tsx', '')}'
`,
)
.join('\n')}
Expand Down
14 changes: 7 additions & 7 deletions packages/app-builder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,16 @@
"@testing-library/react": "^14.1.2",
"@types/debounce": "^1.2.4",
"@types/pluralize": "^0.0.33",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@typescript-eslint/parser": "^6.20.0",
"concurrently": "^6.5.1",
"cross-env": "^6.0.3",
"eslint": "8.54.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint": "8.56.0",
"eslint-plugin-prettier": "^5.1.3",
"jest": "^29.7.0",
"jest-coverage-badges": "^1.1.2",
"ts-jest": "^29.1.1",
"typescript": "^5.3.2",
"vite": "^5.0.6"
"ts-jest": "^29.1.2",
"typescript": "^5.3.3",
"vite": "^5.0.12"
}
}
18 changes: 9 additions & 9 deletions packages/app-marketplace-admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,17 @@
"@reapit/ts-types": "workspace:packages/ts-types",
"@testing-library/react": "^14.1.2",
"@types/uuid": "^8.3.4",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@typescript-eslint/parser": "^6.20.0",
"cross-env": "^6.0.3",
"eslint": "8.54.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint": "8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"jest": "^29.7.0",
"jest-coverage-badges": "^1.1.2",
"prettier": "^2.8.8",
"ts-jest": "^29.1.1",
"typescript": "^5.3.2",
"vite": "^5.0.6"
"prettier": "^3.2.4",
"ts-jest": "^29.1.2",
"typescript": "^5.3.3",
"vite": "^5.0.12"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ export const ManageTableExpandableContent: FC<ManageTableExpandableContentProps>
{configItem.filters?.isFeatured === undefined
? 'Not Applied'
: configItem.filters?.isFeatured
? 'Yes'
: 'No'}
? 'Yes'
: 'No'}
</BodyText>
</Col>
</Grid>
Expand Down Expand Up @@ -373,10 +373,10 @@ export const AppBrowseManageTable: FC<AppBrowseManageTableProps> = (props) => {
{item.live.isLive
? 'Live'
: item.live.timeFrom && new Date(item.live.timeFrom).getTime() > new Date().getTime()
? `Going Live ${dayjs(item.live.timeFrom).format('DD-MM-YYYY HH:mm')}`
: item.live.timeTo && new Date(item.live.timeTo).getTime() > new Date().getTime()
? `Completing ${dayjs(item.live.timeTo).format('DD-MM-YYYY HH:mm')}`
: 'Not Live'}
? `Going Live ${dayjs(item.live.timeFrom).format('DD-MM-YYYY HH:mm')}`
: item.live.timeTo && new Date(item.live.timeTo).getTime() > new Date().getTime()
? `Completing ${dayjs(item.live.timeTo).format('DD-MM-YYYY HH:mm')}`
: 'Not Live'}
</>
),
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,8 @@ export const AppBrowseUpsertModal: FC<AppBrowseUpsertModalDefaultProps> = ({
defaultValues.filters?.isFeatured === false
? 'notFeatured'
: defaultValues.filters?.isFeatured === true
? 'isFeatured'
: 'notApplied',
? 'isFeatured'
: 'notApplied',
category: defaultValues.filters?.category?.join(',') || '',
},
live: {
Expand Down
14 changes: 7 additions & 7 deletions packages/app-marketplace-cms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@
"@reapit/config-manager": "workspace:packages/config-manager",
"@reapit/ts-bundler": "workspace:packages/ts-bundler",
"@reapit/ts-scripts": "workspace:packages/ts-scripts",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@typescript-eslint/parser": "^6.20.0",
"cross-env": "^7.0.3",
"eslint": "^8.54.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint": "^8.56.0",
"eslint-plugin-prettier": "^5.1.3",
"jest": "^29.7.0",
"nodemon": "^2.0.22",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typescript": "^5.3.2"
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
}
}
8 changes: 4 additions & 4 deletions packages/auto-reply-bot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
},
"devDependencies": {
"@types/node": "^16.18.66",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@typescript-eslint/parser": "^6.20.0",
"@vercel/ncc": "^0.38.1",
"eslint": "8.54.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint": "8.56.0",
"eslint-plugin-prettier": "^5.1.3",
"serverless-deployment-bucket": "^1.6.0"
},
"scripts": {
Expand Down
16 changes: 8 additions & 8 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"@reapit/connect-session": "workspace:^",
"adm-zip": "^0.5.10",
"ansi-regex": "^6.0.1",
"axios": "^1.6.2",
"axios": "^1.6.7",
"chalk": "^4.1.2",
"cli-spinners": "^2.9.2",
"create-react-app": "^5.0.1",
Expand Down Expand Up @@ -44,16 +44,16 @@
"@types/inquirer": "^7.3.3",
"@types/semver": "^7.5.6",
"@types/yargs": "^16.0.9",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@typescript-eslint/parser": "^6.20.0",
"babel-jest": "^29.7.0",
"concurrently": "^6.5.1",
"eslint": "^8.54.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint": "^8.56.0",
"eslint-plugin-prettier": "^5.1.3",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.1",
"typescript": "^5.3.2"
"ts-jest": "^29.1.2",
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
},
"scripts": {
"run": "ts-node src/index.ts",
Expand Down
5 changes: 4 additions & 1 deletion packages/cli/src/abstract.command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ export interface Command {
export abstract class AbstractCommand {
protected baseUrl: string = 'https://deployments.prod.paas.reapit.cloud/api/'

constructor(protected readonly devMode: boolean, protected readonly loginService: LoginService) {}
constructor(
protected readonly devMode: boolean,
protected readonly loginService: LoginService,
) {}

get commandOptions(): CommandOptions {
return Reflect.getOwnMetadata(COMMAND_OPTIONS, this.constructor)
Expand Down
12 changes: 6 additions & 6 deletions packages/cli/src/utils/multispinner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,16 @@ export class Multispinner {
this.lines[lineKey] === SpinnerState.IN_PROGRESS
? `${frame} `
: this.lines[lineKey] === SpinnerState.SUCCESS
? '🚀'
: ' '
? '🚀'
: ' '
} ${lineKey} ${chalk[
this.lines[lineKey] === SpinnerState.FAIL
? 'red'
: this.lines[lineKey] === SpinnerState.IN_PROGRESS
? 'yellow'
: this.lines[lineKey] === SpinnerState.SUCCESS
? 'green'
: 'grey'
? 'yellow'
: this.lines[lineKey] === SpinnerState.SUCCESS
? 'green'
: 'grey'
](this.lines[lineKey])}`,
)
.join('\n')
Expand Down
10 changes: 5 additions & 5 deletions packages/cognito-custom-mail-lambda/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@
"@types/mjml": "^4.7.4",
"@types/node": "^18.19.0",
"@types/string-template": "^1.0.6",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@typescript-eslint/parser": "^6.20.0",
"babel-jest": "^29.7.0",
"concurrently": "^6.5.1",
"cross-env": "^7.0.3",
"eslint": "8.54.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint": "8.56.0",
"eslint-plugin-prettier": "^5.1.3",
"html-loader": "^4.2.0",
"jest": "^29.7.0",
"jest-coverage-badges": "^1.1.2",
Expand All @@ -62,7 +62,7 @@
"serverless-offline": "^12.0.4",
"serverless-plugin-log-retention": "^2.0.0",
"ts-loader": "^9.5.1",
"ts-node": "^10.9.1",
"ts-node": "^10.9.2",
"tsup": "^6.7.0"
},
"snyk": true
Expand Down
8 changes: 4 additions & 4 deletions packages/config-manager/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@
},
"devDependencies": {
"@reapit/config-manager": "^2.0.8",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@typescript-eslint/eslint-plugin": "^6.20.0",
"@typescript-eslint/parser": "^6.20.0",
"concurrently": "^6.5.1",
"eslint": "8.54.0",
"eslint-plugin-prettier": "^4.2.1"
"eslint": "8.56.0",
"eslint-plugin-prettier": "^5.1.3"
}
}
Loading

0 comments on commit edf85fb

Please sign in to comment.