Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nativescript-dna-deviceinfo

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nativescript-dna-deviceinfo - npm Package Compare versions

Comparing version 2.4.1 to 2.4.2

16

deviceinfo.android.js

@@ -151,10 +151,12 @@ "use strict";

var cellularProviders = sm.getActiveSubscriptionInfoList();
for (var i = 0; i < cellularProviders.size(); i++) {
var carrier = DeviceInfo_1.prepareCarrier(cellularProviders.get(i));
if (carrier.mobileCountryCode === DeviceInfo_1.activeProviderMcc() &&
carrier.mobileNetworkCode === DeviceInfo_1.activeProviderMnc()) {
carrier.networkType = DeviceInfo_1.activeProviderRadioAccessTechnology();
carrier.generation = deviceinfo_interface_1.wirelessCellularGenerator(carrier.networkType);
if (cellularProviders) {
for (var i = 0; i < cellularProviders.size(); i++) {
var carrier = DeviceInfo_1.prepareCarrier(cellularProviders.get(i));
if (carrier.mobileCountryCode === DeviceInfo_1.activeProviderMcc() &&
carrier.mobileNetworkCode === DeviceInfo_1.activeProviderMnc()) {
carrier.networkType = DeviceInfo_1.activeProviderRadioAccessTechnology();
carrier.generation = deviceinfo_interface_1.wirelessCellularGenerator(carrier.networkType);
}
carriers.push(carrier);
}
carriers.push(carrier);
}

@@ -161,0 +163,0 @@ }

{
"name": "nativescript-dna-deviceinfo",
"version": "2.4.1",
"version": "2.4.2",
"description": "NativeScript plugin to acquire device information.",

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

@@ -171,3 +171,3 @@

Returns a list of GSM network providers, *Carrier*, of a device is equipped with.
Returns a list of GSM network providers, *Carrier*, in use by device. In absence of adequate permission, returns empty *Carrier* list.

@@ -237,3 +237,3 @@ ```javascript

Returns service set identifier(SSID) of a wireless local area network (WLAN). In the absence of right permissions, returns an empty string.
Returns service set identifier(SSID) of a wireless local area network (WLAN). In absence of right permissions, returns an empty string.

@@ -338,3 +338,3 @@ ```javascript

Returns Promise which resolves to 'true' if Location Service is enabled and the app has permission to access it, otherwise false.
Depending on the state of Location Service and the app permission, returned Promise may resolve to 'true' or 'false'. In the absence of appropriate permission, rejected Promise is returned.

@@ -359,3 +359,3 @@ ```javascript

Returns Promise which resolves to 'true' if Bluetooth is enabled, otherwise false.
Depending on the state of Bluetooth and the app permission, returned Promise may resolve to 'true' or 'false'. In the absence of appropriate permission, rejected Promise is returned.

@@ -382,3 +382,3 @@ ```javascript

```javascript
printDeviceInfo() {
async printDeviceInfo() {
console.log("Free memory: ", formatBytes(DeviceInfo.freeMemory()));

@@ -448,2 +448,3 @@ console.log("Total memory: ", formatBytes(DeviceInfo.totalMemory()));

- 2.4.1: Updated documentation.
- 2.4.2: Handled crash in the API *cellularServiceProviders* for the Android platform.

@@ -450,0 +451,0 @@ ## License

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