gwsp 1.0.0 → 2.2.2

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -11,7 +11,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
11
11
  var __importDefault = (this && this.__importDefault) || function (mod) {
12
12
  return (mod && mod.__esModule) ? mod : { "default": mod };
13
13
  };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
14
  const node_fetch_1 = __importDefault(require("node-fetch"));
16
15
  const kyle_printer_1 = __importDefault(require("kyle-printer"));
17
16
  function GWSP(url) {
@@ -53,4 +52,4 @@ function GWSP(url) {
53
52
  }
54
53
  });
55
54
  }
56
- GWSP('https://chatgpt.com/');
55
+ module.exports = GWSP;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gwsp",
3
- "version": "1.0.0",
3
+ "version": "2.2.2",
4
4
  "main": "dist/index.js",
5
5
  "scripts": {
6
6
  "build": "tsc",
package/src/index.ts CHANGED
@@ -23,7 +23,7 @@ async function GWSP(url: string): Promise<void> {
23
23
  protectionInfo = `Via: ${viaHeader}`;
24
24
  }
25
25
 
26
- print({ text: `GWSP GET : ,\n${protectionInfo}`, color: 'green', font: 'bold' });
26
+ print({ text: `GWSP GET [ ${protectionInfo} ]`, color: 'green', font: 'bold' });
27
27
  } catch (error) {
28
28
  let statusCode = 'null';
29
29
  if ((error as any)?.response?.status) {
@@ -37,4 +37,4 @@ async function GWSP(url: string): Promise<void> {
37
37
  }
38
38
  }
39
39
 
40
- GWSP('https://chatgpt.com/');
40
+ export = GWSP;