From e054eda103d1c75a6c5cf93f70e57d7536d78b3f Mon Sep 17 00:00:00 2001 From: Bas Kamer Date: Wed, 22 Feb 2023 14:57:38 +0100 Subject: [PATCH 1/2] allow getOwnConfig (from embroider) access added definitions --- index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.js b/index.js index 1e6bcfd2..69b5937a 100644 --- a/index.js +++ b/index.js @@ -61,6 +61,10 @@ module.exports = { this.options["@embroider/macros"].setOwnConfig["types/date"] = defaults["types/date"] ?? "ember-validated-form/components/validated-input/types/input"; + + Object.keys(defaults).map (key => { + this.options["@embroider/macros"].setOwnConfig[key] = defaults[key]; + }); }, options: { From 7cf0eab4d0fdb97446dfcef501fcb6f883704940 Mon Sep 17 00:00:00 2001 From: Bas Kamer Date: Thu, 23 Feb 2023 12:55:46 +0100 Subject: [PATCH 2/2] cs --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 69b5937a..7e804930 100644 --- a/index.js +++ b/index.js @@ -62,9 +62,9 @@ module.exports = { defaults["types/date"] ?? "ember-validated-form/components/validated-input/types/input"; - Object.keys(defaults).map (key => { + Object.keys(defaults).forEach((key) => { this.options["@embroider/macros"].setOwnConfig[key] = defaults[key]; - }); + }); }, options: {