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

ngx-socket-io

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-socket-io - npm Package Compare versions

Comparing version 1.0.1 to 1.0.4

7

bundles/socketio.umd.js

@@ -85,5 +85,10 @@ (function (global, factory) {

}());
SocketIoModule.decorators = [
{ type: _angular_core.NgModule, args: [{},] },
];
/** @nocollapse */
SocketIoModule.ctorParameters = function () { return []; };
exports.SocketIoModule = SocketIoModule;
exports.WrappedSocket = WrappedSocket;
exports.Socket = WrappedSocket;

@@ -90,0 +95,0 @@ Object.defineProperty(exports, '__esModule', { value: true });

2

bundles/socketio.umd.min.js

@@ -1,1 +0,1 @@

!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports,require("@angular/core"),require("rxjs/Observable"),require("rxjs/add/operator/share"),require("socket.io-client")):"function"==typeof define&&define.amd?define(["exports","@angular/core","rxjs/Observable","rxjs/add/operator/share","socket.io-client"],o):o((e.ng=e.ng||{},e.ng.socketio=e.ng.socketio||{}),e.ng.core,e.Rx,null,e.io)}(this,function(e,o,t,r,n){"use strict";function i(e){return new s(e)}var c=n.default,s=function(){function e(e){this.subscribersCounter=0;var o=e.url||"",t=e.options||{},r=c||n;this.ioSocket=r(o,t)}return e.prototype.on=function(e,o){this.ioSocket.on(e,o)},e.prototype.once=function(e,o){this.ioSocket.once(e,o)},e.prototype.connect=function(){return this.ioSocket.connect()},e.prototype.disconnect=function(e){return this.ioSocket.disconnect.apply(this.ioSocket,arguments)},e.prototype.emit=function(e,o,t){return this.ioSocket.emit.apply(this.ioSocket,arguments)},e.prototype.removeListener=function(e,o){return this.ioSocket.removeListener.apply(this.ioSocket,arguments)},e.prototype.removeAllListeners=function(e){return this.ioSocket.removeAllListeners.apply(this.ioSocket,arguments)},e.prototype.fromEvent=function(e){var o=this;return this.subscribersCounter++,t.Observable.create(function(t){return o.ioSocket.on(e,function(e){t.next(e)}),function(){1===o.subscribersCounter&&o.ioSocket.removeListener(e)}}).share()},e}();s.decorators=[{type:o.Injectable}],s.ctorParameters=function(){return[null]};var u=function(){function e(){}return e.forRoot=function(o){return{ngModule:e,providers:[{provide:"__SOCKET_IO_CONFIG__",useValue:o},{provide:s,useFactory:i,deps:["__SOCKET_IO_CONFIG__"]}]}},e}();e.SocketIoModule=u,e.WrappedSocket=s,Object.defineProperty(e,"__esModule",{value:!0})});
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("rxjs/Observable"),require("rxjs/add/operator/share"),require("socket.io-client")):"function"==typeof define&&define.amd?define(["exports","@angular/core","rxjs/Observable","rxjs/add/operator/share","socket.io-client"],t):t((e.ng=e.ng||{},e.ng.socketio=e.ng.socketio||{}),e.ng.core,e.Rx,null,e.io)}(this,function(e,t,o,r,n){"use strict";function i(e){return new s(e)}var c=n.default,s=function(){function e(e){this.subscribersCounter=0;var t=e.url||"",o=e.options||{},r=c||n;this.ioSocket=r(t,o)}return e.prototype.on=function(e,t){this.ioSocket.on(e,t)},e.prototype.once=function(e,t){this.ioSocket.once(e,t)},e.prototype.connect=function(){return this.ioSocket.connect()},e.prototype.disconnect=function(e){return this.ioSocket.disconnect.apply(this.ioSocket,arguments)},e.prototype.emit=function(e,t,o){return this.ioSocket.emit.apply(this.ioSocket,arguments)},e.prototype.removeListener=function(e,t){return this.ioSocket.removeListener.apply(this.ioSocket,arguments)},e.prototype.removeAllListeners=function(e){return this.ioSocket.removeAllListeners.apply(this.ioSocket,arguments)},e.prototype.fromEvent=function(e){var t=this;return this.subscribersCounter++,o.Observable.create(function(o){return t.ioSocket.on(e,function(e){o.next(e)}),function(){1===t.subscribersCounter&&t.ioSocket.removeListener(e)}}).share()},e}();s.decorators=[{type:t.Injectable}],s.ctorParameters=function(){return[null]};var u=function(){function e(){}return e.forRoot=function(t){return{ngModule:e,providers:[{provide:"__SOCKET_IO_CONFIG__",useValue:t},{provide:s,useFactory:i,deps:["__SOCKET_IO_CONFIG__"]}]}},e}();u.decorators=[{type:t.NgModule,args:[{}]}],u.ctorParameters=function(){return[]},e.SocketIoModule=u,e.Socket=s,Object.defineProperty(e,"__esModule",{value:!0})});
export { SocketIoModule } from './src/socket-io.module';
export { SocketIoConfig } from './src/config/socket-io.config';
export { WrappedSocket } from './src/socket-io.service';
export { WrappedSocket as Socket } from './src/socket-io.service';
export { SocketIoModule } from './src/socket-io.module';
export { WrappedSocket } from './src/socket-io.service';
export { WrappedSocket as Socket } from './src/socket-io.service';
//# sourceMappingURL=index.js.map

@@ -1,1 +0,1 @@

[{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./src/socket-io.module","export":["SocketIoModule"]},{"from":"./src/config/socket-io.config","export":["SocketIoConfig"]},{"from":"./src/socket-io.service","export":["WrappedSocket"]}]},{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./src/socket-io.module","export":["SocketIoModule"]},{"from":"./src/config/socket-io.config","export":["SocketIoConfig"]},{"from":"./src/socket-io.service","export":["WrappedSocket"]}]}]
[{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./src/socket-io.module","export":["SocketIoModule"]},{"from":"./src/config/socket-io.config","export":["SocketIoConfig"]},{"from":"./src/socket-io.service","export":[{"name":"WrappedSocket","as":"Socket"}]}]},{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./src/socket-io.module","export":["SocketIoModule"]},{"from":"./src/config/socket-io.config","export":["SocketIoConfig"]},{"from":"./src/socket-io.service","export":[{"name":"WrappedSocket","as":"Socket"}]}]}]
{
"name": "ngx-socket-io",
"version": "1.0.1",
"version": "1.0.4",
"description": "Socket.IO module for Angular 4",

@@ -5,0 +5,0 @@ "main": "bundles/socketio.umd.js",

@@ -0,1 +1,2 @@

import { NgModule } from '@angular/core';
import { WrappedSocket } from './socket-io.service';

@@ -26,2 +27,7 @@ /** Socket factory */

export { SocketIoModule };
SocketIoModule.decorators = [
{ type: NgModule, args: [{},] },
];
/** @nocollapse */
SocketIoModule.ctorParameters = function () { return []; };
//# sourceMappingURL=socket-io.module.js.map

@@ -1,1 +0,1 @@

[{"__symbolic":"module","version":3,"metadata":{"SocketFactory":{"__symbolic":"function","parameters":["config"],"value":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./socket-io.service","name":"WrappedSocket"},"arguments":[{"__symbolic":"reference","name":"config"}]}},"socketConfig":"__SOCKET_IO_CONFIG__","SocketIoModule":{"__symbolic":"class","statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"value":{"ngModule":{"__symbolic":"reference","name":"SocketIoModule"},"providers":[{"provide":"__SOCKET_IO_CONFIG__","useValue":{"__symbolic":"reference","name":"config"}},{"provide":{"__symbolic":"reference","module":"./socket-io.service","name":"WrappedSocket"},"useFactory":{"__symbolic":"reference","name":"SocketFactory"},"deps":["__SOCKET_IO_CONFIG__"]}]}}}}}},{"__symbolic":"module","version":1,"metadata":{"SocketFactory":{"__symbolic":"function","parameters":["config"],"value":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./socket-io.service","name":"WrappedSocket"},"arguments":[{"__symbolic":"reference","name":"config"}]}},"socketConfig":"__SOCKET_IO_CONFIG__","SocketIoModule":{"__symbolic":"class","statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"value":{"ngModule":{"__symbolic":"reference","name":"SocketIoModule"},"providers":[{"provide":"__SOCKET_IO_CONFIG__","useValue":{"__symbolic":"reference","name":"config"}},{"provide":{"__symbolic":"reference","module":"./socket-io.service","name":"WrappedSocket"},"useFactory":{"__symbolic":"reference","name":"SocketFactory"},"deps":["__SOCKET_IO_CONFIG__"]}]}}}}}}]
[{"__symbolic":"module","version":3,"metadata":{"SocketFactory":{"__symbolic":"function","parameters":["config"],"value":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./socket-io.service","name":"WrappedSocket"},"arguments":[{"__symbolic":"reference","name":"config"}]}},"socketConfig":"__SOCKET_IO_CONFIG__","SocketIoModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"value":{"ngModule":{"__symbolic":"reference","name":"SocketIoModule"},"providers":[{"provide":"__SOCKET_IO_CONFIG__","useValue":{"__symbolic":"reference","name":"config"}},{"provide":{"__symbolic":"reference","module":"./socket-io.service","name":"WrappedSocket"},"useFactory":{"__symbolic":"reference","name":"SocketFactory"},"deps":["__SOCKET_IO_CONFIG__"]}]}}}}}},{"__symbolic":"module","version":1,"metadata":{"SocketFactory":{"__symbolic":"function","parameters":["config"],"value":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"./socket-io.service","name":"WrappedSocket"},"arguments":[{"__symbolic":"reference","name":"config"}]}},"socketConfig":"__SOCKET_IO_CONFIG__","SocketIoModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"value":{"ngModule":{"__symbolic":"reference","name":"SocketIoModule"},"providers":[{"provide":"__SOCKET_IO_CONFIG__","useValue":{"__symbolic":"reference","name":"config"}},{"provide":{"__symbolic":"reference","module":"./socket-io.service","name":"WrappedSocket"},"useFactory":{"__symbolic":"reference","name":"SocketFactory"},"deps":["__SOCKET_IO_CONFIG__"]}]}}}}}}]

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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