Skip to content

Commit 1d15e79

Browse files
committed
feature: typescript sdk release
1 parent 2847d90 commit 1d15e79

3 files changed

Lines changed: 4 additions & 35 deletions

File tree

README.md

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,9 @@
1-
## hostinger-api@0.0.6
1+
## hostinger-api@0.0.7
22

33
For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
44

5-
## Requirements.
6-
7-
* Node.js
8-
* Webpack
9-
* Browserify
10-
Language level
11-
* ES5 - you must have a Promises/A+ library installed
12-
* ES6
13-
14-
Module system
15-
* CommonJS
16-
* ES6 module system
17-
18-
It can be used in both TypeScript and JavaScript. In TypeScript, the definition will be automatically resolved via `package.json`. ([Reference](https://www.typescriptlang.org/docs/handbook/declaration-files/consumption.html))
19-
20-
### Building
21-
22-
To build and compile the typescript sources to javascript use:
23-
```
24-
npm install
25-
npm run build
26-
```
27-
28-
### Publishing
29-
30-
First build the package then run `npm publish`
31-
32-
### Consuming
33-
34-
navigate to the folder of your consuming project and run one of the following commands.
35-
365
### Usage
376

387
```
39-
npm install hostinger-api@0.0.6 --save
8+
npm install hostinger-api --save
409
```
41-

configuration.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ export class Configuration {
8989
this.baseOptions = {
9090
...param.baseOptions,
9191
headers: {
92+
'User-Agent': "hostinger-api-typescript/0.0.7",
9293
...param.baseOptions?.headers,
9394
},
9495
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hostinger-api",
3-
"version": "0.0.6",
3+
"version": "0.0.7",
44
"description": "Hostinger API TypeScript SDK",
55
"author": "Hostinger",
66
"repository": {

0 commit comments

Comments
 (0)