arcvision 0.1.14 → 0.1.15
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/index.js +1 -1
- package/package.json +1 -1
- package/src/index.js +1 -1
package/dist/index.js
CHANGED
|
@@ -56715,7 +56715,7 @@ async function uploadToDatabase(jsonData) {
|
|
|
56715
56715
|
try {
|
|
56716
56716
|
console.log(chalk.blue(`Uploading to ${API_URL}/api/upload...`));
|
|
56717
56717
|
const controller = new AbortController();
|
|
56718
|
-
const timeoutId = setTimeout(() => controller.abort(),
|
|
56718
|
+
const timeoutId = setTimeout(() => controller.abort(), 6e4);
|
|
56719
56719
|
const response = await fetch(`${API_URL}/api/upload`, {
|
|
56720
56720
|
method: "POST",
|
|
56721
56721
|
headers: {
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -88,7 +88,7 @@ async function uploadToDatabase(jsonData) {
|
|
|
88
88
|
|
|
89
89
|
// Add timeout to fetch request
|
|
90
90
|
const controller = new AbortController();
|
|
91
|
-
const timeoutId = setTimeout(() => controller.abort(),
|
|
91
|
+
const timeoutId = setTimeout(() => controller.abort(), 60000); // 60 second timeout
|
|
92
92
|
|
|
93
93
|
const response = await fetch(`${API_URL}/api/upload`, {
|
|
94
94
|
method: 'POST',
|