From 599ac1f3ec32e89debe6c4e029a3766e4352fc52 Mon Sep 17 00:00:00 2001 From: Simon Scherzinger Date: Fri, 12 Jul 2024 15:57:22 +0200 Subject: [PATCH 1/2] fix: do not include undefined values in toOriginal --- src/resources/Resource.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/resources/Resource.ts b/src/resources/Resource.ts index 80ff879..4e829a5 100644 --- a/src/resources/Resource.ts +++ b/src/resources/Resource.ts @@ -589,7 +589,9 @@ class Resource { const out = {}; Object.keys(this[originalSymbol]).forEach((key) => { - out[key] = this[resourceSymbol][key]; + if (this[resourceSymbol][key] !== undefined) { + out[key] = this[resourceSymbol][key]; + } }); return out; From e02d4266364ffd45ab2b0cd4e5d6d4712194a564 Mon Sep 17 00:00:00 2001 From: Simon Scherzinger Date: Fri, 12 Jul 2024 15:57:47 +0200 Subject: [PATCH 2/2] release version 0.30.2 --- docs/index.html | 4 ++-- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/index.html b/docs/index.html index 9d5d931..6d9ed44 100644 --- a/docs/index.html +++ b/docs/index.html @@ -2,7 +2,7 @@ - ec.sdk 0.30.1 | Documentation + ec.sdk 0.30.2 | Documentation @@ -15,7 +15,7 @@

ec.sdk

-
0.30.1
+
0.30.2
",