next-tinacms-dos 0.0.0-20240828013605 → 0.0.0-20240828013639

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.
Files changed (2) hide show
  1. package/dist/handlers.js +1 -4
  2. package/package.json +3 -3
package/dist/handlers.js CHANGED
@@ -72,7 +72,6 @@ var createMediaHandler = (config, options) => {
72
72
  };
73
73
  };
74
74
  async function uploadMedia(req, res, client, bucket, mediaRoot, cdnUrl) {
75
- var _a;
76
75
  const upload = (0, import_util.promisify)(
77
76
  (0, import_multer.default)({
78
77
  storage: import_multer.default.diskStorage({
@@ -91,15 +90,13 @@ async function uploadMedia(req, res, client, bucket, mediaRoot, cdnUrl) {
91
90
  if (prefix)
92
91
  prefix = prefix + "/";
93
92
  const filePath = req.file.path;
94
- const fileType = (_a = req.file) == null ? void 0 : _a.mimetype;
95
93
  const blob = import_fs.default.readFileSync(filePath);
96
94
  const filename = import_path.default.basename(filePath);
97
95
  const params = {
98
96
  Bucket: bucket,
99
97
  Key: mediaRoot ? import_path.default.join(mediaRoot, prefix + filename) : prefix + filename,
100
98
  Body: blob,
101
- ACL: "public-read",
102
- ContentType: fileType || "application/octet-stream"
99
+ ACL: "public-read"
103
100
  };
104
101
  const command = new import_client_s3.PutObjectCommand(params);
105
102
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "next-tinacms-dos",
3
- "version": "0.0.0-20240828013605",
3
+ "version": "0.0.0-20240828013639",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.mjs",
6
6
  "files": [
@@ -18,7 +18,7 @@
18
18
  ]
19
19
  },
20
20
  "peerDependencies": {
21
- "tinacms": "0.0.0-20240828013605"
21
+ "tinacms": "0.0.0-20240828013639"
22
22
  },
23
23
  "devDependencies": {
24
24
  "@types/crypto-js": "^3.1.47",
@@ -29,7 +29,7 @@
29
29
  "react-dom": "^18.3.1",
30
30
  "typescript": "4.6.4",
31
31
  "@tinacms/scripts": "1.2.0",
32
- "tinacms": "0.0.0-20240828013605"
32
+ "tinacms": "0.0.0-20240828013639"
33
33
  },
34
34
  "publishConfig": {
35
35
  "registry": "https://registry.npmjs.org"