@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.
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/core/file/file.js +12 -6
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/core/file/file.mjs +12 -6
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/dist/cjs/Client.js
CHANGED
|
@@ -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
|
|
67
|
-
"User-Agent": "@corti/sdk/0.1.0
|
|
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
|
-
|
|
54
|
-
|
|
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
|
-
|
|
60
|
-
|
|
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
|
}
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.0
|
|
1
|
+
export declare const SDK_VERSION = "0.1.0";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -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
|
|
31
|
-
"User-Agent": "@corti/sdk/0.1.0
|
|
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
|
-
|
|
18
|
-
|
|
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
|
-
|
|
24
|
-
|
|
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
|
}
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.1.0
|
|
1
|
+
export declare const SDK_VERSION = "0.1.0";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "0.1.0
|
|
1
|
+
export const SDK_VERSION = "0.1.0";
|