@aeriajs/entrypoint 0.0.46 → 0.0.47
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/dist/index.js +3 -1
- package/dist/index.mjs +3 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -45,7 +45,9 @@ const getCollection = async (collectionName) => {
|
|
|
45
45
|
const collection = typeof candidate === 'function'
|
|
46
46
|
? candidate()
|
|
47
47
|
: candidate;
|
|
48
|
-
|
|
48
|
+
if (collection) {
|
|
49
|
+
collectionsMemo[collectionName] = collection;
|
|
50
|
+
}
|
|
49
51
|
return collection;
|
|
50
52
|
};
|
|
51
53
|
exports.getCollection = getCollection;
|
package/dist/index.mjs
CHANGED
|
@@ -36,7 +36,9 @@ export const getCollection = async (collectionName) => {
|
|
|
36
36
|
const collections = await getCollections();
|
|
37
37
|
const candidate = collections[collectionName];
|
|
38
38
|
const collection = typeof candidate === "function" ? candidate() : candidate;
|
|
39
|
-
|
|
39
|
+
if (collection) {
|
|
40
|
+
collectionsMemo[collectionName] = collection;
|
|
41
|
+
}
|
|
40
42
|
return collection;
|
|
41
43
|
};
|
|
42
44
|
export const getRouter = async () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/entrypoint",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.47",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"@aeriajs/types": "link:../types"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@aeriajs/common": "^0.0.
|
|
30
|
-
"@aeriajs/types": "^0.0.
|
|
29
|
+
"@aeriajs/common": "^0.0.47",
|
|
30
|
+
"@aeriajs/types": "^0.0.44"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"test": "echo skipping",
|