@internxt/sdk 1.15.0 → 1.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -77,10 +77,11 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
77
77
  };
78
78
  Object.defineProperty(exports, "__esModule", { value: true });
79
79
  exports.Network = exports.InvalidMultipartValueError = exports.FileTooSmallForMultipartError = exports.InvalidUploadSizeError = exports.InvalidUploadIndexError = exports.InvalidFileIndexError = exports.DuplicatedIndexesError = void 0;
80
- var uuid_1 = require("uuid");
81
80
  var index_1 = require("../shared/headers/index");
82
81
  var client_1 = require("../shared/http/client");
83
82
  var utils_1 = require("../utils");
83
+ var 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;
84
+ var uuidValidate = function (str) { return UUID_REGEX.test(str); };
84
85
  __exportStar(require("./types"), exports);
85
86
  var DuplicatedIndexesError = /** @class */ (function (_super) {
86
87
  __extends(DuplicatedIndexesError, _super);
@@ -198,7 +199,7 @@ var Network = /** @class */ (function () {
198
199
  }
199
200
  for (var _i = 0, shards_1 = shards; _i < shards_1.length; _i++) {
200
201
  var shard = shards_1[_i];
201
- if (!(0, uuid_1.validate)(shard.uuid)) {
202
+ if (!uuidValidate(shard.uuid)) {
202
203
  throw new Error('Invalid UUID');
203
204
  }
204
205
  }
@@ -215,7 +216,7 @@ var Network = /** @class */ (function () {
215
216
  }
216
217
  for (var _i = 0, shards_2 = shards; _i < shards_2.length; _i++) {
217
218
  var shard = shards_2[_i];
218
- if (!(0, uuid_1.validate)(shard.uuid)) {
219
+ if (!uuidValidate(shard.uuid)) {
219
220
  throw new Error('Invalid UUID');
220
221
  }
221
222
  if (!shard.UploadId) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@internxt/sdk",
3
3
  "author": "Internxt <hello@internxt.com>",
4
- "version": "1.15.0",
4
+ "version": "1.15.1",
5
5
  "description": "An sdk for interacting with Internxt's services",
6
6
  "repository": {
7
7
  "type": "git",
@@ -44,13 +44,11 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "axios": "1.13.5",
47
- "uuid": "13.0.0",
48
47
  "internxt-crypto": "0.0.13"
49
-
50
48
  },
51
49
  "lint-staged": {
52
50
  "*.{js,jsx,tsx,ts}": [
53
51
  "prettier --write"
54
52
  ]
55
53
  }
56
- }
54
+ }