@aws-amplify/core 6.0.6-unstable.ef20ad8.0 → 6.0.6
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/cjs/Platform/version.js +1 -1
- package/dist/cjs/Platform/version.js.map +1 -1
- package/dist/esm/Hub/types/AuthTypes.d.ts +8 -0
- package/dist/esm/Platform/version.d.ts +1 -1
- package/dist/esm/Platform/version.mjs +1 -1
- package/dist/esm/Platform/version.mjs.map +1 -1
- package/dist/esm/singleton/API/types.d.ts +3 -3
- package/package.json +3 -3
- package/src/Hub/types/AuthTypes.ts +9 -2
- package/src/Platform/version.ts +1 -1
- package/src/singleton/API/types.ts +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sources":["../../../src/Platform/version.ts"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.version = void 0;\n// generated by genversion\nexports.version = '6.0.6
|
|
1
|
+
{"version":3,"file":"version.js","sources":["../../../src/Platform/version.ts"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.version = void 0;\n// generated by genversion\nexports.version = '6.0.6';\n"],"names":[],"mappings":";;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC,CAAC;AAC9D,OAAO,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC;AACzB;AACA,OAAO,CAAC,OAAO,GAAG,OAAO;;"}
|
|
@@ -2,6 +2,11 @@ type AuthUser = {
|
|
|
2
2
|
username: string;
|
|
3
3
|
userId: string;
|
|
4
4
|
};
|
|
5
|
+
type AuthError = {
|
|
6
|
+
name: string;
|
|
7
|
+
message: string;
|
|
8
|
+
recoverySuggestion?: string;
|
|
9
|
+
};
|
|
5
10
|
export type AuthHubEventData =
|
|
6
11
|
/** Dispatched when a user signs in with an oauth provider such as Google.*/
|
|
7
12
|
{
|
|
@@ -10,6 +15,9 @@ export type AuthHubEventData =
|
|
|
10
15
|
/** Dispatched when there is an error in the oauth flow process.*/
|
|
11
16
|
| {
|
|
12
17
|
event: 'signInWithRedirect_failure';
|
|
18
|
+
data: {
|
|
19
|
+
error?: AuthError;
|
|
20
|
+
};
|
|
13
21
|
}
|
|
14
22
|
/** Dispatched when auth tokens are successfully refreshed.*/
|
|
15
23
|
| {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "6.0.6
|
|
1
|
+
export declare const version = "6.0.6";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sources":["../../../src/Platform/version.ts"],"sourcesContent":["// generated by genversion\nexport const version = '6.0.6
|
|
1
|
+
{"version":3,"file":"version.mjs","sources":["../../../src/Platform/version.ts"],"sourcesContent":["// generated by genversion\nexport const version = '6.0.6';\n"],"names":[],"mappings":"AAAA;AACY,MAAC,OAAO,GAAG;;;;"}
|
|
@@ -2,10 +2,10 @@ import { Headers } from '../../clients';
|
|
|
2
2
|
import { AtLeastOne } from '../types';
|
|
3
3
|
export type LibraryAPIOptions = {
|
|
4
4
|
GraphQL?: {
|
|
5
|
-
headers?: (options
|
|
6
|
-
query
|
|
5
|
+
headers?: (options?: {
|
|
6
|
+
query?: string;
|
|
7
7
|
variables?: Record<string, DocumentType>;
|
|
8
|
-
}) => Promise<Headers>;
|
|
8
|
+
}) => Promise<Headers | {}>;
|
|
9
9
|
withCredentials?: boolean;
|
|
10
10
|
};
|
|
11
11
|
REST?: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/core",
|
|
3
|
-
"version": "6.0.6
|
|
3
|
+
"version": "6.0.6",
|
|
4
4
|
"description": "Core category of aws-amplify",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.mjs",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"uuid": "^9.0.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@aws-amplify/react-native": "1.0.6
|
|
63
|
+
"@aws-amplify/react-native": "1.0.6",
|
|
64
64
|
"@rollup/plugin-typescript": "11.1.5",
|
|
65
65
|
"@types/js-cookie": "3.0.2",
|
|
66
66
|
"genversion": "^2.2.0",
|
|
@@ -194,5 +194,5 @@
|
|
|
194
194
|
]
|
|
195
195
|
}
|
|
196
196
|
},
|
|
197
|
-
"gitHead": "
|
|
197
|
+
"gitHead": "5cee7197b6d3ffa5fd12da514d5981294b0e0efa"
|
|
198
198
|
}
|
|
@@ -5,12 +5,19 @@ type AuthUser = {
|
|
|
5
5
|
username: string;
|
|
6
6
|
userId: string;
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
type AuthError = {
|
|
9
|
+
name: string;
|
|
10
|
+
message: string;
|
|
11
|
+
recoverySuggestion?: string;
|
|
12
|
+
};
|
|
9
13
|
export type AuthHubEventData =
|
|
10
14
|
/** Dispatched when a user signs in with an oauth provider such as Google.*/
|
|
11
15
|
| { event: 'signInWithRedirect' }
|
|
12
16
|
/** Dispatched when there is an error in the oauth flow process.*/
|
|
13
|
-
| {
|
|
17
|
+
| {
|
|
18
|
+
event: 'signInWithRedirect_failure';
|
|
19
|
+
data: { error?: AuthError };
|
|
20
|
+
}
|
|
14
21
|
/** Dispatched when auth tokens are successfully refreshed.*/
|
|
15
22
|
| { event: 'tokenRefresh' }
|
|
16
23
|
/** Dispatched when there is an error in the refresh of tokens.*/
|
package/src/Platform/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// generated by genversion
|
|
2
|
-
export const version = '6.0.6
|
|
2
|
+
export const version = '6.0.6';
|
|
@@ -6,10 +6,10 @@ import { AtLeastOne } from '../types';
|
|
|
6
6
|
export type LibraryAPIOptions = {
|
|
7
7
|
GraphQL?: {
|
|
8
8
|
// custom headers for given GraphQL service. Will be applied to all operations.
|
|
9
|
-
headers?: (options
|
|
10
|
-
query
|
|
9
|
+
headers?: (options?: {
|
|
10
|
+
query?: string;
|
|
11
11
|
variables?: Record<string, DocumentType>;
|
|
12
|
-
}) => Promise<Headers>;
|
|
12
|
+
}) => Promise<Headers | {}>;
|
|
13
13
|
withCredentials?: boolean;
|
|
14
14
|
};
|
|
15
15
|
REST?: {
|