Socket
Socket
Sign inDemoInstall

expo-application

Package Overview
Dependencies
Maintainers
24
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expo-application - npm Package Compare versions

Comparing version 2.4.0 to 2.4.1

2

build/Application.d.ts

@@ -7,3 +7,3 @@ export declare const nativeApplicationVersion: string | null;

export declare function getInstallReferrerAsync(): Promise<string>;
export declare function getIosIdForVendorAsync(): Promise<string>;
export declare function getIosIdForVendorAsync(): Promise<string | null>;
export declare enum ApplicationReleaseType {

@@ -10,0 +10,0 @@ UNKNOWN = 0,

@@ -26,3 +26,3 @@ import { UnavailabilityError } from '@unimodules/core';

}
return await ExpoApplication.getIosIdForVendorAsync();
return (await ExpoApplication.getIosIdForVendorAsync()) ?? null;
}

@@ -29,0 +29,0 @@ export var ApplicationReleaseType;

@@ -11,2 +11,8 @@ # Changelog

## 2.4.1 — 2020-11-25
### 🐛 Bug fixes
- Fixed return type of `getIosIdForVendorAsync` to include possible `null` value which can be returned if the device hasn't been unlocked yet (for more information consult the [Apple documentation for `identifierForVendor`](https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor?language=objc)). ([#10997](https://github.com/expo/expo/pull/10997) by [@sjchmiela](https://github.com/sjchmiela))
## 2.4.0 — 2020-11-17

@@ -13,0 +19,0 @@

{
"name": "expo-application",
"version": "2.4.0",
"version": "2.4.1",
"description": "A universal module that gets native application information such as its ID, app name, and build version at runtime",

@@ -38,3 +38,3 @@ "main": "build/Application.js",

},
"gitHead": "bc6b4b3bc3cb5e44e477f145c72c07ed09588651"
"gitHead": "88260c85792ac0d8e382de5d2e104cdd13158792"
}

@@ -26,7 +26,7 @@ import { UnavailabilityError } from '@unimodules/core';

export async function getIosIdForVendorAsync(): Promise<string> {
export async function getIosIdForVendorAsync(): Promise<string | null> {
if (!ExpoApplication.getIosIdForVendorAsync) {
throw new UnavailabilityError('expo-application', 'getIosIdForVendorAsync');
}
return await ExpoApplication.getIosIdForVendorAsync();
return (await ExpoApplication.getIosIdForVendorAsync()) ?? null;
}

@@ -33,0 +33,0 @@

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