@aws-amplify/core 6.14.0 → 6.14.1-unstable.f59a4f7.0
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/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/libraryUtils.d.ts +1 -1
- package/dist/esm/singleton/API/types.d.ts +5 -0
- package/package.json +3 -3
- package/src/Platform/version.ts +1 -1
- package/src/libraryUtils.ts +1 -0
- package/src/singleton/API/types.ts +6 -0
|
@@ -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.15.
|
|
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.15.9-unstable.f59a4f7.0+f59a4f7';\n"],"names":[],"mappings":";;AACA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;AAC7D,OAAO,CAAC,OAAO,GAAG,MAAM;AACxB;AACA,OAAO,CAAC,OAAO,GAAG,mCAAmC;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "6.15.
|
|
1
|
+
export declare const version = "6.15.9-unstable.f59a4f7.0+f59a4f7";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sources":["../../../src/Platform/version.ts"],"sourcesContent":["// generated by genversion\nexport const version = '6.15.
|
|
1
|
+
{"version":3,"file":"version.mjs","sources":["../../../src/Platform/version.ts"],"sourcesContent":["// generated by genversion\nexport const version = '6.15.9-unstable.f59a4f7.0+f59a4f7';\n"],"names":[],"mappings":"AAAA;AACY,MAAC,OAAO,GAAG;;;;"}
|
|
@@ -10,7 +10,7 @@ export { parseAmplifyConfig } from './utils/parseAmplifyConfig';
|
|
|
10
10
|
export { getClientInfo } from './utils';
|
|
11
11
|
export { getDeviceName } from './utils/deviceName';
|
|
12
12
|
export { decodeJWT, assertTokenProviderConfig, assertIdentityPoolIdConfig, assertOAuthConfig, } from './singleton/Auth/utils';
|
|
13
|
-
export { AssociationBelongsTo, AssociationHasMany, AssociationHasOne, DocumentType, GraphQLAuthMode, ModelFieldType, NonModelFieldType, ModelIntrospectionSchema, SchemaModel, SchemaModels, SchemaNonModel, SchemaNonModels, CustomOperations, CustomOperation, CustomOperationArguments, CustomOperationArgument, ModelAttribute, SecondaryIndexAttribute, GraphQLProviderConfig, RetryStrategy, } from './singleton/API/types';
|
|
13
|
+
export { AssociationBelongsTo, AssociationHasMany, AssociationHasOne, DocumentType, GraphQLAuthMode, RESTAuthMode, ModelFieldType, NonModelFieldType, ModelIntrospectionSchema, SchemaModel, SchemaModels, SchemaNonModel, SchemaNonModels, CustomOperations, CustomOperation, CustomOperationArguments, CustomOperationArgument, ModelAttribute, SecondaryIndexAttribute, GraphQLProviderConfig, RetryStrategy, } from './singleton/API/types';
|
|
14
14
|
export { Signer } from './Signer';
|
|
15
15
|
export { JWT, CognitoIdentityPoolConfig, JwtPayload, AuthStandardAttributeKey, AuthVerifiableAttributeKey, AWSCredentials, } from './singleton/Auth/types';
|
|
16
16
|
export { haveCredentialsChanged } from './utils/haveCredentialsChanged';
|
|
@@ -24,6 +24,10 @@ export interface LibraryAPIOptions {
|
|
|
24
24
|
* @default ` { strategy: 'jittered-exponential-backoff' } `
|
|
25
25
|
*/
|
|
26
26
|
retryStrategy?: RetryStrategy;
|
|
27
|
+
/**
|
|
28
|
+
* Default auth mode for REST API calls when no explicit auth is provided.
|
|
29
|
+
*/
|
|
30
|
+
defaultAuthMode?: RESTAuthMode;
|
|
27
31
|
/**
|
|
28
32
|
* custom timeout in milliseconds configurable for given REST service, or/and method.
|
|
29
33
|
*/
|
|
@@ -124,6 +128,7 @@ export interface EventsProviderConfig {
|
|
|
124
128
|
}
|
|
125
129
|
export type APIConfig = AtLeastOne<RESTProviderConfig & GraphQLProviderConfig & EventsProviderConfig>;
|
|
126
130
|
export type GraphQLAuthMode = 'apiKey' | 'oidc' | 'userPool' | 'iam' | 'identityPool' | 'lambda' | 'none';
|
|
131
|
+
export type RESTAuthMode = 'none' | 'iam';
|
|
127
132
|
/**
|
|
128
133
|
* Type representing a plain JavaScript object that can be serialized to JSON.
|
|
129
134
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/core",
|
|
3
|
-
"version": "6.14.0",
|
|
3
|
+
"version": "6.14.1-unstable.f59a4f7.0+f59a4f7",
|
|
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": "^11.0.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@aws-amplify/react-native": "1.3.0",
|
|
63
|
+
"@aws-amplify/react-native": "1.3.1-unstable.f59a4f7.0+f59a4f7",
|
|
64
64
|
"@types/js-cookie": "3.0.2",
|
|
65
65
|
"genversion": "^2.2.0"
|
|
66
66
|
},
|
|
@@ -191,5 +191,5 @@
|
|
|
191
191
|
]
|
|
192
192
|
}
|
|
193
193
|
},
|
|
194
|
-
"gitHead": "
|
|
194
|
+
"gitHead": "f59a4f73a0ab824a71cc0e1ab51356ebb1cdd876"
|
|
195
195
|
}
|
package/src/Platform/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// generated by genversion
|
|
2
|
-
export const version = '6.15.
|
|
2
|
+
export const version = '6.15.9-unstable.f59a4f7.0+f59a4f7';
|
package/src/libraryUtils.ts
CHANGED
|
@@ -25,6 +25,10 @@ export interface LibraryAPIOptions {
|
|
|
25
25
|
* @default ` { strategy: 'jittered-exponential-backoff' } `
|
|
26
26
|
*/
|
|
27
27
|
retryStrategy?: RetryStrategy;
|
|
28
|
+
/**
|
|
29
|
+
* Default auth mode for REST API calls when no explicit auth is provided.
|
|
30
|
+
*/
|
|
31
|
+
defaultAuthMode?: RESTAuthMode;
|
|
28
32
|
/**
|
|
29
33
|
* custom timeout in milliseconds configurable for given REST service, or/and method.
|
|
30
34
|
*/
|
|
@@ -142,6 +146,8 @@ export type GraphQLAuthMode =
|
|
|
142
146
|
| 'lambda'
|
|
143
147
|
| 'none';
|
|
144
148
|
|
|
149
|
+
export type RESTAuthMode = 'none' | 'iam';
|
|
150
|
+
|
|
145
151
|
/**
|
|
146
152
|
* Type representing a plain JavaScript object that can be serialized to JSON.
|
|
147
153
|
*/
|