From 9ac518c727627831753aa1734b7ab52077bdcaa4 Mon Sep 17 00:00:00 2001 From: Blair McMillan Date: Mon, 24 Oct 2022 15:02:34 +1000 Subject: [PATCH 1/2] Exclude invalid settings from exports --- module.json | 2 +- scripts/core.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/module.json b/module.json index 038e02e..c4d0a43 100644 --- a/module.json +++ b/module.json @@ -22,7 +22,7 @@ "flags": { "allowBugReporter": true }, - "version": "2.1.5", + "version": "2.1.6", "minimumCoreVersion": "0.6.0", "compatibleCoreVersion": "10", "compatibility": { diff --git a/scripts/core.js b/scripts/core.js index 62c03b1..33ce6c6 100755 --- a/scripts/core.js +++ b/scripts/core.js @@ -447,7 +447,7 @@ export default class Core extends FormApplication { return !sameValue && !excludeModules.some((e) => v.namespace === e); } catch (e) { console.error(`Copy Environment | Could not export settings for ${v.namespace}.${v.key} due to an error. Please report this as an issue on GitHub.`, e); - return true; + return false; } }) .map(([k, v]) => ({ From 9e6ff1046f5b02dd916f61c85f4e57e38f1e0afb Mon Sep 17 00:00:00 2001 From: Blair McMillan Date: Mon, 24 Oct 2022 15:03:37 +1000 Subject: [PATCH 2/2] v2.1.6 --- changelog.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/changelog.md b/changelog.md index fed4e8f..5277c2f 100644 --- a/changelog.md +++ b/changelog.md @@ -1,5 +1,9 @@ # Changelog +## v2.1.6 + +- Exclude invalid settings from export [#35](https://github.com/League-of-Foundry-Developers/foundryvtt-forien-copy-environment/issues/35) + ## v2.1.5 - Allow non-GM users to use the module.