@sleeperhq/mini-core 1.0.7 → 1.1.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sleeperhq/mini-core",
3
- "version": "1.0.7",
3
+ "version": "1.1.0",
4
4
  "description": "Core library frameworks for developing Sleeper Mini Apps.",
5
5
  "main": "index.ts",
6
6
  "types": "index.d.ts",
@@ -57,7 +57,8 @@ export const getMainUrl = (scriptId: string, caller: string, config: MainPlatfor
57
57
  sleeper = `${TEST_CDN}/${config.platform}/codepush/${config.dist}/`;
58
58
  }
59
59
  } else {
60
- sleeper = `${PROD_CDN}/data/${Platform.OS}/${config.bundleVersion}/`;
60
+ const platform = config.platform?.split('-')[0];
61
+ sleeper = `${PROD_CDN}/data/${platform}/${config.bundleVersion}/`;
61
62
  }
62
63
 
63
64
  const resolveURL = Federated.createURLResolver({