@mpxjs/api-proxy 2.9.70 → 2.9.71

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.70",
3
+ "version": "2.9.71",
4
4
  "description": "convert miniprogram API at each end",
5
5
  "module": "src/index.js",
6
6
  "types": "@types/index.d.ts",
@@ -72,5 +72,5 @@
72
72
  "optional": true
73
73
  }
74
74
  },
75
- "gitHead": "ad8f04de95865ffc2b50b8c0a7f87b5952fb8647"
75
+ "gitHead": "38446f301a17e78dbe3ca7dacd771c79eb7a8ede"
76
76
  }
@@ -139,7 +139,7 @@ const getLaunchOptionsSync = function () {
139
139
  throwSSRWarning('getLaunchOptionsSync API is running in non browser environments')
140
140
  return
141
141
  }
142
- return global.__mpxEnterOptions || {}
142
+ return global.__mpxLaunchOptions || {}
143
143
  }
144
144
 
145
145
  export {
@@ -41,18 +41,11 @@ const getWindowInfo = function () {
41
41
  }
42
42
 
43
43
  const getLaunchOptionsSync = function () {
44
- const options = global.__mpxEnterOptions || {}
45
- const { path, scene, query } = options
46
- return {
47
- path,
48
- scene,
49
- query
50
- }
44
+ return global.__mpxLaunchOptions || {}
51
45
  }
52
46
 
53
47
  const getEnterOptionsSync = function () {
54
- const result = getLaunchOptionsSync()
55
- return result
48
+ return global.__mpxEnterOptions || {}
56
49
  }
57
50
 
58
51
  export {