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

expo-location

Package Overview
Dependencies
Maintainers
9
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expo-location - npm Package Compare versions

Comparing version 5.0.0-rc.0 to 5.0.0

13

build/Location.d.ts

@@ -5,2 +5,3 @@ import { EventEmitter } from '@unimodules/core';

locationServicesEnabled: boolean;
backgroundModeEnabled: boolean;
gpsAvailable?: boolean;

@@ -56,2 +57,4 @@ networkAvailable?: boolean;

deferredUpdatesInterval?: number;
activityType?: LocationActivityType;
pausesUpdatesAutomatically?: boolean;
foregroundService?: {

@@ -81,3 +84,10 @@ notificationTitle: string;

}
export { LocationAccuracy as Accuracy };
declare enum LocationActivityType {
Other = 1,
AutomotiveNavigation = 2,
Fitness = 3,
OtherNavigation = 4,
Airborne = 5
}
export { LocationAccuracy as Accuracy, LocationActivityType as ActivityType, };
export declare enum GeofencingEventType {

@@ -111,2 +121,3 @@ Enter = 1,

export declare function hasServicesEnabledAsync(): Promise<boolean>;
export declare function isBackgroundLocationAvailableAsync(): Promise<boolean>;
export declare function startLocationUpdatesAsync(taskName: string, options?: LocationTaskOptions): Promise<void>;

@@ -113,0 +124,0 @@ export declare function stopLocationUpdatesAsync(taskName: string): Promise<void>;

@@ -15,3 +15,11 @@ import { EventEmitter, Platform } from '@unimodules/core';

})(LocationAccuracy || (LocationAccuracy = {}));
export { LocationAccuracy as Accuracy };
var LocationActivityType;
(function (LocationActivityType) {
LocationActivityType[LocationActivityType["Other"] = 1] = "Other";
LocationActivityType[LocationActivityType["AutomotiveNavigation"] = 2] = "AutomotiveNavigation";
LocationActivityType[LocationActivityType["Fitness"] = 3] = "Fitness";
LocationActivityType[LocationActivityType["OtherNavigation"] = 4] = "OtherNavigation";
LocationActivityType[LocationActivityType["Airborne"] = 5] = "Airborne";
})(LocationActivityType || (LocationActivityType = {}));
export { LocationAccuracy as Accuracy, LocationActivityType as ActivityType, };
export var GeofencingEventType;

@@ -300,2 +308,6 @@ (function (GeofencingEventType) {

}
export async function isBackgroundLocationAvailableAsync() {
const providerStatus = await getProviderStatusAsync();
return providerStatus.backgroundModeEnabled;
}
export async function startLocationUpdatesAsync(taskName, options = { accuracy: LocationAccuracy.Balanced }) {

@@ -302,0 +314,0 @@ _validateTaskName(taskName);

4

package.json
{
"name": "expo-location",
"version": "5.0.0-rc.0",
"version": "5.0.0",
"description": "Allows reading geolocation information from the device. Your app can poll for the current location or subscribe to location update events.",

@@ -51,3 +51,3 @@ "main": "build/Location.js",

},
"gitHead": "211a7a3ce4007e7aa10ccf6efac4b5333ec31d0a"
"gitHead": "9119d190fbbf9f6a7a9c116e068d240e60e441fc"
}

@@ -10,2 +10,3 @@ import { EventEmitter, Platform } from '@unimodules/core';

locationServicesEnabled: boolean;
backgroundModeEnabled: boolean;
gpsAvailable?: boolean;

@@ -67,2 +68,7 @@ networkAvailable?: boolean;

deferredUpdatesInterval?: number;
// iOS only
activityType?: LocationActivityType;
pausesUpdatesAutomatically?: boolean;
foregroundService?: {

@@ -98,4 +104,16 @@ notificationTitle: string;

}
export { LocationAccuracy as Accuracy };
enum LocationActivityType {
Other = 1,
AutomotiveNavigation = 2,
Fitness = 3,
OtherNavigation = 4,
Airborne = 5,
}
export {
LocationAccuracy as Accuracy,
LocationActivityType as ActivityType,
};
export enum GeofencingEventType {

@@ -456,2 +474,7 @@ Enter = 1,

export async function isBackgroundLocationAvailableAsync(): Promise<boolean> {
const providerStatus = await getProviderStatusAsync();
return providerStatus.backgroundModeEnabled;
}
export async function startLocationUpdatesAsync(

@@ -458,0 +481,0 @@ taskName: string,

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