@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.
@@ -1 +1 @@
1
- 64ab50c75f36adcc289b9470606a9a989516e8b1
1
+ f5c28bc8e4ff914a9f488b942df7d06d20e600a3
@@ -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 input = {
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 input = {
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
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@awsless/awsless",
3
- "version": "0.0.144",
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/ssm": "^0.0.7",
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": {