@smart100/spu-web-plugin 1.0.22 → 1.0.23
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/index.d.ts +1 -0
- package/dist/spu-web-plugin.mjs +2 -2
- package/package.json +1 -1
- package/src/axios.ts +2 -2
- package/src/index.ts +2 -1
- package/src/types/index.d.ts +1 -0
package/dist/index.d.ts
CHANGED
|
@@ -113,6 +113,7 @@ export const getAddress: (location: {
|
|
|
113
113
|
export const spuAxios: any
|
|
114
114
|
export const apaasAxios: any
|
|
115
115
|
export const axios: any
|
|
116
|
+
export const decryptAxiosResponseData: any
|
|
116
117
|
export const spuConfig: any
|
|
117
118
|
export const globalConfig: any
|
|
118
119
|
export const downloadService: IDownloadService
|
package/dist/spu-web-plugin.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var version = "1.0.
|
|
1
|
+
var version = "1.0.23";
|
|
2
2
|
|
|
3
3
|
/** Detect free variable `global` from Node.js. */
|
|
4
4
|
var freeGlobal$2 = typeof global == 'object' && global && global.Object === Object && global;
|
|
@@ -70477,4 +70477,4 @@ var SPUWebPlugin = {
|
|
|
70477
70477
|
version: version
|
|
70478
70478
|
};
|
|
70479
70479
|
|
|
70480
|
-
export { AMapLoader, Module, normalAxios$1 as apaasAxios, normalAxios$1 as axios, checkLogin, index as components, decrypt, SPUWebPlugin as default, downloadService, encrypt, expandexp, functionCheck, getAddress, getCloudServ, getDistance, getLocation, getRefreshToken, getServToken, getServerTime, getToken, getTokenExpires, getUniqueid, getUser, v4 as getUuid, globalConfig, globalOptions, isInApp, isdebugger, isvirtuallocation, lsProxy, mapService, setRefreshToken, setTitle, setToken, setTokenExpires, singleLogin, spuAxios, spuConfig, ssProxy, updateToken, uploadService, wxworkSuite };
|
|
70480
|
+
export { AMapLoader, Module, normalAxios$1 as apaasAxios, normalAxios$1 as axios, checkLogin, index as components, decrypt, normalizeEncryData as decryptAxiosResponseData, SPUWebPlugin as default, downloadService, encrypt, expandexp, functionCheck, getAddress, getCloudServ, getDistance, getLocation, getRefreshToken, getServToken, getServerTime, getToken, getTokenExpires, getUniqueid, getUser, v4 as getUuid, globalConfig, globalOptions, isInApp, isdebugger, isvirtuallocation, lsProxy, mapService, setRefreshToken, setTitle, setToken, setTokenExpires, singleLogin, spuAxios, spuConfig, ssProxy, updateToken, uploadService, wxworkSuite };
|
package/package.json
CHANGED
package/src/axios.ts
CHANGED
|
@@ -16,7 +16,7 @@ interface Response {
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
// _encrydata
|
|
19
|
-
const normalizeEncryData = (response: any) => {
|
|
19
|
+
export const normalizeEncryData = (response: any) => {
|
|
20
20
|
if (response.data && response.data._encrydata && typeof response.data._encrydata === 'string') {
|
|
21
21
|
let res = decrypt(response.data._encrydata)
|
|
22
22
|
try {
|
|
@@ -236,4 +236,4 @@ function installAxios(options: any) {
|
|
|
236
236
|
normalAxios = createAxiosInstance('normal', options)
|
|
237
237
|
}
|
|
238
238
|
|
|
239
|
-
export { installAxios, spuAxios, normalAxios as axios }
|
|
239
|
+
export { installAxios, spuAxios, normalAxios as axios, normalizeEncryData as decryptAxiosResponseData }
|
package/src/index.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { merge } from 'lodash-es'
|
|
|
3
3
|
import { v4 as getUuid } from 'uuid'
|
|
4
4
|
import { installStorageProxy, lsProxy, ssProxy } from './storageProxy'
|
|
5
5
|
import { getLocation, getDistance, getAddress } from './map/index'
|
|
6
|
-
import { installAxios, spuAxios, axios } from './axios'
|
|
6
|
+
import { installAxios, spuAxios, axios, decryptAxiosResponseData } from './axios'
|
|
7
7
|
import { installSpuConfig, spuConfig } from './spuConfig'
|
|
8
8
|
import { globalConfig } from './globalConfig'
|
|
9
9
|
import { downloadService, uploadService } from './oss'
|
|
@@ -120,6 +120,7 @@ export {
|
|
|
120
120
|
spuAxios,
|
|
121
121
|
axios,
|
|
122
122
|
axios as apaasAxios,
|
|
123
|
+
decryptAxiosResponseData,
|
|
123
124
|
spuConfig,
|
|
124
125
|
globalConfig,
|
|
125
126
|
downloadService,
|
package/src/types/index.d.ts
CHANGED
|
@@ -113,6 +113,7 @@ export const getAddress: (location: {
|
|
|
113
113
|
export const spuAxios: any
|
|
114
114
|
export const apaasAxios: any
|
|
115
115
|
export const axios: any
|
|
116
|
+
export const decryptAxiosResponseData: any
|
|
116
117
|
export const spuConfig: any
|
|
117
118
|
export const globalConfig: any
|
|
118
119
|
export const downloadService: IDownloadService
|