Skip to content

Commit

Permalink
Update dependencies (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
kibertoad authored Oct 5, 2023
1 parent 05a86bc commit 9f478ef
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 23 deletions.
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,24 +35,24 @@
"prepublishOnly": "npm run build"
},
"dependencies": {
"pino": "^8.15.0",
"undici": "^5.23.0",
"undici-retry": "^2.0.1"
"pino": "^8.15.6",
"undici": "^5.25.4",
"undici-retry": "^2.1.0"
},
"devDependencies": {
"@types/node": "^20.4.9",
"@typescript-eslint/eslint-plugin": "^6.3.0",
"@typescript-eslint/parser": "^6.3.0",
"@vitest/coverage-v8": "^0.34.1",
"@types/node": "^20.8.2",
"@typescript-eslint/eslint-plugin": "^6.7.4",
"@typescript-eslint/parser": "^6.7.4",
"@vitest/coverage-v8": "^0.34.6",
"auto-changelog": "^2.4.0",
"eslint": "^8.43.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-vitest": "^0.2.6",
"prettier": "^2.8.8",
"typescript": "^5.1.6",
"vitest": "^0.34.1",
"zod": "^3.21.4"
"eslint": "^8.50.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-vitest": "^0.3.2",
"prettier": "^3.0.3",
"typescript": "^5.2.2",
"vitest": "^0.34.6",
"zod": "^3.22.4"
}
}
17 changes: 10 additions & 7 deletions src/utils/objectUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@ export function copyWithoutUndefined<
}[keyof T]
>,
>(originalValue: T): TargetRecordType {
return Object.keys(originalValue).reduce((acc, key) => {
// @ts-ignore
if (originalValue[key] !== undefined) {
return Object.keys(originalValue).reduce(
(acc, key) => {
// @ts-ignore
acc[key] = originalValue[key]
}
return acc
}, {} as Record<string, unknown>) as TargetRecordType
if (originalValue[key] !== undefined) {
// @ts-ignore
acc[key] = originalValue[key]
}
return acc
},
{} as Record<string, unknown>,
) as TargetRecordType
}

export function pick<T, K extends string | number | symbol>(
Expand Down

0 comments on commit 9f478ef

Please sign in to comment.