@apiverve/sslchecker 1.0.3 → 1.1.4

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.
Files changed (3) hide show
  1. package/README.md +9 -7
  2. package/index.js +2 -2
  3. package/package.json +5 -5
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- SSL Checker API
1
+ SSL Certificate Checker API
2
2
  ============
3
3
 
4
4
  SSL Checker is a simple tool for checking SSL certificates. It returns the SSL certificate details of a website.
@@ -7,7 +7,7 @@ SSL Checker is a simple tool for checking SSL certificates. It returns the SSL c
7
7
  ![Code Climate](https://img.shields.io/badge/maintainability-B-purple)
8
8
  ![Prod Ready](https://img.shields.io/badge/production-ready-blue)
9
9
 
10
- This is a Javascript Wrapper for the [SSL Checker API](https://apiverve.com/marketplace/api/sslchecker)
10
+ This is a Javascript Wrapper for the [SSL Certificate Checker API](https://apiverve.com/marketplace/api/sslchecker)
11
11
 
12
12
  ---
13
13
 
@@ -25,7 +25,7 @@ You can get it by signing up at [https://apiverve.com](https://apiverve.com)
25
25
 
26
26
  ## Usage
27
27
 
28
- The SSL Checker API documentation is found here: [https://docs.apiverve.com/api/sslchecker](https://docs.apiverve.com/api/sslchecker).
28
+ The SSL Certificate Checker API documentation is found here: [https://docs.apiverve.com/api/sslchecker](https://docs.apiverve.com/api/sslchecker).
29
29
  You can find parameters, example responses, and status codes documented here.
30
30
 
31
31
  ### Setup
@@ -47,8 +47,8 @@ Using the API client, you can perform requests to the API.
47
47
  ###### Define Query
48
48
 
49
49
  ```
50
- var query = {
51
- "url": "https://ebay.com"
50
+ var query = {
51
+ domain: ""
52
52
  };
53
53
  ```
54
54
 
@@ -97,8 +97,10 @@ api.execute(query, function (error, data) {
97
97
  "bits": 2048,
98
98
  "valid_from": "Feb 26 00:00:00 2024 GMT",
99
99
  "valid_to": "Feb 25 23:59:59 2025 GMT",
100
- "serialNumber": "D5072F2C3B21834D34FBB048F9A5DAC0"
101
- }
100
+ "serialNumber": "D5072F2C3B21834D34FBB048F9A5DAC0",
101
+ "domain": "ebay.com"
102
+ },
103
+ "code": 200
102
104
  }
103
105
  ```
104
106
 
package/index.js CHANGED
@@ -33,7 +33,7 @@ class sslcheckerWrapper {
33
33
  query = {};
34
34
  }
35
35
 
36
- var requiredParams = ["url"];
36
+ var requiredParams = ["domain"];
37
37
  if (requiredParams.length > 0) {
38
38
  for (var i = 0; i < requiredParams.length; i++) {
39
39
  if (!query[requiredParams[i]]) {
@@ -42,7 +42,7 @@ class sslcheckerWrapper {
42
42
  }
43
43
  }
44
44
 
45
- const method = 'POST';
45
+ const method = 'GET';
46
46
  const url = method === 'POST' ? this.baseURL : this.constructURL(query);
47
47
 
48
48
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apiverve/sslchecker",
3
- "version": "1.0.3",
3
+ "version": "1.1.4",
4
4
  "description": "SSL Checker is a simple tool for checking SSL certificates. It returns the SSL certificate details of a website.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -18,15 +18,15 @@
18
18
  "bugs": {
19
19
  "url": "https://github.com/apiverve/sslchecker-API/issues"
20
20
  },
21
- "homepage": "https://github.com/apiverve/sslchecker-API",
21
+ "homepage": "https://apiverve.com/marketplace/api/sslchecker",
22
22
  "devDependencies": {
23
- "mocha": "^10.4.0",
23
+ "mocha": "^10.7.3",
24
24
  "chai": "^5.1.1",
25
25
  "dotenv": "^16.4.5"
26
26
  },
27
27
  "dependencies": {
28
- "node-fetch": "3.3.2",
28
+ "node-fetch": "^3.3.2",
29
29
  "promise": "^8.3.0",
30
- "axios": "1.6.8"
30
+ "axios": "1.7.4"
31
31
  }
32
32
  }