From b611da66e2f046456304fb0afbc5133a11041d23 Mon Sep 17 00:00:00 2001 From: oxixes <38050447+oxixes@users.noreply.github.com> Date: Thu, 29 Feb 2024 17:39:15 +0100 Subject: [PATCH] Correctly check presence of exports --- NGSI.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/NGSI.js b/NGSI.js index 679ffbc..49f1b52 100644 --- a/NGSI.js +++ b/NGSI.js @@ -53,7 +53,7 @@ /* Detect Node.js */ /* istanbul ignore if */ - if ((typeof require === 'function') && typeof exports != null) { + if ((typeof require === 'function') && (typeof exports !== 'undefined')) { NGSI = exports; var URL = require('whatwg-url').URL; } else {