entodicton 9.7.1-beta.3 → 9.7.1-beta.5

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 CHANGED
@@ -73,6 +73,6 @@
73
73
  "scriptjs": "^2.5.9",
74
74
  "uuid": "^8.3.2"
75
75
  },
76
- "version": "9.7.1-beta.3",
76
+ "version": "9.7.1-beta.5",
77
77
  "license": "UNLICENSED"
78
78
  }
package/src/config.js CHANGED
@@ -454,7 +454,7 @@ const handleBridgeProps = (config, bridge, { addFirst, uuid } = {}) => {
454
454
  // match: async (args) => bridge.id === args.context.marker && args.context.level === level && !args.context.paraphrase && (args.context.response || args.context.isResponse) && await match(args),
455
455
  match: async (args) => {
456
456
  if (bridge.callId == args.callId) {
457
- debugger
457
+ debugger // eslint-disable-line no-debugger
458
458
  }
459
459
  return args.isA(args.context.marker, bridge.id) && args.context.level === level && !args.context.paraphrase && (args.context.response != null || args.context.isResponse) && await match(args)
460
460
  },
@@ -2422,7 +2422,6 @@ class Config {
2422
2422
  throw new Error(`Expected the API for ${this.name} to have an initialize function.`)
2423
2423
  }
2424
2424
  if (api.baseAPI) {
2425
- debugger
2426
2425
  new helpers.OverrideCheck(api.baseAPI).check(api)
2427
2426
  }
2428
2427
  }
package/src/helpers.js CHANGED
@@ -10,6 +10,10 @@ class OverrideCheck {
10
10
  }
11
11
 
12
12
  check(obj) {
13
+ const overriden = obj.constructor !== obj.baseAPI
14
+ if (!overriden) {
15
+ return
16
+ }
13
17
  for (const check of this.checks) {
14
18
  if (obj[check] == this.base.prototype[check]) {
15
19
  throw new Error(`For ${obj.constructor.name} you need to override ${check}`)