@opra/mongodb 1.0.0-alpha.20 → 1.0.0-alpha.22

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.
@@ -387,7 +387,7 @@ class MongoService extends core_1.ServiceBase {
387
387
  const next = async () => {
388
388
  proto = proto ? Object.getPrototypeOf(proto) : this;
389
389
  while (proto) {
390
- if (proto.interceptor) {
390
+ if (proto.interceptor && Object.prototype.hasOwnProperty.call(proto, 'interceptor')) {
391
391
  return await proto.interceptor.call(this, next, command, this);
392
392
  }
393
393
  proto = Object.getPrototypeOf(proto);
@@ -384,7 +384,7 @@ export class MongoService extends ServiceBase {
384
384
  const next = async () => {
385
385
  proto = proto ? Object.getPrototypeOf(proto) : this;
386
386
  while (proto) {
387
- if (proto.interceptor) {
387
+ if (proto.interceptor && Object.prototype.hasOwnProperty.call(proto, 'interceptor')) {
388
388
  return await proto.interceptor.call(this, next, command, this);
389
389
  }
390
390
  proto = Object.getPrototypeOf(proto);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opra/mongodb",
3
- "version": "1.0.0-alpha.20",
3
+ "version": "1.0.0-alpha.22",
4
4
  "description": "Opra MongoDB adapter package",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
@@ -37,8 +37,8 @@
37
37
  "ts-gems": "^3.4.0"
38
38
  },
39
39
  "peerDependencies": {
40
- "@opra/common": "^1.0.0-alpha.20",
41
- "@opra/core": "^1.0.0-alpha.20",
40
+ "@opra/common": "^1.0.0-alpha.22",
41
+ "@opra/core": "^1.0.0-alpha.22",
42
42
  "mongodb": ">= 6.0.0"
43
43
  },
44
44
  "type": "module",