@ionic-native/network
Advanced tools
Comparing version 3.1.0-rc.3 to 3.1.0-rc.4
@@ -11,4 +11,8 @@ import { Observable } from 'rxjs/Observable'; | ||
* | ||
* constructor(private network: Network) { } | ||
* | ||
* ... | ||
* | ||
* // watch network for a disconnect | ||
* let disconnectSubscription = Network.onDisconnect().subscribe(() => { | ||
* let disconnectSubscription = this.network.onDisconnect().subscribe(() => { | ||
* console.log('network was disconnected :-('); | ||
@@ -22,3 +26,3 @@ * }); | ||
* // watch network for a connection | ||
* let connectSubscription = Network.onConnect().subscribe(() => { | ||
* let connectSubscription = this.network.onConnect().subscribe(() => { | ||
* console.log('network connected!'); | ||
@@ -50,3 +54,3 @@ | ||
*/ | ||
static type: string; | ||
type: string; | ||
/** | ||
@@ -56,3 +60,3 @@ * Downlink Max Speed | ||
*/ | ||
static downlinkMax: string; | ||
downlinkMax: string; | ||
/** | ||
@@ -59,0 +63,0 @@ * Returns an observable to watch connection changes |
24
index.js
@@ -22,4 +22,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
* | ||
* constructor(private network: Network) { } | ||
* | ||
* ... | ||
* | ||
* // watch network for a disconnect | ||
* let disconnectSubscription = Network.onDisconnect().subscribe(() => { | ||
* let disconnectSubscription = this.network.onDisconnect().subscribe(() => { | ||
* console.log('network was disconnected :-('); | ||
@@ -33,3 +37,3 @@ * }); | ||
* // watch network for a connection | ||
* let connectSubscription = Network.onConnect().subscribe(() => { | ||
* let connectSubscription = this.network.onConnect().subscribe(() => { | ||
* console.log('network connected!'); | ||
@@ -85,2 +89,10 @@ | ||
__decorate([ | ||
CordovaProperty, | ||
__metadata('design:type', String) | ||
], Network.prototype, "type", void 0); | ||
__decorate([ | ||
CordovaProperty, | ||
__metadata('design:type', String) | ||
], Network.prototype, "downlinkMax", void 0); | ||
__decorate([ | ||
CordovaFunctionOverride(), | ||
@@ -115,10 +127,2 @@ __metadata('design:type', Function), | ||
], Network.prototype, "onConnect", null); | ||
__decorate([ | ||
CordovaProperty, | ||
__metadata('design:type', String) | ||
], Network, "type", void 0); | ||
__decorate([ | ||
CordovaProperty, | ||
__metadata('design:type', String) | ||
], Network, "downlinkMax", void 0); | ||
Network = __decorate([ | ||
@@ -125,0 +129,0 @@ Plugin({ |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{"Network":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Plugin"},"arguments":[{"pluginName":"Network","plugin":"cordova-plugin-network-information","repo":"https://github.com/apache/cordova-plugin-network-information","platforms":["Amazon Fire OS","iOS","Android","BlackBerry 10","Windows Phone 7","Windows Phone 8","Windows","Firefox OS","Browser"],"pluginRef":"navigator.connection"}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"type":[{"__symbolic":"property","decorators":[{"__symbolic":"reference","module":"@ionic-native/core","name":"CordovaProperty"}]}],"downlinkMax":[{"__symbolic":"property","decorators":[{"__symbolic":"reference","module":"@ionic-native/core","name":"CordovaProperty"}]}],"onchange":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"CordovaFunctionOverride"}}]}],"ontypechange":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"CordovaFunctionOverride"}}]}],"onDisconnect":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"eventObservable":true,"event":"offline"}]}]}],"onConnect":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"eventObservable":true,"event":"online"}]}]}]},"statics":{"type":{"__symbolic":"error","message":"Variable not initialized","line":63,"character":9},"downlinkMax":{"__symbolic":"error","message":"Variable not initialized","line":70,"character":9}}}}},{"__symbolic":"module","version":1,"metadata":{"Network":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Plugin"},"arguments":[{"pluginName":"Network","plugin":"cordova-plugin-network-information","repo":"https://github.com/apache/cordova-plugin-network-information","platforms":["Amazon Fire OS","iOS","Android","BlackBerry 10","Windows Phone 7","Windows Phone 8","Windows","Firefox OS","Browser"],"pluginRef":"navigator.connection"}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"type":[{"__symbolic":"property","decorators":[{"__symbolic":"reference","module":"@ionic-native/core","name":"CordovaProperty"}]}],"downlinkMax":[{"__symbolic":"property","decorators":[{"__symbolic":"reference","module":"@ionic-native/core","name":"CordovaProperty"}]}],"onchange":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"CordovaFunctionOverride"}}]}],"ontypechange":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"CordovaFunctionOverride"}}]}],"onDisconnect":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"eventObservable":true,"event":"offline"}]}]}],"onConnect":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"eventObservable":true,"event":"online"}]}]}]},"statics":{"type":{"__symbolic":"error","message":"Variable not initialized","line":63,"character":9},"downlinkMax":{"__symbolic":"error","message":"Variable not initialized","line":70,"character":9}}}}}] | ||
[{"__symbolic":"module","version":3,"metadata":{"Network":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Plugin"},"arguments":[{"pluginName":"Network","plugin":"cordova-plugin-network-information","repo":"https://github.com/apache/cordova-plugin-network-information","platforms":["Amazon Fire OS","iOS","Android","BlackBerry 10","Windows Phone 7","Windows Phone 8","Windows","Firefox OS","Browser"],"pluginRef":"navigator.connection"}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"type":[{"__symbolic":"property","decorators":[{"__symbolic":"reference","module":"@ionic-native/core","name":"CordovaProperty"}]}],"downlinkMax":[{"__symbolic":"property","decorators":[{"__symbolic":"reference","module":"@ionic-native/core","name":"CordovaProperty"}]}],"onchange":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"CordovaFunctionOverride"}}]}],"ontypechange":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"CordovaFunctionOverride"}}]}],"onDisconnect":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"eventObservable":true,"event":"offline"}]}]}],"onConnect":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"eventObservable":true,"event":"online"}]}]}]}}}},{"__symbolic":"module","version":1,"metadata":{"Network":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Plugin"},"arguments":[{"pluginName":"Network","plugin":"cordova-plugin-network-information","repo":"https://github.com/apache/cordova-plugin-network-information","platforms":["Amazon Fire OS","iOS","Android","BlackBerry 10","Windows Phone 7","Windows Phone 8","Windows","Firefox OS","Browser"],"pluginRef":"navigator.connection"}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable"}}],"members":{"type":[{"__symbolic":"property","decorators":[{"__symbolic":"reference","module":"@ionic-native/core","name":"CordovaProperty"}]}],"downlinkMax":[{"__symbolic":"property","decorators":[{"__symbolic":"reference","module":"@ionic-native/core","name":"CordovaProperty"}]}],"onchange":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"CordovaFunctionOverride"}}]}],"ontypechange":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"CordovaFunctionOverride"}}]}],"onDisconnect":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"eventObservable":true,"event":"offline"}]}]}],"onConnect":[{"__symbolic":"method","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@ionic-native/core","name":"Cordova"},"arguments":[{"eventObservable":true,"event":"online"}]}]}]}}}}] |
{ | ||
"name": "@ionic-native/network", | ||
"version": "3.1.0-rc.3", | ||
"version": "3.1.0-rc.4", | ||
"description": "Ionic Native - Native plugins for ionic apps", | ||
@@ -10,3 +10,3 @@ "module": "index.js", | ||
"peerDependencies": { | ||
"@ionic-native/core": "3.1.0-rc.3", | ||
"@ionic-native/core": "3.1.0-rc.4", | ||
"@angular/core": "2.4.8", | ||
@@ -13,0 +13,0 @@ "rxjs": "5.0.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
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
12329
5
209
0
37