swaggie 2.1.0-beta.2 → 2.1.0-beta.3

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.
@@ -601,8 +601,10 @@ function getRequestBody(
601
601
 
602
602
  // `API` is included here because it is the namespace we emit ourselves — it
603
603
  // must never be prefixed with a second `API.` in the output.
604
+ // Web API / Browser globals are included so they are never incorrectly namespaced
605
+ // as `API.FormData`, `API.File`, `API.Blob`, etc.
604
606
  const PRIMITIVES =
605
- /^(API|unknown|string|number|boolean|void|null|undefined|any|never|Date|object|Record|Array|Pick|Omit|Required|Partial|Readonly|NonNullable|ReturnType|InstanceType|Parameters|ConstructorParameters)$/;
607
+ /^(API|unknown|string|number|boolean|void|null|undefined|any|never|Date|object|Record|Array|Pick|Omit|Required|Partial|Readonly|NonNullable|ReturnType|InstanceType|Parameters|ConstructorParameters|FormData|File|Blob|URLSearchParams|ArrayBuffer|ReadableStream|Response|Request|Headers|Event|EventTarget)$/;
606
608
 
607
609
  /**
608
610
  * Prefixes named (non-primitive) TypeScript type names in a type string with
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "swaggie",
3
- "version": "2.1.0-beta.2",
3
+ "version": "2.1.0-beta.3",
4
4
  "description": "Generate a fully typed TypeScript API client from your OpenAPI 3 spec",
5
5
  "author": {
6
6
  "name": "Piotr Dabrowski",