@uxf/resizer 2.0.0 → 2.1.0

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.
Files changed (2) hide show
  1. package/index.js +3 -3
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -68,11 +68,11 @@ var POSITION_OPTIONS = {
68
68
  };
69
69
  var getWidth = function (_a) {
70
70
  var width = _a.width;
71
- return (width ? Number(width) : undefined);
71
+ return (width && width !== "x" ? Number(width) : undefined);
72
72
  };
73
73
  var getHeight = function (_a) {
74
74
  var height = _a.height;
75
- return (height ? Number(height) : undefined);
75
+ return (height && height !== "x" ? Number(height) : undefined);
76
76
  };
77
77
  var getBackground = function (_a) {
78
78
  var background = _a.background;
@@ -103,7 +103,7 @@ function log(message) {
103
103
  var resizerMiddleware = function (config) {
104
104
  var middleware = (0, express_1.Router)();
105
105
  config.forEach(function (c, i) {
106
- log("\nConfig #".concat(i + 1, ":"));
106
+ log("Config #".concat(i + 1, ":"));
107
107
  log(" Route: ".concat(c.route));
108
108
  log(" Source file: ".concat(c.pathToSourceFile));
109
109
  if (c.sourceDomain) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uxf/resizer",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "main": "index.js",
5
5
  "description": "UXF Resizer",
6
6
  "author": "UXFans <dev@uxf.cz>",