@mpxjs/api-proxy 2.9.43 → 2.9.52
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mpxjs/api-proxy",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.52",
|
|
4
4
|
"description": "convert miniprogram API at each end",
|
|
5
5
|
"module": "src/index.js",
|
|
6
6
|
"types": "@types/index.d.ts",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"homepage": "https://github.com/didi/mpx#readme",
|
|
39
39
|
"dependencies": {
|
|
40
|
+
"@mpxjs/utils": "^2.9.50",
|
|
40
41
|
"axios": "^1.6.7"
|
|
41
42
|
},
|
|
42
43
|
"peerDependencies": {
|
|
@@ -63,5 +64,5 @@
|
|
|
63
64
|
"optional": true
|
|
64
65
|
}
|
|
65
66
|
},
|
|
66
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "d8b89e0ba1f29a16244b247f6c7a8d8197e0d732"
|
|
67
68
|
}
|
package/src/common/js/utils.js
CHANGED
|
@@ -101,20 +101,6 @@ function makeMap (arr) {
|
|
|
101
101
|
}, {})
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
function parseDataset (dataset) {
|
|
105
|
-
const parsed = {}
|
|
106
|
-
for (const key in dataset) {
|
|
107
|
-
if (hasOwn(dataset, key)) {
|
|
108
|
-
try {
|
|
109
|
-
parsed[key] = JSON.parse(dataset[key])
|
|
110
|
-
} catch (e) {
|
|
111
|
-
parsed[key] = dataset[key]
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
return parsed
|
|
116
|
-
}
|
|
117
|
-
|
|
118
104
|
function defineUnsupportedProps (resObj, props) {
|
|
119
105
|
const defineProps = {}
|
|
120
106
|
props.forEach((item) => {
|
|
@@ -149,7 +135,6 @@ export {
|
|
|
149
135
|
hasOwn,
|
|
150
136
|
throwSSRWarning,
|
|
151
137
|
ENV_OBJ,
|
|
152
|
-
parseDataset,
|
|
153
138
|
type,
|
|
154
139
|
defineUnsupportedProps
|
|
155
140
|
}
|