Skip to content

Commit

Permalink
fix: revert "fix(deps): update dependency filter-obj to v3 (#518)" (#526
Browse files Browse the repository at this point in the history
)

This reverts commit 41bd6bb.
  • Loading branch information
erezrokah committed Jan 23, 2022
1 parent 4957011 commit d8a4e6b
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 19 deletions.
8 changes: 4 additions & 4 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/* eslint-env node */
const esModules = ['filter-obj'].join('|');

module.exports = {
roots: ['<rootDir>/src'],
preset: 'ts-jest/presets/js-with-ts',
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$',
transformIgnorePatterns: [`node_modules/(?!${esModules})`],
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
};
19 changes: 8 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"dependencies": {
"aws-sdk": "^2.678.0",
"axios": "^0.25.0",
"filter-obj": "^3.0.0",
"filter-obj": "^2.0.1",
"jest-diff": "^27.0.0",
"uuid": "^8.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/common/dynamoDb.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import filterObject from 'filter-obj';
import filterObject = require('filter-obj');
import { AttributeMap } from 'aws-sdk/clients/dynamodb';
import { ICommonProps } from './';

Expand Down
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
"strict": true,
"noUnusedLocals": true,
"declaration": true,
"outDir": "./lib",
"allowJs": true
"outDir": "./lib"
},
"include": ["src/**/*"],
"exclude": ["node_modules", "**/*.test.ts"]
Expand Down

0 comments on commit d8a4e6b

Please sign in to comment.