@lynx-js/web-core-server-canary 0.17.0-canary-20250919-d523f89d → 0.17.0-canary-20250919-ec48624b

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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @lynx-js/web-core-server
2
2
 
3
- ## 0.17.0-canary-20250919141623-d523f89d0581bb3fc24bd193ff8e5b6b559da251
3
+ ## 0.17.0-canary-20250919153613-ec48624beeb75f579be8a479e4a772afc59c7a17
4
4
 
5
5
  ## 0.16.1
6
6
 
package/dist/index.js CHANGED
@@ -743,7 +743,7 @@ const globalDisallowedVars = [
743
743
  const templateUpgraders = [
744
744
  (template)=>{
745
745
  const defaultInjectStr = "Card,setTimeout,setInterval,clearInterval,clearTimeout,NativeModules,Component,ReactLynx,nativeAppId,Behavior,LynxJSBI,lynx,window,document,frames,location,navigator,localStorage,history,Caches,screen,alert,confirm,prompt,fetch,XMLHttpRequest,__WebSocket__,webkit,Reporter,print,global,requestAnimationFrame,cancelAnimationFrame";
746
- template.appType = template.lepusCode.root.startsWith('(function (globDynamicComponentEntry') ? 'lazy' : 'card';
746
+ template.appType = template.appType ?? (template.lepusCode.root.startsWith('(function (globDynamicComponentEntry') ? 'lazy' : 'card');
747
747
  template.manifest = Object.fromEntries(Object.entries(template.manifest).map(([key, value])=>[
748
748
  key,
749
749
  `module.exports={init: (lynxCoreInject) => { var {${defaultInjectStr}} = lynxCoreInject.tt; var module = {exports:{}}; var exports=module.exports; ${value}\n return module.exports; } }`
@@ -757,7 +757,7 @@ const generateModuleContent = (content, eager, appType)=>[
757
757
  '\n(function() { "use strict"; const ',
758
758
  globalDisallowedVars.join('=void 0,'),
759
759
  '=void 0;\n',
760
- 'lazy' === appType ? 'module.exports=\n' : '',
760
+ 'card' !== appType ? 'module.exports=\n' : '',
761
761
  content,
762
762
  '\n})()'
763
763
  ].join('');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-core-server-canary",
3
- "version": "0.17.0-canary-20250919-d523f89d",
3
+ "version": "0.17.0-canary-20250919-ec48624b",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [],
@@ -26,10 +26,10 @@
26
26
  "rsbuild-plugin-arethetypeswrong": "0.1.1",
27
27
  "rsbuild-plugin-publint": "0.3.3",
28
28
  "@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4",
29
- "@lynx-js/web-elements-template": "npm:@lynx-js/web-elements-template-canary@0.8.7-canary-20250919-d523f89d",
30
- "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.17.0-canary-20250919-d523f89d",
31
- "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.17.0-canary-20250919-d523f89d",
32
- "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.17.0-canary-20250919-d523f89d"
29
+ "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.17.0-canary-20250919-ec48624b",
30
+ "@lynx-js/web-elements-template": "npm:@lynx-js/web-elements-template-canary@0.8.7-canary-20250919-ec48624b",
31
+ "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.17.0-canary-20250919-ec48624b",
32
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.17.0-canary-20250919-ec48624b"
33
33
  },
34
34
  "scripts": {
35
35
  "build": "rslib build",