@spider-cloud/spider-client 0.0.5 → 0.0.8
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/spiderwebai.js +2 -2
- package/package.json +1 -1
package/dist/spiderwebai.js
CHANGED
|
@@ -24,7 +24,7 @@ class Spider {
|
|
|
24
24
|
*/
|
|
25
25
|
async _apiPost(endpoint, data, stream = false) {
|
|
26
26
|
const headers = this.prepareHeaders();
|
|
27
|
-
const response = await fetch(`https://
|
|
27
|
+
const response = await fetch(`https://api.spider.cloud/v1/${endpoint}`, {
|
|
28
28
|
method: "POST",
|
|
29
29
|
headers: headers,
|
|
30
30
|
body: JSON.stringify(data),
|
|
@@ -46,7 +46,7 @@ class Spider {
|
|
|
46
46
|
*/
|
|
47
47
|
async _apiGet(endpoint) {
|
|
48
48
|
const headers = this.prepareHeaders();
|
|
49
|
-
const response = await fetch(`https://
|
|
49
|
+
const response = await fetch(`https://api.spider.cloud/v1/${endpoint}`, {
|
|
50
50
|
method: "GET",
|
|
51
51
|
headers: headers,
|
|
52
52
|
});
|