Comparing version 0.2.5 to 0.2.6
@@ -81,12 +81,13 @@ var _ = require('lodash'); | ||
addonEvents.on(event, function (context) { | ||
var def = definition; | ||
co(function *() { | ||
if (!definition) { | ||
if (!def) { | ||
var name = context.query.name; | ||
if (name) { | ||
definition = yield adapter.webhookFor(addon.descriptor, context.tenant, name, context); | ||
def = yield adapter.webhookFor(addon.descriptor, context.tenant, name, context); | ||
} | ||
} | ||
var fire = true; | ||
if (definition) { | ||
fire = adapter.prepareWebhook(definition, context); | ||
if (def) { | ||
fire = adapter.prepareWebhook(def, context); | ||
} | ||
@@ -93,0 +94,0 @@ if (fire) { |
@@ -5,3 +5,3 @@ { | ||
"description": "Modules for building Atlassian Connect and HipChat Connect add-ons", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"author": "Atlassian (http://atlassian.com)", | ||
@@ -17,5 +17,6 @@ "license": "Apache 2.0", | ||
"dependencies": { | ||
"ac-node": "^0.2.2", | ||
"ac-node": "^0.2.3", | ||
"check-types": "^1.3.1", | ||
"co": "^3.1.0", | ||
"co-mocha": "0.0.4", | ||
"koa": "^0.8.2", | ||
@@ -22,0 +23,0 @@ "koa-compose": "^2.3.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
332
13432
14
10
+ Addedco-mocha@0.0.4
+ Addedco-mocha@0.0.4(transitive)
+ Addedcommander@0.6.12.3.0(transitive)
+ Addeddebug@2.0.0(transitive)
+ Addeddiff@1.0.8(transitive)
+ Addedescape-string-regexp@1.0.2(transitive)
+ Addedglob@3.2.3(transitive)
+ Addedgraceful-fs@2.0.3(transitive)
+ Addedgrowl@1.8.1(transitive)
+ Addedis-generator@0.0.4(transitive)
+ Addedis-promise@1.0.1(transitive)
+ Addedjade@0.26.3(transitive)
+ Addedlru-cache@2.7.3(transitive)
+ Addedminimatch@0.2.14(transitive)
+ Addedminimist@0.0.8(transitive)
+ Addedmkdirp@0.3.00.5.0(transitive)
+ Addedmocha@1.21.5(transitive)
+ Addedms@0.6.2(transitive)
+ Addedsigmund@1.0.1(transitive)
Updatedac-node@^0.2.3