fork of hey-api/openapi-ts because I need some additional things
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #111 from jordanshatford/fix/warning-in-node-template

fix: import error in node client

authored by

Jordan Shatford and committed by
GitHub
ae83b254 7fc14c74

+4 -5
+1 -1
.github/workflows/ci.yml
··· 3 3 on: 4 4 push: 5 5 branches: 6 - - master 6 + - main 7 7 pull_request: 8 8 workflow_dispatch: 9 9
+1 -1
.github/workflows/codeql.yml
··· 3 3 on: 4 4 push: 5 5 branches: 6 - - master 6 + - main 7 7 pull_request: 8 8 schedule: 9 9 - cron: "44 20 * * 3"
+1 -1
CONTRIBUTING.md
··· 34 34 35 35 ## Submitting a Pull Request 36 36 37 - 1. Make your changes in a new git branch: `git checkout -b my-fix-branch master` 37 + 1. Make your changes in a new git branch: `git checkout -b my-fix-branch main` 38 38 2. Create your patch or feature 39 39 3. Ensure the builds work by running: `npm run build` 40 40 4. Ensure the tests will pass by running: `npm run test`
-1
src/templates/core/node/request.hbs
··· 1 1 import FormData from 'form-data'; 2 2 import fetch, { Headers } from 'node-fetch'; 3 3 import type { RequestInit, Response } from 'node-fetch'; 4 - import type { AbortSignal } from 'node-fetch/externals'; 5 4 6 5 import { ApiError } from './ApiError'; 7 6 import type { ApiRequestOptions } from './ApiRequestOptions';
+1 -1
src/templates/core/node/sendRequest.hbs
··· 12 12 headers, 13 13 method: options.method, 14 14 body: body ?? formData, 15 - signal: controller.signal as AbortSignal, 15 + signal: controller.signal, 16 16 }; 17 17 18 18 onCancel(() => controller.abort());