@flink-app/s3-plugin 2.0.0-alpha.95 → 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,19 @@
1
1
  # @flink-app/s3-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
+
10
+ ## 2.0.0-alpha.96
11
+
12
+ ### Patch Changes
13
+
14
+ - Updated dependencies
15
+ - @flink-app/flink@2.0.0-alpha.96
16
+
3
17
  ## 2.0.0-alpha.95
4
18
 
5
19
  ### Patch Changes
package/dist/index.js CHANGED
@@ -107,7 +107,7 @@ function init(app, options) {
107
107
  switch (_c.label) {
108
108
  case 0:
109
109
  if (!options.uploadPermissionRequired) return [3 /*break*/, 2];
110
- return [4 /*yield*/, ((_a = app.ctx.auth) === null || _a === void 0 ? void 0 : _a.authenticateRequest(req, [options.uploadPermissionRequired]))];
110
+ return [4 /*yield*/, ((_a = app.ctx.auth) === null || _a === void 0 ? void 0 : _a.authenticateRequest(req, [options.uploadPermissionRequired], app.ctx))];
111
111
  case 1:
112
112
  authenticated = (_c.sent());
113
113
  if (!authenticated) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flink-app/s3-plugin",
3
- "version": "2.0.0-alpha.95",
3
+ "version": "2.0.0-alpha.97",
4
4
  "description": "Flink plugin to work with s3",
5
5
  "author": "johan@frost.se",
6
6
  "publishConfig": {
@@ -15,7 +15,7 @@
15
15
  "express-fileupload": "^1.3.1",
16
16
  "mime-types": "^2.1.35",
17
17
  "node-color-log": "^5.3.1",
18
- "@flink-app/flink": "2.0.0-alpha.95"
18
+ "@flink-app/flink": "2.0.0-alpha.97"
19
19
  },
20
20
  "devDependencies": {
21
21
  "@types/express-fileupload": "^1.2.2",
@@ -24,7 +24,7 @@
24
24
  },
25
25
  "gitHead": "4243e3b3cd6d4e1ca001a61baa8436bf2bbe4113",
26
26
  "peerDependencies": {
27
- "@flink-app/flink": ">=2.0.0-alpha.95"
27
+ "@flink-app/flink": ">=2.0.0-alpha.97"
28
28
  },
29
29
  "scripts": {
30
30
  "test": "echo \"Error: no test specified\"",
package/src/index.ts CHANGED
@@ -41,7 +41,7 @@ function init(app: FlinkApp<any>, options: s3PluginOptions) {
41
41
 
42
42
  app.expressApp!.post(uploadUrl, async (req, res) => {
43
43
  if (options.uploadPermissionRequired) {
44
- let authenticated = (await app.ctx.auth?.authenticateRequest(req, [options.uploadPermissionRequired])) as boolean;
44
+ let authenticated = (await app.ctx.auth?.authenticateRequest(req, [options.uploadPermissionRequired], app.ctx)) as boolean;
45
45
  if (!authenticated) {
46
46
  res.status(500).json({
47
47
  status: 500,