Skip to content

Commit

Permalink
refactor: removing node unirest
Browse files Browse the repository at this point in the history
  • Loading branch information
erunion committed Sep 5, 2024
1 parent 7cc5224 commit 9d87a71
Show file tree
Hide file tree
Showing 25 changed files with 3 additions and 473 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ console.log(
}),
);

// generate Node.js: Unirest output
console.log(snippet.convert('node', 'unirest'));
// generate Node.js: Axios output
console.log(snippet.convert('node', 'axios'));
```

### addTarget(target)
Expand Down
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,12 @@
"ocaml",
"php",
"python",
"request",
"requests",
"ruby",
"shell",
"snippet",
"swift",
"swift",
"unirest",
"xhr",
"xmlhttprequest"
],
Expand Down
7 changes: 0 additions & 7 deletions src/helpers/__snapshots__/utils.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,6 @@ exports[`availableTargets > returns all available targets 1`] = `
"link": "http://nodejs.org/api/http.html#http_http_request_options_callback",
"title": "HTTP",
},
{
"description": "Lightweight HTTP Request Client Library",
"extname": ".cjs",
"key": "unirest",
"link": "http://unirest.io/nodejs.html",
"title": "Unirest",
},
{
"description": "Promise based HTTP client for the browser and node.js",
"extname": ".cjs",
Expand Down
2 changes: 1 addition & 1 deletion src/targets/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const targetFilter: TargetId[] = [
/** useful for debuggin, only run a particular set of targets */
const clientFilter: ClientId[] = [
// put your clientId here:
// 'unirest',
// 'axios',
];

/** useful for debuggin, only run a particular set of fixtures */
Expand Down
2 changes: 0 additions & 2 deletions src/targets/node/target.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import type { Target } from '../index.js';
import { axios } from './axios/client.js';
import { fetch } from './fetch/client.js';
import { native } from './native/client.js';
import { unirest } from './unirest/client.js';

export const node: Target = {
info: {
Expand All @@ -14,7 +13,6 @@ export const node: Target = {
},
clientsById: {
native,
unirest,
axios,
fetch,
},
Expand Down
130 changes: 0 additions & 130 deletions src/targets/node/unirest/client.ts

This file was deleted.

18 changes: 0 additions & 18 deletions src/targets/node/unirest/fixtures/application-form-encoded.cjs

This file was deleted.

35 changes: 0 additions & 35 deletions src/targets/node/unirest/fixtures/application-json.cjs

This file was deleted.

14 changes: 0 additions & 14 deletions src/targets/node/unirest/fixtures/cookies.cjs

This file was deleted.

9 changes: 0 additions & 9 deletions src/targets/node/unirest/fixtures/custom-method.cjs

This file was deleted.

32 changes: 0 additions & 32 deletions src/targets/node/unirest/fixtures/full.cjs

This file was deleted.

16 changes: 0 additions & 16 deletions src/targets/node/unirest/fixtures/headers.cjs

This file was deleted.

9 changes: 0 additions & 9 deletions src/targets/node/unirest/fixtures/http-insecure.cjs

This file was deleted.

18 changes: 0 additions & 18 deletions src/targets/node/unirest/fixtures/jsonObj-multiline.cjs

This file was deleted.

18 changes: 0 additions & 18 deletions src/targets/node/unirest/fixtures/jsonObj-null-value.cjs

This file was deleted.

Loading

0 comments on commit 9d87a71

Please sign in to comment.