Skip to content

Commit

Permalink
Updated build output
Browse files Browse the repository at this point in the history
  • Loading branch information
Caleb Rugg authored and ifandelse committed Dec 5, 2016
1 parent 9a611f9 commit a0c0ee3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 2 additions & 1 deletion lib/postal.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ ChannelDefinition.prototype.publish = function() {
if ( typeof envelope !== "object" ) {
throw new Error( "The first argument to ChannelDefinition.publish should be either an envelope object or a string topic." );
}
envelope.headers = _.extend( envelope.headers || {}, _.pick( _config, [ "resolverNoCache" ] ) );
envelope.channel = this.channel;
this.bus.publish( envelope, callback );
};
Expand Down Expand Up @@ -411,8 +412,8 @@ function getCacher( topic, pubCache, cacheKey, done, envelope ) {
if ( !headers.resolverNoCache ) {
cache = pubCache[ cacheKey ] = ( pubCache[ cacheKey ] || [] );
cache.push( subDef );
subDef.cacheKeys.push( cacheKey );
}
subDef.cacheKeys.push( cacheKey );
if ( done ) {
done( subDef );
}
Expand Down
4 changes: 3 additions & 1 deletion lib/postal.lodash.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
isEqual: require( "lodash/isEqual" ),
keys: require( "lodash/keys" ),
map: require( "lodash/map" ),
pick: require( "lodash/pick" ),
throttle: require( "lodash/throttle" )
};

Expand Down Expand Up @@ -84,6 +85,7 @@ ChannelDefinition.prototype.publish = function() {
if ( typeof envelope !== "object" ) {
throw new Error( "The first argument to ChannelDefinition.publish should be either an envelope object or a string topic." );
}
envelope.headers = _.extend( envelope.headers || {}, _.pick( _config, [ "resolverNoCache" ] ) );
envelope.channel = this.channel;
this.bus.publish( envelope, callback );
};
Expand Down Expand Up @@ -423,8 +425,8 @@ function getCacher( topic, pubCache, cacheKey, done, envelope ) {
if ( !headers.resolverNoCache ) {
cache = pubCache[ cacheKey ] = ( pubCache[ cacheKey ] || [] );
cache.push( subDef );
subDef.cacheKeys.push( cacheKey );
}
subDef.cacheKeys.push( cacheKey );
if ( done ) {
done( subDef );
}
Expand Down
2 changes: 1 addition & 1 deletion lib/postal.lodash.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a0c0ee3

Please sign in to comment.