@pisell/common 0.0.65 → 0.0.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.
@@ -47,7 +47,15 @@ var init = /*#__PURE__*/function () {
47
47
  credentials: {
48
48
  accessKeyId: awsConfig.accessKeyId,
49
49
  secretAccessKey: awsConfig.secretAccessKey
50
- }
50
+ },
51
+ // 自定义重试配置
52
+ requestHandler: new NodeHttpHandler({
53
+ connectionTimeout: 50000,
54
+ // 连接超时
55
+ socketTimeout: 300000 // socket超时
56
+ }),
57
+
58
+ maxAttempts: 5
51
59
  });
52
60
  console.log('aws 初始化成功');
53
61
  return _context.abrupt("return", serverConfig.aws);
@@ -53,7 +53,15 @@ var init = async () => {
53
53
  credentials: {
54
54
  accessKeyId: awsConfig.accessKeyId,
55
55
  secretAccessKey: awsConfig.secretAccessKey
56
- }
56
+ },
57
+ // 自定义重试配置
58
+ requestHandler: new NodeHttpHandler({
59
+ connectionTimeout: 5e4,
60
+ // 连接超时
61
+ socketTimeout: 3e5
62
+ // socket超时
63
+ }),
64
+ maxAttempts: 5
57
65
  });
58
66
  console.log("aws 初始化成功");
59
67
  return serverConfig.aws;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/common",
3
- "version": "0.0.65",
3
+ "version": "0.0.66",
4
4
  "description": "A collection of reusable UI components for web development",
5
5
  "license": "MIT",
6
6
  "sideEffects": [