cyberchef 9.46.3 → 9.46.5
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/.nvmrc
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
18
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cyberchef",
|
|
3
|
-
"version": "9.46.
|
|
3
|
+
"version": "9.46.5",
|
|
4
4
|
"description": "The Cyber Swiss Army Knife for encryption, encoding, compression and data analysis.",
|
|
5
5
|
"author": "n1474335 <n1474335@gmail.com>",
|
|
6
6
|
"homepage": "https://gchq.github.io/CyberChef",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"babel-loader": "^8.2.5",
|
|
50
50
|
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
51
51
|
"babel-plugin-transform-builtin-extend": "1.1.2",
|
|
52
|
-
"chromedriver": "^
|
|
52
|
+
"chromedriver": "^103.0.0",
|
|
53
53
|
"cli-progress": "^3.11.1",
|
|
54
54
|
"colors": "^1.4.0",
|
|
55
55
|
"copy-webpack-plugin": "^11.0.0",
|
|
@@ -77,7 +77,6 @@
|
|
|
77
77
|
"postcss-import": "^14.1.0",
|
|
78
78
|
"postcss-loader": "^7.0.0",
|
|
79
79
|
"prompt": "^1.3.0",
|
|
80
|
-
"sass-loader": "^13.0.0",
|
|
81
80
|
"sitemap": "^7.1.1",
|
|
82
81
|
"terser": "^5.14.0",
|
|
83
82
|
"webpack": "^5.73.0",
|
|
@@ -140,7 +139,6 @@
|
|
|
140
139
|
"ngeohash": "^0.6.3",
|
|
141
140
|
"node-forge": "^1.3.1",
|
|
142
141
|
"node-md6": "^0.1.0",
|
|
143
|
-
"node-sass": "^7.0.1",
|
|
144
142
|
"nodom": "^2.4.0",
|
|
145
143
|
"notepack.io": "^3.0.1",
|
|
146
144
|
"nwmatcher": "^1.4.4",
|
|
@@ -156,7 +154,7 @@
|
|
|
156
154
|
"split.js": "^1.6.5",
|
|
157
155
|
"ssdeep.js": "0.0.3",
|
|
158
156
|
"stream-browserify": "^3.0.0",
|
|
159
|
-
"tesseract.js": "
|
|
157
|
+
"tesseract.js": "3.0.2",
|
|
160
158
|
"ua-parser-js": "^1.0.2",
|
|
161
159
|
"unorm": "^1.6.0",
|
|
162
160
|
"utf8": "^3.0.0",
|
|
@@ -12,10 +12,8 @@ import { isImage } from "../lib/FileType.mjs";
|
|
|
12
12
|
import { toBase64 } from "../lib/Base64.mjs";
|
|
13
13
|
import { isWorkerEnvironment } from "../Utils.mjs";
|
|
14
14
|
|
|
15
|
-
import Tesseract from "tesseract.js";
|
|
16
|
-
const { createWorker } = Tesseract;
|
|
17
|
-
|
|
18
15
|
import process from "process";
|
|
16
|
+
import { createWorker } from "tesseract.js";
|
|
19
17
|
|
|
20
18
|
/**
|
|
21
19
|
* Optical Character Recognition operation
|
|
@@ -55,7 +53,7 @@ class OpticalCharacterRecognition extends Operation {
|
|
|
55
53
|
|
|
56
54
|
const type = isImage(input);
|
|
57
55
|
if (!type) {
|
|
58
|
-
throw new OperationError("
|
|
56
|
+
throw new OperationError("Unsupported file type (supported: jpg,png,pbm,bmp) or no file provided");
|
|
59
57
|
}
|
|
60
58
|
|
|
61
59
|
const assetDir = isWorkerEnvironment() ? `${self.docURL}/assets/` : `${process.cwd()}/src/core/vendor/`;
|
|
@@ -74,7 +72,7 @@ class OpticalCharacterRecognition extends Operation {
|
|
|
74
72
|
}
|
|
75
73
|
});
|
|
76
74
|
await worker.load();
|
|
77
|
-
self.sendStatusMessage(
|
|
75
|
+
self.sendStatusMessage(`Loading English language pack...`);
|
|
78
76
|
await worker.loadLanguage("eng");
|
|
79
77
|
self.sendStatusMessage("Intialising Tesseract API...");
|
|
80
78
|
await worker.initialize("eng");
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
import "highlight.js/styles/vs.css";
|
|
11
11
|
|
|
12
12
|
/* Frameworks */
|
|
13
|
-
import "
|
|
13
|
+
import "bootstrap-material-design/dist/css/bootstrap-material-design.css";
|
|
14
14
|
import "bootstrap-colorpicker/dist/css/bootstrap-colorpicker.css";
|
|
15
15
|
|
|
16
16
|
/* CyberChef styles */
|
package/webpack.config.js
CHANGED
|
@@ -164,19 +164,6 @@ module.exports = {
|
|
|
164
164
|
"postcss-loader",
|
|
165
165
|
]
|
|
166
166
|
},
|
|
167
|
-
{
|
|
168
|
-
test: /\.scss$/,
|
|
169
|
-
use: [
|
|
170
|
-
{
|
|
171
|
-
loader: MiniCssExtractPlugin.loader,
|
|
172
|
-
options: {
|
|
173
|
-
publicPath: "../"
|
|
174
|
-
}
|
|
175
|
-
},
|
|
176
|
-
"css-loader",
|
|
177
|
-
"sass-loader",
|
|
178
|
-
]
|
|
179
|
-
},
|
|
180
167
|
{
|
|
181
168
|
test: /\.(ico|eot|ttf|woff|woff2)$/,
|
|
182
169
|
type: "asset/resource",
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Bootstrap Material Design with overrides
|
|
3
|
-
*
|
|
4
|
-
* @author n1474335 [n1474335@gmail.com]
|
|
5
|
-
* @copyright Crown Copyright 2018
|
|
6
|
-
* @license Apache-2.0
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
@import "~bootstrap-material-design/scss/variables/colors";
|
|
10
|
-
|
|
11
|
-
$theme-colors: (
|
|
12
|
-
primary: $blue-700,
|
|
13
|
-
success: $green,
|
|
14
|
-
info: $light-blue,
|
|
15
|
-
warning: $deep-orange,
|
|
16
|
-
danger: $red,
|
|
17
|
-
light: $grey-100,
|
|
18
|
-
dark: $grey-800
|
|
19
|
-
);
|
|
20
|
-
|
|
21
|
-
$bmd-form-line-height: 1.25;
|
|
22
|
-
|
|
23
|
-
@import "~bootstrap-material-design/scss/core";
|