@squiz/job-runner-lib 2.4.0 → 2.5.1
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/CHANGELOG.md +12 -0
- package/lib/domains/job/S3Repository/S3RepositoryBase.d.ts +6 -0
- package/lib/domains/job/services/JobExecutionTaskService/JobExecutionTaskService.defs.d.ts +0 -1
- package/lib/index.js +7 -7
- package/lib/index.js.map +3 -3
- package/package.json +2 -2
- package/src/domains/job/S3Repository/S3RepositoryBase.ts +19 -0
- package/src/domains/job/services/JobExecutionTaskService/JobExecutionTaskService.defs.ts +0 -1
- package/src/domains/job/services/JobExecutionTaskService/JobExecutionTaskService.spec.ts +63 -13
- package/src/domains/job/services/JobExecutionTaskService/JobExecutionTaskService.ts +25 -7
package/CHANGELOG.md
CHANGED
|
@@ -13,6 +13,12 @@ export declare class S3RepositoryBase {
|
|
|
13
13
|
protected s3Client: S3Client;
|
|
14
14
|
protected bucketName: string;
|
|
15
15
|
constructor(s3Client: S3Client, bucketName: string);
|
|
16
|
+
/**
|
|
17
|
+
* Validates S3 key to prevent malicious input
|
|
18
|
+
* @param {string} key The S3 object key to validate
|
|
19
|
+
* @private
|
|
20
|
+
*/
|
|
21
|
+
private validateS3Key;
|
|
16
22
|
/**
|
|
17
23
|
* Save object into S3.
|
|
18
24
|
* @param {string} key The S3 object key.
|