@3dverse/api 0.3.0 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/_prebuild/wrapper.d.ts +56 -34
- package/dist/index.js +1 -1
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +3 -1
- package/dist/index.mjs.map +3 -3
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
// index.ts
|
2
|
+
import axiosRetry, { isNetworkError, isIdempotentRequestError } from "axios-retry";
|
3
|
+
|
1
4
|
// _prebuild/wrapper.ts
|
2
5
|
import axios from "axios";
|
3
6
|
var axiosInstance = axios.create({
|
@@ -836,7 +839,6 @@ function generateGuestToken({
|
|
836
839
|
}
|
837
840
|
|
838
841
|
// index.ts
|
839
|
-
import axiosRetry, { isNetworkError, isIdempotentRequestError } from "axios-retry";
|
840
842
|
function setApiKey(apiKey) {
|
841
843
|
axiosInstance.defaults.headers.common["api_key"] = apiKey;
|
842
844
|
delete axiosInstance.defaults.headers.common["user_token"];
|