From 087158064c77f1d712ea26867976d7cbfc22b894 Mon Sep 17 00:00:00 2001 From: Lim Chee Aun Date: Mon, 12 Jun 2023 14:48:41 +0800 Subject: [PATCH] Downgrade string-length, Firefox doesn't support Intl.Segmenter --- package-lock.json | 35 +++++++++++++++++++++++++---------- package.json | 2 +- 2 files changed, 26 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index 86898ca5..0d3bb36e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28,7 +28,7 @@ "react-intersection-observer": "~9.4.4", "react-quick-pinch-zoom": "~4.9.0", "react-router-dom": "6.6.2", - "string-length": "~6.0.0", + "string-length": "5.0.1", "swiped-events": "~1.1.7", "toastify-js": "~1.12.0", "uid": "~2.0.2", @@ -3704,6 +3704,14 @@ "tslib": "^2.0.3" } }, + "node_modules/char-regex": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-2.0.1.tgz", + "integrity": "sha512-oSvEeo6ZUD7NepqAat3RqoucZ5SeqLJgOvVIwkafu6IP3V0pO38s/ypdVUmDDK6qIIHNlYHJAKX9E7R7HoKElw==", + "engines": { + "node": ">=12.20" + } + }, "node_modules/color-convert": { "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", @@ -6633,14 +6641,15 @@ "dev": true }, "node_modules/string-length": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/string-length/-/string-length-6.0.0.tgz", - "integrity": "sha512-1U361pxZHEQ+FeSjzqRpV+cu2vTzYeWeafXFLykiFlv4Vc0n3njgU8HrMbyik5uwm77naWMuVG8fhEF+Ovb1Kg==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-5.0.1.tgz", + "integrity": "sha512-9Ep08KAMUn0OadnVaBuRdE2l615CQ508kr0XMadjClfYpdCyvrbFp6Taebo8yyxokQ4viUd/xPPUA4FGgUa0ow==", "dependencies": { - "strip-ansi": "^7.1.0" + "char-regex": "^2.0.0", + "strip-ansi": "^7.0.1" }, "engines": { - "node": ">=16" + "node": ">=12.20" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -10055,6 +10064,11 @@ "tslib": "^2.0.3" } }, + "char-regex": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-2.0.1.tgz", + "integrity": "sha512-oSvEeo6ZUD7NepqAat3RqoucZ5SeqLJgOvVIwkafu6IP3V0pO38s/ypdVUmDDK6qIIHNlYHJAKX9E7R7HoKElw==" + }, "color-convert": { "version": "1.9.3", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", @@ -12040,11 +12054,12 @@ "dev": true }, "string-length": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/string-length/-/string-length-6.0.0.tgz", - "integrity": "sha512-1U361pxZHEQ+FeSjzqRpV+cu2vTzYeWeafXFLykiFlv4Vc0n3njgU8HrMbyik5uwm77naWMuVG8fhEF+Ovb1Kg==", + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/string-length/-/string-length-5.0.1.tgz", + "integrity": "sha512-9Ep08KAMUn0OadnVaBuRdE2l615CQ508kr0XMadjClfYpdCyvrbFp6Taebo8yyxokQ4viUd/xPPUA4FGgUa0ow==", "requires": { - "strip-ansi": "^7.1.0" + "char-regex": "^2.0.0", + "strip-ansi": "^7.0.1" } }, "string.prototype.matchall": { diff --git a/package.json b/package.json index a458cbc8..715884bd 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "react-intersection-observer": "~9.4.4", "react-quick-pinch-zoom": "~4.9.0", "react-router-dom": "6.6.2", - "string-length": "~6.0.0", + "string-length": "5.0.1", "swiped-events": "~1.1.7", "toastify-js": "~1.12.0", "uid": "~2.0.2",