@aws-amplify/core 6.0.1-console-preview.7049e04.0 → 6.0.1-console-preview.5f040a2.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/internals/aws-clients/pinpoint/package.json +4 -4
- package/lib/Platform/types.d.ts +28 -4
- package/lib/Platform/types.js +26 -35
- package/lib/Platform/version.d.ts +1 -1
- package/lib/Platform/version.js +1 -1
- package/lib/clients/middleware/signing/signer/signatureV4/index.d.ts +1 -0
- package/lib/clients/middleware/signing/signer/signatureV4/index.js +1 -0
- package/lib/clients/middleware/signing/signer/signatureV4/polyfills/index.d.ts +0 -0
- package/lib/clients/middleware/signing/signer/signatureV4/polyfills/index.js +4 -0
- package/lib/clients/middleware/signing/signer/signatureV4/polyfills/index.native.d.ts +1 -0
- package/lib/clients/middleware/signing/signer/signatureV4/polyfills/index.native.js +6 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +3 -3
- package/lib/providers/pinpoint/apis/updateEndpoint.js +2 -2
- package/lib/providers/pinpoint/utils/PinpointEventBuffer.js +2 -2
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/globalHelpers/index.native.d.ts +2 -3
- package/lib/utils/globalHelpers/index.native.js +3 -3
- package/lib-esm/Platform/types.d.ts +28 -4
- package/lib-esm/Platform/types.js +26 -35
- package/lib-esm/Platform/version.d.ts +1 -1
- package/lib-esm/Platform/version.js +1 -1
- package/lib-esm/clients/middleware/signing/signer/signatureV4/index.d.ts +1 -0
- package/lib-esm/clients/middleware/signing/signer/signatureV4/index.js +1 -0
- package/lib-esm/clients/middleware/signing/signer/signatureV4/polyfills/index.d.ts +0 -0
- package/lib-esm/clients/middleware/signing/signer/signatureV4/polyfills/index.js +4 -0
- package/lib-esm/clients/middleware/signing/signer/signatureV4/polyfills/index.native.d.ts +1 -0
- package/lib-esm/clients/middleware/signing/signer/signatureV4/polyfills/index.native.js +4 -0
- package/lib-esm/index.d.ts +1 -1
- package/lib-esm/index.js +1 -1
- package/lib-esm/providers/pinpoint/apis/updateEndpoint.js +1 -1
- package/lib-esm/providers/pinpoint/utils/PinpointEventBuffer.js +1 -1
- package/lib-esm/tsconfig.tsbuildinfo +1 -1
- package/lib-esm/utils/globalHelpers/index.native.d.ts +2 -3
- package/lib-esm/utils/globalHelpers/index.native.js +2 -2
- package/package.json +3 -3
- package/src/Platform/types.ts +26 -35
- package/src/Platform/version.ts +1 -1
- package/src/clients/middleware/signing/signer/signatureV4/index.ts +2 -0
- package/src/clients/middleware/signing/signer/signatureV4/polyfills/index.native.ts +5 -0
- package/src/clients/middleware/signing/signer/signatureV4/polyfills/index.ts +4 -0
- package/src/index.ts +1 -1
- package/src/providers/pinpoint/apis/updateEndpoint.ts +1 -1
- package/src/providers/pinpoint/utils/PinpointEventBuffer.ts +1 -1
- package/src/utils/globalHelpers/index.native.ts +2 -2
- package/lib/clients/middleware/signing/signer/signatureV4/index.native.d.ts +0 -4
- package/lib/clients/middleware/signing/signer/signatureV4/index.native.js +0 -16
- package/lib-esm/clients/middleware/signing/signer/signatureV4/index.native.d.ts +0 -4
- package/lib-esm/clients/middleware/signing/signer/signatureV4/index.native.js +0 -9
- package/src/clients/middleware/signing/signer/signatureV4/index.native.ts +0 -12
- /package/lib/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/base.d.ts +0 -0
- /package/lib/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/base.js +0 -0
- /package/lib/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/getCredentialsForIdentity.d.ts +0 -0
- /package/lib/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/getCredentialsForIdentity.js +0 -0
- /package/lib/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/getId.d.ts +0 -0
- /package/lib/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/getId.js +0 -0
- /package/lib/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/index.d.ts +0 -0
- /package/lib/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/index.js +0 -0
- /package/lib/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/types.d.ts +0 -0
- /package/lib/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/types.js +0 -0
- /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/base.d.ts +0 -0
- /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/base.js +0 -0
- /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/errorHelpers.d.ts +0 -0
- /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/errorHelpers.js +0 -0
- /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/getInAppMessages.d.ts +0 -0
- /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/getInAppMessages.js +0 -0
- /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/index.d.ts +0 -0
- /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/index.js +0 -0
- /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/putEvents.d.ts +0 -0
- /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/putEvents.js +0 -0
- /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/types.d.ts +0 -0
- /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/types.js +0 -0
- /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/updateEndpoint.d.ts +0 -0
- /package/lib/{AwsClients/Pinpoint → awsClients/pinpoint}/updateEndpoint.js +0 -0
- /package/lib-esm/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/base.d.ts +0 -0
- /package/lib-esm/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/base.js +0 -0
- /package/lib-esm/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/getCredentialsForIdentity.d.ts +0 -0
- /package/lib-esm/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/getCredentialsForIdentity.js +0 -0
- /package/lib-esm/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/getId.d.ts +0 -0
- /package/lib-esm/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/getId.js +0 -0
- /package/lib-esm/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/index.d.ts +0 -0
- /package/lib-esm/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/index.js +0 -0
- /package/lib-esm/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/types.d.ts +0 -0
- /package/lib-esm/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/types.js +0 -0
- /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/base.d.ts +0 -0
- /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/base.js +0 -0
- /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/errorHelpers.d.ts +0 -0
- /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/errorHelpers.js +0 -0
- /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/getInAppMessages.d.ts +0 -0
- /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/getInAppMessages.js +0 -0
- /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/index.d.ts +0 -0
- /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/index.js +0 -0
- /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/putEvents.d.ts +0 -0
- /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/putEvents.js +0 -0
- /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/types.d.ts +0 -0
- /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/types.js +0 -0
- /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/updateEndpoint.d.ts +0 -0
- /package/lib-esm/{AwsClients/Pinpoint → awsClients/pinpoint}/updateEndpoint.js +0 -0
- /package/src/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/base.ts +0 -0
- /package/src/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/getCredentialsForIdentity.ts +0 -0
- /package/src/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/getId.ts +0 -0
- /package/src/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/index.ts +0 -0
- /package/src/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/types.ts +0 -0
- /package/src/{AwsClients/Pinpoint → awsClients/pinpoint}/base.ts +0 -0
- /package/src/{AwsClients/Pinpoint → awsClients/pinpoint}/errorHelpers.ts +0 -0
- /package/src/{AwsClients/Pinpoint → awsClients/pinpoint}/getInAppMessages.ts +0 -0
- /package/src/{AwsClients/Pinpoint → awsClients/pinpoint}/index.ts +0 -0
- /package/src/{AwsClients/Pinpoint → awsClients/pinpoint}/putEvents.ts +0 -0
- /package/src/{AwsClients/Pinpoint → awsClients/pinpoint}/types.ts +0 -0
- /package/src/{AwsClients/Pinpoint → awsClients/pinpoint}/updateEndpoint.ts +0 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { encode, decode } from 'base-64';
|
|
2
1
|
export declare const getCrypto: () => Crypto;
|
|
3
|
-
export declare const getBtoa: () => typeof encode;
|
|
4
|
-
export declare const getAtob: () => typeof decode;
|
|
2
|
+
export declare const getBtoa: () => typeof import("base-64").encode;
|
|
3
|
+
export declare const getAtob: () => typeof import("base-64").decode;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
import { loadGetRandomValues } from '@aws-amplify/react-native';
|
|
4
|
-
import { encode, decode } from 'base-64';
|
|
3
|
+
import { loadGetRandomValues, loadBase64 } from '@aws-amplify/react-native';
|
|
5
4
|
import { AmplifyError } from '../../errors';
|
|
6
5
|
loadGetRandomValues();
|
|
6
|
+
var _a = loadBase64(), encode = _a.encode, decode = _a.decode;
|
|
7
7
|
export var getCrypto = function () {
|
|
8
8
|
if (typeof crypto !== 'undefined' &&
|
|
9
9
|
typeof crypto.getRandomValues === 'function') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/core",
|
|
3
|
-
"version": "6.0.1-console-preview.
|
|
3
|
+
"version": "6.0.1-console-preview.5f040a2.0+5f040a2",
|
|
4
4
|
"description": "Core category of aws-amplify",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib-esm/index.js",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"uuid": "^9.0.0"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@aws-amplify/react-native": "1.0.1-console-preview.
|
|
71
|
+
"@aws-amplify/react-native": "1.0.1-console-preview.5f040a2.0+5f040a2",
|
|
72
72
|
"@types/js-cookie": "^2.2.7",
|
|
73
73
|
"@types/uuid": "^9.0.0",
|
|
74
74
|
"find": "^0.2.7",
|
|
@@ -179,5 +179,5 @@
|
|
|
179
179
|
"lib-esm"
|
|
180
180
|
]
|
|
181
181
|
},
|
|
182
|
-
"gitHead": "
|
|
182
|
+
"gitHead": "5f040a29ecebf29374ae9b58abc661f45143ac4f"
|
|
183
183
|
}
|
package/src/Platform/types.ts
CHANGED
|
@@ -53,40 +53,30 @@ export enum ApiAction {
|
|
|
53
53
|
Head = '7',
|
|
54
54
|
}
|
|
55
55
|
export enum AuthAction {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
// CurrentUserPoolUser = '19',
|
|
75
|
-
// CurrentAuthenticatedUser = '20',
|
|
76
|
-
// CurrentSession = '21',
|
|
77
|
-
// VerifyUserAttribute = '22',
|
|
78
|
-
// VerifyUserAttributeSubmit = '23',
|
|
79
|
-
// VerifyCurrentUserAttribute = '24',
|
|
80
|
-
// VerifyCurrentUserAttributeSubmit = '25',
|
|
81
|
-
// SignOut = '26',
|
|
82
|
-
// ChangePassword = '27',
|
|
83
|
-
// ForgotPassword = '28',
|
|
84
|
-
// ForgotPasswordSubmit = '29',
|
|
56
|
+
SignUp = '1',
|
|
57
|
+
ConfirmSignUp = '2',
|
|
58
|
+
ResendSignUpCode = '3',
|
|
59
|
+
SignIn = '4',
|
|
60
|
+
FetchMFAPreference = '6',
|
|
61
|
+
UpdateMFAPreference = '7',
|
|
62
|
+
SetUpTOTP = '10',
|
|
63
|
+
VerifyTOTPSetup = '11',
|
|
64
|
+
ConfirmSignIn = '12',
|
|
65
|
+
DeleteUserAttributes = '15',
|
|
66
|
+
DeleteUser = '16',
|
|
67
|
+
UpdateUserAttributes = '17',
|
|
68
|
+
FetchUserAttributes = '18',
|
|
69
|
+
ConfirmUserAttribute = '22',
|
|
70
|
+
SignOut = '26',
|
|
71
|
+
UpdatePassword = '27',
|
|
72
|
+
ResetPassword = '28',
|
|
73
|
+
ConfirmResetPassword = '29',
|
|
85
74
|
FederatedSignIn = '30',
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
75
|
+
RememberDevice = '32',
|
|
76
|
+
ForgetDevice = '33',
|
|
77
|
+
FetchDevices = '34',
|
|
78
|
+
SendUserAttributeVerificationCode = '35',
|
|
79
|
+
SignInWithRedirect = '36',
|
|
90
80
|
}
|
|
91
81
|
export enum DataStoreAction {
|
|
92
82
|
Subscribe = '1',
|
|
@@ -114,12 +104,13 @@ export enum PushNotificationAction {
|
|
|
114
104
|
None = '0',
|
|
115
105
|
}
|
|
116
106
|
export enum StorageAction {
|
|
117
|
-
|
|
118
|
-
|
|
107
|
+
UploadData = '1',
|
|
108
|
+
DownloadData = '2',
|
|
119
109
|
List = '3',
|
|
120
110
|
Copy = '4',
|
|
121
111
|
Remove = '5',
|
|
122
112
|
GetProperties = '6',
|
|
113
|
+
GetUrl = '7'
|
|
123
114
|
}
|
|
124
115
|
|
|
125
116
|
type ActionMap = {
|
package/src/Platform/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// generated by genversion
|
|
2
|
-
export const version = '6.0.1-console-preview.
|
|
2
|
+
export const version = '6.0.1-console-preview.5f040a2.0+5f040a2';
|
package/src/index.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { ClientDevice } from '../../../ClientDevice';
|
|
|
6
6
|
import {
|
|
7
7
|
updateEndpoint as clientUpdateEndpoint,
|
|
8
8
|
UpdateEndpointInput,
|
|
9
|
-
} from '../../../
|
|
9
|
+
} from '../../../awsClients/pinpoint';
|
|
10
10
|
import { PinpointUpdateEndpointInput } from '../types';
|
|
11
11
|
import { cacheEndpointId, getEndpointId } from '../utils';
|
|
12
12
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
|
|
4
|
-
import { loadGetRandomValues } from '@aws-amplify/react-native';
|
|
5
|
-
import { encode, decode } from 'base-64';
|
|
4
|
+
import { loadGetRandomValues, loadBase64 } from '@aws-amplify/react-native';
|
|
6
5
|
import { AmplifyError } from '../../errors';
|
|
7
6
|
|
|
8
7
|
loadGetRandomValues();
|
|
8
|
+
const { encode, decode } = loadBase64();
|
|
9
9
|
|
|
10
10
|
export const getCrypto = () => {
|
|
11
11
|
if (
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
4
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.getHashedPayload = exports.TOKEN_QUERY_PARAM = exports.presignUrl = exports.signRequest = void 0;
|
|
6
|
-
var react_native_1 = require("@aws-amplify/react-native");
|
|
7
|
-
(0, react_native_1.loadUrlPolyfill)();
|
|
8
|
-
// TODO: V6 replace Signer
|
|
9
|
-
var signRequest_1 = require("./signRequest");
|
|
10
|
-
Object.defineProperty(exports, "signRequest", { enumerable: true, get: function () { return signRequest_1.signRequest; } });
|
|
11
|
-
var presignUrl_1 = require("./presignUrl");
|
|
12
|
-
Object.defineProperty(exports, "presignUrl", { enumerable: true, get: function () { return presignUrl_1.presignUrl; } });
|
|
13
|
-
var constants_1 = require("./constants");
|
|
14
|
-
Object.defineProperty(exports, "TOKEN_QUERY_PARAM", { enumerable: true, get: function () { return constants_1.TOKEN_QUERY_PARAM; } });
|
|
15
|
-
var getHashedPayload_1 = require("./utils/getHashedPayload");
|
|
16
|
-
Object.defineProperty(exports, "getHashedPayload", { enumerable: true, get: function () { return getHashedPayload_1.getHashedPayload; } });
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
import { loadUrlPolyfill } from '@aws-amplify/react-native';
|
|
4
|
-
loadUrlPolyfill();
|
|
5
|
-
// TODO: V6 replace Signer
|
|
6
|
-
export { signRequest } from './signRequest';
|
|
7
|
-
export { presignUrl } from './presignUrl';
|
|
8
|
-
export { TOKEN_QUERY_PARAM } from './constants';
|
|
9
|
-
export { getHashedPayload } from './utils/getHashedPayload';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
-
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
-
|
|
4
|
-
import { loadUrlPolyfill } from '@aws-amplify/react-native';
|
|
5
|
-
|
|
6
|
-
loadUrlPolyfill();
|
|
7
|
-
|
|
8
|
-
// TODO: V6 replace Signer
|
|
9
|
-
export { signRequest } from './signRequest';
|
|
10
|
-
export { presignUrl } from './presignUrl';
|
|
11
|
-
export { TOKEN_QUERY_PARAM } from './constants';
|
|
12
|
-
export { getHashedPayload } from './utils/getHashedPayload';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/lib/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/getCredentialsForIdentity.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/src/{AwsClients/CognitoIdentity → awsClients/cognitoIdentity}/getCredentialsForIdentity.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|