Skip to content

Commit

Permalink
refactor: oops
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenyong committed May 29, 2024
1 parent bf7badc commit e6ac3a0
Show file tree
Hide file tree
Showing 22 changed files with 2 additions and 310 deletions.
9 changes: 1 addition & 8 deletions src/helpers/__snapshots__/utils.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,6 @@ exports[`availableTargets > returns all available targets 1`] = `
{
"cli": "node %s",
"clients": [
{
"description": "Perform asynchronous HTTP requests with the Fetch API",
"extname": ".js",
"key": "fetch",
"link": "https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch",
"title": "fetch",
},
{
"description": "Lightweight HTTP Request Client Library",
"extname": ".cjs",
Expand All @@ -201,7 +194,7 @@ exports[`availableTargets > returns all available targets 1`] = `
"title": "Axios",
},
],
"default": "fetch",
"default": "axios",
"key": "node",
"title": "Node.js",
},
Expand Down
130 changes: 0 additions & 130 deletions src/targets/node/fetch/client.ts

This file was deleted.

10 changes: 0 additions & 10 deletions src/targets/node/fetch/fixtures/application-form-encoded.js

This file was deleted.

17 changes: 0 additions & 17 deletions src/targets/node/fetch/fixtures/application-json.js

This file was deleted.

6 changes: 0 additions & 6 deletions src/targets/node/fetch/fixtures/cookies.js

This file was deleted.

6 changes: 0 additions & 6 deletions src/targets/node/fetch/fixtures/custom-method.js

This file was deleted.

14 changes: 0 additions & 14 deletions src/targets/node/fetch/fixtures/full.js

This file was deleted.

14 changes: 0 additions & 14 deletions src/targets/node/fetch/fixtures/headers.js

This file was deleted.

6 changes: 0 additions & 6 deletions src/targets/node/fetch/fixtures/http-insecure.js

This file was deleted.

10 changes: 0 additions & 10 deletions src/targets/node/fetch/fixtures/jsonObj-multiline.js

This file was deleted.

10 changes: 0 additions & 10 deletions src/targets/node/fetch/fixtures/jsonObj-null-value.js

This file was deleted.

12 changes: 0 additions & 12 deletions src/targets/node/fetch/fixtures/multipart-data.js

This file was deleted.

11 changes: 0 additions & 11 deletions src/targets/node/fetch/fixtures/multipart-file.js

This file was deleted.

This file was deleted.

11 changes: 0 additions & 11 deletions src/targets/node/fetch/fixtures/multipart-form-data.js

This file was deleted.

6 changes: 0 additions & 6 deletions src/targets/node/fetch/fixtures/nested.js

This file was deleted.

6 changes: 0 additions & 6 deletions src/targets/node/fetch/fixtures/postdata-malformed.js

This file was deleted.

6 changes: 0 additions & 6 deletions src/targets/node/fetch/fixtures/query-encoded.js

This file was deleted.

6 changes: 0 additions & 6 deletions src/targets/node/fetch/fixtures/query.js

This file was deleted.

6 changes: 0 additions & 6 deletions src/targets/node/fetch/fixtures/short.js

This file was deleted.

6 changes: 0 additions & 6 deletions src/targets/node/fetch/fixtures/text-plain.js

This file was deleted.

4 changes: 1 addition & 3 deletions src/targets/node/target.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
import type { Target } from '../index.js';

import { axios } from './axios/client.js';
import { fetch } from './fetch/client.js';
import { unirest } from './unirest/client.js';

export const node: Target = {
info: {
key: 'node',
title: 'Node.js',
default: 'fetch',
default: 'axios',
cli: 'node %s',
},
clientsById: {
fetch,
unirest,
axios,
},
Expand Down

0 comments on commit e6ac3a0

Please sign in to comment.