(a2a)
| 56 | } |
| 57 | |
| 58 | function getNodeScopedHubHeaders(a2a) { |
| 59 | const fn = a2a.buildNodeScopedHubHeaders |
| 60 | || a2a.buildNodeHubHeaders |
| 61 | || a2a.buildNodeScopedHeaders; |
| 62 | if (typeof fn !== 'function') { |
| 63 | throw new Error('a2aProtocol must export a node-scoped hub header helper'); |
| 64 | } |
| 65 | return fn.call(a2a); |
| 66 | } |
| 67 | |
| 68 | function loadHubSearch() { |
| 69 | delete require.cache[require.resolve('../src/gep/hubSearch')]; |