@mpxjs/api-proxy 2.8.40-test → 2.8.40-test.1

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.8.40-test",
3
+ "version": "2.8.40-test.1",
4
4
  "description": "convert miniprogram API at each end",
5
5
  "module": "src/index.js",
6
6
  "types": "@types/index.d.ts",
@@ -39,5 +39,5 @@
39
39
  "dependencies": {
40
40
  "axios": "^0.21.1"
41
41
  },
42
- "gitHead": "8524f9b69ebcfb0667ebff2608cf6f675f14f141"
42
+ "gitHead": "e636ed32cfc88787493c67c8bc27fd3af55f6f22"
43
43
  }
package/src/index.js CHANGED
@@ -1,3 +1,4 @@
1
- import install from './install'
1
+ import install, { getProxy } from './install'
2
2
  export * from './platform'
3
+ export { getProxy }
3
4
  export default install
package/src/install.js CHANGED
@@ -54,3 +54,9 @@ export default function install (target, options = {}) {
54
54
  }
55
55
  })
56
56
  }
57
+
58
+ export function getProxy (options = {}) {
59
+ const apiProxy = {}
60
+ install(apiProxy, options)
61
+ return apiProxy
62
+ }