Skip to content

Commit 9d87a71

Browse files
committed
refactor: removing node unirest
1 parent 7cc5224 commit 9d87a71

25 files changed

+3
-473
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ console.log(
109109
}),
110110
);
111111

112-
// generate Node.js: Unirest output
113-
console.log(snippet.convert('node', 'unirest'));
112+
// generate Node.js: Axios output
113+
console.log(snippet.convert('node', 'axios'));
114114
```
115115

116116
### addTarget(target)

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,12 @@
5353
"ocaml",
5454
"php",
5555
"python",
56-
"request",
5756
"requests",
5857
"ruby",
5958
"shell",
6059
"snippet",
6160
"swift",
6261
"swift",
63-
"unirest",
6462
"xhr",
6563
"xmlhttprequest"
6664
],

src/helpers/__snapshots__/utils.test.ts.snap

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -192,13 +192,6 @@ exports[`availableTargets > returns all available targets 1`] = `
192192
"link": "http://nodejs.org/api/http.html#http_http_request_options_callback",
193193
"title": "HTTP",
194194
},
195-
{
196-
"description": "Lightweight HTTP Request Client Library",
197-
"extname": ".cjs",
198-
"key": "unirest",
199-
"link": "http://unirest.io/nodejs.html",
200-
"title": "Unirest",
201-
},
202195
{
203196
"description": "Promise based HTTP client for the browser and node.js",
204197
"extname": ".cjs",

src/targets/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ const targetFilter: TargetId[] = [
3131
/** useful for debuggin, only run a particular set of targets */
3232
const clientFilter: ClientId[] = [
3333
// put your clientId here:
34-
// 'unirest',
34+
// 'axios',
3535
];
3636

3737
/** useful for debuggin, only run a particular set of fixtures */

src/targets/node/target.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import type { Target } from '../index.js';
33
import { axios } from './axios/client.js';
44
import { fetch } from './fetch/client.js';
55
import { native } from './native/client.js';
6-
import { unirest } from './unirest/client.js';
76

87
export const node: Target = {
98
info: {
@@ -14,7 +13,6 @@ export const node: Target = {
1413
},
1514
clientsById: {
1615
native,
17-
unirest,
1816
axios,
1917
fetch,
2018
},

src/targets/node/unirest/client.ts

Lines changed: 0 additions & 130 deletions
This file was deleted.

src/targets/node/unirest/fixtures/application-form-encoded.cjs

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/targets/node/unirest/fixtures/application-json.cjs

Lines changed: 0 additions & 35 deletions
This file was deleted.

src/targets/node/unirest/fixtures/cookies.cjs

Lines changed: 0 additions & 14 deletions
This file was deleted.

src/targets/node/unirest/fixtures/custom-method.cjs

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/targets/node/unirest/fixtures/full.cjs

Lines changed: 0 additions & 32 deletions
This file was deleted.

src/targets/node/unirest/fixtures/headers.cjs

Lines changed: 0 additions & 16 deletions
This file was deleted.

src/targets/node/unirest/fixtures/http-insecure.cjs

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/targets/node/unirest/fixtures/jsonObj-multiline.cjs

Lines changed: 0 additions & 18 deletions
This file was deleted.

src/targets/node/unirest/fixtures/jsonObj-null-value.cjs

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)