@aldb2b/common 1.0.1089 → 1.0.1090
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/build/db/mongoose-find-options.d.ts +1 -0
- package/build/db/mongoose-find-options.js +5 -0
- package/build/db/mongoose-find-options.js.map +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/build/utils/get-presigned-url.d.ts +1 -1
- package/build/utils/get-presigned-url.js +4 -4
- package/build/utils/get-presigned-url.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function
|
|
1
|
+
export declare function GetPresignedUrl(records: any[], presignedFields: string[], bucket: string, expires: number): Promise<any[]>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.GetPresignedUrl = void 0;
|
|
4
4
|
const storage_manager_1 = require("./storage-manager");
|
|
5
|
-
async function
|
|
5
|
+
async function GetPresignedUrl(records, presignedFields, bucket, expires) {
|
|
6
6
|
const presignedUrlsPromise = records
|
|
7
7
|
.filter((rec) => presignedFields.map(x => rec[x]))
|
|
8
|
-
.map((rec) => presignedFields.map(x => storage_manager_1.StorageInstance.getSigendUrl(rec[x], bucket,
|
|
8
|
+
.map((rec) => presignedFields.map(x => storage_manager_1.StorageInstance.getSigendUrl(rec[x], bucket, expires)));
|
|
9
9
|
const presignedUrls = await Promise.all(presignedUrlsPromise.flatMap(x => x));
|
|
10
10
|
return records.map((rec) => {
|
|
11
11
|
presignedFields.forEach(field => {
|
|
@@ -21,5 +21,5 @@ async function getPresignedUrl(records, presignedFields, key, bucket, expireDura
|
|
|
21
21
|
return rec;
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
-
exports.
|
|
24
|
+
exports.GetPresignedUrl = GetPresignedUrl;
|
|
25
25
|
//# sourceMappingURL=get-presigned-url.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-presigned-url.js","sourceRoot":"","sources":["../../src/utils/get-presigned-url.ts"],"names":[],"mappings":";;;AAAA,uDAAkD;AAE3C,KAAK,UAAU,eAAe,CAAC,OAAc,EAAE,eAAyB,EAAE,
|
|
1
|
+
{"version":3,"file":"get-presigned-url.js","sourceRoot":"","sources":["../../src/utils/get-presigned-url.ts"],"names":[],"mappings":";;;AAAA,uDAAkD;AAE3C,KAAK,UAAU,eAAe,CAAC,OAAc,EAAE,eAAyB,EAAE,MAAc,EAAE,OAAe;IAC5G,MAAM,oBAAoB,GAAG,OAAO;SAC/B,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;SACjD,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,iCAAe,CAAC,YAAY,CAC/D,GAAG,CAAC,CAAC,CAAC,EACN,MAAM,EACN,OAAO,CACV,CAAC,CAAC,CAAC;IAER,MAAM,aAAa,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,oBAAoB,CAAC,OAAO,CAAC,CAAC,CAAA,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;IAE7E,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;QACvB,eAAe,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YAC5B,IAAI,GAAG,CAAC,KAAK,CAAC,EAAE,CAAC;gBACb,MAAM,GAAG,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,KAAK,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;gBACnE,GAAG,CAAC,KAAK,CAAC,GAAG,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC;gBAC/B,OAAO,GAAG,CAAC;YACf,CAAC;iBAAM,CAAC;gBACJ,OAAO,GAAG,CAAC;YACf,CAAC;QACL,CAAC,CAAC,CAAA;QACF,OAAO,GAAG,CAAC;IACf,CAAC,CAAC,CAAC;AACP,CAAC;AAvBD,0CAuBC"}
|