@data-fair/lib-node 2.0.1 → 2.0.2
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/axios-auth.js +1 -1
- package/package.json +1 -1
- package/mongo-types.js +0 -1
package/axios-auth.js
CHANGED
|
@@ -28,7 +28,7 @@ export async function axiosAuth (opts) {
|
|
|
28
28
|
const redirectUrl = new URL(err.headers.location)
|
|
29
29
|
const redirectError = redirectUrl.searchParams.get('error')
|
|
30
30
|
if (redirectError) { throw new Error(redirectError) }
|
|
31
|
-
for (const cookie of err.headers['set-cookie']) { cookieJar.setCookie(cookie, origin) }
|
|
31
|
+
for (const cookie of err.headers['set-cookie'] ?? []) { cookieJar.setCookie(cookie, origin) }
|
|
32
32
|
}
|
|
33
33
|
const ax = axiosBuilder(axiosOpts, (ax) => {
|
|
34
34
|
ax.interceptors.request.use(async (config) => {
|
package/package.json
CHANGED
package/mongo-types.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {}
|