Clean up update server

Reviewed By: lblasa

Differential Revision: D48433744

fbshipit-source-id: 749868e00e17af02040a8e2c164631e295deae65
This commit is contained in:
Pascal Hartig
2023-08-21 03:03:30 -07:00
committed by Facebook GitHub Bot
parent 891f9448a0
commit 22c0eaa5cd
3 changed files with 6 additions and 7 deletions

View File

@@ -9,8 +9,7 @@
import {VersionCheckResult} from '../chrome/UpdateIndicator'; import {VersionCheckResult} from '../chrome/UpdateIndicator';
import {getRenderHostInstance} from 'flipper-frontend-core'; import {getRenderHostInstance} from 'flipper-frontend-core';
import config from './config';
const updateServer = 'https://www.facebook.com/fbflipper/public/latest.json';
const getPlatformSpecifier = (): string => { const getPlatformSpecifier = (): string => {
switch (getRenderHostInstance().serverConfig.environmentInfo.os.platform) { switch (getRenderHostInstance().serverConfig.environmentInfo.os.platform) {
@@ -52,7 +51,7 @@ const parseResponse = (resp: any): VersionCheckResult => {
export async function checkForUpdate( export async function checkForUpdate(
currentVersion: string, currentVersion: string,
): Promise<VersionCheckResult> { ): Promise<VersionCheckResult> {
return fetch(`${updateServer}?version=${currentVersion}`).then( return fetch(`${config.updateServer}?version=${currentVersion}`).then(
(res: Response) => { (res: Response) => {
switch (res.status) { switch (res.status) {
case 204: case 204:

View File

@@ -1,8 +1,8 @@
diff --git a/node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js b/node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js diff --git a/node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js b/node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js
index 9a906b4..57f9d9d 100644 index af9ac5a..195c3ff 100644
--- a/node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js --- a/node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js
+++ b/node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js +++ b/node_modules/@emotion/cache/dist/emotion-cache.cjs.dev.js
@@ -158,9 +158,10 @@ var createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm(cache) { @@ -159,9 +159,10 @@ var createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm(cache) {
return; return;
} }
@@ -17,10 +17,10 @@ index 9a906b4..57f9d9d 100644
}; };
}; };
diff --git a/node_modules/@emotion/cache/dist/emotion-cache.esm.js b/node_modules/@emotion/cache/dist/emotion-cache.esm.js diff --git a/node_modules/@emotion/cache/dist/emotion-cache.esm.js b/node_modules/@emotion/cache/dist/emotion-cache.esm.js
index 5e5fa89..781c69a 100644 index fd65cd3..40899c2 100644
--- a/node_modules/@emotion/cache/dist/emotion-cache.esm.js --- a/node_modules/@emotion/cache/dist/emotion-cache.esm.js
+++ b/node_modules/@emotion/cache/dist/emotion-cache.esm.js +++ b/node_modules/@emotion/cache/dist/emotion-cache.esm.js
@@ -149,9 +149,10 @@ var createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm(cache) { @@ -150,9 +150,10 @@ var createUnsafeSelectorsAlarm = function createUnsafeSelectorsAlarm(cache) {
return; return;
} }