@sleeperhq/mini-core 1.0.5 → 1.0.7

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.
@@ -1,6 +1,7 @@
1
1
  import { User, Navigation, League, LeaguesMap, RostersInLeagueMap, UserMap, MatchupsInLeagueMap } from './types';
2
2
  import SleeperActions from './sleeper_actions';
3
3
  declare class SleeperContext {
4
+ static apiLevel: string;
4
5
  user: User;
5
6
  navigation: Navigation;
6
7
  league: League;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sleeperhq/mini-core",
3
- "version": "1.0.5",
3
+ "version": "1.0.7",
4
4
  "description": "Core library frameworks for developing Sleeper Mini Apps.",
5
5
  "main": "index.ts",
6
6
  "types": "index.d.ts",
@@ -33,16 +33,17 @@
33
33
  "access": "public"
34
34
  },
35
35
  "peerDependencies": {
36
- "@callstack/repack": "blitzstudios/repack.git#callstack-repack-v2.6.0-gitpkg",
37
- "@react-native-community/netinfo": "^9.3.7",
36
+ "@callstack/repack": "blitzstudios/repack.git#callstack-repack-v2.6.1-gitpkg",
37
+ "@react-native-community/netinfo": "9.3.7",
38
38
  "axios": "0.15.3",
39
39
  "lodash": "4.17.21",
40
40
  "react": "17.0.2",
41
41
  "react-native": "0.66.5",
42
42
  "react-native-linear-gradient": "2.5.6",
43
- "react-native-rename": "^3.2.12",
43
+ "react-native-rename": "3.2.12",
44
44
  "react-native-svg": "13.7.0",
45
- "react-native-tcp-socket": "^6.0.6"
45
+ "react-native-tcp-socket": "6.0.6",
46
+ "react-native-webview": "11.23.1"
46
47
  },
47
48
  "devDependencies": {
48
49
  "@babel/core": "^7.12.9",
@@ -18,8 +18,8 @@ export type MainPlatformData = {
18
18
  dev?: boolean,
19
19
  }
20
20
 
21
- const PROD_CDN = "https://sleepercdn.com/bundles/";
22
- const TEST_CDN = "https://test.sleepercdn.com/bundles/";
21
+ const PROD_CDN = "https://sleepercdn.com/bundles";
22
+ const TEST_CDN = "https://test.sleepercdn.com/bundles";
23
23
 
24
24
  // Query a list of urls, and grab the first one that returns a 200 response.
25
25
  const _fetchFirstAvailable = (config: AxiosRequestConfig, ...urls: string[]) => {