@flink-app/generic-request-plugin 2.0.0-alpha.96 → 2.0.0-alpha.97

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,5 +1,12 @@
1
1
  # @flink-app/generic-request-plugin
2
2
 
3
+ ## 2.0.0-alpha.97
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [eed6bc1]
8
+ - @flink-app/flink@2.0.0-alpha.97
9
+
3
10
  ## 2.0.0-alpha.96
4
11
 
5
12
  ### Patch Changes
package/dist/index.js CHANGED
@@ -71,7 +71,7 @@ function init(app, options) {
71
71
  if (!app.auth) {
72
72
  throw new Error("Route ".concat(options.method.toUpperCase(), " ").concat(options.path, " requires permissions but no auth plugin is configured"));
73
73
  }
74
- return [4 /*yield*/, app.auth.authenticateRequest(req, options.permissions)];
74
+ return [4 /*yield*/, app.auth.authenticateRequest(req, options.permissions, app.ctx)];
75
75
  case 1:
76
76
  authenticated = _a.sent();
77
77
  if (!authenticated) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flink-app/generic-request-plugin",
3
- "version": "2.0.0-alpha.96",
3
+ "version": "2.0.0-alpha.97",
4
4
  "description": "Flink plugin that makes it possible to override default request handlers and handle specific requests manually",
5
5
  "author": "johan@frost.se",
6
6
  "publishConfig": {
@@ -11,7 +11,7 @@
11
11
  "main": "dist/index.js",
12
12
  "dependencies": {
13
13
  "node-color-log": "^5.3.1",
14
- "@flink-app/flink": "2.0.0-alpha.96"
14
+ "@flink-app/flink": "2.0.0-alpha.97"
15
15
  },
16
16
  "devDependencies": {
17
17
  "@types/jasmine": "^3.7.1",
@@ -19,7 +19,7 @@
19
19
  },
20
20
  "gitHead": "4243e3b3cd6d4e1ca001a61baa8436bf2bbe4113",
21
21
  "peerDependencies": {
22
- "@flink-app/flink": ">=2.0.0-alpha.96"
22
+ "@flink-app/flink": ">=2.0.0-alpha.97"
23
23
  },
24
24
  "scripts": {
25
25
  "test": "jasmine-ts --config=./spec/support/jasmine.json",
package/src/index.ts CHANGED
@@ -56,7 +56,7 @@ function init(app: FlinkApp<any>, options: GenericRequestOptions) {
56
56
 
57
57
  // Express Request is structurally compatible with FlinkRequest for auth purposes
58
58
  // (both have headers and user properties). This follows the same pattern as FlinkApp.ts:826
59
- const authenticated = await app.auth.authenticateRequest(req as FlinkRequest, options.permissions);
59
+ const authenticated = await app.auth.authenticateRequest(req as FlinkRequest, options.permissions, app.ctx);
60
60
 
61
61
  if (!authenticated) {
62
62
  return res.status(401).json({