New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

backbone.radio

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backbone.radio - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

2

bower.json
{
"name": "backbone.radio",
"version": "0.5.0",
"version": "0.5.1",
"homepage": "https://github.com/jmeas/backbone.radio",

@@ -5,0 +5,0 @@ "authors": [

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

// Backbone.Radio v0.4.1
// Backbone.Radio v0.5.1
(function(root, factory) {

@@ -25,3 +25,3 @@ if (typeof define === 'function' && define.amd) {

Radio.VERSION = '0.4.1';
Radio.VERSION = '0.5.1';

@@ -28,0 +28,0 @@ Radio.noConflict = function () {

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

// Backbone.Radio v0.4.1
// Backbone.Radio v0.5.1
!function(a,b){if("function"==typeof define&&define.amd)define(["backbone","underscore"],function(a,c){return b(a,c)});else if("undefined"!=typeof exports){var c=require("backbone"),d=require("underscore");module.exports=b(c,d)}else b(a.Backbone,a._)}(this,function(a,b){"use strict";function c(a){return h[a]||(h[a]=b.partial(g.log,a))}function d(a){return b.isFunction(a)?a:b.constant(a)}var e=Array.prototype.slice,f=a.Radio,g=a.Radio={};g.VERSION="0.4.1",g.noConflict=function(){return a.Radio=f,this},b.extend(g,{_channels:{},DEBUG:!1,channel:function(a){if(!a)throw new Error("You must provide a name for the channel.");return g._getChannel(a)},_getChannel:function(a){var b=g._channels[a];return b||(b=new g.Channel(a),g._channels[a]=b),b}});var h={};b.extend(g,{log:function(a,b){var c=e.call(arguments,2);console.log("["+a+'] "'+b+'"',c)},tuneIn:function(a){var b=g.channel(a);return b._tunedIn=!0,b.on("all",c(a)),this},tuneOut:function(a){var b=g.channel(a);return b._tunedIn=!1,b.off("all",c(a)),delete h[a],this}}),g.Commands={command:function(a){var b=e.call(arguments,1),c=this._channelName;if(c&&this._tunedIn&&g.log.apply(this,[c,a].concat(b)),this._commands&&this._commands[a]){var d=this._commands[a];d.callback.apply(d.context,b)}else if(g.DEBUG){var f=c?" on the "+c+" channel":"";console.warn("An unhandled event was fired"+f+': "'+a+'"')}return this},comply:function(a,b,c){return this._commands||(this._commands={}),this._commands[a]={callback:b,context:c||this},this},complyOnce:function(a,c,d){var e=this,f=b.once(function(){return e.stopComplying(a),c.apply(this,arguments)});return this.comply(a,f,d)},stopComplying:function(a){var b=this._commands;if(a){if(b&&b[a])delete b[a];else if(g.DEBUG){var c=this._channelName,d=c?" on the "+c+" channel.":"";console.warn('Attempted to remove the unregistered command "'+a+'"'+d)}}else delete this._commands;return this}},g.Requests={request:function(a){var b=e.call(arguments,1),c=this._channelName;if(c&&this._tunedIn&&g.log.apply(this,[c,a].concat(b)),this._requests&&this._requests[a]){var d=this._requests[a];return d.callback.apply(d.context,b)}if(g.DEBUG){var f=c?" on the "+c+" channel":"";console.warn("An unhandled event was fired"+f+': "'+a+'"')}},reply:function(a,b,c){return this._requests||(this._requests={}),this._requests[a]={callback:d(b),context:c||this},this},replyOnce:function(a,c,e){var f=this,g=b.once(function(){return f.stopReplying(a),d(c).apply(this,arguments)});return this.reply(a,g,e)},stopReplying:function(a){var b=this._requests;if(a){if(b&&b[a])delete b[a];else if(g.DEBUG){var c=this._channelName,d=c?" on the "+c+" channel.":"";console.warn('Attempted to remove the unregistered request "'+a+'"'+d)}}else delete this._requests;return this}},g.Channel=function(c){this._channelName=c,b.extend(this,a.Events,g.Commands,g.Requests)},b.extend(g.Channel.prototype,{reset:function(){return this.off(),this.stopListening(),this.stopComplying(),this.stopReplying(),this},connectEvents:function(a,b){return this._connect("on",a,b)},connectCommands:function(a,b){return this._connect("comply",a,b)},connectRequests:function(a,b){return this._connect("reply",a,b)},_connect:function(a,c,d){return c?(b.each(c,function(b,c){this[a](c,b,d||this)},this),this):void 0}});var i,j,k=[a.Events,g.Commands,g.Requests];return b.each(k,function(a){b.each(a,function(a,b){g[b]=function(a){return j=e.call(arguments,2),i=this.channel(a),i[b].apply(i,j)}})}),g});
!function(a,b){if("function"==typeof define&&define.amd)define(["backbone","underscore"],function(a,c){return b(a,c)});else if("undefined"!=typeof exports){var c=require("backbone"),d=require("underscore");module.exports=b(c,d)}else b(a.Backbone,a._)}(this,function(a,b){"use strict";function c(a){return h[a]||(h[a]=b.partial(g.log,a))}function d(a){return b.isFunction(a)?a:b.constant(a)}var e=Array.prototype.slice,f=a.Radio,g=a.Radio={};g.VERSION="0.5.1",g.noConflict=function(){return a.Radio=f,this},b.extend(g,{_channels:{},DEBUG:!1,channel:function(a){if(!a)throw new Error("You must provide a name for the channel.");return g._getChannel(a)},_getChannel:function(a){var b=g._channels[a];return b||(b=new g.Channel(a),g._channels[a]=b),b}});var h={};b.extend(g,{log:function(a,b){var c=e.call(arguments,2);console.log("["+a+'] "'+b+'"',c)},tuneIn:function(a){var b=g.channel(a);return b._tunedIn=!0,b.on("all",c(a)),this},tuneOut:function(a){var b=g.channel(a);return b._tunedIn=!1,b.off("all",c(a)),delete h[a],this}}),g.Commands={command:function(a){var b=e.call(arguments,1),c=this._channelName;if(c&&this._tunedIn&&g.log.apply(this,[c,a].concat(b)),this._commands&&this._commands[a]){var d=this._commands[a];d.callback.apply(d.context,b)}else if(g.DEBUG){var f=c?" on the "+c+" channel":"";console.warn("An unhandled event was fired"+f+': "'+a+'"')}return this},comply:function(a,b,c){return this._commands||(this._commands={}),this._commands[a]={callback:b,context:c||this},this},complyOnce:function(a,c,d){var e=this,f=b.once(function(){return e.stopComplying(a),c.apply(this,arguments)});return this.comply(a,f,d)},stopComplying:function(a){var b=this._commands;if(a){if(b&&b[a])delete b[a];else if(g.DEBUG){var c=this._channelName,d=c?" on the "+c+" channel.":"";console.warn('Attempted to remove the unregistered command "'+a+'"'+d)}}else delete this._commands;return this}},g.Requests={request:function(a){var b=e.call(arguments,1),c=this._channelName;if(c&&this._tunedIn&&g.log.apply(this,[c,a].concat(b)),this._requests&&this._requests[a]){var d=this._requests[a];return d.callback.apply(d.context,b)}if(g.DEBUG){var f=c?" on the "+c+" channel":"";console.warn("An unhandled event was fired"+f+': "'+a+'"')}},reply:function(a,b,c){return this._requests||(this._requests={}),this._requests[a]={callback:d(b),context:c||this},this},replyOnce:function(a,c,e){var f=this,g=b.once(function(){return f.stopReplying(a),d(c).apply(this,arguments)});return this.reply(a,g,e)},stopReplying:function(a){var b=this._requests;if(a){if(b&&b[a])delete b[a];else if(g.DEBUG){var c=this._channelName,d=c?" on the "+c+" channel.":"";console.warn('Attempted to remove the unregistered request "'+a+'"'+d)}}else delete this._requests;return this}},g.Channel=function(c){this._channelName=c,b.extend(this,a.Events,g.Commands,g.Requests)},b.extend(g.Channel.prototype,{reset:function(){return this.off(),this.stopListening(),this.stopComplying(),this.stopReplying(),this},connectEvents:function(a,b){return this._connect("on",a,b)},connectCommands:function(a,b){return this._connect("comply",a,b)},connectRequests:function(a,b){return this._connect("reply",a,b)},_connect:function(a,c,d){return c?(b.each(c,function(b,c){this[a](c,b,d||this)},this),this):void 0}});var i,j,k=[a.Events,g.Commands,g.Requests];return b.each(k,function(a){b.each(a,function(a,b){g[b]=function(a){return j=e.call(arguments,2),i=this.channel(a),i[b].apply(i,j)}})}),g});
//# sourceMappingURL=backbone.radio.min.map

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

### [0.5.1](https://github.com/jmeas/backbone.radio/releases/tag/v0.5.1)
- Fixes Radio.VERSION in the built library
### [0.5.0](https://github.com/jmeas/backbone.radio/releases/tag/v0.5.0)
- Commands.react has been renamed to Commands.comply
### [0.4.1](https://github.com/jmeas/backbone.radio/releases/tag/v0.4.1)

@@ -2,0 +10,0 @@

{
"name": "backbone.radio",
"description": "The semantic messaging system for Backbone applications.",
"version": "0.5.0",
"version": "0.5.1",
"homepage": "https://github.com/jmeas/backbone.radio",

@@ -6,0 +6,0 @@ "main": "build/backbone.radio.js",

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