@audius/sdk 3.0.3-beta.104 → 3.0.3-beta.105
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 +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/legacy.js +4 -4
- package/dist/legacy.js.map +1 -1
- package/dist/native-libs.js +4 -4
- package/dist/native-libs.js.map +1 -1
- package/dist/web-libs.js +4 -4
- package/dist/web-libs.js.map +1 -1
- package/package.json +2 -2
- package/src/services/discoveryProvider/DiscoveryProviderSelection.ts +2 -2
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@audius/sdk",
|
|
3
|
-
"version": "3.0.3-beta.
|
|
3
|
+
"version": "3.0.3-beta.105",
|
|
4
4
|
"audius": {
|
|
5
|
-
"releaseSHA": "
|
|
5
|
+
"releaseSHA": "dd170bc6ea9219bd49fba59e0d158cbd3f282a6b"
|
|
6
6
|
},
|
|
7
7
|
"description": "Audius SDK",
|
|
8
8
|
"main": "dist/index.cjs.js",
|
|
@@ -216,8 +216,8 @@ export class DiscoveryProviderSelection extends ServiceSelection {
|
|
|
216
216
|
return false
|
|
217
217
|
}
|
|
218
218
|
|
|
219
|
-
// If this service is behind
|
|
220
|
-
if (semver.
|
|
219
|
+
// If this service is behind, add it as a backup and reject
|
|
220
|
+
if (semver.lt(version, this.currentVersion)) {
|
|
221
221
|
this.addBackup(urlMap[response.config.url as string] as string, data.data)
|
|
222
222
|
return false
|
|
223
223
|
}
|