Skip to content

Commit

Permalink
fix(deps): remove unnecessary dependency to tracked-toolbox
Browse files Browse the repository at this point in the history
  • Loading branch information
anehx committed Sep 9, 2022
1 parent 3b21ce0 commit 605c001
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions addon/passed-or-default.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
import { importSync, getOwnConfig } from "@embroider/macros";
import { ensureSafeComponent } from "@embroider/util";
import { cached } from "tracked-toolbox";

export default function passedOrDefault(componentName) {
return function (target, property) {
return cached(target, property, {
return {
get() {
return ensureSafeComponent(
this.args[property] ??
importSync(getOwnConfig()[componentName]).default,
this
);
},
});
};
};
}
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@
"ember-changeset-validations": "^4.1.0",
"ember-cli-babel": "^7.26.11",
"ember-cli-htmlbars": "^6.1.0",
"ember-truth-helpers": "^3.1.1",
"tracked-toolbox": "^2.0.0"
"ember-truth-helpers": "^3.1.1"
},
"devDependencies": {
"@adfinis-sygroup/eslint-config": "1.5.0",
Expand Down

0 comments on commit 605c001

Please sign in to comment.