@shijiu/jsview 1.9.914 → 1.9.915

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": "@shijiu/jsview",
3
- "version": "1.9.914",
3
+ "version": "1.9.915",
4
4
  "bin": {
5
5
  "jsview-post-build": "./tools/jsview-post-build.js",
6
6
  "jsview-post-install": "./tools/jsview-post-install.js"
@@ -172,8 +172,20 @@ function upgradeStagePixel(options) {
172
172
  const msgPrefix = 'Stage ' + options.stagePixels;
173
173
  console.info(msgPrefix + ': Upgrading pixels...');
174
174
 
175
- const ret = replaceStageContent(options, options.sourcePathList, msgPrefix,
176
- /([0-9}])px/g, '$1');
175
+ let ret = replaceStageContent(options, options.sourcePathList, msgPrefix,
176
+ /([0-9}])px/g, '$1');
177
+ if (ret < 0) {
178
+ console.error(msgPrefix + ': Failed to upgrading pixels.');
179
+ process.exit(1);
180
+ }
181
+
182
+ ret = replaceStageContent(options, options.sourcePathList, msgPrefix,
183
+ '+ `px`', '');
184
+ ret = replaceStageContent(options, options.sourcePathList, msgPrefix,
185
+ '+ \'px\'', '');
186
+ ret = replaceStageContent(options, options.sourcePathList, msgPrefix,
187
+ '+ \"px\"', '');
188
+
177
189
  return ret;
178
190
  }
179
191
 
@@ -367,7 +379,7 @@ function main(argv)
367
379
 
368
380
  const requiredUsages = {
369
381
  '--stages': `Upgrade stages, separate by comma(,). The value means the following:
370
- 1. Fix pixels. "[0-9}]px => [0-9}]"
382
+ 1. Fix pixels. "[0-9}]px => [0-9}]", "delete (+ \`px\`),(+ 'px'),(+ "px")"
371
383
  2. Fix animation. ":onAnimationEnd => @animationend"
372
384
  3. Fix hash history. "createJsvHashHistory => jsvCreateHashHistory"
373
385
  4. Fix audiotrack. "<audiotrack => <jsv-audiotrack"