ydb-components-material 0.1.74 → 0.1.75

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.
package/es/api.js CHANGED
@@ -10,12 +10,16 @@ export var post = /*#__PURE__*/function () {
10
10
  noJson = false;
11
11
  }
12
12
  console.log('window.env', window.env, window.tokenTY);
13
+ if (window.env === 'release' && url.indexOf('zwfwpt.sxzwfw.gov.cn') > -1) {
14
+ url = url.replace('zwfwpt.sxzwfw.gov.cn', 'zwfwpt.sxzwfw.gov.cn:10010');
15
+ }
13
16
  _context.next = 1;
14
17
  return fetch(url, {
15
18
  method: 'POST',
16
19
  headers: {
17
20
  'Content-Type': config && config['Content-Type'] ? config['Content-Type'] : 'application/json',
18
21
  // 声明发送的数据格式
22
+ // zwfwpt.sxzwfw.gov.cn
19
23
  'Authorization': url.indexOf('zwfwpt.sxzwfw.gov.cn') > -1 ? window.token : window.tokenTY
20
24
  },
21
25
  body: JSON.stringify(data)
package/lib/api.js CHANGED
@@ -15,12 +15,16 @@ var post = exports.post = /*#__PURE__*/function () {
15
15
  noJson = false;
16
16
  }
17
17
  console.log('window.env', window.env, window.tokenTY);
18
+ if (window.env === 'release' && url.indexOf('zwfwpt.sxzwfw.gov.cn') > -1) {
19
+ url = url.replace('zwfwpt.sxzwfw.gov.cn', 'zwfwpt.sxzwfw.gov.cn:10010');
20
+ }
18
21
  _context.next = 1;
19
22
  return fetch(url, {
20
23
  method: 'POST',
21
24
  headers: {
22
25
  'Content-Type': config && config['Content-Type'] ? config['Content-Type'] : 'application/json',
23
26
  // 声明发送的数据格式
27
+ // zwfwpt.sxzwfw.gov.cn
24
28
  'Authorization': url.indexOf('zwfwpt.sxzwfw.gov.cn') > -1 ? window.token : window.tokenTY
25
29
  },
26
30
  body: JSON.stringify(data)
@@ -89,7 +89,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
89
89
  packageName = 'ydb-components-material';
90
90
  }
91
91
  if (version === void 0) {
92
- version = '0.1.74';
92
+ version = '0.1.75';
93
93
  }
94
94
  if (basicLibraryVersion === void 0) {
95
95
  basicLibraryVersion = {
@@ -94,7 +94,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
94
94
  packageName = 'ydb-components-material';
95
95
  }
96
96
  if (version === void 0) {
97
- version = '0.1.74';
97
+ version = '0.1.75';
98
98
  }
99
99
  if (basicLibraryVersion === void 0) {
100
100
  basicLibraryVersion = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ydb-components-material",
3
- "version": "0.1.74",
3
+ "version": "0.1.75",
4
4
  "description": "ydb-components-material",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -97,10 +97,10 @@
97
97
  },
98
98
  "componentConfig": {
99
99
  "isComponentLibrary": true,
100
- "materialSchema": "https://unpkg.com/ydb-components-material@0.1.74/build/lowcode/assets-prod.json"
100
+ "materialSchema": "https://unpkg.com/ydb-components-material@0.1.75/build/lowcode/assets-prod.json"
101
101
  },
102
102
  "lcMeta": {
103
103
  "type": "component"
104
104
  },
105
- "homepage": "https://unpkg.com/ydb-components-material@0.1.74/build/index.html"
105
+ "homepage": "https://unpkg.com/ydb-components-material@0.1.75/build/index.html"
106
106
  }