@pisell/common 0.0.36 → 0.0.38

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.
@@ -11,6 +11,7 @@ import mime from 'mime-types';
11
11
  import path from 'path';
12
12
  import { getServerConfig } from "../utils/index.js";
13
13
  var filterFiles = ['index.html', 'umi.server.js', 'umi.server.d.ts'];
14
+ var __dirname = process.cwd();
14
15
  var s3Client = null;
15
16
  var bucketName = '';
16
17
 
@@ -86,7 +87,7 @@ var uploadFile = /*#__PURE__*/function () {
86
87
  Key: "static/".concat(directory, "/").concat(fileKey),
87
88
  // 指定目录路径
88
89
  Body: fileStream,
89
- contentType: contentType,
90
+ ContentType: contentType,
90
91
  ACL: 'public-read' // 设置ACL权限为公共读取
91
92
  };
92
93
  command = new PutObjectCommand(uploadParams);
@@ -39,6 +39,7 @@ var import_mime_types = __toESM(require("mime-types"));
39
39
  var import_path = __toESM(require("path"));
40
40
  var import_utils = require("../utils/index.js");
41
41
  var filterFiles = ["index.html", "umi.server.js", "umi.server.d.ts"];
42
+ var __dirname = process.cwd();
42
43
  var s3Client = null;
43
44
  var bucketName = "";
44
45
  var init = async () => {
@@ -73,7 +74,7 @@ var uploadFile = async (directory, fileKey, filePath) => {
73
74
  Key: `static/${directory}/${fileKey}`,
74
75
  // 指定目录路径
75
76
  Body: fileStream,
76
- contentType,
77
+ ContentType: contentType,
77
78
  ACL: "public-read"
78
79
  // 设置ACL权限为公共读取
79
80
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/common",
3
- "version": "0.0.36",
3
+ "version": "0.0.38",
4
4
  "description": "A collection of reusable UI components for web development",
5
5
  "license": "MIT",
6
6
  "sideEffects": [