From c4e239619cd4cc0a4c917d3ff74fc46d3548c811 Mon Sep 17 00:00:00 2001 From: nickevansuk <2616208+nickevansuk@users.noreply.github.com> Date: Fri, 21 Jun 2024 14:24:29 +0100 Subject: [PATCH] fix: Ensure compatibility with Babel (fix bug introduced in #444) --- src/helpers/raw.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/raw.js b/src/helpers/raw.js index 5c4da62..f6126a6 100644 --- a/src/helpers/raw.js +++ b/src/helpers/raw.js @@ -5,7 +5,7 @@ const RawHelper = class { if (!_.isPlainObject(data)) { return false; } - const type = data['@type'] ?? data.type; + const type = data['@type'] || data.type; // This is a JSON-LD object with a @type if (!_.isNil(type)) { return false;