@adminforth/two-factors-auth 2.10.1 → 2.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build.log CHANGED
@@ -15,5 +15,5 @@ custom/package.json
15
15
  custom/tsconfig.json
16
16
  custom/utils.js
17
17
 
18
- sent 273,593 bytes received 210 bytes 547,606.00 bytes/sec
19
- total size is 272,766 speedup is 1.00
18
+ sent 273,585 bytes received 210 bytes 547,590.00 bytes/sec
19
+ total size is 272,758 speedup is 1.00
@@ -85,9 +85,9 @@
85
85
  declare global {
86
86
  interface Window {
87
87
  adminforthTwoFaModal: {
88
- get2FaConfirmationResult: (
89
- verifyingCallback?: (confirmationResult: string) => Promise<boolean>,
90
- title?: string
88
+ get2FaConfirmationResult: (
89
+ title?: string,
90
+ verifyingCallback?: (confirmationResult: string) => Promise<boolean>
91
91
  ) => Promise<any>;
92
92
  };
93
93
  }
@@ -127,7 +127,7 @@
127
127
 
128
128
 
129
129
  window.adminforthTwoFaModal = {
130
- get2FaConfirmationResult: (verifyingCallback?: (confirmationResult: string) => Promise<boolean>, title?: string) =>
130
+ get2FaConfirmationResult: (title?: string, verifyingCallback?: (confirmationResult: string) => Promise<boolean>) =>
131
131
  new Promise(async (resolve, reject) => {
132
132
  if (modelShow.value) throw new Error('Modal is already open');
133
133
  const skipAllowModal = await checkIfSkipAllowModal();
@@ -85,9 +85,9 @@
85
85
  declare global {
86
86
  interface Window {
87
87
  adminforthTwoFaModal: {
88
- get2FaConfirmationResult: (
89
- verifyingCallback?: (confirmationResult: string) => Promise<boolean>,
90
- title?: string
88
+ get2FaConfirmationResult: (
89
+ title?: string,
90
+ verifyingCallback?: (confirmationResult: string) => Promise<boolean>
91
91
  ) => Promise<any>;
92
92
  };
93
93
  }
@@ -127,7 +127,7 @@
127
127
 
128
128
 
129
129
  window.adminforthTwoFaModal = {
130
- get2FaConfirmationResult: (verifyingCallback?: (confirmationResult: string) => Promise<boolean>, title?: string) =>
130
+ get2FaConfirmationResult: (title?: string, verifyingCallback?: (confirmationResult: string) => Promise<boolean>) =>
131
131
  new Promise(async (resolve, reject) => {
132
132
  if (modelShow.value) throw new Error('Modal is already open');
133
133
  const skipAllowModal = await checkIfSkipAllowModal();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/two-factors-auth",
3
- "version": "2.10.1",
3
+ "version": "2.10.2",
4
4
  "description": "AdminForth plugin for two factors authentication",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",