@azure/msal-react 2.0.0 → 2.0.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/dist/MsalContext.js +1 -1
- package/dist/MsalProvider.js +1 -1
- package/dist/components/AuthenticatedTemplate.js +1 -1
- package/dist/components/MsalAuthenticationTemplate.js +1 -1
- package/dist/components/UnauthenticatedTemplate.js +1 -1
- package/dist/components/withMsal.js +1 -1
- package/dist/error/ReactAuthError.js +1 -1
- package/dist/hooks/useAccount.js +1 -1
- package/dist/hooks/useIsAuthenticated.js +1 -1
- package/dist/hooks/useMsal.js +1 -1
- package/dist/hooks/useMsalAuthentication.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/packageMetadata.d.ts +1 -1
- package/dist/packageMetadata.js +2 -2
- package/dist/utils/utilities.d.ts +2 -2
- package/dist/utils/utilities.js +1 -1
- package/package.json +4 -4
package/dist/MsalContext.js
CHANGED
package/dist/MsalProvider.js
CHANGED
package/dist/hooks/useAccount.js
CHANGED
package/dist/hooks/useMsal.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! @azure/msal-react v2.0.
|
|
1
|
+
/*! @azure/msal-react v2.0.2 2023-08-18 */
|
|
2
2
|
'use strict';
|
|
3
3
|
import { useState, useRef, useEffect, useCallback } from 'react';
|
|
4
4
|
import { InteractionStatus, InteractionType, EventType, OIDC_DEFAULT_SCOPES, InteractionRequiredAuthError } from '@azure/msal-browser';
|
package/dist/index.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export { AuthenticatedTemplate } from "./components/AuthenticatedTemplate";
|
|
|
16
16
|
export { UnauthenticatedTemplate } from "./components/UnauthenticatedTemplate";
|
|
17
17
|
export { MsalAuthenticationTemplate } from "./components/MsalAuthenticationTemplate";
|
|
18
18
|
export { withMsal } from "./components/withMsal";
|
|
19
|
+
export { Subtract, SetComplement, SetDifference } from "./utils/utilities";
|
|
19
20
|
export { useMsal } from "./hooks/useMsal";
|
|
20
21
|
export { useAccount } from "./hooks/useAccount";
|
|
21
22
|
export { useIsAuthenticated } from "./hooks/useIsAuthenticated";
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export declare const name = "@azure/msal-react";
|
|
2
|
-
export declare const version = "2.0.
|
|
2
|
+
export declare const version = "2.0.2";
|
package/dist/packageMetadata.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
/*! @azure/msal-react v2.0.
|
|
1
|
+
/*! @azure/msal-react v2.0.2 2023-08-18 */
|
|
2
2
|
'use strict';
|
|
3
3
|
/* eslint-disable header/header */
|
|
4
4
|
const name = "@azure/msal-react";
|
|
5
|
-
const version = "2.0.
|
|
5
|
+
const version = "2.0.2";
|
|
6
6
|
|
|
7
7
|
export { name, version };
|
|
8
8
|
//# sourceMappingURL=packageMetadata.js.map
|
|
@@ -3,8 +3,8 @@ import { AccountIdentifiers } from "../types/AccountIdentifiers";
|
|
|
3
3
|
import { AccountInfo } from "@azure/msal-browser";
|
|
4
4
|
type FaaCFunction = <T>(args: T) => React.ReactNode;
|
|
5
5
|
export declare function getChildrenOrFunction<T>(children: React.ReactNode | FaaCFunction, args: T): React.ReactNode;
|
|
6
|
-
type SetDifference<A, B> = A extends B ? never : A;
|
|
7
|
-
type SetComplement<A, A1 extends A> = SetDifference<A, A1>;
|
|
6
|
+
export type SetDifference<A, B> = A extends B ? never : A;
|
|
7
|
+
export type SetComplement<A, A1 extends A> = SetDifference<A, A1>;
|
|
8
8
|
export type Subtract<T extends T1, T1 extends object> = Pick<T, SetComplement<keyof T, keyof T1>>;
|
|
9
9
|
/**
|
|
10
10
|
* Helper function to determine whether 2 arrays are equal
|
package/dist/utils/utilities.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure/msal-react",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "Microsoft",
|
|
6
6
|
"email": "nugetaad@microsoft.com",
|
|
@@ -44,11 +44,11 @@
|
|
|
44
44
|
"format:fix": "npx prettier --ignore-path .gitignore --write src test"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@azure/msal-browser": "^3.0.
|
|
47
|
+
"@azure/msal-browser": "^3.0.2",
|
|
48
48
|
"react": "^16.8.0 || ^17 || ^18"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@azure/msal-browser": "^3.0.
|
|
51
|
+
"@azure/msal-browser": "^3.0.2",
|
|
52
52
|
"@testing-library/jest-dom": "^5.11.5",
|
|
53
53
|
"@testing-library/react": "^13.4.0",
|
|
54
54
|
"@types/jest": "^29.5.0",
|
|
@@ -67,4 +67,4 @@
|
|
|
67
67
|
"@rollup/plugin-typescript": "^11.1.0",
|
|
68
68
|
"rollup": "^3.20.2"
|
|
69
69
|
}
|
|
70
|
-
}
|
|
70
|
+
}
|