@bytescale/sdk 3.45.0 → 3.46.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/browser/cjs/main.js +5 -1
- package/dist/browser/esm/main.mjs +5 -1
- package/dist/node/cjs/main.js +6 -1
- package/dist/node/esm/main.mjs +6 -1
- package/dist/types/public/shared/generated/runtime.d.ts +3 -1
- package/dist/worker/cjs/main.js +6 -1
- package/dist/worker/esm/main.mjs +6 -1
- package/package.json +2 -2
package/dist/browser/cjs/main.js
CHANGED
|
@@ -520,7 +520,11 @@ var BaseAPI = /*#__PURE__*/function () {
|
|
|
520
520
|
//
|
|
521
521
|
// However, this is probably a good idea, even for all GET requests, as if the user is refreshing a JWT
|
|
522
522
|
// or downloading a file via 'FileApi.downloadFile', then they'll likely want the latest.
|
|
523
|
-
cache: "no-store"
|
|
523
|
+
cache: "no-store",
|
|
524
|
+
// Node does not support full duplex, so default fetch implementations will fail with "RequestInit: duplex option is required when sending a body"
|
|
525
|
+
// unless the following is set.
|
|
526
|
+
// https://github.com/nodejs/node/issues/46221#issuecomment-1383246036
|
|
527
|
+
duplex: "half"
|
|
524
528
|
})), function (_BytescaleApiClientCo) {
|
|
525
529
|
response = _BytescaleApiClientCo;
|
|
526
530
|
});
|
|
@@ -505,7 +505,11 @@ var BaseAPI = /*#__PURE__*/function () {
|
|
|
505
505
|
//
|
|
506
506
|
// However, this is probably a good idea, even for all GET requests, as if the user is refreshing a JWT
|
|
507
507
|
// or downloading a file via 'FileApi.downloadFile', then they'll likely want the latest.
|
|
508
|
-
cache: "no-store"
|
|
508
|
+
cache: "no-store",
|
|
509
|
+
// Node does not support full duplex, so default fetch implementations will fail with "RequestInit: duplex option is required when sending a body"
|
|
510
|
+
// unless the following is set.
|
|
511
|
+
// https://github.com/nodejs/node/issues/46221#issuecomment-1383246036
|
|
512
|
+
duplex: "half"
|
|
509
513
|
})), function (_BytescaleApiClientCo) {
|
|
510
514
|
response = _BytescaleApiClientCo;
|
|
511
515
|
});
|
package/dist/node/cjs/main.js
CHANGED
|
@@ -520,7 +520,11 @@ var BaseAPI = /*#__PURE__*/function () {
|
|
|
520
520
|
//
|
|
521
521
|
// However, this is probably a good idea, even for all GET requests, as if the user is refreshing a JWT
|
|
522
522
|
// or downloading a file via 'FileApi.downloadFile', then they'll likely want the latest.
|
|
523
|
-
cache: "no-store"
|
|
523
|
+
cache: "no-store",
|
|
524
|
+
// Node does not support full duplex, so default fetch implementations will fail with "RequestInit: duplex option is required when sending a body"
|
|
525
|
+
// unless the following is set.
|
|
526
|
+
// https://github.com/nodejs/node/issues/46221#issuecomment-1383246036
|
|
527
|
+
duplex: "half"
|
|
524
528
|
})), function (_BytescaleApiClientCo) {
|
|
525
529
|
response = _BytescaleApiClientCo;
|
|
526
530
|
});
|
|
@@ -2652,6 +2656,7 @@ var UploadManagerFetchUtils = /*#__PURE__*/function () {
|
|
|
2652
2656
|
headers: headers,
|
|
2653
2657
|
body: content,
|
|
2654
2658
|
signal: signal,
|
|
2659
|
+
duplex: "half",
|
|
2655
2660
|
cache: "no-store" // Required for Next.js's Fetch implementation, which caches POST/PUT requests by default.
|
|
2656
2661
|
}), function (response) {
|
|
2657
2662
|
return {
|
package/dist/node/esm/main.mjs
CHANGED
|
@@ -507,7 +507,11 @@ var BaseAPI = /*#__PURE__*/function () {
|
|
|
507
507
|
//
|
|
508
508
|
// However, this is probably a good idea, even for all GET requests, as if the user is refreshing a JWT
|
|
509
509
|
// or downloading a file via 'FileApi.downloadFile', then they'll likely want the latest.
|
|
510
|
-
cache: "no-store"
|
|
510
|
+
cache: "no-store",
|
|
511
|
+
// Node does not support full duplex, so default fetch implementations will fail with "RequestInit: duplex option is required when sending a body"
|
|
512
|
+
// unless the following is set.
|
|
513
|
+
// https://github.com/nodejs/node/issues/46221#issuecomment-1383246036
|
|
514
|
+
duplex: "half"
|
|
511
515
|
})), function (_BytescaleApiClientCo) {
|
|
512
516
|
response = _BytescaleApiClientCo;
|
|
513
517
|
});
|
|
@@ -2647,6 +2651,7 @@ var UploadManagerFetchUtils = /*#__PURE__*/function () {
|
|
|
2647
2651
|
headers: headers,
|
|
2648
2652
|
body: content,
|
|
2649
2653
|
signal: signal,
|
|
2654
|
+
duplex: "half",
|
|
2650
2655
|
cache: "no-store" // Required for Next.js's Fetch implementation, which caches POST/PUT requests by default.
|
|
2651
2656
|
}), function (response) {
|
|
2652
2657
|
return {
|
|
@@ -93,7 +93,9 @@ export declare class BytescaleApiError extends Error {
|
|
|
93
93
|
readonly details: any | undefined;
|
|
94
94
|
constructor(response: ErrorResponse);
|
|
95
95
|
}
|
|
96
|
-
export type FetchAPI =
|
|
96
|
+
export type FetchAPI = (input: RequestInfo | URL, init?: RequestInit & {
|
|
97
|
+
duplex: "half";
|
|
98
|
+
}) => Promise<Response>;
|
|
97
99
|
export type Json = any;
|
|
98
100
|
export type HTTPMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS" | "HEAD";
|
|
99
101
|
export type HTTPHeaders = {
|
package/dist/worker/cjs/main.js
CHANGED
|
@@ -520,7 +520,11 @@ var BaseAPI = /*#__PURE__*/function () {
|
|
|
520
520
|
//
|
|
521
521
|
// However, this is probably a good idea, even for all GET requests, as if the user is refreshing a JWT
|
|
522
522
|
// or downloading a file via 'FileApi.downloadFile', then they'll likely want the latest.
|
|
523
|
-
cache: "no-store"
|
|
523
|
+
cache: "no-store",
|
|
524
|
+
// Node does not support full duplex, so default fetch implementations will fail with "RequestInit: duplex option is required when sending a body"
|
|
525
|
+
// unless the following is set.
|
|
526
|
+
// https://github.com/nodejs/node/issues/46221#issuecomment-1383246036
|
|
527
|
+
duplex: "half"
|
|
524
528
|
})), function (_BytescaleApiClientCo) {
|
|
525
529
|
response = _BytescaleApiClientCo;
|
|
526
530
|
});
|
|
@@ -2509,6 +2513,7 @@ var UploadManagerFetchUtils = /*#__PURE__*/function () {
|
|
|
2509
2513
|
headers: headers,
|
|
2510
2514
|
body: content,
|
|
2511
2515
|
signal: signal,
|
|
2516
|
+
duplex: "half",
|
|
2512
2517
|
cache: "no-store" // Required for Next.js's Fetch implementation, which caches POST/PUT requests by default.
|
|
2513
2518
|
}), function (response) {
|
|
2514
2519
|
return {
|
package/dist/worker/esm/main.mjs
CHANGED
|
@@ -505,7 +505,11 @@ var BaseAPI = /*#__PURE__*/function () {
|
|
|
505
505
|
//
|
|
506
506
|
// However, this is probably a good idea, even for all GET requests, as if the user is refreshing a JWT
|
|
507
507
|
// or downloading a file via 'FileApi.downloadFile', then they'll likely want the latest.
|
|
508
|
-
cache: "no-store"
|
|
508
|
+
cache: "no-store",
|
|
509
|
+
// Node does not support full duplex, so default fetch implementations will fail with "RequestInit: duplex option is required when sending a body"
|
|
510
|
+
// unless the following is set.
|
|
511
|
+
// https://github.com/nodejs/node/issues/46221#issuecomment-1383246036
|
|
512
|
+
duplex: "half"
|
|
509
513
|
})), function (_BytescaleApiClientCo) {
|
|
510
514
|
response = _BytescaleApiClientCo;
|
|
511
515
|
});
|
|
@@ -2494,6 +2498,7 @@ var UploadManagerFetchUtils = /*#__PURE__*/function () {
|
|
|
2494
2498
|
headers: headers,
|
|
2495
2499
|
body: content,
|
|
2496
2500
|
signal: signal,
|
|
2501
|
+
duplex: "half",
|
|
2497
2502
|
cache: "no-store" // Required for Next.js's Fetch implementation, which caches POST/PUT requests by default.
|
|
2498
2503
|
}), function (response) {
|
|
2499
2504
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bytescale/sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.46.0",
|
|
4
4
|
"description": "Bytescale JavaScript SDK",
|
|
5
5
|
"author": "Bytescale <hello@bytescale.com> (https://www.bytescale.com)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -110,7 +110,7 @@
|
|
|
110
110
|
"ts-loader": "9.5.1",
|
|
111
111
|
"tsc-alias": "1.2.10",
|
|
112
112
|
"typescript": "4.9.5",
|
|
113
|
-
"webpack": "5.
|
|
113
|
+
"webpack": "5.94.0",
|
|
114
114
|
"webpack-cli": "4.10.0",
|
|
115
115
|
"webpack-node-externals": "2.5.2",
|
|
116
116
|
"webpack-shell-plugin-next": "2.3.1"
|