@friggframework/core 2.0.0--canary.397.216d54b.0 → 2.0.0--canary.397.3d4865d.0

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.
@@ -116,13 +116,15 @@ class Integration {
116
116
  // access them without falling back through the Proxy. This prevents
117
117
  // `undefined` errors for methods like `loadDynamicUserActions` that
118
118
  // may be invoked inside default event-handlers.
119
- const proto = Object.getPrototypeOf(this.behavior);
120
- for (const key of Object.getOwnPropertyNames(proto)) {
121
- if (key === 'constructor') continue;
122
- if (typeof proto[key] === 'function' && this[key] === undefined) {
123
- // Bind to behaviour so internal `this` remains correct.
124
- this[key] = proto[key].bind(this.behavior);
119
+ let proto = Object.getPrototypeOf(this.behavior);
120
+ while (proto && proto !== Object.prototype) {
121
+ for (const key of Object.getOwnPropertyNames(proto)) {
122
+ if (key === 'constructor') continue;
123
+ if (typeof proto[key] === 'function' && this[key] === undefined) {
124
+ this[key] = proto[key].bind(this.behavior);
125
+ }
125
126
  }
127
+ proto = Object.getPrototypeOf(proto);
126
128
  }
127
129
  }
128
130
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@friggframework/core",
3
3
  "prettier": "@friggframework/prettier-config",
4
- "version": "2.0.0--canary.397.216d54b.0",
4
+ "version": "2.0.0--canary.397.3d4865d.0",
5
5
  "dependencies": {
6
6
  "@hapi/boom": "^10.0.1",
7
7
  "aws-sdk": "^2.1200.0",
@@ -22,9 +22,9 @@
22
22
  "uuid": "^9.0.1"
23
23
  },
24
24
  "devDependencies": {
25
- "@friggframework/eslint-config": "2.0.0--canary.397.216d54b.0",
26
- "@friggframework/prettier-config": "2.0.0--canary.397.216d54b.0",
27
- "@friggframework/test": "2.0.0--canary.397.216d54b.0",
25
+ "@friggframework/eslint-config": "2.0.0--canary.397.3d4865d.0",
26
+ "@friggframework/prettier-config": "2.0.0--canary.397.3d4865d.0",
27
+ "@friggframework/test": "2.0.0--canary.397.3d4865d.0",
28
28
  "@types/lodash": "4.17.15",
29
29
  "@typescript-eslint/eslint-plugin": "^8.0.0",
30
30
  "chai": "^4.3.6",
@@ -53,5 +53,5 @@
53
53
  },
54
54
  "homepage": "https://github.com/friggframework/frigg#readme",
55
55
  "description": "",
56
- "gitHead": "216d54b42aece5fa6473620fca6ee1ae11a46d8b"
56
+ "gitHead": "3d4865d4a752858baaa1f723ca9d07b38bfd7e5e"
57
57
  }