prime-sdk 1.4.0 → 1.4.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prime-sdk",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "swiss army knife",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -13,15 +13,15 @@ export class Sqs implements IQueue {
13
13
  private queueUrl: string;
14
14
  private bulk: number;
15
15
  private waitTimeSeconds: number;
16
- private AttributeNames: Array<QueueAttributeName> = [QueueAttributeName.All];
16
+ private attributeNames: Array<QueueAttributeName> = [QueueAttributeName.All];
17
17
 
18
18
  constructor(@Inject('CONNECTION_SQS') private readonly client: SQSClient) {}
19
19
 
20
- setup({ waitTimeSeconds, bulk, queueUrl, AttributeNames }) {
20
+ setup({ waitTimeSeconds, bulk, queueUrl, attributeNames }) {
21
21
  this.waitTimeSeconds = waitTimeSeconds;
22
22
  this.bulk = bulk;
23
23
  this.queueUrl = queueUrl;
24
- this.AttributeNames = AttributeNames;
24
+ this.attributeNames = attributeNames;
25
25
  }
26
26
 
27
27
  async sendCommand(
@@ -45,7 +45,7 @@ export class Sqs implements IQueue {
45
45
  async receiveMessagesV2(): Promise<ReceiveMessageResult> {
46
46
  const input = {
47
47
  QueueUrl: this.queueUrl,
48
- AttributeNames: this.AttributeNames,
48
+ AttributeNames: this.attributeNames,
49
49
  MaxNumberOfMessages: this.bulk,
50
50
  WaitTimeSeconds: this.waitTimeSeconds,
51
51
  };
@@ -4,7 +4,7 @@ export interface IQueue {
4
4
  deleteMessage(message: Array<Message> | Message): Promise<unknown>;
5
5
  receiveMessages(): Promise<ReceiveMessageResult>;
6
6
  receiveMessagesV2(): Promise<ReceiveMessageResult>;
7
- setup({ waitTimeSeconds, bulk, queueUrl, AttributeNames }): void;
7
+ setup({ waitTimeSeconds, bulk, queueUrl, attributeNames }): void;
8
8
  }
9
9
 
10
10
  export const IQueue = Symbol('IQueue');
@@ -20,7 +20,7 @@ export class Queue {
20
20
 
21
21
  private waitTimeSeconds: number = 20;
22
22
 
23
- private AttributeNames: Array<QueueAttributeName> = [QueueAttributeName.All];
23
+ private attributeNames: Array<QueueAttributeName> = [QueueAttributeName.All];
24
24
 
25
25
  private version: number = 1;
26
26
 
@@ -31,21 +31,21 @@ export class Queue {
31
31
  context = null,
32
32
  bulk = 1,
33
33
  waitTimeSeconds = 20,
34
- AttributeNames = [QueueAttributeName.All],
34
+ attributeNames = [QueueAttributeName.All],
35
35
  version = 1,
36
36
  }: QueueConfig): Promise<void> {
37
37
  this.queueUrl = QueueUrl;
38
38
  this.bulk = bulk;
39
39
  this.context = context;
40
40
  this.waitTimeSeconds = waitTimeSeconds;
41
- this.AttributeNames = AttributeNames;
41
+ this.attributeNames = attributeNames;
42
42
  this.version = version;
43
43
 
44
44
  this.broker.setup({
45
45
  waitTimeSeconds: this.waitTimeSeconds,
46
46
  bulk: this.bulk,
47
47
  queueUrl: this.queueUrl,
48
- AttributeNames: this.AttributeNames,
48
+ attributeNames: this.attributeNames,
49
49
  });
50
50
 
51
51
  while (!this.inWork) {
@@ -6,6 +6,6 @@ export type QueueConfig = {
6
6
  context: IConsumer;
7
7
  bulk: number;
8
8
  waitTimeSeconds?: number;
9
- AttributeNames?: Array<QueueAttributeName>;
9
+ attributeNames?: Array<QueueAttributeName>;
10
10
  version?: number;
11
11
  };