Skip to content

Commit

Permalink
Upgrade all packages
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagogoncalves89 committed Nov 10, 2020
1 parent 12edd5e commit 4e0c35c
Show file tree
Hide file tree
Showing 7 changed files with 1,252 additions and 1,359 deletions.
17 changes: 2 additions & 15 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"eslint:recommended",
"plugin:sonarjs/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/all",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint",
"plugin:prettier/recommended",
"plugin:jest/recommended"
Expand All @@ -18,18 +18,5 @@
"parserOptions": {
"project": "./tsconfig.json"
},
"rules": {
"@typescript-eslint/prefer-readonly-parameter-types": "off",
"@typescript-eslint/restrict-template-expressions": "off",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/prefer-ts-expect-error": "off",
"@typescript-eslint/no-magic-numbers": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-type-alias": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/explicit-module-boundary-types": "off"
}
"rules": {}
}
2,555 changes: 1,232 additions & 1,323 deletions package-lock.json

Large diffs are not rendered by default.

34 changes: 17 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,26 +25,26 @@
],
"license": "MIT",
"dependencies": {
"aws-sdk": "^2.673.0"
"aws-sdk": "^2.788.0"
},
"devDependencies": {
"@types/faker": "^4.1.12",
"@types/jest": "^25.2.2",
"@typescript-eslint/eslint-plugin": "^2.34.0",
"@typescript-eslint/parser": "^2.34.0",
"eslint": "^7.0.0",
"eslint-plugin-jest": "^23.13.1",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-prettier": "^3.1.3",
"@types/faker": "^5.1.4",
"@types/jest": "^26.0.15",
"@typescript-eslint/eslint-plugin": "^4.7.0",
"@typescript-eslint/parser": "^4.7.0",
"eslint": "^7.13.0",
"eslint-config-prettier": "^6.15.0",
"eslint-plugin-jest": "^24.1.0",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-sonarjs": "^0.5.0",
"faker": "^4.1.0",
"husky": "^4.2.5",
"jest": "^26.0.1",
"nock": "^12.0.3",
"prettier": "^2.0.5",
"pretty-quick": "^2.0.1",
"ts-jest": "^26.0.0",
"typescript": "^3.9.2"
"faker": "^5.1.0",
"husky": "^4.3.0",
"jest": "^26.6.3",
"nock": "^13.0.4",
"prettier": "^2.1.2",
"pretty-quick": "^3.1.0",
"ts-jest": "^26.4.4",
"typescript": "^4.0.5"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/idempotency-sqs-wrapper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const idempotencySQSWrapper = (

const newRecords = [];

for (let record of event.Records) {
for (const record of event.Records) {
const messageId = record.messageId;

const hasProcessed = await provider.isProcessing(messageId);
Expand Down
1 change: 0 additions & 1 deletion test/idempotency-http-wrapper.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ describe("idempotency-http-wrapper", () => {
const mockNow = Date.now();

beforeEach(() => {
// @ts-ignore
jest.spyOn(Date, "now").mockReturnValue(mockNow);
nock.disableNetConnect();
});
Expand Down
1 change: 0 additions & 1 deletion test/idempotency-sqs-wrapper.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ describe("idempotency-sqs-wrapper", () => {
const mockNow = Date.now();

beforeEach(() => {
// @ts-ignore
jest.spyOn(Date, "now").mockReturnValue(mockNow);
nock.disableNetConnect();
});
Expand Down
1 change: 0 additions & 1 deletion test/providers/dynamoDB.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ describe("DynamoDB", () => {
const mockNow = Date.now();

beforeEach(() => {
// @ts-ignore
jest.spyOn(Date, "now").mockReturnValue(mockNow);
nock.disableNetConnect();
});
Expand Down

0 comments on commit 4e0c35c

Please sign in to comment.