Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@ionic-native/network

Package Overview
Dependencies
Maintainers
2
Versions
162
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ionic-native/network - npm Package Compare versions

Comparing version 3.1.0-rc.3 to 3.1.0-rc.4

README.md

12

index.d.ts

@@ -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

@@ -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"

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