From f2fa56c431d1dcdf630c999c8e458bfa4df08f36 Mon Sep 17 00:00:00 2001 From: Raju Ahmed Date: Fri, 15 Nov 2024 23:58:44 +0600 Subject: [PATCH 1/2] [FSSDK-10464] update import for uuid --- packages/optimizely-sdk/lib/utils/fns/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/optimizely-sdk/lib/utils/fns/index.ts b/packages/optimizely-sdk/lib/utils/fns/index.ts index db4123939..e30ad8737 100644 --- a/packages/optimizely-sdk/lib/utils/fns/index.ts +++ b/packages/optimizely-sdk/lib/utils/fns/index.ts @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import v4 from 'uuid'; +import v4 from 'uuid/v4'; const MAX_SAFE_INTEGER_LIMIT = Math.pow(2, 53); From 9fcee71e4b8f1437670d236c2d5f967a09732667 Mon Sep 17 00:00:00 2001 From: Raju Ahmed Date: Sat, 16 Nov 2024 00:39:38 +0600 Subject: [PATCH 2/2] upd --- packages/optimizely-sdk/lib/utils/fns/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/optimizely-sdk/lib/utils/fns/index.ts b/packages/optimizely-sdk/lib/utils/fns/index.ts index e30ad8737..514bdc0dd 100644 --- a/packages/optimizely-sdk/lib/utils/fns/index.ts +++ b/packages/optimizely-sdk/lib/utils/fns/index.ts @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -import v4 from 'uuid/v4'; +import _uuid from 'uuid'; const MAX_SAFE_INTEGER_LIMIT = Math.pow(2, 53); @@ -62,7 +62,7 @@ function isNumber(value: unknown): boolean { } export function uuid(): string { - return v4() + return _uuid.v4() } export type Omit = Pick>