@corti/sdk 0.1.0-rc → 0.1.0

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.
@@ -63,8 +63,8 @@ class CortiClient {
63
63
  "Tenant-Name": _options === null || _options === void 0 ? void 0 : _options.tenantName,
64
64
  "X-Fern-Language": "JavaScript",
65
65
  "X-Fern-SDK-Name": "@corti/sdk",
66
- "X-Fern-SDK-Version": "0.1.0-rc",
67
- "User-Agent": "@corti/sdk/0.1.0-rc",
66
+ "X-Fern-SDK-Version": "0.1.0",
67
+ "User-Agent": "@corti/sdk/0.1.0",
68
68
  "X-Fern-Runtime": core.RUNTIME.type,
69
69
  "X-Fern-Runtime-Version": core.RUNTIME.version,
70
70
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -50,15 +50,21 @@ function toBinaryUploadRequest(file) {
50
50
  body: data,
51
51
  headers: {},
52
52
  };
53
- if (filename) {
54
- request.headers["Content-Disposition"] = `attachment; filename="${filename}"`;
55
- }
53
+ /**
54
+ * Patch: temporarily disable Content-Disposition header to avoid issues with CORS
55
+ */
56
+ // if (filename) {
57
+ // request.headers["Content-Disposition"] = `attachment; filename="${filename}"`;
58
+ // }
56
59
  if (contentType) {
57
60
  request.headers["Content-Type"] = contentType;
58
61
  }
59
- if (contentLength != null) {
60
- request.headers["Content-Length"] = contentLength.toString();
61
- }
62
+ /**
63
+ * Patch: temporarily disable Content-Disposition header to avoid issues with CORS
64
+ */
65
+ // if (contentLength != null) {
66
+ // request.headers["Content-Length"] = contentLength.toString();
67
+ // }
62
68
  return request;
63
69
  });
64
70
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.0-rc";
1
+ export declare const SDK_VERSION = "0.1.0";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "0.1.0-rc";
4
+ exports.SDK_VERSION = "0.1.0";
@@ -27,8 +27,8 @@ export class CortiClient {
27
27
  "Tenant-Name": _options === null || _options === void 0 ? void 0 : _options.tenantName,
28
28
  "X-Fern-Language": "JavaScript",
29
29
  "X-Fern-SDK-Name": "@corti/sdk",
30
- "X-Fern-SDK-Version": "0.1.0-rc",
31
- "User-Agent": "@corti/sdk/0.1.0-rc",
30
+ "X-Fern-SDK-Version": "0.1.0",
31
+ "User-Agent": "@corti/sdk/0.1.0",
32
32
  "X-Fern-Runtime": core.RUNTIME.type,
33
33
  "X-Fern-Runtime-Version": core.RUNTIME.version,
34
34
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -14,15 +14,21 @@ export function toBinaryUploadRequest(file) {
14
14
  body: data,
15
15
  headers: {},
16
16
  };
17
- if (filename) {
18
- request.headers["Content-Disposition"] = `attachment; filename="${filename}"`;
19
- }
17
+ /**
18
+ * Patch: temporarily disable Content-Disposition header to avoid issues with CORS
19
+ */
20
+ // if (filename) {
21
+ // request.headers["Content-Disposition"] = `attachment; filename="${filename}"`;
22
+ // }
20
23
  if (contentType) {
21
24
  request.headers["Content-Type"] = contentType;
22
25
  }
23
- if (contentLength != null) {
24
- request.headers["Content-Length"] = contentLength.toString();
25
- }
26
+ /**
27
+ * Patch: temporarily disable Content-Disposition header to avoid issues with CORS
28
+ */
29
+ // if (contentLength != null) {
30
+ // request.headers["Content-Length"] = contentLength.toString();
31
+ // }
26
32
  return request;
27
33
  });
28
34
  }
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.1.0-rc";
1
+ export declare const SDK_VERSION = "0.1.0";
@@ -1 +1 @@
1
- export const SDK_VERSION = "0.1.0-rc";
1
+ export const SDK_VERSION = "0.1.0";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@corti/sdk",
3
- "version": "0.1.0-rc",
3
+ "version": "0.1.0",
4
4
  "private": false,
5
5
  "repository": "github:corticph/corti-sdk-javascript",
6
6
  "license": "MIT",