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

expo-device

Package Overview
Dependencies
Maintainers
27
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expo-device - npm Package Compare versions

Comparing version 3.3.0 to 4.0.0

android/src/main/java/expo/modules/device/DeviceModule.kt

2

build/Device.js

@@ -1,2 +0,2 @@

import { Platform, UnavailabilityError } from '@unimodules/core';
import { Platform, UnavailabilityError } from 'expo-modules-core';
import { DeviceType } from './Device.types';

@@ -3,0 +3,0 @@ import ExpoDevice from './ExpoDevice';

@@ -1,2 +0,2 @@

declare const _default: import("@unimodules/core").ProxyNativeModule;
declare const _default: import("expo-modules-core").ProxyNativeModule;
export default _default;

@@ -1,3 +0,3 @@

import { NativeModulesProxy } from '@unimodules/core';
import { NativeModulesProxy } from 'expo-modules-core';
export default NativeModulesProxy.ExpoDevice;
//# sourceMappingURL=ExpoDevice.js.map

@@ -1,2 +0,2 @@

import { Platform } from '@unimodules/core';
import { Platform } from 'expo-modules-core';
import UAParser from 'ua-parser-js';

@@ -3,0 +3,0 @@ import { DeviceType } from './Device.types';

@@ -139,4 +139,4 @@ export function getIosModelName(modelId) {

'AppleTV5,3': 'Apple TV',
'AppleTV6,2': 'Apple TV 4K',
'AppleTV6,2': 'Apple TV 4K', // Apple TV 4K
};
//# sourceMappingURL=ModelNames.js.map

@@ -13,2 +13,17 @@ # Changelog

## 4.0.0 — 2021-09-28
### 🛠 Breaking changes
- Dropped support for iOS 11.0 ([#14383](https://github.com/expo/expo/pull/14383) by [@cruzach](https://github.com/cruzach))
### 🐛 Bug fixes
- Fix building errors from use_frameworks! in Podfile. ([#14523](https://github.com/expo/expo/pull/14523) by [@kudo](https://github.com/kudo))
### 💡 Others
- Rewrite android code to Kotlin ([#13955](https://github.com/expo/expo/pull/13955) by [@kkafar](https://github.com/kkafar))
- Migrated from `@unimodules/core` to `expo-modules-core`. ([#13757](https://github.com/expo/expo/pull/13757) by [@tsapeta](https://github.com/tsapeta))
## 3.3.0 — 2021-06-16

@@ -15,0 +30,0 @@

{
"name": "expo-device",
"version": "3.3.0",
"version": "4.0.0",
"description": "A universal module that gets physical information about the device running the application",

@@ -34,7 +34,5 @@ "main": "build/Device.js",

"license": "MIT",
"homepage": "https://docs.expo.io/versions/latest/sdk/device/",
"unimodulePeerDependencies": {
"@unimodules/core": "*"
},
"homepage": "https://docs.expo.dev/versions/latest/sdk/device/",
"dependencies": {
"expo-modules-core": "~0.4.0",
"ua-parser-js": "^0.7.19"

@@ -45,3 +43,3 @@ },

},
"gitHead": "c80d4c938920c5111e34c2dbca3a6bf500dff0e1"
"gitHead": "1fffde73411ee7a642b98f1506a8de921805d52b"
}

@@ -1,2 +0,2 @@

import { Platform, UnavailabilityError } from '@unimodules/core';
import { Platform, UnavailabilityError } from 'expo-modules-core';

@@ -3,0 +3,0 @@ import { DeviceType } from './Device.types';

@@ -1,2 +0,2 @@

import { NativeModulesProxy } from '@unimodules/core';
import { NativeModulesProxy } from 'expo-modules-core';
export default NativeModulesProxy.ExpoDevice;

@@ -1,2 +0,2 @@

import { Platform } from '@unimodules/core';
import { Platform } from 'expo-modules-core';
import UAParser from 'ua-parser-js';

@@ -6,2 +6,4 @@

type NavigatorWithDeviceMemory = Navigator & { deviceMemory: number };
let result: any = null;

@@ -35,3 +37,3 @@ if (Platform.isDOMAvailable) {

if (Platform.isDOMAvailable && 'deviceMemory' in navigator) {
const { deviceMemory } = navigator;
const { deviceMemory } = navigator as NavigatorWithDeviceMemory;
return convertGiBtoBytes(deviceMemory);

@@ -38,0 +40,0 @@ }

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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