@ionic-native/geolocation
Advanced tools
Comparing version 3.0.0 to 3.1.0-alpha.1
@@ -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>; | ||
} |
15
index.js
@@ -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'))\"" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Install scripts
Supply chain riskInstall scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5
250
12450
4
2
1
1
+ Added@angular/core@2.2.1(transitive)
+ Added@ionic-native/core@3.1.0-alpha.1(transitive)
+ Addedzone.js@0.6.26(transitive)
- Removed@ionic-native/core@3.0.0
- Removed@ionic-native/core@3.0.0(transitive)