Comparing version 6.0.0 to 7.0.0
{ | ||
"name": "hubot", | ||
"version": "6.0.0", | ||
"version": "7.0.0", | ||
"author": "hubot", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -507,3 +507,12 @@ 'use strict' | ||
} else { | ||
this.adapter = this.requireAdapterFrom(`hubot-${this.adapterName}`) | ||
const adapterPathInCurrentWorkingDirectory = this.adapterName | ||
try { | ||
this.adapter = this.requireAdapterFrom(adapterPathInCurrentWorkingDirectory) | ||
} catch (err) { | ||
if (err.name === 'SyntaxError' && err.message.includes('Cannot use import statement outside a module')) { | ||
this.adapter = await this.importAdapterFrom(adapterPathInCurrentWorkingDirectory) | ||
} else { | ||
throw err | ||
} | ||
} | ||
} | ||
@@ -510,0 +519,0 @@ } catch (err) { |
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
96409
2443