From d020f303bb6c08a39f9938ed49984f9167ec8451 Mon Sep 17 00:00:00 2001 From: jzunigax2 <125698953+jzunigax2@users.noreply.github.com> Date: Fri, 27 Feb 2026 11:03:18 -0600 Subject: [PATCH] chore: replace UUID validation use --- package.json | 6 ++---- src/network/index.ts | 4 +++- yarn.lock | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 47efcf09..00bfee31 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@internxt/sdk", "author": "Internxt ", - "version": "1.15.0", + "version": "1.15.1", "description": "An sdk for interacting with Internxt's services", "repository": { "type": "git", @@ -44,13 +44,11 @@ }, "dependencies": { "axios": "1.13.5", - "uuid": "13.0.0", "internxt-crypto": "0.0.13" - }, "lint-staged": { "*.{js,jsx,tsx,ts}": [ "prettier --write" ] } -} +} \ No newline at end of file diff --git a/src/network/index.ts b/src/network/index.ts index dab7cedd..b8ae8112 100644 --- a/src/network/index.ts +++ b/src/network/index.ts @@ -1,4 +1,3 @@ -import { validate as uuidValidate } from 'uuid'; import { BasicAuth } from '../auth/types'; import { ApiUrl, AppDetails } from '../shared'; import { headersWithAuthToken, headersWithBasicAuth } from '../shared/headers/index'; @@ -15,6 +14,9 @@ import { StartUploadResponse, } from './types'; +const UUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i; +const uuidValidate = (str: string): boolean => UUID_REGEX.test(str); + export * from './types'; export class DuplicatedIndexesError extends Error { diff --git a/yarn.lock b/yarn.lock index 84dc0b6d..b8dedcea 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2207,7 +2207,7 @@ uri-js@^4.2.2: dependencies: punycode "^2.1.0" -uuid@13.0.0, uuid@^13.0.0: +uuid@^13.0.0: version "13.0.0" resolved "https://registry.yarnpkg.com/uuid/-/uuid-13.0.0.tgz#263dc341b19b4d755eb8fe36b78d95a6b65707e8" integrity sha512-XQegIaBTVUjSHliKqcnFqYypAd4S+WCYt5NIeRs6w/UAry7z8Y9j5ZwRRL4kzq9U3sD6v+85er9FvkEaBpji2w==