@opra/common 1.0.0-alpha.20 → 1.0.0-alpha.22

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/browser.js CHANGED
@@ -3387,7 +3387,9 @@ var HttpParameter = /* @__PURE__ */ __name(function(owner, initArgs) {
3387
3387
  }
3388
3388
  _this.location = initArgs.location;
3389
3389
  _this.deprecated = initArgs.deprecated;
3390
- _this.required = initArgs.required || initArgs.location === "path";
3390
+ _this.required = initArgs.required;
3391
+ if (_this.required == null && initArgs.location === "path")
3392
+ _this.required = true;
3391
3393
  _this.arraySeparator = initArgs.arraySeparator;
3392
3394
  _this.keyParam = initArgs.keyParam;
3393
3395
  }, "HttpParameter");
@@ -23,7 +23,9 @@ exports.HttpParameter = function (owner, initArgs) {
23
23
  }
24
24
  _this.location = initArgs.location;
25
25
  _this.deprecated = initArgs.deprecated;
26
- _this.required = initArgs.required || initArgs.location === 'path';
26
+ _this.required = initArgs.required;
27
+ if (_this.required == null && initArgs.location === 'path')
28
+ _this.required = true;
27
29
  _this.arraySeparator = initArgs.arraySeparator;
28
30
  _this.keyParam = initArgs.keyParam;
29
31
  };
@@ -20,7 +20,9 @@ export const HttpParameter = function (owner, initArgs) {
20
20
  }
21
21
  _this.location = initArgs.location;
22
22
  _this.deprecated = initArgs.deprecated;
23
- _this.required = initArgs.required || initArgs.location === 'path';
23
+ _this.required = initArgs.required;
24
+ if (_this.required == null && initArgs.location === 'path')
25
+ _this.required = true;
24
26
  _this.arraySeparator = initArgs.arraySeparator;
25
27
  _this.keyParam = initArgs.keyParam;
26
28
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opra/common",
3
- "version": "1.0.0-alpha.20",
3
+ "version": "1.0.0-alpha.22",
4
4
  "description": "Opra common package",
5
5
  "author": "Panates",
6
6
  "license": "MIT",