@ossy/deployment-tools 0.0.22 → 0.0.24

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/index.js CHANGED
@@ -60742,7 +60742,7 @@ class DeploymentQueueClient {
60742
60742
  }
60743
60743
 
60744
60744
  sendMessage(messageBody) {
60745
- const command = (0,dist_cjs.SendMessageCommand)({
60745
+ const command = new dist_cjs.SendMessageCommand({
60746
60746
  QueueUrl: this.queueUrl,
60747
60747
  MessageBody: JSON.stringify(messageBody)
60748
60748
  })
@@ -60753,14 +60753,14 @@ class DeploymentQueueClient {
60753
60753
  }
60754
60754
 
60755
60755
  receiveMessages() {
60756
- const command = (0,dist_cjs.ReceiveMessageCommand)({ QueueUrl: this.queueUrl })
60756
+ const command = new dist_cjs.ReceiveMessageCommand({ QueueUrl: this.queueUrl })
60757
60757
 
60758
60758
  return this.sqs.send(command)
60759
60759
  .catch(error => console.log('Error', error))
60760
60760
  }
60761
60761
 
60762
60762
  deleteMessage(receiptHandle) {
60763
- const command = (0,dist_cjs.DeleteMessageCommand)({
60763
+ const command = new dist_cjs.DeleteMessageCommand({
60764
60764
  QueueUrl: this.queueUrl,
60765
60765
  ReceiptHandle: receiptHandle
60766
60766
  })
@@ -60881,7 +60881,7 @@ class AwsCredentialsClient {
60881
60881
  .then(webIdentityToken => stsClient.send(new client_sts_dist_cjs.AssumeRoleWithWebIdentityCommand({
60882
60882
  RoleArn: `arn:aws:iam::${awsAccountId}:role/${roleToAssume}`,
60883
60883
  RoleSessionName: 'GitHubActions',
60884
- DurationSeconds: 5 * 60,
60884
+ DurationSeconds: 15 * 60,
60885
60885
  WebIdentityToken: webIdentityToken
60886
60886
  })))
60887
60887
  .then(responseData => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ossy/deployment-tools",
3
- "version": "0.0.22",
3
+ "version": "0.0.24",
4
4
  "description": "Collection of scripts and tools to aid deployment of containers and static files",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",
@@ -10,7 +10,7 @@ export class AwsCredentialsClient {
10
10
  .then(webIdentityToken => stsClient.send(new AssumeRoleWithWebIdentityCommand({
11
11
  RoleArn: `arn:aws:iam::${awsAccountId}:role/${roleToAssume}`,
12
12
  RoleSessionName: 'GitHubActions',
13
- DurationSeconds: 5 * 60,
13
+ DurationSeconds: 15 * 60,
14
14
  WebIdentityToken: webIdentityToken
15
15
  })))
16
16
  .then(responseData => ({
@@ -25,7 +25,7 @@ export class DeploymentQueueClient {
25
25
  }
26
26
 
27
27
  sendMessage(messageBody) {
28
- const command = SendMessageCommand({
28
+ const command = new SendMessageCommand({
29
29
  QueueUrl: this.queueUrl,
30
30
  MessageBody: JSON.stringify(messageBody)
31
31
  })
@@ -36,14 +36,14 @@ export class DeploymentQueueClient {
36
36
  }
37
37
 
38
38
  receiveMessages() {
39
- const command = ReceiveMessageCommand({ QueueUrl: this.queueUrl })
39
+ const command = new ReceiveMessageCommand({ QueueUrl: this.queueUrl })
40
40
 
41
41
  return this.sqs.send(command)
42
42
  .catch(error => console.log('Error', error))
43
43
  }
44
44
 
45
45
  deleteMessage(receiptHandle) {
46
- const command = DeleteMessageCommand({
46
+ const command = new DeleteMessageCommand({
47
47
  QueueUrl: this.queueUrl,
48
48
  ReceiptHandle: receiptHandle
49
49
  })