Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixing issue with 3rd party transports

  • Loading branch information...
commit eea863ea6fbe1f2757952ee52c2b61a5a55a0c40 1 parent 48a98ea
@polidore polidore authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  lib/publish/transport.js
  2. +2 −2 src/publish/transport.coffee
View
2  lib/publish/transport.js
@@ -12,7 +12,7 @@ module.exports = function() {
}
config = cfg;
return transport = (function() {
- if (typeof nameOrModule === 'object') {
+ if (typeof nameOrModule === 'function') {
return nameOrModule;
} else {
modPath = "./transports/" + nameOrModule;
View
4 src/publish/transport.coffee
@@ -10,7 +10,7 @@ module.exports = () ->
use: (nameOrModule, cfg = {}) ->
config = cfg
- transport = if typeof(nameOrModule) == 'object'
+ transport = if typeof(nameOrModule) == 'function'
nameOrModule
else
modPath = "./transports/#{nameOrModule}"
@@ -21,4 +21,4 @@ module.exports = () ->
load: ->
@use 'internal' unless transport?
- transport(config)
+ transport(config)
Please sign in to comment.
Something went wrong with that request. Please try again.