@audius/sdk 1.0.15 → 1.0.16
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.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/legacy.js +3 -3
- package/dist/legacy.js.map +1 -1
- package/dist/native-libs.js +3 -3
- package/dist/native-libs.js.map +1 -1
- package/package.json +2 -2
- package/src/api/File.ts +6 -4
package/package.json
CHANGED
package/src/api/File.ts
CHANGED
|
@@ -71,10 +71,12 @@ export class File extends Base {
|
|
|
71
71
|
)
|
|
72
72
|
|
|
73
73
|
if (!response) {
|
|
74
|
-
const allForbidden =
|
|
75
|
-
|
|
76
|
-
(
|
|
77
|
-
|
|
74
|
+
const allForbidden =
|
|
75
|
+
errored.length &&
|
|
76
|
+
errored.every(
|
|
77
|
+
// @ts-expect-error not valid axios error
|
|
78
|
+
(error) => error.response.status === 403
|
|
79
|
+
)
|
|
78
80
|
if (allForbidden) {
|
|
79
81
|
// In the case for a 403, do not retry fetching
|
|
80
82
|
bail(new Error('Forbidden'))
|