@conecli/cone-render 0.10.1-shop-beta.9 → 0.10.1-shop-beta.11
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/dist/common/const.ts +1 -1
- package/dist/common/index.h5.ts +1 -1
- package/dist/common/index.jd.ts +1 -1
- package/dist/common/index.ts +1 -1
- package/dist/common/index.weapp.ts +1 -1
- package/dist/common/token/token.jd.ts +1 -1
- package/dist/interface/common.ts +1 -1
- package/dist/interface/jumpEventReport.ts +1 -1
- package/dist/jumpEventReport/index.weapp.ts +1 -1
- package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
- package/dist/jumpEventReport/logEventConfig.ts +1 -1
- package/dist/jumpEventReport/web.base.ts +1 -1
- package/dist/jumpEventReport/web.jd.ts +1 -1
- package/dist/jumpEventReport/web.wxapp.ts +1 -1
- package/dist/open/api/environment.ts +1 -1
- package/dist/open/api/shopMember.ts +1 -1
- package/dist/sass/app.h5.scss +6 -0
- package/dist/service/fetchGateway.ts +1 -1
- package/dist/service/http/const.ts +1 -1
- package/dist/utils/h5Utils.ts +1 -1
- package/dist/utils/index.h5.ts +1 -1
- package/dist/utils/index.ts +1 -1
- package/dist/utils/index.weapp.ts +1 -1
- package/dist/utils/sColor.js +1 -1
- package/package.json +24 -24
package/dist/utils/sColor.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const colorDSM = 'https://api.m.jd.com/client.action?functionId=';
|
|
2
1
|
[
|
|
3
2
|
colorDSM + 'op_getGoodListByCatesIds',
|
|
4
3
|
['dsm.jshop.operations.api.inner.service.ProductJsfService.getGoodListByCatesIds', true],
|
|
5
4
|
,
|
|
6
5
|
],
|
|
7
6
|
console.log('getSColorPara ~ url is:', url);
|
|
8
7
|
url = colorDSM + url;
|
|
9
8
|
if (isDowngradeSDM(url)) {
|
|
10
9
|
return {};
|
|
11
10
|
}
|
|
12
11
|
return getDSMValue(url)
|
|
13
12
|
? {
|
|
14
13
|
url: '/api?v=1.0&appId=IEAFE4HKEFPYCKVAUVBR&api=' + getDSMValue(url)[0],
|
|
15
14
|
}
|
|
16
15
|
: {};
|
|
17
16
|
url = colorDSM + url;
|
|
18
17
|
try {
|
|
19
18
|
if (isDowngradeSDM(url)) {
|
|
20
19
|
return false;
|
|
21
20
|
}
|
|
22
21
|
console.log('is DSM', !!getDSMValue(url));
|
|
23
22
|
return !!getDSMValue(url);
|
|
24
23
|
} catch (error) {
|
|
25
24
|
console.log('🚀 ~ checkIsDSM ~ error:', error);
|
|
26
25
|
return false;
|
|
27
26
|
}
|
|
28
27
|
url = colorDSM + url;
|
|
29
28
|
if (isDowngradeSDM(url)) {
|
|
30
29
|
return false;
|
|
31
30
|
}
|
|
32
31
|
console.log('is need deconstruction', getDSMValue(url) ? getDSMValue(url)[1] : false);
|
|
33
32
|
return getDSMValue(url) ? getDSMValue(url)[1] : false;
|
|
34
33
|
for (let [key, value] of DSM) {
|
|
35
34
|
if (url.startsWith(key) && url.includes('?')) {
|
|
36
35
|
return value;
|
|
37
36
|
}
|
|
38
37
|
if (key === url) {
|
|
39
38
|
return value;
|
|
40
39
|
}
|
|
41
40
|
}
|
|
42
41
|
return '';
|
|
43
42
|
const { nodePageData } = window;
|
|
44
43
|
const { DSMDowngradeList } = nodePageData;
|
|
45
44
|
console.log('DSMDowngradeList:', DSMDowngradeList);
|
|
46
45
|
if (
|
|
47
46
|
!Array.isArray(DSMDowngradeList) ||
|
|
48
47
|
(DSMDowngradeList.length > 0 &&
|
|
49
48
|
DSMDowngradeList.some((prefix) => url.startsWith(prefix)) &&
|
|
50
49
|
url.includes('?')) ||
|
|
51
50
|
DSMDowngradeList.includes(url)
|
|
52
51
|
) {
|
|
53
52
|
return true;
|
|
54
53
|
}
|
|
55
54
|
return false;
|
|
56
55
|
getSColorPara: (url) => getSColorPara(url),
|
|
57
56
|
checkIsNeedDeconstruction: (url) => checkIsNeedDeconstruction(url),
|
|
58
57
|
checkIsDSM: (url) => checkIsDSM(url),
|
|
58
|
+
const colorDSM = 'https://api.m.jd.com/client.action?functionId=';
|
|
59
59
|
[
|
|
60
60
|
colorDSM + 'op_getGoodListByCatesIds',
|
|
61
61
|
['dsm.jshop.operations.api.inner.service.ProductJsfService.getGoodListByCatesIds', true],
|
|
62
62
|
,
|
|
63
63
|
],
|
|
64
64
|
console.log('getSColorPara ~ url is:', url);
|
|
65
65
|
url = colorDSM + url;
|
|
66
66
|
if (isDowngradeSDM(url)) {
|
|
67
67
|
return {};
|
|
68
68
|
}
|
|
69
69
|
return getDSMValue(url)
|
|
70
70
|
? {
|
|
71
71
|
url: '/api?v=1.0&appId=IEAFE4HKEFPYCKVAUVBR&api=' + getDSMValue(url)[0],
|
|
72
72
|
}
|
|
73
73
|
: {};
|
|
74
74
|
url = colorDSM + url;
|
|
75
75
|
try {
|
|
76
76
|
if (isDowngradeSDM(url)) {
|
|
77
77
|
return false;
|
|
78
78
|
}
|
|
79
79
|
console.log('is DSM', !!getDSMValue(url));
|
|
80
80
|
return !!getDSMValue(url);
|
|
81
81
|
} catch (error) {
|
|
82
82
|
console.log('🚀 ~ checkIsDSM ~ error:', error);
|
|
83
83
|
return false;
|
|
84
84
|
}
|
|
85
85
|
url = colorDSM + url;
|
|
86
86
|
if (isDowngradeSDM(url)) {
|
|
87
87
|
return false;
|
|
88
88
|
}
|
|
89
89
|
console.log('is need deconstruction', getDSMValue(url) ? getDSMValue(url)[1] : false);
|
|
90
90
|
return getDSMValue(url) ? getDSMValue(url)[1] : false;
|
|
91
91
|
for (let [key, value] of DSM) {
|
|
92
92
|
if (url.startsWith(key) && url.includes('?')) {
|
|
93
93
|
return value;
|
|
94
94
|
}
|
|
95
95
|
if (key === url) {
|
|
96
96
|
return value;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
return '';
|
|
100
100
|
try {
|
|
101
101
|
const { nodePageData } = window;
|
|
102
102
|
const { DSMDowngradeList = null, routeBlackList = null } = nodePageData;
|
|
103
103
|
if (
|
|
104
104
|
nodePageData &&
|
|
105
105
|
routeBlackList &&
|
|
106
106
|
Array.isArray(routeBlackList) &&
|
|
107
107
|
((routeBlackList.length > 0 &&
|
|
108
108
|
routeBlackList.some((prefix) => url.startsWith(prefix)) &&
|
|
109
109
|
url.includes('?')) ||
|
|
110
110
|
routeBlackList.includes(url))
|
|
111
111
|
) {
|
|
112
112
|
return true;
|
|
113
113
|
}
|
|
114
114
|
if (DSMDowngradeList === null) return true;
|
|
115
115
|
if (
|
|
116
116
|
!Array.isArray(DSMDowngradeList) ||
|
|
117
117
|
(DSMDowngradeList.length > 0 &&
|
|
118
118
|
DSMDowngradeList.some((prefix) => url.startsWith(prefix)) &&
|
|
119
119
|
url.includes('?')) ||
|
|
120
120
|
DSMDowngradeList.includes(url)
|
|
121
121
|
) {
|
|
122
122
|
return true;
|
|
123
123
|
}
|
|
124
124
|
return false;
|
|
125
125
|
} catch (error) {
|
|
126
126
|
console.log('🚀 ~ isDowngradeSDM ~ error:', error)
|
|
127
127
|
return false;
|
|
128
128
|
}
|
|
129
129
|
getSColorPara: (url) => getSColorPara(url),
|
|
130
130
|
checkIsNeedDeconstruction: (url) => checkIsNeedDeconstruction(url),
|
|
131
131
|
checkIsDSM: (url) => checkIsDSM(url),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@conecli/cone-render",
|
|
3
|
-
"version": "0.10.1-shop-beta.
|
|
3
|
+
"version": "0.10.1-shop-beta.11",
|
|
4
4
|
"private": false,
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/"
|
|
@@ -69,22 +69,22 @@
|
|
|
69
69
|
"author": "conecli",
|
|
70
70
|
"dependencies": {
|
|
71
71
|
"@babel/runtime": "7.24.4",
|
|
72
|
-
"@tarojs/components": "4.1.
|
|
73
|
-
"@tarojs/helper": "4.1.
|
|
74
|
-
"@tarojs/plugin-platform-weapp": "4.1.
|
|
75
|
-
"@tarojs/plugin-platform-alipay": "4.1.
|
|
76
|
-
"@tarojs/plugin-platform-tt": "4.1.
|
|
77
|
-
"@tarojs/plugin-platform-swan": "4.1.
|
|
78
|
-
"@tarojs/plugin-platform-jd": "4.1.
|
|
79
|
-
"@tarojs/plugin-platform-qq": "4.1.
|
|
80
|
-
"@tarojs/plugin-platform-h5": "4.1.
|
|
81
|
-
"@tarojs/plugin-platform-harmony-hybrid": "4.1.
|
|
82
|
-
"@tarojs/runtime": "4.1.
|
|
83
|
-
"@tarojs/shared": "4.1.
|
|
84
|
-
"@tarojs/taro": "4.1.
|
|
85
|
-
"@tarojs/plugin-framework-react": "4.1.
|
|
86
|
-
"@tarojs/react": "4.1.
|
|
87
|
-
"@tarojs/service": "4.1.
|
|
72
|
+
"@tarojs/components": "4.1.2-alpha.2",
|
|
73
|
+
"@tarojs/helper": "4.1.2-alpha.2",
|
|
74
|
+
"@tarojs/plugin-platform-weapp": "4.1.2-alpha.2",
|
|
75
|
+
"@tarojs/plugin-platform-alipay": "4.1.2-alpha.2",
|
|
76
|
+
"@tarojs/plugin-platform-tt": "4.1.2-alpha.2",
|
|
77
|
+
"@tarojs/plugin-platform-swan": "4.1.2-alpha.2",
|
|
78
|
+
"@tarojs/plugin-platform-jd": "4.1.2-alpha.2",
|
|
79
|
+
"@tarojs/plugin-platform-qq": "4.1.2-alpha.2",
|
|
80
|
+
"@tarojs/plugin-platform-h5": "4.1.2-alpha.2",
|
|
81
|
+
"@tarojs/plugin-platform-harmony-hybrid": "4.1.2-alpha.2",
|
|
82
|
+
"@tarojs/runtime": "4.1.2-alpha.2",
|
|
83
|
+
"@tarojs/shared": "4.1.2-alpha.2",
|
|
84
|
+
"@tarojs/taro": "4.1.2-alpha.2",
|
|
85
|
+
"@tarojs/plugin-framework-react": "4.1.2-alpha.2",
|
|
86
|
+
"@tarojs/react": "4.1.2-alpha.2",
|
|
87
|
+
"@tarojs/service": "4.1.2-alpha.2",
|
|
88
88
|
"react-dom": "^18.2.0",
|
|
89
89
|
"react": "^18.2.0",
|
|
90
90
|
"art-template": "^4.13.2",
|
|
@@ -98,16 +98,16 @@
|
|
|
98
98
|
"devDependencies": {
|
|
99
99
|
"@babel/plugin-transform-strict-mode": "^7.16.7",
|
|
100
100
|
"@babel/core": "7.24.4",
|
|
101
|
-
"@tarojs/cli": "4.1.
|
|
101
|
+
"@tarojs/cli": "4.1.2-alpha.2",
|
|
102
102
|
"@babel/plugin-proposal-class-properties": "7.14.5",
|
|
103
103
|
"@types/webpack-env": "^1.13.6",
|
|
104
104
|
"@types/react": "^18.0.17",
|
|
105
105
|
"webpack": "5.91.0",
|
|
106
|
-
"@tarojs/taro-loader": "4.1.
|
|
107
|
-
"@tarojs/webpack5-runner": "4.1.
|
|
106
|
+
"@tarojs/taro-loader": "4.1.2-alpha.2",
|
|
107
|
+
"@tarojs/webpack5-runner": "4.1.2-alpha.2",
|
|
108
108
|
"sass": "^1.75.0",
|
|
109
|
-
"babel-preset-taro": "4.1.
|
|
110
|
-
"eslint-config-taro": "4.1.
|
|
109
|
+
"babel-preset-taro": "4.1.2-alpha.2",
|
|
110
|
+
"eslint-config-taro": "4.1.2-alpha.2",
|
|
111
111
|
"eslint": "^8.57.0",
|
|
112
112
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
|
|
113
113
|
"react-refresh": "^0.14.0",
|
|
@@ -137,7 +137,7 @@
|
|
|
137
137
|
},
|
|
138
138
|
"resolutions": {
|
|
139
139
|
"@babel/runtime": "7.24.4",
|
|
140
|
-
"@tarojs/cli": "4.1.
|
|
141
|
-
"@tarojs/helper": "4.1.
|
|
140
|
+
"@tarojs/cli": "4.1.2-alpha.2",
|
|
141
|
+
"@tarojs/helper": "4.1.2-alpha.2"
|
|
142
142
|
}
|
|
143
143
|
}
|