@xuda.io/xuda-worker-bundle-min 1.3.321 → 1.3.323
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/index.js +10 -7
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1801,13 +1801,16 @@ func.datasource.execute = async function (
|
|
|
1801
1801
|
|
|
1802
1802
|
opt.body = JSON.stringify(data);
|
|
1803
1803
|
}
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1804
|
+
try {
|
|
1805
|
+
const response = await fetch(
|
|
1806
|
+
"https://" + prog_obj.progDataSource.dataSourceDataUrl,
|
|
1807
|
+
opt
|
|
1808
|
+
);
|
|
1809
|
+
const json = await response.json();
|
|
1810
|
+
return json.data;
|
|
1811
|
+
} catch (err) {
|
|
1812
|
+
return null;
|
|
1813
|
+
}
|
|
1811
1814
|
|
|
1812
1815
|
break;
|
|
1813
1816
|
}
|