@blocklet/uploader-server 0.1.64 → 0.1.66

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,6 @@ const companion = require("@uppy/companion");
2
2
  const bodyParser = require("body-parser");
3
3
  const session = require("express-session");
4
4
  const crypto = require("crypto");
5
- const { checkTrustedReferer, proxyImageDownload } = require("../utils");
6
5
  const secret = crypto.randomBytes(32).toString("hex");
7
6
  export function initCompanion({
8
7
  path,
@@ -13,7 +12,6 @@ export function initCompanion({
13
12
  const app = express();
14
13
  app.use(bodyParser.json());
15
14
  app.use(session({ secret }));
16
- app.use("/proxy", checkTrustedReferer, proxyImageDownload);
17
15
  let dynamicProviderOptions = providerOptions;
18
16
  const companionOptions = {
19
17
  secret,
@@ -8,10 +8,6 @@ const companion = require("@uppy/companion");
8
8
  const bodyParser = require("body-parser");
9
9
  const session = require("express-session");
10
10
  const crypto = require("crypto");
11
- const {
12
- checkTrustedReferer,
13
- proxyImageDownload
14
- } = require("../utils");
15
11
  const secret = crypto.randomBytes(32).toString("hex");
16
12
  function initCompanion({
17
13
  path,
@@ -24,7 +20,6 @@ function initCompanion({
24
20
  app.use(session({
25
21
  secret
26
22
  }));
27
- app.use("/proxy", checkTrustedReferer, proxyImageDownload);
28
23
  let dynamicProviderOptions = providerOptions;
29
24
  const companionOptions = {
30
25
  secret,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/uploader-server",
3
- "version": "0.1.64",
3
+ "version": "0.1.66",
4
4
  "description": "blocklet upload server",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -36,10 +36,10 @@
36
36
  "@uppy/companion": "4.15.1"
37
37
  },
38
38
  "dependencies": {
39
- "@abtnode/cron": "1.16.34-beta-20241212-152152-0b8d4bb3",
40
- "@blocklet/constant": "1.16.34-beta-20241212-152152-0b8d4bb3",
41
- "@blocklet/logger": "1.16.34-beta-20241212-152152-0b8d4bb3",
42
- "@blocklet/sdk": "1.16.34-beta-20241212-152152-0b8d4bb3",
39
+ "@abtnode/cron": "^1.16.36",
40
+ "@blocklet/constant": "^1.16.36",
41
+ "@blocklet/logger": "^1.16.36",
42
+ "@blocklet/sdk": "^1.16.36",
43
43
  "@tus/file-store": "1.0.0",
44
44
  "@tus/server": "1.0.0",
45
45
  "@uppy/companion": "4.15.1",