@cloudbase/lowcode-builder 1.8.4 → 1.8.6

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.
Files changed (81) hide show
  1. package/lib/builder/config/index.d.ts +0 -0
  2. package/lib/builder/config/index.js +0 -0
  3. package/lib/builder/core/index.d.ts +0 -0
  4. package/lib/builder/core/index.js +3 -0
  5. package/lib/builder/core/plugin.d.ts +0 -0
  6. package/lib/builder/core/plugin.js +0 -0
  7. package/lib/builder/h5/compile.d.ts +0 -0
  8. package/lib/builder/h5/compile.js +0 -0
  9. package/lib/builder/h5/copy.d.ts +0 -0
  10. package/lib/builder/h5/copy.js +0 -0
  11. package/lib/builder/h5/generate.d.ts +0 -0
  12. package/lib/builder/h5/generate.js +0 -0
  13. package/lib/builder/h5/index.d.ts +0 -0
  14. package/lib/builder/h5/index.js +4 -4
  15. package/lib/builder/h5/material.d.ts +0 -0
  16. package/lib/builder/h5/material.js +0 -0
  17. package/lib/builder/h5/npm.d.ts +0 -0
  18. package/lib/builder/h5/npm.js +0 -0
  19. package/lib/builder/h5/webpack.d.ts +0 -0
  20. package/lib/builder/h5/webpack.js +0 -0
  21. package/lib/builder/mp/BuildContext.d.ts +0 -0
  22. package/lib/builder/mp/BuildContext.js +0 -0
  23. package/lib/builder/mp/index.d.ts +0 -0
  24. package/lib/builder/mp/index.js +0 -0
  25. package/lib/builder/mp/lowcode.d.ts +0 -0
  26. package/lib/builder/mp/lowcode.js +0 -0
  27. package/lib/builder/mp/materials.d.ts +0 -0
  28. package/lib/builder/mp/materials.js +0 -0
  29. package/lib/builder/mp/mixMode.d.ts +0 -0
  30. package/lib/builder/mp/mixMode.js +0 -0
  31. package/lib/builder/mp/mp_config.d.ts +0 -0
  32. package/lib/builder/mp/mp_config.js +0 -0
  33. package/lib/builder/mp/plugin.d.ts +0 -0
  34. package/lib/builder/mp/plugin.js +0 -0
  35. package/lib/builder/mp/util.d.ts +0 -0
  36. package/lib/builder/mp/util.js +0 -0
  37. package/lib/builder/mp/wxml.d.ts +0 -0
  38. package/lib/builder/mp/wxml.js +0 -0
  39. package/lib/builder/service/webpack.d.ts +0 -0
  40. package/lib/builder/service/webpack.js +0 -0
  41. package/lib/builder/types/common.d.ts +0 -0
  42. package/lib/builder/types/common.js +0 -0
  43. package/lib/builder/util/common.d.ts +0 -0
  44. package/lib/builder/util/common.js +0 -0
  45. package/lib/builder/util/console.d.ts +0 -0
  46. package/lib/builder/util/console.js +0 -0
  47. package/lib/builder/util/generateFiles.d.ts +0 -0
  48. package/lib/builder/util/generateFiles.js +0 -0
  49. package/lib/builder/util/index.d.ts +0 -0
  50. package/lib/builder/util/index.js +0 -0
  51. package/lib/builder/util/junk.d.ts +0 -0
  52. package/lib/builder/util/junk.js +0 -0
  53. package/lib/builder/util/mp.d.ts +0 -0
  54. package/lib/builder/util/mp.js +0 -0
  55. package/lib/builder/util/net.d.ts +0 -0
  56. package/lib/builder/util/net.js +0 -0
  57. package/lib/builder/util/process.d.ts +0 -0
  58. package/lib/builder/util/process.js +0 -0
  59. package/lib/index.d.ts +0 -0
  60. package/lib/index.js +0 -0
  61. package/lib/types.d.ts +0 -0
  62. package/lib/types.js +0 -0
  63. package/lib/utils/common.d.ts +0 -0
  64. package/lib/utils/common.js +0 -0
  65. package/lib/utils/postProcess.d.ts +0 -0
  66. package/lib/utils/postProcess.js +0 -0
  67. package/package.json +3 -3
  68. package/template/html/index.html.ejs +1 -1
  69. package/dist/builder.web.js +0 -71
  70. package/lib/.turbo/turbo-build.log +0 -0
  71. package/lib/.turbo/turbo-develop.log +0 -0
  72. package/lib/builder.web.js +0 -71
  73. package/lib/event-emitter.d.ts +0 -32
  74. package/lib/event-emitter.js +0 -88
  75. package/lib/flow.d.ts +0 -32
  76. package/lib/flow.js +0 -60
  77. package/lib/query.d.ts +0 -48
  78. package/lib/query.js +0 -171
  79. package/lib/test.d.ts +0 -11
  80. package/lib/test.js +0 -717
  81. package/template/.DS_Store +0 -0
File without changes
File without changes
File without changes
@@ -92,6 +92,9 @@ async function buildWedaApp({ cals, subAppCalsList = [], dependencies = [], appK
92
92
  function processRepeaterDisplay(cals) {
93
93
  cals.items = (cals.items || []).map((page) => {
94
94
  return JSON.parse(JSON.stringify(page, (key, value) => {
95
+ if ((value === null || value === void 0 ? void 0 : value.component) && !(value === null || value === void 0 ? void 0 : value.module) && (value === null || value === void 0 ? void 0 : value.type) !== 'PAGE') {
96
+ value.module = cals_1.OFFICIAL_LIB_KEY;
97
+ }
95
98
  if (value === null || value === void 0 ? void 0 : value.component) {
96
99
  const component = value;
97
100
  if ((value === null || value === void 0 ? void 0 : value.component) &&
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -177,16 +177,16 @@ async function buildH5App({ buildContext, i18nConfig, extraData, cals, buildType
177
177
  return `${url.origin}${path_1.default.posix.join(url.pathname, file)}`;
178
178
  }
179
179
  catch (e) {
180
- return path_1.default.posix.join(publicPath, file);
180
+ return path_1.default.posix.join(publicPath || '', file);
181
181
  }
182
182
  })
183
183
  .filter((item) => !!item);
184
184
  // 普通 web 模式,且非hash模式,根据页面生成多份入口
185
185
  if (!((_c = cals.extra) === null || _c === void 0 ? void 0 : _c.historyType) || cals.extra.historyType === types_1.HISTORY_TYPE.BROWSER) {
186
- preHeatUrls.push(path_1.default.posix.join(basename));
186
+ preHeatUrls.push(path_1.default.posix.join(basename || ''));
187
187
  await Promise.all((cals.items || []).map((page) => {
188
- preHeatUrls.push(path_1.default.posix.join(basename, page.id));
189
- preHeatUrls.push(path_1.default.posix.join(basename, page.id, '/'));
188
+ preHeatUrls.push(path_1.default.posix.join(basename || '', page.id));
189
+ preHeatUrls.push(path_1.default.posix.join(basename || '', page.id, '/'));
190
190
  return fs_extra_1.default.copy(path_1.default.resolve(h5BuildDir, webpack_2.OUTPUT_DIR, 'index.html'), path_1.default.resolve(h5BuildDir, webpack_2.OUTPUT_DIR, page.id, 'index.html'));
191
191
  }));
192
192
  }
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
package/lib/index.d.ts CHANGED
File without changes
package/lib/index.js CHANGED
File without changes
package/lib/types.d.ts CHANGED
File without changes
package/lib/types.js CHANGED
File without changes
File without changes
File without changes
File without changes
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/lowcode-builder",
3
- "version": "1.8.4",
3
+ "version": "1.8.6",
4
4
  "description": "云开发 Tencent CloudBase Framework Low Code Plugin,将低码配置生成完整项目并一键部署云开发资源。",
5
5
  "author": "yhsunshining@gmail.com",
6
6
  "homepage": "https://github.com/TencentCloudBase/cloudbase-framework#readme",
@@ -38,7 +38,7 @@
38
38
  "url": "https://github.com/TencentCloudBase/cloudbase-framework/issues"
39
39
  },
40
40
  "dependencies": {
41
- "@cloudbase/cals": "^1.0.7",
41
+ "@cloudbase/cals": "^1.0.8",
42
42
  "@cloudbase/lowcode-generator": "^1.8.0",
43
43
  "axios": "^0.21.0",
44
44
  "browserfs": "^1.4.3",
@@ -81,4 +81,4 @@
81
81
  "webpack-dev-server": "^4.7.3",
82
82
  "worker-loader": "^3.0.8"
83
83
  }
84
- }
84
+ }
@@ -549,7 +549,7 @@
549
549
  crossorigin
550
550
  src="<%=
551
551
  cdnEndpoints.cdngo
552
- %>/lcap/lcap-resource-cdngo/-/0.1.4/_files/static/weda-render/main.c1acdd499c54299805d4.bundle.js"
552
+ %>/lcap/lcap-resource-cdngo/-/0.1.4/_files/static/weda-render/main.babe263dcf07a0b2f76e.bundle.js"
553
553
  ></script>
554
554
  </body>
555
555
  </html>