From 8f8cb5b82dabf46f4c982cf9b4fced196ad8611a Mon Sep 17 00:00:00 2001 From: Vadym Shymko Date: Mon, 9 Jan 2023 14:30:34 +0200 Subject: [PATCH] Fix json5 --- package.json | 3 +++ src/index.tsx | 2 +- yarn.lock | 23 ++++++++--------------- 3 files changed, 12 insertions(+), 16 deletions(-) diff --git a/package.json b/package.json index c5deccf..190c28b 100644 --- a/package.json +++ b/package.json @@ -87,5 +87,8 @@ "lint-staged": { "*.{js,jsx,tsx}": "eslint --cache --fix", ".": "prettier --write" + }, + "resolutions": { + "json5": "^2.2.2" } } diff --git a/src/index.tsx b/src/index.tsx index b927f52..a4937c3 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -758,7 +758,7 @@ function ReactSimplyCarousel({ ? 'forward' : 'backward'; - const isActive = index + startIndex === activeSlideIndex; + const isActive: boolean = index + startIndex === activeSlideIndex; const isVisible = visibleSlides.find( (slide) => slide.slideIndex === index + startIndex ); diff --git a/yarn.lock b/yarn.lock index dc11c8e..cf0e93a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1675,9 +1675,9 @@ callsites@^3.0.0: integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== caniuse-lite@^1.0.30001219, caniuse-lite@^1.0.30001332: - version "1.0.30001338" - resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001338.tgz" - integrity sha512-1gLHWyfVoRDsHieO+CaeYe7jSo/MT7D7lhaXUiwwbuR5BwQxORs0f1tAwUSQr3YbxRXJvxHM/PA5FfPQRnsPeQ== + version "1.0.30001442" + resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001442.tgz" + integrity sha512-239m03Pqy0hwxYPYR5JwOIxRJfLTWtle9FV8zosfV5pHg+/51uD4nxcUlM8+mWWGfwKtt8lJNHnD3cWw9VZ6ow== chalk@^2.0.0: version "2.4.2" @@ -2666,17 +2666,10 @@ json-stable-stringify-without-jsonify@^1.0.1: resolved "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz" integrity sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE= -json5@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/json5/-/json5-1.0.2.tgz#63d98d60f21b313b77c4d6da18bfa69d80e1d593" - integrity sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA== - dependencies: - minimist "^1.2.0" - -json5@^2.2.1: - version "2.2.1" - resolved "https://registry.npmjs.org/json5/-/json5-2.2.1.tgz" - integrity sha512-1hqLFMSrGHRHxav9q9gNjJ5EXznIxGVO09xQRrwplcS8qs28pZ8s8hupZAmqDwZUmVZ2Qb2jnyPOWcDH8m8dlA== +json5@^1.0.1, json5@^2.2.1, json5@^2.2.2: + version "2.2.3" + resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283" + integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== "jsx-ast-utils@^2.4.1 || ^3.0.0", jsx-ast-utils@^3.2.1: version "3.3.0" @@ -2825,7 +2818,7 @@ minimatch@^3.0.4, minimatch@^3.1.2: dependencies: brace-expansion "^1.1.7" -minimist@^1.2.0, minimist@^1.2.6: +minimist@^1.2.6: version "1.2.7" resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.7.tgz#daa1c4d91f507390437c6a8bc01078e7000c4d18" integrity sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==