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

axons

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

axons - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

2

dist/axons.js

@@ -62,3 +62,3 @@ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.axons=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){

var promiseArgs = q(data);
selectedFilters.forEach(function (args, filter) {
selectedFilters.forEach(function (filter) {
promiseArgs = promiseArgs.then(filter);

@@ -65,0 +65,0 @@ });

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

// axons v0.3.0
// axons v0.3.1
// license:MIT
// naugtur@gmail.com
// built 2014-12-14
!function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;"undefined"!=typeof window?b=window:"undefined"!=typeof global?b=global:"undefined"!=typeof self&&(b=self),b.axons=a()}}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b){function c(a){if("object"==typeof a){var b={};for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b}}function d(a){return a}function e(a,b){var c=b.replace(/\.[^.]+$/,"");return[].concat(a[b],b!==c?e(a,c):[]).filter(d)}function f(){function a(a,b){n[a]||(n[a]=[]),n[a].push({func:b})}function b(a){n[a]&&(n[a]=[])}function d(a,b){var d=e(o,a),f=e(n,a);return g(!0).then(function(){var a=b?c(b):{},e=g(a);return d.forEach(function(a,b){e=e.then(b)}),e}).then(function(c){var d=[];d=d.concat(f.map(function(a){return a.func(c)}));for(var e in p)d.push(p[e].publish(a,b));return g.all(d)})}function f(a,b){o[a]||(o[a]=[]),o[a].push(b)}function i(a){a.name!==m&&(p[a.name]=a)}function j(a){a.name!==m&&delete p[a.name]}function k(){n={},o={},p={}}function l(a){return function(b){return b(a)}}var m=h++,n={},o={},p={};return{define:{publisher:l({publish:d,promises:g}),subscriber:l({subscribe:a,unsubscribeAll:b,promises:g}),filter:l({filter:f,promises:g})},forwardTo:i,dropForward:j,name:m,destroy:k}}var g=a(2),h=0,i=f();b.exports={promises:g,newChannel:f,global:i}},{}],2:[function(a,b){function c(a,b){a.forEach(function(a,c){a.then(function(a){b(c,{state:"fulfilled",value:a})},function(a){b(c,{state:"rejected",reason:a})})})}var d=a(3),e=function(a){return a.fail=function(b){return a.then(0,b)},a},f=function(a){var b=d(e);return b(a),b};f.defer=function(){var a=d(e);return{promise:a,resolve:function(b){a(!0,[b])},reject:function(b){a(!1,[b])}}},f.all=function(a){var b=f.defer(),d=[],e=a.length;return c(a,function(a,c){e&&("rejected"===c.state?(e=0,b.reject(c.reason)):(d[a]=c,0===--e&&b.resolve(d)))}),b.promise},f.allSettled=function(a){var b=f.defer(),d=[],e=a.length;return c(a,function(a,c){d[a]=c,0===--e&&b.resolve(d)}),b.promise},b.exports=f},{}],3:[function(a,b){!function(a){function b(a){return"function"==typeof a}function c(a){return"object"==typeof a}function d(a){"undefined"!=typeof setImmediate?setImmediate(a):"undefined"!=typeof process&&process.nextTick?process.nextTick(a):setTimeout(a,0)}var e;a[0][a[1]]=function f(a){var g,h=[],i=[],j=function(a,b){return null==g&&null!=a&&(g=a,h=b,i.length&&d(function(){for(var a=0;a<i.length;a++)i[a]()})),g};return j.then=function(j,k){var l=f(a),m=function(){function a(d){var f,g=0;try{if(d&&(c(d)||b(d))&&b(f=d.then)){if(d===l)throw new TypeError;f.call(d,function(){g++||a.apply(e,arguments)},function(a){g++||l(!1,[a])})}else l(!0,arguments)}catch(h){g++||l(!1,[h])}}try{var d=g?j:k;b(d)?a(d.apply(e,h||[])):l(g,h)}catch(f){l(!1,[f])}};return null!=g?d(m):i.push(m),l},a&&(j=a(j)),j}}("undefined"==typeof b?[window,"pinkySwear"]:[b,"exports"])},{}]},{},[1])(1)});
!function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;"undefined"!=typeof window?b=window:"undefined"!=typeof global?b=global:"undefined"!=typeof self&&(b=self),b.axons=a()}}(function(){return function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b){function c(a){if("object"==typeof a){var b={};for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);return b}}function d(a){return a}function e(a,b){var c=b.replace(/\.[^.]+$/,"");return[].concat(a[b],b!==c?e(a,c):[]).filter(d)}function f(){function a(a,b){n[a]||(n[a]=[]),n[a].push({func:b})}function b(a){n[a]&&(n[a]=[])}function d(a,b){var d=e(o,a),f=e(n,a);return g(!0).then(function(){var a=b?c(b):{},e=g(a);return d.forEach(function(a){e=e.then(a)}),e}).then(function(c){var d=[];d=d.concat(f.map(function(a){return a.func(c)}));for(var e in p)d.push(p[e].publish(a,b));return g.all(d)})}function f(a,b){o[a]||(o[a]=[]),o[a].push(b)}function i(a){a.name!==m&&(p[a.name]=a)}function j(a){a.name!==m&&delete p[a.name]}function k(){n={},o={},p={}}function l(a){return function(b){return b(a)}}var m=h++,n={},o={},p={};return{define:{publisher:l({publish:d,promises:g}),subscriber:l({subscribe:a,unsubscribeAll:b,promises:g}),filter:l({filter:f,promises:g})},forwardTo:i,dropForward:j,name:m,destroy:k}}var g=a(2),h=0,i=f();b.exports={promises:g,newChannel:f,global:i}},{}],2:[function(a,b){function c(a,b){a.forEach(function(a,c){a.then(function(a){b(c,{state:"fulfilled",value:a})},function(a){b(c,{state:"rejected",reason:a})})})}var d=a(3),e=function(a){return a.fail=function(b){return a.then(0,b)},a},f=function(a){var b=d(e);return b(a),b};f.defer=function(){var a=d(e);return{promise:a,resolve:function(b){a(!0,[b])},reject:function(b){a(!1,[b])}}},f.all=function(a){var b=f.defer(),d=[],e=a.length;return c(a,function(a,c){e&&("rejected"===c.state?(e=0,b.reject(c.reason)):(d[a]=c,0===--e&&b.resolve(d)))}),b.promise},f.allSettled=function(a){var b=f.defer(),d=[],e=a.length;return c(a,function(a,c){d[a]=c,0===--e&&b.resolve(d)}),b.promise},b.exports=f},{}],3:[function(a,b){!function(a){function b(a){return"function"==typeof a}function c(a){return"object"==typeof a}function d(a){"undefined"!=typeof setImmediate?setImmediate(a):"undefined"!=typeof process&&process.nextTick?process.nextTick(a):setTimeout(a,0)}var e;a[0][a[1]]=function f(a){var g,h=[],i=[],j=function(a,b){return null==g&&null!=a&&(g=a,h=b,i.length&&d(function(){for(var a=0;a<i.length;a++)i[a]()})),g};return j.then=function(j,k){var l=f(a),m=function(){function a(d){var f,g=0;try{if(d&&(c(d)||b(d))&&b(f=d.then)){if(d===l)throw new TypeError;f.call(d,function(){g++||a.apply(e,arguments)},function(a){g++||l(!1,[a])})}else l(!0,arguments)}catch(h){g++||l(!1,[h])}}try{var d=g?j:k;b(d)?a(d.apply(e,h||[])):l(g,h)}catch(f){l(!1,[f])}};return null!=g?d(m):i.push(m),l},a&&(j=a(j)),j}}("undefined"==typeof b?[window,"pinkySwear"]:[b,"exports"])},{}]},{},[1])(1)});

@@ -61,3 +61,3 @@ var q = require('q');

var promiseArgs = q(data);
selectedFilters.forEach(function (args, filter) {
selectedFilters.forEach(function (filter) {
promiseArgs = promiseArgs.then(filter);

@@ -64,0 +64,0 @@ });

{
"name": "axons",
"version": "0.3.1",
"version": "0.3.2",
"description": "A communication channel you always wanted instead of pub-sub",

@@ -5,0 +5,0 @@ "main": "index.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