Skip to content

Commit 408c93e

Browse files
author
William Duncan
committed
Merge branch 'main' into next
2 parents e72eef6 + 653d3d8 commit 408c93e

File tree

9 files changed

+21
-145
lines changed

9 files changed

+21
-145
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Cloudnode API SDK
22

3-
![Client Version: 1.10.3](https://img.shields.io/badge/Client%20Version-1.10.3-%2316a34a)
3+
![Client Version: 2.0.0](https://img.shields.io/badge/Client%20Version-2.0.0-%2316a34a)
44
![API Version: 5.12.0](https://img.shields.io/badge/API%20Version-5.12.0-%232563eb)
55
![build: passing](https://img.shields.io/badge/build-passing-%2316a34a)
66
![npm downloads](https://img.shields.io/npm/dt/cloudnode-ts?label=downloads)

browser/Cloudnode.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
/**
32
* A client SDK for the Cloudnode API, written in TypeScript. [Documentation](https://github.com/cloudnode-pro/ts-client#documentation)
43
* @class
@@ -36,7 +35,7 @@ class Cloudnode {
3635
/**
3736
* Client user agent
3837
*/
39-
#userAgent = `cloudnode/1.10.3`;
38+
#userAgent = `cloudnode/2.0.0`;
4039
/**
4140
* Construct a new Cloudnode API client
4241
* @param token API token to use for requests

browser/Cloudnode.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gen/templates/main.mustache

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import Schema from "../gen/Schema";
2-
import fetch from "node-fetch";
32

43
/**
54
* {{{pkg.description}}}
@@ -365,7 +364,7 @@ namespace {{config.name}} {
365364
readonly body: any;
366365
};
367366

368-
public constructor(response: import("node-fetch").Response, request: {operation: Schema.Operation, pathParams: Record<string, string>, queryParams: Record<string, string>, body: any}) {
367+
public constructor(response: Response, request: {operation: Schema.Operation, pathParams: Record<string, string>, queryParams: Record<string, string>, body: any}) {
369368
this.headers = Object.fromEntries([...response.headers.entries()].map(([k, v]) => [k.toLowerCase(), v]));
370369
this.ok = response.ok;
371370
this.redirected = response.redirected;

package-lock.json

Lines changed: 7 additions & 130 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "cloudnode-ts",
3-
"version": "1.10.3",
3+
"version": "2.0.0",
44
"description": "A client SDK for the Cloudnode API, written in TypeScript. [Documentation](https://github.com/cloudnode-pro/ts-client#documentation)",
55
"main": "src/Cloudnode.js",
66
"type": "module",
@@ -31,12 +31,15 @@
3131
"@types/node": "^18.11.8",
3232
"listr-inquirer": "^0.1.0",
3333
"listr2": "^6.0.4",
34-
"mustache": "^4.2.0",
35-
"node-fetch": "^3.2.10"
34+
"mustache": "^4.2.0"
3635
},
3736
"devDependencies": {
3837
"@types/mustache": "^4.2.1",
3938
"terser": "^5.15.1",
4039
"typescript": "^5.0.2"
40+
},
41+
"engines": {
42+
"node": ">=18.15.0",
43+
"npm": ">=9.6.4"
4144
}
4245
}

src/Cloudnode.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,7 +885,7 @@ declare namespace Cloudnode {
885885
readonly queryParams: Record<string, string>;
886886
readonly body: any;
887887
};
888-
constructor(response: import("node-fetch").Response, request: {
888+
constructor(response: Response, request: {
889889
operation: Schema.Operation;
890890
pathParams: Record<string, string>;
891891
queryParams: Record<string, string>;

src/Cloudnode.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import fetch from "node-fetch";
21
/**
32
* A client SDK for the Cloudnode API, written in TypeScript. [Documentation](https://github.com/cloudnode-pro/ts-client#documentation)
43
* @class
@@ -36,7 +35,7 @@ class Cloudnode {
3635
/**
3736
* Client user agent
3837
*/
39-
#userAgent = `cloudnode/1.10.3`;
38+
#userAgent = `cloudnode/2.0.0`;
4039
/**
4140
* Construct a new Cloudnode API client
4241
* @param token API token to use for requests

src/Cloudnode.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import Schema from "../gen/Schema";
2-
import fetch from "node-fetch";
32

43
/**
54
* A client SDK for the Cloudnode API, written in TypeScript. [Documentation](https://github.com/cloudnode-pro/ts-client#documentation)
@@ -43,7 +42,7 @@ class Cloudnode {
4342
/**
4443
* Client user agent
4544
*/
46-
readonly #userAgent = `cloudnode/1.10.3`;
45+
readonly #userAgent = `cloudnode/2.0.0`;
4746

4847
/**
4948
* Construct a new Cloudnode API client
@@ -1135,7 +1134,7 @@ namespace Cloudnode {
11351134
readonly body: any;
11361135
};
11371136

1138-
public constructor(response: import("node-fetch").Response, request: {operation: Schema.Operation, pathParams: Record<string, string>, queryParams: Record<string, string>, body: any}) {
1137+
public constructor(response: Response, request: {operation: Schema.Operation, pathParams: Record<string, string>, queryParams: Record<string, string>, body: any}) {
11391138
this.headers = Object.fromEntries([...response.headers.entries()].map(([k, v]) => [k.toLowerCase(), v]));
11401139
this.ok = response.ok;
11411140
this.redirected = response.redirected;

0 commit comments

Comments
 (0)