hubot 9.0.0 → 9.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/src/robot.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hubot",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.2",
|
|
4
4
|
"author": "hubot",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"github",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"scripts": {
|
|
39
39
|
"start": "bin/hubot",
|
|
40
40
|
"pretest": "standard",
|
|
41
|
-
"test": "node --test
|
|
41
|
+
"test": "node --test",
|
|
42
42
|
"test:smoke": "node src/**/*.js",
|
|
43
43
|
"test:e2e": "bin/e2e-test.sh"
|
|
44
44
|
},
|
package/src/robot.js
CHANGED
|
@@ -494,7 +494,7 @@ class Robot {
|
|
|
494
494
|
if (Array.from(HUBOT_DEFAULT_ADAPTERS).indexOf(this.adapterName) > -1) {
|
|
495
495
|
this.adapter = this.requireAdapterFrom(path.resolve(path.join(__dirname, 'adapters', this.adapterName)))
|
|
496
496
|
} else if (['.js', '.cjs', '.coffee'].includes(ext)) {
|
|
497
|
-
this.adapter = this.requireAdapterFrom(
|
|
497
|
+
this.adapter = this.requireAdapterFrom(path.resolve(adapterPath))
|
|
498
498
|
} else if (['.mjs'].includes(ext)) {
|
|
499
499
|
this.adapter = await this.importAdapterFrom(pathToFileURL(path.resolve(adapterPath)).href)
|
|
500
500
|
} else {
|