1
0
mirror of https://gitcode.com/gh_mirrors/re/react-native-pushy.git synced 2025-09-16 12:11:39 +08:00
Code Issues Packages Projects Releases Wiki Activity GitHub Gitee
This commit is contained in:
sunnylqm
2024-10-03 21:42:22 +08:00
parent 94431ee6f7
commit 04ac3f3384
4 changed files with 4 additions and 7 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "react-native-update", "name": "react-native-update",
"version": "10.14.0", "version": "10.15.0",
"description": "react-native hot update", "description": "react-native hot update",
"main": "src/index", "main": "src/index",
"scripts": { "scripts": {

View File

@@ -187,6 +187,7 @@ export class Pushy {
...extra, ...extra,
}; };
if (__DEV__) { if (__DEV__) {
// @ts-ignore
delete fetchBody.buildTime; delete fetchBody.buildTime;
} }
const body = JSON.stringify(fetchBody); const body = JSON.stringify(fetchBody);

View File

@@ -13,11 +13,7 @@ import {
Linking, Linking,
} from 'react-native'; } from 'react-native';
import { Pushy } from './client'; import { Pushy } from './client';
import { import { currentVersion, packageVersion, getCurrentVersionInfo } from './core';
currentVersion,
packageVersion,
getCurrentVersionInfo,
} from './core';
import { CheckResult, ProgressData, PushyTestPayload } from './type'; import { CheckResult, ProgressData, PushyTestPayload } from './type';
import { PushyContext } from './context'; import { PushyContext } from './context';
import { URL } from 'react-native-url-polyfill'; import { URL } from 'react-native-url-polyfill';

View File

@@ -49,7 +49,7 @@ export interface EventData {
uuid: string; uuid: string;
}; };
packageVersion: string; packageVersion: string;
buildTime: number; buildTime: string;
message?: string; message?: string;
rolledBackVersion?: string; rolledBackVersion?: string;
newVersion?: string; newVersion?: string;