encodingscore-js 1.0.0 → 1.0.2

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 CHANGED
@@ -31,7 +31,7 @@ For hexadecimal and base64, an "offset" is applied by removing the final *n - 1*
31
31
 
32
32
  Import the encoding scorer:
33
33
  ```js
34
- import { EncodingScorer } from "./src/encodingScorer.js";
34
+ import EncodingScorer from "encodingScorer-js";
35
35
  ```
36
36
 
37
37
  ### Hexadecimal usage
package/index.js ADDED
@@ -0,0 +1,3 @@
1
+ import EncodingScorer from './src/index.js';
2
+
3
+ export default EncodingScorer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "encodingscore-js",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "A library for scoring encoded text against a provided regex.",
5
5
  "author": "irebased <rebased.again@gmail.com>"
6
6
  }
@@ -38,9 +38,6 @@ export class EncodingScorer {
38
38
 
39
39
  validByte(byte, re) {
40
40
  try {
41
- if (!re.test(byte)) {
42
- console.log(`Failed validation: ${byte}`)
43
- }
44
41
  return re.test(byte);
45
42
  } catch {}
46
43
  }
package/src/index.js ADDED
@@ -0,0 +1,3 @@
1
+ import { EncodingScorer } from "./encodingScorer.js";
2
+
3
+ export default EncodingScorer;