pentest-tool-lite 3.6.2 → 3.6.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pentest-tool-lite",
3
3
  "description": "Check your website ( or any other website ) for common vulnerabilities.",
4
- "version": "3.6.2",
4
+ "version": "3.6.4",
5
5
  "homepage": "https://pentest-tool-lite.com",
6
6
  "license": "MIT",
7
7
  "author": {
@@ -14,10 +14,9 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "commander": "^6.0.0",
17
- "csso": "^4.2.0",
17
+ "csso": "^5.0.5",
18
18
  "domhandler": "^4.2.2",
19
19
  "htmlparser2": "^7.1.2",
20
- "lint": "^0.7.0",
21
20
  "node-fetch": "^2.6.0",
22
21
  "ssl-checker": "^2.0.7",
23
22
  "uglify-js": "^3.6.1",
package/src/html/CSS.js CHANGED
@@ -91,10 +91,10 @@ class CSS extends Test_1.default {
91
91
  return true;
92
92
  }
93
93
  isCached(result) {
94
- return Object.prototype.hasOwnProperty.call(result.response.headers, 'cache-control');
94
+ return result.response.headers.has('cache-control');
95
95
  }
96
96
  hasXContentTypeOptionsHeader(result) {
97
- return Object.prototype.hasOwnProperty.call(result.response.headers, 'x-content-type-options');
97
+ return result.response.headers.has('x-content-type-options');
98
98
  }
99
99
  isMinified(result) {
100
100
  const r = csso_1.default.minify(result.body, { restructure: false }).css;
package/src/html/Image.js CHANGED
@@ -83,10 +83,10 @@ class Image extends Test_1.default {
83
83
  return true;
84
84
  }
85
85
  isCached(result) {
86
- return Object.prototype.hasOwnProperty.call(result.response.headers, 'cache-control');
86
+ return result.response.headers.has('cache-control');
87
87
  }
88
88
  hasXContentTypeOptionsHeader(result) {
89
- return Object.prototype.hasOwnProperty.call(result.response.headers, 'x-content-type-options');
89
+ return result.response.headers.has('x-content-type-options');
90
90
  }
91
91
  }
92
92
  exports.default = Image;
@@ -98,10 +98,10 @@ class JavaScript extends Test_1.default {
98
98
  return true;
99
99
  }
100
100
  isCached(result) {
101
- return Object.prototype.hasOwnProperty.call(result.response.headers, 'cache-control');
101
+ return result.response.headers.has('cache-control');
102
102
  }
103
103
  hasXContentTypeOptionsHeader(result) {
104
- return Object.prototype.hasOwnProperty.call(result.response.headers, 'x-content-type-options');
104
+ return result.response.headers.has('x-content-type-options');
105
105
  }
106
106
  isMinified(result) {
107
107
  const r = uglify_js_1.default.minify(result.body, { mangle: false, output: { comments: true } });
package/src/index CHANGED
@@ -2,7 +2,11 @@
2
2
  "use strict";
3
3
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
4
  if (k2 === undefined) k2 = k;
5
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
6
10
  }) : (function(o, m, k, k2) {
7
11
  if (k2 === undefined) k2 = k;
8
12
  o[k2] = m[k];