@boostercloud/framework-provider-azure 0.24.0 → 0.26.0
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.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.rawGraphQLRequestToEnvelope = void 0;
|
|
4
4
|
async function rawGraphQLRequestToEnvelope(context, logger) {
|
|
5
|
-
var _a, _b;
|
|
5
|
+
var _a, _b, _c, _d, _e, _f;
|
|
6
6
|
logger.debug('Received GraphQL request: ', context.req);
|
|
7
7
|
const requestID = context.executionContext.invocationId;
|
|
8
8
|
const connectionID = undefined; // TODO: Add this when sockets are supported
|
|
@@ -17,6 +17,13 @@ async function rawGraphQLRequestToEnvelope(context, logger) {
|
|
|
17
17
|
eventType,
|
|
18
18
|
token: (_b = (_a = context.req) === null || _a === void 0 ? void 0 : _a.headers) === null || _b === void 0 ? void 0 : _b.authorization,
|
|
19
19
|
value: graphQLValue,
|
|
20
|
+
context: {
|
|
21
|
+
request: {
|
|
22
|
+
headers: (_c = context.req) === null || _c === void 0 ? void 0 : _c.headers,
|
|
23
|
+
body: (_d = context.req) === null || _d === void 0 ? void 0 : _d.body,
|
|
24
|
+
},
|
|
25
|
+
rawContext: context,
|
|
26
|
+
},
|
|
20
27
|
};
|
|
21
28
|
}
|
|
22
29
|
catch (e) {
|
|
@@ -25,6 +32,13 @@ async function rawGraphQLRequestToEnvelope(context, logger) {
|
|
|
25
32
|
requestID,
|
|
26
33
|
connectionID,
|
|
27
34
|
eventType,
|
|
35
|
+
context: {
|
|
36
|
+
request: {
|
|
37
|
+
headers: (_e = context.req) === null || _e === void 0 ? void 0 : _e.headers,
|
|
38
|
+
body: (_f = context.req) === null || _f === void 0 ? void 0 : _f.body,
|
|
39
|
+
},
|
|
40
|
+
rawContext: context,
|
|
41
|
+
},
|
|
28
42
|
};
|
|
29
43
|
}
|
|
30
44
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@boostercloud/framework-provider-azure",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"description": "Handle Booster's integration with Azure",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"framework-provider-azure"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@azure/cosmos": "3.7.3",
|
|
24
24
|
"@azure/functions": "^1.2.2",
|
|
25
|
-
"@boostercloud/framework-types": "^0.
|
|
25
|
+
"@boostercloud/framework-types": "^0.26.0",
|
|
26
26
|
"chai": "4.2.0",
|
|
27
27
|
"chai-as-promised": "7.1.1",
|
|
28
28
|
"mocha": "8.4.0",
|
|
@@ -41,5 +41,5 @@
|
|
|
41
41
|
"bugs": {
|
|
42
42
|
"url": "https://github.com/boostercloud/booster/issues"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "e2b629a7a55ffef3765d5c684ed4c8ca75d80219"
|
|
45
45
|
}
|