diff options
Diffstat (limited to 'includes/external/addressbook/node_modules/http2-wrapper/source/utils/proxy-events.js')
-rw-r--r-- | includes/external/addressbook/node_modules/http2-wrapper/source/utils/proxy-events.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/includes/external/addressbook/node_modules/http2-wrapper/source/utils/proxy-events.js b/includes/external/addressbook/node_modules/http2-wrapper/source/utils/proxy-events.js new file mode 100644 index 0000000..35e2ae0 --- /dev/null +++ b/includes/external/addressbook/node_modules/http2-wrapper/source/utils/proxy-events.js @@ -0,0 +1,7 @@ +'use strict'; + +module.exports = (from, to, events) => { + for (const event of events) { + from.on(event, (...args) => to.emit(event, ...args)); + } +}; |