@boostercloud/framework-provider-azure 1.3.0 → 1.3.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.
@@ -9,5 +9,5 @@ export interface ContextResponse {
9
9
  status: number;
10
10
  cookies?: Cookie[];
11
11
  }
12
- export declare function requestSucceeded(body?: any): Promise<ContextResponse>;
12
+ export declare function requestSucceeded(body?: unknown, headers?: Record<string, number | string | ReadonlyArray<string>>): Promise<ContextResponse>;
13
13
  export declare function requestFailed(error: Error): Promise<ContextResponse>;
@@ -3,11 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.requestFailed = exports.requestSucceeded = void 0;
4
4
  const framework_types_1 = require("@boostercloud/framework-types");
5
5
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
6
- async function requestSucceeded(body) {
6
+ async function requestSucceeded(body, headers) {
7
7
  return {
8
8
  headers: {
9
9
  'Access-Control-Allow-Origin': '*',
10
10
  'Content-Type': 'application/json',
11
+ ...headers,
11
12
  },
12
13
  status: 200,
13
14
  body: body ? JSON.stringify(body) : '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@boostercloud/framework-provider-azure",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "Handle Booster's integration with Azure",
5
5
  "keywords": [
6
6
  "framework-provider-azure"
@@ -23,8 +23,8 @@
23
23
  "@azure/cosmos": "^3.17.0",
24
24
  "@azure/functions": "^1.2.2",
25
25
  "@azure/identity": "~2.1.0",
26
- "@boostercloud/framework-common-helpers": "^1.3.0",
27
- "@boostercloud/framework-types": "^1.3.0",
26
+ "@boostercloud/framework-common-helpers": "^1.3.2",
27
+ "@boostercloud/framework-types": "^1.3.2",
28
28
  "tslib": "^2.4.0",
29
29
  "@effect-ts/core": "^0.60.4"
30
30
  },