@docfy/ember 0.4.7 → 0.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.js CHANGED
@@ -112,11 +112,10 @@ module.exports = {
112
112
  // Re-enables caching of this addon, due to opting out
113
113
  // of the caching implicitly by specifying treeFor* methods
114
114
  cacheKeyForTree(treeType) {
115
- var _a, _b, _c;
116
115
  switch (treeType) {
117
- case 'app': {
118
- const sources = (_c = (_b = (_a = this.docfyConfig) === null || _a === void 0 ? void 0 : _a.sources) === null || _b === void 0 ? void 0 : _b.map((item) => item.root)) === null || _c === void 0 ? void 0 : _c.join(',');
119
- return calculate_cache_key_for_tree_1.default(treeType, this, [sources]);
116
+ case 'app':
117
+ case 'addon': {
118
+ return calculate_cache_key_for_tree_1.default(treeType, this, [this.docfyConfig]);
120
119
  }
121
120
  default:
122
121
  return calculate_cache_key_for_tree_1.default(treeType, this);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@docfy/ember",
3
- "version": "0.4.7",
3
+ "version": "0.4.8",
4
4
  "description": "Ember integration with Docfy",
5
5
  "keywords": [
6
6
  "ember-addon",
@@ -122,5 +122,5 @@
122
122
  "prember"
123
123
  ]
124
124
  },
125
- "gitHead": "b774d9e5bd1e676ac79dc61c4ef061c380a21b94"
125
+ "gitHead": "367f4946c144db8c5ef4e03fe44ba7450c89849e"
126
126
  }
package/src/index.ts CHANGED
@@ -139,11 +139,9 @@ module.exports = {
139
139
  // of the caching implicitly by specifying treeFor* methods
140
140
  cacheKeyForTree(treeType: string): string {
141
141
  switch (treeType) {
142
- case 'app': {
143
- const sources = (this.docfyConfig as DocfyConfig)?.sources
144
- ?.map((item) => item.root)
145
- ?.join(',');
146
- return cacheKeyForTree(treeType, this, [sources]);
142
+ case 'app':
143
+ case 'addon': {
144
+ return cacheKeyForTree(treeType, this, [this.docfyConfig]);
147
145
  }
148
146
  default:
149
147
  return cacheKeyForTree(treeType, this);