@awsless/awsless 0.0.144 → 0.0.145
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/features/cognito-client-secret/HASH +1 -1
- package/dist/features/cognito-client-secret/bundle.zip +0 -0
- package/dist/features/cognito-client-secret/index.js +3 -4
- package/dist/features/cognito-client-secret/index.mjs +3 -4
- package/dist/features/delete-bucket/bundle.zip +0 -0
- package/dist/features/delete-hosted-zone/bundle.zip +0 -0
- package/dist/features/global-exports/bundle.zip +0 -0
- package/dist/features/invalidate-cache/bundle.zip +0 -0
- package/dist/features/upload-bucket-asset/bundle.zip +0 -0
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
f5c28bc8e4ff914a9f488b942df7d06d20e600a3
|
|
Binary file
|
|
@@ -35,13 +35,12 @@ const handler = async (event)=>{
|
|
|
35
35
|
console.log('ClientId:', clientId);
|
|
36
36
|
try {
|
|
37
37
|
if (type === 'Create' || type === 'Update') {
|
|
38
|
-
const
|
|
38
|
+
const command = new clientCognitoIdentityProvider.DescribeUserPoolClientCommand({
|
|
39
39
|
UserPoolId: userPoolId,
|
|
40
40
|
ClientId: clientId
|
|
41
|
-
};
|
|
42
|
-
const command = new clientCognitoIdentityProvider.DescribeUserPoolClientCommand(input);
|
|
41
|
+
});
|
|
43
42
|
const response = await client.send(command);
|
|
44
|
-
const secret = response.UserPoolClient?.ClientSecret;
|
|
43
|
+
const secret = response.UserPoolClient?.ClientSecret ?? '';
|
|
45
44
|
await send(event, clientId, 'SUCCESS', {
|
|
46
45
|
secret
|
|
47
46
|
});
|
|
@@ -33,13 +33,12 @@ const handler = async (event)=>{
|
|
|
33
33
|
console.log('ClientId:', clientId);
|
|
34
34
|
try {
|
|
35
35
|
if (type === 'Create' || type === 'Update') {
|
|
36
|
-
const
|
|
36
|
+
const command = new DescribeUserPoolClientCommand({
|
|
37
37
|
UserPoolId: userPoolId,
|
|
38
38
|
ClientId: clientId
|
|
39
|
-
};
|
|
40
|
-
const command = new DescribeUserPoolClientCommand(input);
|
|
39
|
+
});
|
|
41
40
|
const response = await client.send(command);
|
|
42
|
-
const secret = response.UserPoolClient?.ClientSecret;
|
|
41
|
+
const secret = response.UserPoolClient?.ClientSecret ?? '';
|
|
43
42
|
await send(event, clientId, 'SUCCESS', {
|
|
44
43
|
secret
|
|
45
44
|
});
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@awsless/awsless",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.145",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"@awsless/lambda": "^0.0.15",
|
|
32
|
-
"@awsless/
|
|
32
|
+
"@awsless/redis": "^0.0.10",
|
|
33
33
|
"@awsless/sns": "^0.0.7",
|
|
34
34
|
"@awsless/sqs": "^0.0.7",
|
|
35
|
+
"@awsless/ssm": "^0.0.7",
|
|
35
36
|
"@awsless/validate": "^0.0.10",
|
|
36
|
-
"@awsless/redis": "^0.0.10",
|
|
37
37
|
"@awsless/weak-cache": "^0.0.1"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|