@ionic-native/geolocation
Advanced tools
Comparing version 5.0.0-alpha.0 to 5.0.0-alpha.1
48
index.js
@@ -0,5 +1,19 @@ | ||
var __extends = (this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
import { IonicNativePlugin, cordova, injectable } from '@ionic-native/core'; | ||
import { Observable } from 'rxjs/Observable'; | ||
export class Geolocation extends IonicNativePlugin { | ||
getCurrentPosition(options) { return cordova(this, "getCurrentPosition", { "callbackOrder": "reverse" }, arguments); } | ||
var Geolocation = (function (_super) { | ||
__extends(Geolocation, _super); | ||
function Geolocation() { | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
Geolocation.prototype.getCurrentPosition = function (options) { return cordova(this, "getCurrentPosition", { "callbackOrder": "reverse" }, arguments); }; | ||
/** | ||
@@ -23,16 +37,18 @@ * Watch the current device's position. Clear the watch by unsubscribing from | ||
*/ | ||
watchPosition(options) { | ||
return new Observable((observer) => { | ||
let watchId = navigator.geolocation.watchPosition(observer.next.bind(observer), observer.next.bind(observer), options); | ||
return () => navigator.geolocation.clearWatch(watchId); | ||
Geolocation.prototype.watchPosition = function (options) { | ||
return new Observable(function (observer) { | ||
var watchId = navigator.geolocation.watchPosition(observer.next.bind(observer), observer.next.bind(observer), options); | ||
return function () { return navigator.geolocation.clearWatch(watchId); }; | ||
}); | ||
} | ||
} | ||
Geolocation.pluginName = "Geolocation"; | ||
Geolocation.plugin = "cordova-plugin-geolocation"; | ||
Geolocation.pluginRef = "navigator.geolocation"; | ||
Geolocation.repo = "https://github.com/apache/cordova-plugin-geolocation"; | ||
Geolocation.install = "ionic cordova plugin add cordova-plugin-geolocation --variable GEOLOCATION_USAGE_DESCRIPTION=\"To locate you\""; | ||
Geolocation.installVariables = ["GEOLOCATION_USAGE_DESCRIPTION"]; | ||
Geolocation.platforms = ["Amazon Fire OS", "Android", "BlackBerry 10", "Browser", "Firefox OS", "iOS", "Ubuntu", "Windows", "Windows Phone"]; | ||
//# sourceMappingURL=index.js.map | ||
}; | ||
Geolocation.pluginName = "Geolocation"; | ||
Geolocation.plugin = "cordova-plugin-geolocation"; | ||
Geolocation.pluginRef = "navigator.geolocation"; | ||
Geolocation.repo = "https://github.com/apache/cordova-plugin-geolocation"; | ||
Geolocation.install = "ionic cordova plugin add cordova-plugin-geolocation --variable GEOLOCATION_USAGE_DESCRIPTION=\"To locate you\""; | ||
Geolocation.installVariables = ["GEOLOCATION_USAGE_DESCRIPTION"]; | ||
Geolocation.platforms = ["Amazon Fire OS", "Android", "BlackBerry 10", "Browser", "Firefox OS", "iOS", "Ubuntu", "Windows", "Windows Phone"]; | ||
return Geolocation; | ||
}(IonicNativePlugin)); | ||
export { Geolocation }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvcGx1Z2lucy9nZW9sb2NhdGlvbi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQ0EsT0FBTywwQ0FBc0MsTUFBTSxvQkFBb0IsQ0FBQztBQUN4RSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0saUJBQWlCLENBQUM7O0lBOEpaLCtCQUFpQjs7OztJQVdoRCx3Q0FBa0IsYUFBQyxPQUE0QjtJQUUvQzs7Ozs7Ozs7Ozs7Ozs7Ozs7T0FpQkc7SUFDSCxtQ0FBYSxHQUFiLFVBQWMsT0FBNEI7UUFDeEMsTUFBTSxDQUFDLElBQUksVUFBVSxDQUNuQixVQUFDLFFBQWE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(this && this.__extends) || (function () { | ||
var extendStatics = Object.setPrototypeOf || | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; | ||
return function (d, b) { | ||
extendStatics(d, b); | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
})(); | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
@@ -8,8 +17,11 @@ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var core_1 = require("@angular/core"); | ||
var core_2 = require("@ionic-native/core"); | ||
var Observable_1 = require("rxjs/Observable"); | ||
let Geolocation = class Geolocation extends core_2.IonicNativePlugin { | ||
getCurrentPosition(options) { return cordova(this, "getCurrentPosition", { "callbackOrder": "reverse" }, arguments); } | ||
import { Injectable } from '@angular/core'; | ||
import { IonicNativePlugin, cordova, injectable } from '@ionic-native/core'; | ||
import { Observable } from 'rxjs/Observable'; | ||
var Geolocation = (function (_super) { | ||
__extends(Geolocation, _super); | ||
function Geolocation() { | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
Geolocation.prototype.getCurrentPosition = function (options) { return cordova(this, "getCurrentPosition", { "callbackOrder": "reverse" }, arguments); }; | ||
/** | ||
@@ -33,20 +45,21 @@ * Watch the current device's position. Clear the watch by unsubscribing from | ||
*/ | ||
watchPosition(options) { | ||
return new Observable_1.Observable((observer) => { | ||
let watchId = navigator.geolocation.watchPosition(observer.next.bind(observer), observer.next.bind(observer), options); | ||
return () => navigator.geolocation.clearWatch(watchId); | ||
Geolocation.prototype.watchPosition = function (options) { | ||
return new Observable(function (observer) { | ||
var watchId = navigator.geolocation.watchPosition(observer.next.bind(observer), observer.next.bind(observer), options); | ||
return function () { return navigator.geolocation.clearWatch(watchId); }; | ||
}); | ||
} | ||
}; | ||
Geolocation.pluginName = "Geolocation"; | ||
Geolocation.plugin = "cordova-plugin-geolocation"; | ||
Geolocation.pluginRef = "navigator.geolocation"; | ||
Geolocation.repo = "https://github.com/apache/cordova-plugin-geolocation"; | ||
Geolocation.install = "ionic cordova plugin add cordova-plugin-geolocation --variable GEOLOCATION_USAGE_DESCRIPTION=\"To locate you\""; | ||
Geolocation.installVariables = ["GEOLOCATION_USAGE_DESCRIPTION"]; | ||
Geolocation.platforms = ["Amazon Fire OS", "Android", "BlackBerry 10", "Browser", "Firefox OS", "iOS", "Ubuntu", "Windows", "Windows Phone"]; | ||
Geolocation = __decorate([ | ||
core_1.Injectable() | ||
], Geolocation); | ||
exports.Geolocation = Geolocation; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvcGx1Z2lucy9nZW9sb2NhdGlvbi9uZ3gvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7QUFBQSxzQ0FBMkM7QUFDM0MsMkNBQXdFO0FBQ3hFLDhDQUE2QztJQThKaEMsV0FBVyxvQkFBQyxTQUFRLHdCQUFpQjtJQVdoRCxrQkFBa0IsQ0FBQyxPQUE0QjtJQUUvQzs7Ozs7Ozs7Ozs7Ozs7Ozs7T0FpQkc7SUFDSCxhQUFhLENBQUMsT0FBNEI7UUFDeEMsTUFBTSxDQUFDLElBQUksdUJBQVUsQ0FDbkIsQ0FBQyxRQUFhO1lBQ1osSUFBSSxPQUFPLEdBQUcsU0FBUyxDQUFDLFdBQVcsQ0FBQyxhQUFhLENBQUMsUUFBUSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsUUFBUSxDQUFDLEVBQUUsUUFBUSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsUUFBUSxDQUFDLEVBQU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b3B0aW9ucyAgVGhlIFtnZW9sb2NhdGlvbiBvcHRpb25zXShodHRwczovL2RldmVsb3Blci5tb3ppbGxhLm9yZy9lbi1VUy9kb2NzL1dlYi9BUEkvUG9zaXRpb25PcHRpb25zKS5cbiAgICogQHJldHVybnMge09ic2VydmFibGU8R2VvcG9zaXRpb24+fSBSZXR1cm5zIGFuIE9ic2VydmFibGUgdGhhdCBub3RpZmllcyB3aXRoIHRoZSBbcG9zaXRpb25dKGh0dHBzOi8vZGV2ZWxvcGVyLm1vemlsbGEub3JnL2VuLVVTL2RvY3MvV2ViL0FQSS9Qb3NpdGlvbikgb2YgdGhlIGRldmljZSwgb3IgZXJyb3JzLlxuICAgKi9cbiAgd2F0Y2hQb3NpdGlvbihvcHRpb25zPzogR2VvbG9jYXRpb25PcHRpb25zKTogT2JzZXJ2YWJsZTxHZW9wb3NpdGlvbj4ge1xuICAgIHJldHVybiBuZXcgT2JzZXJ2YWJsZTxHZW9wb3NpdGlvbj4oXG4gICAgICAob2JzZXJ2ZXI6IGFueSkgPT4ge1xuICAgICAgICBsZXQgd2F0Y2hJZCA9IG5hdmlnYXRvci5nZW9sb2NhdGlvbi53YXRjaFBvc2l0aW9uKG9ic2VydmVyLm5leHQuYmluZChvYnNlcnZlciksIG9ic2VydmVyLm5leHQuYmluZChvYnNlcnZlciksIG9wdGlvbnMpO1xuICAgICAgICByZXR1cm4gKCkgPT4gbmF2aWdhdG9yLmdlb2xvY2F0aW9uLmNsZWFyV2F0Y2god2F0Y2hJZCk7XG4gICAgICB9XG4gICAgKTtcbiAgfVxuXG59XG4iXX0= | ||
}; | ||
Geolocation.pluginName = "Geolocation"; | ||
Geolocation.plugin = "cordova-plugin-geolocation"; | ||
Geolocation.pluginRef = "navigator.geolocation"; | ||
Geolocation.repo = "https://github.com/apache/cordova-plugin-geolocation"; | ||
Geolocation.install = "ionic cordova plugin add cordova-plugin-geolocation --variable GEOLOCATION_USAGE_DESCRIPTION=\"To locate you\""; | ||
Geolocation.installVariables = ["GEOLOCATION_USAGE_DESCRIPTION"]; | ||
Geolocation.platforms = ["Amazon Fire OS", "Android", "BlackBerry 10", "Browser", "Firefox OS", "iOS", "Ubuntu", "Windows", "Windows Phone"]; | ||
Geolocation = __decorate([ | ||
Injectable() | ||
], Geolocation); | ||
return Geolocation; | ||
}(IonicNativePlugin)); | ||
export { Geolocation }; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvcGx1Z2lucy9nZW9sb2NhdGlvbi9uZ3gvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDM0MsT0FBTywwQ0FBc0MsTUFBTSxvQkFBb0IsQ0FBQztBQUN4RSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0saUJBQWlCLENBQUM7O0lBOEpaLCtCQUFpQjs7OztJQVdoRCx3Q0FBa0IsYUFBQyxPQUE0QjtJQUUvQzs7Ozs7Ozs7Ozs7Ozs7Ozs7T0FpQkc7SUFDSCxtQ0FBYSxHQUFiLFVBQWMsT0FBNEI7UUFDeEMsTUFBTSxDQUFDLElBQUksVUFBVSxDQUNuQixVQUFDLFFBQWE7WUFDWixJQUFJLE9BQU8sR0FBRyxTQUFTLENBQUMsV0FBVyxDQUFDLGFBQWEsQ0FBQyxRQUFRLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxRQUFRLENBQUMsRUFBRSxRQUFRLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxRQUFRLENBQUMsRUFBRSxPQUFPLENBQUMsQ0FBQztZQUN2SCxNQUFNLENBQUMsY0FBTSxPQUFBLFNBQVMsQ0FBQyxXQUFXLENBQUMsVUFBVSxDQUFDLE9B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odHRwczovL2RldmVsb3Blci5tb3ppbGxhLm9yZy9lbi1VUy9kb2NzL1dlYi9BUEkvUG9zaXRpb25PcHRpb25zKS5cbiAgICogQHJldHVybnMge09ic2VydmFibGU8R2VvcG9zaXRpb24+fSBSZXR1cm5zIGFuIE9ic2VydmFibGUgdGhhdCBub3RpZmllcyB3aXRoIHRoZSBbcG9zaXRpb25dKGh0dHBzOi8vZGV2ZWxvcGVyLm1vemlsbGEub3JnL2VuLVVTL2RvY3MvV2ViL0FQSS9Qb3NpdGlvbikgb2YgdGhlIGRldmljZSwgb3IgZXJyb3JzLlxuICAgKi9cbiAgd2F0Y2hQb3NpdGlvbihvcHRpb25zPzogR2VvbG9jYXRpb25PcHRpb25zKTogT2JzZXJ2YWJsZTxHZW9wb3NpdGlvbj4ge1xuICAgIHJldHVybiBuZXcgT2JzZXJ2YWJsZTxHZW9wb3NpdGlvbj4oXG4gICAgICAob2JzZXJ2ZXI6IGFueSkgPT4ge1xuICAgICAgICBsZXQgd2F0Y2hJZCA9IG5hdmlnYXRvci5nZW9sb2NhdGlvbi53YXRjaFBvc2l0aW9uKG9ic2VydmVyLm5leHQuYmluZChvYnNlcnZlciksIG9ic2VydmVyLm5leHQuYmluZChvYnNlcnZlciksIG9wdGlvbnMpO1xuICAgICAgICByZXR1cm4gKCkgPT4gbmF2aWdhdG9yLmdlb2xvY2F0aW9uLmNsZWFyV2F0Y2god2F0Y2hJZCk7XG4gICAgICB9XG4gICAgKTtcbiAgfVxuXG59XG4iXX0= |
@@ -1,1 +0,1 @@ | ||
{"description":"Ionic Native - Native plugins for ionic apps","module":"index.js","typings":"index.d.ts","author":"ionic","license":"MIT","repository":{"type":"git","url":"https://github.com/ionic-team/ionic-native.git"},"name":"@ionic-native/geolocation","peerDependencies":{"rxjs":"^5.0.1","@ionic-native/core":"5.0.0-alpha.0"},"version":"5.0.0-alpha.0"} | ||
{"description":"Ionic Native - Native plugins for ionic apps","module":"index.js","typings":"index.d.ts","author":"ionic","license":"MIT","repository":{"type":"git","url":"https://github.com/ionic-team/ionic-native.git"},"name":"@ionic-native/geolocation","peerDependencies":{"rxjs":"^5.0.1","@ionic-native/core":"5.0.0-alpha.1"},"version":"5.0.0-alpha.1"} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
40873
424
1