Socket
Socket
Sign inDemoInstall

@ionic-native/geolocation

Package Overview
Dependencies
Maintainers
2
Versions
166
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ionic-native/geolocation - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0-alpha.1

index.metadata.json

6

index.d.ts

@@ -98,3 +98,3 @@ import { Observable } from 'rxjs/Observable';

* ```typescript
* import { Geolocation } from 'ionic-native';
* import { Geolocation } from '@ionic-native/geolocation';
*

@@ -129,3 +129,3 @@ *

*/
static getCurrentPosition(options?: GeolocationOptions): Promise<Geoposition>;
getCurrentPosition(options?: GeolocationOptions): Promise<Geoposition>;
/**

@@ -149,3 +149,3 @@ * Watch the current device's position. Clear the watch by unsubscribing from

*/
static watchPosition(options?: GeolocationOptions): Observable<Geoposition>;
watchPosition(options?: GeolocationOptions): Observable<Geoposition>;
}

@@ -7,2 +7,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {

};
import { Injectable } from '@angular/core';
import { Cordova, Plugin } from '@ionic-native/core';

@@ -20,3 +21,3 @@ import { Observable } from 'rxjs/Observable';

* ```typescript
* import { Geolocation } from 'ionic-native';
* import { Geolocation } from '@ionic-native/geolocation';
*

@@ -53,3 +54,3 @@ *

*/
Geolocation.getCurrentPosition = function (options) { return; };
Geolocation.prototype.getCurrentPosition = function (options) { return; };
/**

@@ -73,3 +74,3 @@ * Watch the current device's position. Clear the watch by unsubscribing from

*/
Geolocation.watchPosition = function (options) {
Geolocation.prototype.watchPosition = function (options) {
return new Observable(function (observer) {

@@ -80,2 +81,7 @@ var watchId = navigator.geolocation.watchPosition(observer.next.bind(observer), observer.next.bind(observer), options);

};
Geolocation.decorators = [
{ type: Injectable },
];
/** @nocollapse */
Geolocation.ctorParameters = function () { return []; };
__decorate([

@@ -85,3 +91,3 @@ Cordova({

})
], Geolocation, "getCurrentPosition", null);
], Geolocation.prototype, "getCurrentPosition", null);
Geolocation = __decorate([

@@ -97,2 +103,1 @@ Plugin({

}());
//# sourceMappingURL=index.js.map
{
"name": "@ionic-native/geolocation",
"version": "3.0.0",
"version": "3.1.0-alpha.1",
"description": "Ionic Native - Native plugins for ionic apps",

@@ -9,6 +9,6 @@ "module": "index.js",

"license": "MIT",
"dependencies": {
"@ionic-native/core": "3.0.0"
},
"peerDependencies": {
"@angular/core": "2.2.1",
"@ionic-native/core": "3.1.0-alpha.1",
"@ionic-native/utils": "3.1.0-alpha.1",
"rxjs": "5.0.0-beta.12"

@@ -19,3 +19,6 @@ },

"url": "https://github.com/driftyco/ionic-native.git"
},
"scripts": {
"postinstall": "node -e \"require('@ionic-native/utils').install(require('./plugin-config.json'))\""
}
}
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