From 659faa4aaa291134c669f034d5d11404504bf943 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sat, 22 Oct 2022 08:40:41 +0000 Subject: [PATCH 1/2] chore(deps): update dependency typescript to v4 --- package.json | 2 +- yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 8314a736..62646b2f 100644 --- a/package.json +++ b/package.json @@ -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": "*" diff --git a/yarn.lock b/yarn.lock index 029c5a33..c98fa531 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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" From 13f165359b090376573686789cad68bf18feb993 Mon Sep 17 00:00:00 2001 From: Shaun Wilde Date: Sat, 22 Oct 2022 20:12:57 +1100 Subject: [PATCH 2/2] fix: minor syntax changes due to upgrade to typescript 4 --- src/isotopes/index.ts | 2 +- tests/mocks/isotopes/client/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/isotopes/index.ts b/src/isotopes/index.ts index 28c5335a..58d62013 100644 --- a/src/isotopes/index.ts +++ b/src/isotopes/index.ts @@ -182,7 +182,7 @@ export class Isotope< */ public async put(data: TPut): Promise { 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( diff --git a/tests/mocks/isotopes/client/index.ts b/tests/mocks/isotopes/client/index.ts index 25ae65c5..8421c365 100644 --- a/tests/mocks/isotopes/client/index.ts +++ b/tests/mocks/isotopes/client/index.ts @@ -41,7 +41,7 @@ import { flatten } from "isotopes/format" * * @return Item */ -export function mockIsotopeClientItem( +export function mockIsotopeClientItem( id: string, data: T ): IsotopeClientItem { return {