Skip to content

Commit

Permalink
fix: FormData is not defined (#8)
Browse files Browse the repository at this point in the history
fixes #7
  • Loading branch information
simenandre committed Mar 17, 2021
1 parent 303b16f commit 45464d3
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 9 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"test:watch": "jest --watch"
},
"dependencies": {
"form-data": "^4.0.0",
"node-fetch": "^2.6.1"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/generated/apis/CreditNotesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Do not edit the class manually.
*/


import * as FormData from 'form-data';
import * as runtime from '../runtime';
import {
Attachment,
Expand Down
2 changes: 1 addition & 1 deletion src/generated/apis/InboxApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Do not edit the class manually.
*/


import * as FormData from 'form-data';
import * as runtime from '../runtime';
import {
InboxResult,
Expand Down
2 changes: 1 addition & 1 deletion src/generated/apis/InvoicesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Do not edit the class manually.
*/


import * as FormData from 'form-data';
import * as runtime from '../runtime';
import {
Attachment,
Expand Down
2 changes: 1 addition & 1 deletion src/generated/apis/JournalEntriesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Do not edit the class manually.
*/


import * as FormData from 'form-data';
import * as runtime from '../runtime';
import {
Attachment,
Expand Down
2 changes: 1 addition & 1 deletion src/generated/apis/OffersApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Do not edit the class manually.
*/


import * as FormData from 'form-data';
import * as runtime from '../runtime';
import {
Attachment,
Expand Down
2 changes: 1 addition & 1 deletion src/generated/apis/OrderConfirmationsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Do not edit the class manually.
*/


import * as FormData from 'form-data';
import * as runtime from '../runtime';
import {
Attachment,
Expand Down
2 changes: 1 addition & 1 deletion src/generated/apis/PurchasesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Do not edit the class manually.
*/


import * as FormData from 'form-data';
import * as runtime from '../runtime';
import {
Attachment,
Expand Down
2 changes: 1 addition & 1 deletion src/generated/apis/SalesApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* Do not edit the class manually.
*/


import * as FormData from 'form-data';
import * as runtime from '../runtime';
import {
Attachment,
Expand Down
11 changes: 10 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,7 @@ color-name@~1.1.4:
resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2"
integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==

combined-stream@^1.0.6, combined-stream@~1.0.6:
combined-stream@^1.0.6, combined-stream@^1.0.8, combined-stream@~1.0.6:
version "1.0.8"
resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f"
integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==
Expand Down Expand Up @@ -1763,6 +1763,15 @@ forever-agent@~0.6.1:
resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91"
integrity sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=

form-data@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452"
integrity sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==
dependencies:
asynckit "^0.4.0"
combined-stream "^1.0.8"
mime-types "^2.1.12"

form-data@~2.3.2:
version "2.3.3"
resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.3.tgz#dcce52c05f644f298c6a7ab936bd724ceffbf3a6"
Expand Down

0 comments on commit 45464d3

Please sign in to comment.