|
@@ -54,7 +54,7 @@ function findAdapterCtorInModule(module) {
|
|
|
let adapterCtor;
|
|
let adapterCtor;
|
|
|
if (!module || typeof module !== 'object' || Array.isArray(module)) return;
|
|
if (!module || typeof module !== 'object' || Array.isArray(module)) return;
|
|
|
for (const ctor of Object.values(module)) {
|
|
for (const ctor of Object.values(module)) {
|
|
|
- if (typeof ctor === 'function') {
|
|
|
|
|
|
|
+ if (typeof ctor === 'function' && ctor.prototype instanceof Adapter) {
|
|
|
adapterCtor = ctor;
|
|
adapterCtor = ctor;
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|