Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleanup: remove old libraries #234

Closed
wants to merge 12 commits into from
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
darrenyong marked this conversation as resolved.
Show resolved Hide resolved

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