From 04ac3f3384bea094684695eba37997f42d51a2d2 Mon Sep 17 00:00:00 2001 From: sunnylqm Date: Thu, 3 Oct 2024 21:42:22 +0800 Subject: [PATCH] lint --- package.json | 2 +- src/client.ts | 1 + src/provider.tsx | 6 +----- src/type.ts | 2 +- 4 files changed, 4 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 499ea2e..42c6fee 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-update", - "version": "10.14.0", + "version": "10.15.0", "description": "react-native hot update", "main": "src/index", "scripts": { diff --git a/src/client.ts b/src/client.ts index 2c169e7..d0245d0 100644 --- a/src/client.ts +++ b/src/client.ts @@ -187,6 +187,7 @@ export class Pushy { ...extra, }; if (__DEV__) { + // @ts-ignore delete fetchBody.buildTime; } const body = JSON.stringify(fetchBody); diff --git a/src/provider.tsx b/src/provider.tsx index 6432354..c856eed 100644 --- a/src/provider.tsx +++ b/src/provider.tsx @@ -13,11 +13,7 @@ import { Linking, } from 'react-native'; import { Pushy } from './client'; -import { - currentVersion, - packageVersion, - getCurrentVersionInfo, -} from './core'; +import { currentVersion, packageVersion, getCurrentVersionInfo } from './core'; import { CheckResult, ProgressData, PushyTestPayload } from './type'; import { PushyContext } from './context'; import { URL } from 'react-native-url-polyfill'; diff --git a/src/type.ts b/src/type.ts index 39b761f..466cddc 100644 --- a/src/type.ts +++ b/src/type.ts @@ -49,7 +49,7 @@ export interface EventData { uuid: string; }; packageVersion: string; - buildTime: number; + buildTime: string; message?: string; rolledBackVersion?: string; newVersion?: string;