Skip to content

Commit b647ff3

Browse files
authored
#81 (#82)
* Fix #81 Update dependencies
1 parent e2942bb commit b647ff3

File tree

5 files changed

+23
-21
lines changed

5 files changed

+23
-21
lines changed

package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "squiss-ts",
3-
"version": "4.0.9",
3+
"version": "4.0.10",
44
"description": "High-volume SQS poller",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
@@ -46,33 +46,33 @@
4646
},
4747
"homepage": "https://github.com/PruvoNet/squiss-ts#readme",
4848
"dependencies": {
49-
"aws-sdk": "^2.572.0",
49+
"aws-sdk": "^2.624.0",
5050
"iltorb": "2.4.3",
5151
"linked-list": "^2.1.0",
5252
"ts-type-guards": "^0.6.1",
53-
"uuid": "^3.3.3"
53+
"uuid": "^7.0.0"
5454
},
5555
"devDependencies": {
56-
"@istanbuljs/nyc-config-typescript": "^0.1.3",
57-
"@types/chai": "^4.2.5",
56+
"@istanbuljs/nyc-config-typescript": "0.1.3",
57+
"@types/chai": "^4.2.9",
5858
"@types/chai-as-promised": "^7.1.2",
5959
"@types/iltorb": "^2.3.0",
60-
"@types/mocha": "^5.2.7",
61-
"@types/node": "^12.12.8",
60+
"@types/mocha": "^7.0.0",
61+
"@types/node": "^13.7.4",
6262
"@types/proxyquire": "^1.3.28",
63-
"@types/uuid": "^3.4.6",
63+
"@types/uuid": "^3.4.7",
6464
"chai": "^4.2.0",
6565
"chai-as-promised": "^7.1.1",
6666
"delay": "^4.3.0",
6767
"dirty-chai": "^2.0.1",
68-
"mocha": "^6.2.2",
69-
"nyc": "^14.1.1",
68+
"mocha": "6.2.2",
69+
"nyc": "14.1.1",
7070
"proxyquire": "^2.1.3",
71-
"sinon": "^7.5.0",
72-
"sinon-chai": "^3.3.0",
71+
"sinon": "^9.0.0",
72+
"sinon-chai": "^3.5.0",
7373
"source-map-support": "^0.5.16",
74-
"ts-node": "^8.5.2",
75-
"tslint": "^5.20.1",
76-
"typescript": "^3.7.2"
74+
"ts-node": "^8.6.2",
75+
"tslint": "^6.0.0",
76+
"typescript": "^3.8.2"
7777
}
7878
}

src/Squiss.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ export class Squiss extends (EventEmitter as new() => SquissEmitter) {
431431
QueueUrl: queueUrl,
432432
Entries: [],
433433
};
434-
const promises: Array<Promise<void>> = [];
434+
const promises: Promise<void>[] = [];
435435
messages.forEach((msg, idx) => {
436436
const entry: SQS.Types.SendMessageBatchRequestEntry = {
437437
Id: (start + idx).toString(),

src/Utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
export const removeEmptyKeys = <T extends object>(obj: T): T => {
4-
(Object.keys(obj) as Array<keyof typeof obj>).forEach((key) => {
4+
(Object.keys(obj) as (keyof typeof obj)[]).forEach((key) => {
55
if (obj[key] === undefined) {
66
delete obj[key];
77
}

src/s3Utils.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22

33
import {S3} from 'aws-sdk';
4-
import * as uuid from 'uuid/v4';
4+
import { v4 as uuidv4 } from 'uuid';
55
import {getSizeInBytes} from './messageSizeUtils';
66

77
export const S3_MARKER = '__SQS_S3__';
@@ -13,7 +13,7 @@ export interface IS3Upload {
1313
}
1414

1515
export const uploadBlob = (s3: S3, bucket: string, blob: string, prefix: string): Promise<IS3Upload> => {
16-
const key = `${prefix}${uuid()}`;
16+
const key = `${prefix}${uuidv4()}`;
1717
const size = getSizeInBytes(blob);
1818
return s3.putObject({
1919
Body: blob,

src/test/src/index.spec.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ import * as proxyquire from 'proxyquire';
55
const uuidStub = () => {
66
return 'my_uuid';
77
};
8-
(uuidStub as any)['@global'] = true;
98
const stubs = {
10-
'uuid/v4': uuidStub,
9+
'uuid': {
10+
v4: uuidStub,
11+
'@global': true,
12+
},
1113
};
1214
// tslint:disable-next-line
1315
const {Squiss: SquissPatched, Message: MessagePatched} = proxyquire('../../', stubs);

0 commit comments

Comments
 (0)