New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-native-device-info

Package Overview
Dependencies
Maintainers
5
Versions
257
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-device-info - npm Package Compare versions

Comparing version 3.0.0-rc.2 to 3.0.0-rc.3

5

CHANGELOG.md
<!-- markdownlint-disable MD024 MD034 MD033 -->
# Release Notes
## 3.0.0-rc.3
* fix: TypeScript getPowerState() return type was Object instaed of PowerState interface
* fix: TypeScript definition file was missing getPhoneNumberSync()
## 3.0.0-rc.2

@@ -5,0 +10,0 @@

5

deviceinfo.d.ts

@@ -110,2 +110,3 @@ // should be imported this way:

getPhoneNumber: () => Promise<string>;
getPhoneNumberSync: () => string;
getCarrier: () => Promise<string>,

@@ -123,4 +124,4 @@ getCarrierSync: () => string,

getBatteryLevelSync: () => number,
getPowerState: () => Promise<Object>,
getPowerStateSync: () => Object,
getPowerState: () => Promise<PowerState>,
getPowerStateSync: () => PowerState,
isBatteryCharging:() => Promise<boolean>,

@@ -127,0 +128,0 @@ isBatteryChargingSync: () => boolean,

2

package.json
{
"name": "react-native-device-info",
"version": "3.0.0-rc.2",
"version": "3.0.0-rc.3",
"description": "Get device information using react-native",

@@ -5,0 +5,0 @@ "main": "deviceinfo.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc