@aeriajs/entrypoint 0.0.53 → 0.0.54
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 +2 -3
- package/dist/index.mjs +2 -3
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -26,15 +26,14 @@ const internalGetCollections = async () => {
|
|
|
26
26
|
const collections = entrypoint.collections
|
|
27
27
|
? entrypoint.collections
|
|
28
28
|
: entrypoint.default.options.collections;
|
|
29
|
-
return collections;
|
|
29
|
+
return Object.assign({}, collections);
|
|
30
30
|
};
|
|
31
31
|
const getCollections = async () => {
|
|
32
32
|
if (collectionsMemo) {
|
|
33
33
|
return collectionsMemo;
|
|
34
34
|
}
|
|
35
35
|
collectionsMemo = await internalGetCollections();
|
|
36
|
-
Object.freeze(collectionsMemo);
|
|
37
|
-
return collectionsMemo;
|
|
36
|
+
return Object.freeze(collectionsMemo);
|
|
38
37
|
};
|
|
39
38
|
exports.getCollections = getCollections;
|
|
40
39
|
const getCollection = async (collectionName) => {
|
package/dist/index.mjs
CHANGED
|
@@ -20,15 +20,14 @@ export const getEntrypoint = async () => {
|
|
|
20
20
|
const internalGetCollections = async () => {
|
|
21
21
|
const entrypoint = await getEntrypoint();
|
|
22
22
|
const collections = entrypoint.collections ? entrypoint.collections : entrypoint.default.options.collections;
|
|
23
|
-
return collections;
|
|
23
|
+
return Object.assign({}, collections);
|
|
24
24
|
};
|
|
25
25
|
export const getCollections = async () => {
|
|
26
26
|
if (collectionsMemo) {
|
|
27
27
|
return collectionsMemo;
|
|
28
28
|
}
|
|
29
29
|
collectionsMemo = await internalGetCollections();
|
|
30
|
-
Object.freeze(collectionsMemo);
|
|
31
|
-
return collectionsMemo;
|
|
30
|
+
return Object.freeze(collectionsMemo);
|
|
32
31
|
};
|
|
33
32
|
export const getCollection = async (collectionName) => {
|
|
34
33
|
if (collectionMemo[collectionName]) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aeriajs/entrypoint",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.54",
|
|
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.54",
|
|
30
|
+
"@aeriajs/types": "^0.0.51"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"test": "echo skipping",
|