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