Skip to content

Commit

Permalink
Merge pull request #20 from Many-Monkeys/renovate/typescript-4.x
Browse files Browse the repository at this point in the history
chore(deps): update dependency typescript to v4
  • Loading branch information
sawilde authored Oct 22, 2022
2 parents 9a9f567 + 13f1653 commit c65874d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"tsconfig-paths": "4.1.0",
"tslint": "5.20.1",
"tslint-sonarts": "1.9.0",
"typescript": "3.9.10"
"typescript": "4.8.4"
},
"peerDependencies": {
"aws-sdk": "*"
Expand Down
2 changes: 1 addition & 1 deletion src/isotopes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export class Isotope<
*/
public async put(data: TPut): Promise<void> {
if (typeof data[this.options.key] === "undefined")
throw new Error(`Invalid identifier: "${this.options.key}" not found`)
throw new Error(`Invalid identifier: "${String(this.options.key)}" not found`)

const amalgam = {__isotopes_type: this.options.type, ...data}
await this.client.put(
Expand Down
2 changes: 1 addition & 1 deletion tests/mocks/isotopes/client/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ import { flatten } from "isotopes/format"
*
* @return Item
*/
export function mockIsotopeClientItem<T>(
export function mockIsotopeClientItem<T extends {}>(
id: string, data: T
): IsotopeClientItem {
return {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1983,10 +1983,10 @@ typedarray-to-buffer@^3.1.5:
dependencies:
is-typedarray "^1.0.0"

typescript@3.9.10:
version "3.9.10"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.9.10.tgz#70f3910ac7a51ed6bef79da7800690b19bf778b8"
integrity sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==
typescript@4.8.4:
version "4.8.4"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.4.tgz#c464abca159669597be5f96b8943500b238e60e6"
integrity sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==

unbox-primitive@^1.0.2:
version "1.0.2"
Expand Down

0 comments on commit c65874d

Please sign in to comment.