ng-openapi 0.2.8 → 0.2.9

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 (3) hide show
  1. package/cli.cjs +3 -2
  2. package/index.js +2 -1
  3. package/package.json +1 -1
package/cli.cjs CHANGED
@@ -44,7 +44,7 @@ var fs4 = __toESM(require("fs"));
44
44
  var path12 = __toESM(require("path"));
45
45
 
46
46
  // package.json
47
- var version = "0.2.7";
47
+ var version = "0.2.8";
48
48
 
49
49
  // src/lib/core/generator.ts
50
50
  var import_ts_morph7 = require("ts-morph");
@@ -1844,7 +1844,8 @@ var HttpParamsBuilderGenerator = class {
1844
1844
  "Adds a value to HttpParams. Delegates to recursive handler for objects/arrays."
1845
1845
  ],
1846
1846
  statements: `const isDate = value instanceof Date;
1847
- const isObject = typeof value === "object" && !isDate;
1847
+ const isArray = Array.isArray(value);
1848
+ const isObject = typeof value === "object" && !isDate && !isArray;
1848
1849
 
1849
1850
  if (isObject) {
1850
1851
  return this.addToHttpParamsRecursive(httpParams, value);
package/index.js CHANGED
@@ -1965,7 +1965,8 @@ var _HttpParamsBuilderGenerator = class _HttpParamsBuilderGenerator {
1965
1965
  "Adds a value to HttpParams. Delegates to recursive handler for objects/arrays."
1966
1966
  ],
1967
1967
  statements: `const isDate = value instanceof Date;
1968
- const isObject = typeof value === "object" && !isDate;
1968
+ const isArray = Array.isArray(value);
1969
+ const isObject = typeof value === "object" && !isDate && !isArray;
1969
1970
 
1970
1971
  if (isObject) {
1971
1972
  return this.addToHttpParamsRecursive(httpParams, value);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ng-openapi",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "description": "Generate Angular services and TypeScript types from OpenAPI/Swagger specifications",
5
5
  "keywords": [
6
6
  "ng-openapi",