@cloudbase/lowcode-builder 0.1.25 → 0.1.26

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": "@cloudbase/lowcode-builder",
3
- "version": "0.1.25",
3
+ "version": "0.1.26",
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",
@@ -6,9 +6,10 @@ import { redirectToLogin, findLoginPage, getAuthConfig } from './common/util'
6
6
 
7
7
  // 防止报类型不匹配warning
8
8
  const originWarn = console.warn;
9
+ const warningSkipRegexp = /(type-uncompatible)|(slot "[\w-]*?" is not found)/;
9
10
  console.warn = (...args) => {
10
11
  // 只看第一条
11
- const shouldSkip = args.length > 0 && args[0][0] === '[' && args[0][1] === 'C' && (args[0].includes('type-uncompatible') || args[0].includes('slot ""'));
12
+ const shouldSkip = args.length > 0 && args[0][0] === '[' && args[0][1] === 'C' && warningSkipRegexp.test(args[0]);
12
13
  if(!shouldSkip) {
13
14
  originWarn(...args);
14
15
  }