Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

angular-socket-io

Package Overview
Dependencies
0
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.6.1 to 0.7.0

npm-install.sh

2

bower.json
{
"name": "angular-socket-io",
"version": "0.6.1",
"version": "0.7.0",
"main": "socket.js",

@@ -5,0 +5,0 @@ "dependencies": {

var gulp = require('gulp'),
gutil = require('gulp-util'),
uglify = require('gulp-uglify'),
rename = require("gulp-rename"),
ngmin = require('gulp-ngmin');
rename = require('gulp-rename');

@@ -10,3 +8,2 @@ gulp.task('scripts', function() {

.pipe(rename('socket.min.js'))
.pipe(ngmin())
.pipe(uglify({

@@ -13,0 +10,0 @@ preserveComments: 'some',

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

// Karma configuration

@@ -8,4 +7,4 @@ module.exports = function (config) {

'mock/socket-io.js',
'bower_components/angular/angular.js',
'bower_components/angular-mocks/angular-mocks.js',
'node_modules/angular/angular.js',
'node_modules/angular-mocks/angular-mocks.js',
'socket.js',

@@ -15,8 +14,4 @@ '*.spec.js'

preprocessors: {
'socket.js': ['coverage']
},
reporters: ['progress'],
reporters: ['progress', 'coverage'],
port: 9876,

@@ -23,0 +18,0 @@ colors: true,

@@ -44,3 +44,4 @@ var io = {

},
disconnect: function () {}
disconnect: function () {},
connect: function () {}
};

@@ -47,0 +48,0 @@

{
"name": "angular-socket-io",
"version": "0.6.1",
"version": "0.7.0",
"main": "socket.js",

@@ -14,12 +14,11 @@ "directories": {

"devDependencies": {
"gulp": "~3.5.5",
"gulp-util": "~2.2.14",
"angular": "^1.3.5",
"angular-mocks": "^1.3.5",
"gulp": "^3.8.10",
"gulp-rename": "~1.2.0",
"gulp-uglify": "~0.2.1",
"gulp-rename": "~1.2.0",
"gulp-ngmin": "~0.1.2",
"karma": "~0.10.2",
"karma-jasmine": "~0.1.3",
"karma-firefox-launcher": "~0.1.0",
"karma-coverage": "~0.1.4"
"karma-jasmine": "~0.1.3"
}
}
/*
* @license
* angular-socket-io v0.6.1
* angular-socket-io v0.7.0
* (c) 2014 Brian Ford http://briantford.com

@@ -73,2 +73,6 @@ * License: MIT

connect: function() {
return socket.connect();
},
// when socket.on('someEvent', fn (data) { ... }),

@@ -75,0 +79,0 @@ // call scope.$broadcast('someEvent', data)

/*
* @license
* angular-socket-io v0.6.1
* angular-socket-io v0.7.0
* (c) 2014 Brian Ford http://briantford.com
* License: MIT
*/
angular.module("btford.socket-io",[]).provider("socketFactory",function(){"use strict";var n="socket:";this.$get=["$rootScope","$timeout",function(t,e){var r=function(n,t){return t?function(){var r=arguments;e(function(){t.apply(n,r)},0)}:angular.noop};return function(e){e=e||{};var o=e.ioSocket||io.connect(),u=void 0===e.prefix?n:e.prefix,i=e.scope||t,c=function(n,t){o.on(n,t.__ng=r(o,t))},a=function(n,t){o.once(n,t.__ng=r(o,t))},s={on:c,addListener:c,once:a,emit:function(n,t,e){var u=arguments.length-1,e=arguments[u];return"function"==typeof e&&(e=r(o,e),arguments[u]=e),o.emit.apply(o,arguments)},removeListener:function(n,t){return t&&t.__ng&&(arguments[1]=t.__ng),o.removeListener.apply(o,arguments)},removeAllListeners:function(){return o.removeAllListeners.apply(o,arguments)},disconnect:function(n){return o.disconnect(n)},forward:function(n,t){n instanceof Array==!1&&(n=[n]),t||(t=i),n.forEach(function(n){var e=u+n,i=r(o,function(){Array.prototype.unshift.call(arguments,e),t.$broadcast.apply(t,arguments)});t.$on("$destroy",function(){o.removeListener(n,i)}),o.on(n,i)})}};return s}}]});
angular.module("btford.socket-io",[]).provider("socketFactory",function(){"use strict";var n="socket:";this.$get=["$rootScope","$timeout",function(t,e){var r=function(n,t){return t?function(){var r=arguments;e(function(){t.apply(n,r)},0)}:angular.noop};return function(e){e=e||{};var o=e.ioSocket||io.connect(),c=void 0===e.prefix?n:e.prefix,u=e.scope||t,i=function(n,t){o.on(n,t.__ng=r(o,t))},a=function(n,t){o.once(n,t.__ng=r(o,t))},s={on:i,addListener:i,once:a,emit:function(n,t,e){var c=arguments.length-1,e=arguments[c];return"function"==typeof e&&(e=r(o,e),arguments[c]=e),o.emit.apply(o,arguments)},removeListener:function(n,t){return t&&t.__ng&&(arguments[1]=t.__ng),o.removeListener.apply(o,arguments)},removeAllListeners:function(){return o.removeAllListeners.apply(o,arguments)},disconnect:function(n){return o.disconnect(n)},connect:function(){return o.connect()},forward:function(n,t){n instanceof Array==!1&&(n=[n]),t||(t=u),n.forEach(function(n){var e=c+n,u=r(o,function(){Array.prototype.unshift.call(arguments,e),t.$broadcast.apply(t,arguments)});t.$on("$destroy",function(){o.removeListener(n,u)}),o.on(n,u)})}};return s}}]});
//# sourceMappingURL=socket.min.js.map

@@ -60,3 +60,13 @@ /*

describe('#connect', function () {
it('should call the underlying socket.connect', function () {
mockIoSocket.connect = spy;
socket.connect();
expect(spy).toHaveBeenCalled();
});
});
describe('#once', function () {

@@ -63,0 +73,0 @@

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc