@atlaskit/outbound-auth-flow-client 3.3.2 → 3.3.3

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @atlaskit/outbound-auth-flow-client
2
2
 
3
+ ## 3.3.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [`8cc2f888c83`](https://bitbucket.org/atlassian/atlassian-frontend/commits/8cc2f888c83) - Upgrade Typescript from `4.3.5` to `4.5.5`
8
+
3
9
  ## 3.3.2
4
10
 
5
11
  ### Patch Changes
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/outbound-auth-flow-client",
3
- "version": "3.3.2"
3
+ "version": "3.3.3"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/outbound-auth-flow-client",
3
- "version": "3.3.2"
3
+ "version": "3.3.3"
4
4
  }
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@atlaskit/outbound-auth-flow-client",
3
- "version": "3.3.2"
3
+ "version": "3.3.3"
4
4
  }
@@ -0,0 +1,6 @@
1
+ import { AuthErrorType } from './types';
2
+ export declare class AuthError extends Error {
3
+ readonly message: string;
4
+ readonly type?: AuthErrorType | undefined;
5
+ constructor(message: string, type?: AuthErrorType | undefined);
6
+ }
@@ -0,0 +1,2 @@
1
+ export declare function auth(startUrl: string, windowFeatures?: string): Promise<void>;
2
+ export { AuthError } from './error';
@@ -0,0 +1,2 @@
1
+ export declare type AuthErrorType = 'auth_window_closed' | 'invalid_request' | 'unauthorized_client' | 'access_denied' | 'unsupported_response_type' | 'invalid_scope' | 'server_error' | 'temporarily_unavailable' | 'authclientoauth2.autherror';
2
+ export declare const isOfTypeAuthError: (inputString: string) => inputString is AuthErrorType;
@@ -3,5 +3,12 @@
3
3
  "main": "../dist/cjs/error.js",
4
4
  "module": "../dist/esm/error.js",
5
5
  "module:es2019": "../dist/es2019/error.js",
6
- "types": "../dist/types/error.d.ts"
6
+ "types": "../dist/types/error.d.ts",
7
+ "typesVersions": {
8
+ ">=4.0 <4.5": {
9
+ "*": [
10
+ "../dist/types-ts4.0/error.d.ts"
11
+ ]
12
+ }
13
+ }
7
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/outbound-auth-flow-client",
3
- "version": "3.3.2",
3
+ "version": "3.3.3",
4
4
  "description": "Front-end library for starting outbound auth flows",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -12,6 +12,13 @@
12
12
  "module": "dist/esm/index.js",
13
13
  "module:es2019": "dist/es2019/index.js",
14
14
  "types": "dist/types/index.d.ts",
15
+ "typesVersions": {
16
+ ">=4.0 <4.5": {
17
+ "*": [
18
+ "dist/types-ts4.0/*"
19
+ ]
20
+ }
21
+ },
15
22
  "atlaskit:src": "src/index.ts",
16
23
  "atlassian": {
17
24
  "team": "Ecosystem Capabilities",
@@ -27,7 +34,7 @@
27
34
  "devDependencies": {
28
35
  "@atlaskit/docs": "*",
29
36
  "@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
30
- "typescript": "4.3.5"
37
+ "typescript": "4.5.5"
31
38
  },
32
39
  "keywords": [
33
40
  "fabric",
package/report.api.md CHANGED
@@ -1,22 +1,28 @@
1
- ## API Report File for "@atlaskit/outbound-auth-flow-client".
1
+ ## API Report File for "@atlaskit/outbound-auth-flow-client"
2
2
 
3
- > Do not edit this file. This report is auto-generated by [API Extractor](https://api-extractor.com/).
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ <!--
6
+ Generated API Report version: 2.0
7
+ -->
4
8
 
5
9
  [Learn more about API reports](https://hello.atlassian.net/wiki/spaces/UR/pages/1825484529/Package+API+Reports)
6
10
 
7
11
  ```ts
8
- export declare function auth(
9
- startUrl: string,
10
- windowFeatures?: string,
11
- ): Promise<void>;
12
+ // @public (undocumented)
13
+ export function auth(startUrl: string, windowFeatures?: string): Promise<void>;
12
14
 
13
- export declare class AuthError extends Error {
15
+ // @public (undocumented)
16
+ export class AuthError extends Error {
17
+ constructor(message: string, type?: AuthErrorType | undefined);
18
+ // (undocumented)
14
19
  readonly message: string;
20
+ // (undocumented)
15
21
  readonly type?: AuthErrorType | undefined;
16
- constructor(message: string, type?: AuthErrorType | undefined);
17
22
  }
18
23
 
19
- declare type AuthErrorType =
24
+ // @public (undocumented)
25
+ type AuthErrorType =
20
26
  | 'auth_window_closed'
21
27
  | 'invalid_request'
22
28
  | 'unauthorized_client'
@@ -27,5 +33,5 @@ declare type AuthErrorType =
27
33
  | 'temporarily_unavailable'
28
34
  | 'authclientoauth2.autherror';
29
35
 
30
- export {};
36
+ // (No @packageDocumentation comment for this package)
31
37
  ```
@@ -3,5 +3,12 @@
3
3
  "main": "../dist/cjs/types.js",
4
4
  "module": "../dist/esm/types.js",
5
5
  "module:es2019": "../dist/es2019/types.js",
6
- "types": "../dist/types/types.d.ts"
6
+ "types": "../dist/types/types.d.ts",
7
+ "typesVersions": {
8
+ ">=4.0 <4.5": {
9
+ "*": [
10
+ "../dist/types-ts4.0/types.d.ts"
11
+ ]
12
+ }
13
+ }
7
14
  }