@cloudbase/cals 0.5.7 → 0.5.8

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.
@@ -130,12 +130,17 @@ function convertCommonStyle(value, isUpgrade) {
130
130
  return value;
131
131
  }
132
132
  if (typeof value === 'number') {
133
- value = value / 2;
133
+ if (isUpgrade) {
134
+ value = value / 2;
135
+ }
136
+ else {
137
+ value = value * 2;
138
+ }
134
139
  }
135
140
  else if (/^((\d+\.)?\d+)(px)?$/.test(value)) {
136
141
  value = !value ? value : value === null || value === void 0 ? void 0 : value.replace('px', '');
137
- // console.log(key, value, Number(value) / 2);
138
142
  if (isUpgrade) {
143
+ // console.log(key, value, Number(value) / 2);
139
144
  value = !value ? value : `${(0, common_1.toFixed)(Number(value) / 2, 3)}px`;
140
145
  }
141
146
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudbase/cals",
3
- "version": "0.5.7",
3
+ "version": "0.5.8",
4
4
  "description": "Common application specifications",
5
5
  "main": "lib/utils/index.js",
6
6
  "source": "src/utils/index.ts",