From a63de490808dc9b4f295a1e41388696150f8d170 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?I=C3=B1aki=20Baz=20Castillo?= Date: Wed, 29 Jun 2022 18:20:38 +0200 Subject: [PATCH] fix non updated node/lib/types.js (probably @jmillan running non updated npm TS dependency in mediasoup) --- node/lib/types.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/node/lib/types.js b/node/lib/types.js index 8036245dae..65d74efd03 100644 --- a/node/lib/types.js +++ b/node/lib/types.js @@ -1,7 +1,11 @@ "use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; - Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); + var desc = Object.getOwnPropertyDescriptor(m, k); + if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { + desc = { enumerable: true, get: function() { return m[k]; } }; + } + Object.defineProperty(o, k2, desc); }) : (function(o, m, k, k2) { if (k2 === undefined) k2 = k; o[k2] = m[k];