@cloudbase/cals 1.0.4-alpha.0 → 1.0.4

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.
@@ -42,7 +42,10 @@ function buildFormulaDTS() {
42
42
  const dts = yield fs_extra_1.default.readFile(tempDtsPath, 'utf8');
43
43
  yield fs_extra_1.default.remove(tempDtsPath);
44
44
  // 去掉最外层的模块声明
45
- return dts.replace(/^declare module.*$/m, '').replace(/^\}$/m, '').replace(/^\s+/mg, '');
45
+ return dts
46
+ .replace(/^declare module.*$/m, '')
47
+ .replace(/^\}$/m, '')
48
+ .replace(/^\s+/gm, '');
46
49
  });
47
50
  }
48
51
  });
@@ -370,7 +370,7 @@ function _generateOneItemDTS(inputData, itemType) {
370
370
  id: {
371
371
  type: 'string',
372
372
  title: '组件 ID',
373
- describe: '组件 ID,微搭中一般由编辑器生成'
373
+ describe: '组件 ID,微搭中一般由编辑器生成',
374
374
  },
375
375
  module: {
376
376
  type: 'string',
@@ -379,7 +379,7 @@ function _generateOneItemDTS(inputData, itemType) {
379
379
  component: {
380
380
  type: 'string',
381
381
  title: '组件名',
382
- }
382
+ },
383
383
  };
384
384
  const results = yield Promise.all(inputData.map((item) => __awaiter(this, void 0, void 0, function* () {
385
385
  // 属性
@@ -423,7 +423,7 @@ function _generateOneItemDTS(inputData, itemType) {
423
423
  if (!item.exportProperties) {
424
424
  item.exportProperties = {
425
425
  type: 'object',
426
- properties: {}
426
+ properties: {},
427
427
  };
428
428
  }
429
429
  item.exportProperties.properties = Object.assign({}, commonProperties, item.exportProperties.properties);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/cals",
3
- "version": "1.0.4-alpha.0",
3
+ "version": "1.0.4",
4
4
  "description": "Common application specifications",
5
5
  "main": "lib/utils/index.js",
6
6
  "source": "src/utils/index.ts",