@apiverve/useragentgenerator 1.1.10 → 1.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/examples/basic.js +1 -1
- package/index.d.ts +30 -1
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -59,7 +59,7 @@ Using the API is simple. All you have to do is make a request. The API will retu
|
|
|
59
59
|
|
|
60
60
|
```javascript
|
|
61
61
|
var query = {
|
|
62
|
-
device: "
|
|
62
|
+
device: "desktop"
|
|
63
63
|
};
|
|
64
64
|
|
|
65
65
|
api.execute(query, function (error, data) {
|
|
@@ -79,7 +79,7 @@ You can also use promises to make requests. The API returns a promise that you c
|
|
|
79
79
|
|
|
80
80
|
```javascript
|
|
81
81
|
var query = {
|
|
82
|
-
device: "
|
|
82
|
+
device: "desktop"
|
|
83
83
|
};
|
|
84
84
|
|
|
85
85
|
api.execute(query)
|
|
@@ -100,7 +100,7 @@ You can also use async/await to make requests. The API returns a promise that yo
|
|
|
100
100
|
```javascript
|
|
101
101
|
async function makeRequest() {
|
|
102
102
|
var query = {
|
|
103
|
-
device: "
|
|
103
|
+
device: "desktop"
|
|
104
104
|
};
|
|
105
105
|
|
|
106
106
|
try {
|
package/examples/basic.js
CHANGED
package/index.d.ts
CHANGED
|
@@ -7,10 +7,39 @@ declare module '@apiverve/useragentgenerator' {
|
|
|
7
7
|
export interface useragentgeneratorResponse {
|
|
8
8
|
status: string;
|
|
9
9
|
error: string | null;
|
|
10
|
-
data:
|
|
10
|
+
data: UserAgentGeneratorData;
|
|
11
11
|
code?: number;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
|
|
15
|
+
interface UserAgentGeneratorData {
|
|
16
|
+
ua: string;
|
|
17
|
+
browser: Browser;
|
|
18
|
+
engine: Engine;
|
|
19
|
+
os: Engine;
|
|
20
|
+
device: Device;
|
|
21
|
+
cpu: CPU;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
interface Browser {
|
|
25
|
+
name: string;
|
|
26
|
+
version: string;
|
|
27
|
+
major: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
interface CPU {
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
interface Device {
|
|
34
|
+
vendor: string;
|
|
35
|
+
model: string;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
interface Engine {
|
|
39
|
+
name: string;
|
|
40
|
+
version: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
14
43
|
export default class useragentgeneratorWrapper {
|
|
15
44
|
constructor(options: useragentgeneratorOptions);
|
|
16
45
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apiverve/useragentgenerator",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.12",
|
|
4
4
|
"description": "User Agent Generator is a simple tool for generating user agent strings. It returns a random user agent string.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
},
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
13
|
-
"url": "git+https://github.com/apiverve/useragentgenerator-
|
|
13
|
+
"url": "git+https://github.com/apiverve/useragentgenerator-api.git",
|
|
14
|
+
"directory": "npm"
|
|
14
15
|
},
|
|
15
16
|
"keywords": [
|
|
16
17
|
"user agent generator", "user agent generator api", "user agent generator tool", "user agent generator software", "user agent generator service"
|
|
@@ -18,7 +19,7 @@
|
|
|
18
19
|
"author": "APIVerve <hello@apiverve.com> (http://apiverve.com/)",
|
|
19
20
|
"license": "MIT",
|
|
20
21
|
"bugs": {
|
|
21
|
-
"url": "https://github.com/apiverve/useragentgenerator-
|
|
22
|
+
"url": "https://github.com/apiverve/useragentgenerator-api/issues"
|
|
22
23
|
},
|
|
23
24
|
"homepage": "https://apiverve.com/marketplace/useragentgenerator?utm_source=npm",
|
|
24
25
|
"devDependencies": {
|