@pisell/common 0.0.65 → 0.0.67

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.
@@ -1,5 +1,7 @@
1
1
  import { ConfigProvider } from 'antd5';
2
2
  import enUS from 'antd5/locale/en_US';
3
+ import jaJP from 'antd5/locale/ja_JP';
4
+ import ptPT from 'antd5/locale/pt_PT';
3
5
  import zhCN from 'antd5/locale/zh_CN';
4
6
  import zhTW from 'antd5/locale/zh_TW';
5
7
  declare const cssVariableMap: {
@@ -110,4 +112,4 @@ declare const defaultTheme: {
110
112
  };
111
113
  };
112
114
  export type { Locale } from 'antd/es/locale';
113
- export { ConfigProvider, defaultTheme, cssVariableMap, enUS, zhCN, zhTW };
115
+ export { ConfigProvider, defaultTheme, cssVariableMap, enUS, zhCN, zhTW, jaJP, ptPT, };
@@ -1,5 +1,7 @@
1
1
  import { ConfigProvider } from 'antd5';
2
2
  import enUS from 'antd5/locale/en_US';
3
+ import jaJP from 'antd5/locale/ja_JP';
4
+ import ptPT from 'antd5/locale/pt_PT';
3
5
  import zhCN from 'antd5/locale/zh_CN';
4
6
  import zhTW from 'antd5/locale/zh_TW';
5
7
 
@@ -111,4 +113,4 @@ var defaultTheme = {
111
113
  colorTextBase: '#1b1b1b'
112
114
  }
113
115
  };
114
- export { ConfigProvider, defaultTheme, cssVariableMap, enUS, zhCN, zhTW };
116
+ export { ConfigProvider, defaultTheme, cssVariableMap, enUS, zhCN, zhTW, jaJP, ptPT };
@@ -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);
@@ -1,5 +1,7 @@
1
1
  import { ConfigProvider } from 'antd5';
2
2
  import enUS from 'antd5/locale/en_US';
3
+ import jaJP from 'antd5/locale/ja_JP';
4
+ import ptPT from 'antd5/locale/pt_PT';
3
5
  import zhCN from 'antd5/locale/zh_CN';
4
6
  import zhTW from 'antd5/locale/zh_TW';
5
7
  declare const cssVariableMap: {
@@ -110,4 +112,4 @@ declare const defaultTheme: {
110
112
  };
111
113
  };
112
114
  export type { Locale } from 'antd/es/locale';
113
- export { ConfigProvider, defaultTheme, cssVariableMap, enUS, zhCN, zhTW };
115
+ export { ConfigProvider, defaultTheme, cssVariableMap, enUS, zhCN, zhTW, jaJP, ptPT, };
@@ -33,12 +33,16 @@ __export(configProvider_exports, {
33
33
  cssVariableMap: () => cssVariableMap,
34
34
  defaultTheme: () => defaultTheme,
35
35
  enUS: () => import_en_US.default,
36
+ jaJP: () => import_ja_JP.default,
37
+ ptPT: () => import_pt_PT.default,
36
38
  zhCN: () => import_zh_CN.default,
37
39
  zhTW: () => import_zh_TW.default
38
40
  });
39
41
  module.exports = __toCommonJS(configProvider_exports);
40
42
  var import_antd5 = require("antd5");
41
43
  var import_en_US = __toESM(require("antd5/locale/en_US"));
44
+ var import_ja_JP = __toESM(require("antd5/locale/ja_JP"));
45
+ var import_pt_PT = __toESM(require("antd5/locale/pt_PT"));
42
46
  var import_zh_CN = __toESM(require("antd5/locale/zh_CN"));
43
47
  var import_zh_TW = __toESM(require("antd5/locale/zh_TW"));
44
48
  var cssVariableMap = {
@@ -154,6 +158,8 @@ var defaultTheme = {
154
158
  cssVariableMap,
155
159
  defaultTheme,
156
160
  enUS,
161
+ jaJP,
162
+ ptPT,
157
163
  zhCN,
158
164
  zhTW
159
165
  });
@@ -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.67",
4
4
  "description": "A collection of reusable UI components for web development",
5
5
  "license": "MIT",
6
6
  "sideEffects": [