@lark-apaas/fullstack-rspack-preset 1.0.31 → 1.0.32

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.
@@ -129,11 +129,6 @@ function removeAllChildren(element, skip) {
129
129
  element.removeChild(childList[i]);
130
130
  }
131
131
  }
132
- function getEnvOrigin() {
133
- return typeof process !== 'undefined' && process.env
134
- ? process.env.FORCE_FRAMEWORK_DOMAIN_MAIN
135
- : undefined;
136
- }
137
132
  function getLegacyParentOrigin() {
138
133
  const currentOrigin = window.location?.origin || '';
139
134
  if (currentOrigin.includes('force.feishuapp.net')) {
@@ -155,7 +150,7 @@ function getLegacyParentOrigin() {
155
150
  }
156
151
  function sendPostMessage(message, targetOrigin) {
157
152
  try {
158
- const parentOrigin = getEnvOrigin() || getLegacyParentOrigin();
153
+ const parentOrigin = process?.env?.FORCE_FRAMEWORK_DOMAIN_MAIN || getLegacyParentOrigin();
159
154
  const origin = targetOrigin || parentOrigin;
160
155
  window.parent.postMessage(message, origin);
161
156
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lark-apaas/fullstack-rspack-preset",
3
- "version": "1.0.31",
3
+ "version": "1.0.32",
4
4
  "files": [
5
5
  "lib",
6
6
  "patches",
@@ -31,7 +31,7 @@
31
31
  "@babel/parser": "^7.28.0",
32
32
  "@babel/traverse": "^7.28.0",
33
33
  "@babel/types": "^7.28.2",
34
- "@lark-apaas/devtool-kits": "1.2.14-alpha.0",
34
+ "@lark-apaas/devtool-kits": "^1.2.14",
35
35
  "@lark-apaas/miaoda-inspector-babel-plugin": "^1.0.0",
36
36
  "@lark-apaas/miaoda-inspector-jsx-runtime": "^1.0.0",
37
37
  "@rspack/plugin-react-refresh": "^1.5.1",
@@ -57,5 +57,5 @@
57
57
  "react": ">=16.14.0",
58
58
  "react-dom": ">=16.14.0"
59
59
  },
60
- "gitHead": "68657b650e5f2343843850323db2b3beae697ace"
60
+ "gitHead": "c4a62d1944234bf2ccc11d51a99be7857c4446d8"
61
61
  }