@toolproof-npm/shared 0.1.89 → 0.1.90
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/constants.d.ts +1 -0
- package/dist/constants.js +1 -0
- package/dist/firebaseAdminHelpers.js +5 -1
- package/package.json +1 -1
package/dist/constants.d.ts
CHANGED
package/dist/constants.js
CHANGED
|
@@ -9,8 +9,12 @@ export function getNewIdentity(identifiable) {
|
|
|
9
9
|
}
|
|
10
10
|
export async function listResources(// ATTENTION: must clean up
|
|
11
11
|
resourceTypeRefs) {
|
|
12
|
-
const
|
|
12
|
+
const bucket_resources = storageAdmin.bucket(CONSTANTS.STORAGE.BUCKETS.tp_resources);
|
|
13
|
+
const bucket_strategies = storageAdmin.bucket(CONSTANTS.STORAGE.BUCKETS.tp_strategies);
|
|
13
14
|
async function fetchFilesUnder(resourceTypeRef) {
|
|
15
|
+
const bucket = resourceTypeRef === CONSTANTS.SPECIALS.TYPE_StatefulStrategy
|
|
16
|
+
? bucket_strategies
|
|
17
|
+
: bucket_resources;
|
|
14
18
|
const prefix = `${resourceTypeRef}/`;
|
|
15
19
|
const [found] = await bucket.getFiles({ prefix });
|
|
16
20
|
const files = found.filter(f => {
|