@adobe/spacecat-shared-utils 1.11.0 → 1.11.2

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 CHANGED
@@ -1,3 +1,17 @@
1
+ # [@adobe/spacecat-shared-utils-v1.11.2](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.11.1...@adobe/spacecat-shared-utils-v1.11.2) (2024-02-12)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **deps:** update external fixes ([#148](https://github.com/adobe/spacecat-shared/issues/148)) ([a32b5ce](https://github.com/adobe/spacecat-shared/commit/a32b5ce7c57e06d9b27250a8e59b666198945f72))
7
+
8
+ # [@adobe/spacecat-shared-utils-v1.11.1](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.11.0...@adobe/spacecat-shared-utils-v1.11.1) (2024-02-08)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * sqsWrapper not properly exported ([#146](https://github.com/adobe/spacecat-shared/issues/146)) ([5c2f401](https://github.com/adobe/spacecat-shared/commit/5c2f401db37c4a51288b3783b82a3aab9122d6e4))
14
+
1
15
  # [@adobe/spacecat-shared-utils-v1.11.0](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-utils-v1.10.0...@adobe/spacecat-shared-utils-v1.11.0) (2024-02-07)
2
16
 
3
17
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adobe/spacecat-shared-utils",
3
- "version": "1.11.0",
3
+ "version": "1.11.2",
4
4
  "description": "Shared modules of the Spacecat Services - utils",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -40,7 +40,7 @@
40
40
  },
41
41
  "dependencies": {
42
42
  "@adobe/fetch": "4.1.1",
43
- "@aws-sdk/client-s3": "3.507.0",
44
- "@aws-sdk/client-sqs": "3.507.0"
43
+ "@aws-sdk/client-s3": "3.511.0",
44
+ "@aws-sdk/client-sqs": "3.511.0"
45
45
  }
46
46
  }
package/src/index.d.ts CHANGED
@@ -37,6 +37,9 @@ export function isValidUrl(urlString: string): boolean;
37
37
 
38
38
  export function dateAfterDays(days: string): Date;
39
39
 
40
+ export function sqsWrapper(fn: (message: object, context: object) => Promise<Response>):
41
+ (request: object, context: object) => Promise<Response>;
42
+
40
43
  export function sqsEventAdapter(fn: (message: object, context: object) => Promise<Response>):
41
44
  (request: object, context: object) => Promise<Response>;
42
45
 
package/src/index.js CHANGED
@@ -29,6 +29,7 @@ export {
29
29
 
30
30
  export { resolveSecretsName } from './helpers.js';
31
31
 
32
+ export { sqsWrapper } from './sqs.js';
32
33
  export { sqsEventAdapter } from './sqs.js';
33
34
 
34
35
  export {
package/src/sqs.js CHANGED
@@ -45,7 +45,7 @@ class SQS {
45
45
  }
46
46
  }
47
47
 
48
- export default function sqsWrapper(fn) {
48
+ export function sqsWrapper(fn) {
49
49
  return async (request, context) => {
50
50
  if (!context.sqs) {
51
51
  const { log } = context;