@cloudbase/cals 1.0.73 → 1.0.75

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.
@@ -9,10 +9,11 @@ const resolve_new_id_1 = require("./resolve-new-id");
9
9
  * @param componentIdMap 映射: 组件原始 ID => 新生成 ID
10
10
  */
11
11
  function renewIdInExpr(expr, componentIdMap) {
12
+ var _a;
12
13
  if (typeof expr !== 'string' || expr.length === 0 || !expr.includes('$w')) {
13
14
  return expr;
14
15
  }
15
- return renewIdWithRegexp(expr, componentIdMap);
16
+ return (_a = renewIdWithRegexp(expr, componentIdMap).replace(/;\s*$/, '')) === null || _a === void 0 ? void 0 : _a.trim();
16
17
  // const output = Babel.transform(expr, {
17
18
  // plugins: [
18
19
  // ({ types: t }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/cals",
3
- "version": "1.0.73",
3
+ "version": "1.0.75",
4
4
  "description": "Common application specifications",
5
5
  "main": "lib/utils/index.js",
6
6
  "source": "src/utils/index.ts",