|
@@ -29,26 +29,35 @@
|
|
|
},
|
|
|
"main": "src/node/cjs.js",
|
|
|
"module": "src/node/index.mjs",
|
|
|
+ "exports": {
|
|
|
+ ".": {
|
|
|
+ "require": "./src/node/cjs.js",
|
|
|
+ "import": "./src/node/index.mjs"
|
|
|
+ }
|
|
|
+ },
|
|
|
"bugs": "https://github.com/gchq/CyberChef/issues",
|
|
|
"browserslist": [
|
|
|
"Chrome >= 50",
|
|
|
"Firefox >= 38",
|
|
|
- "node >= 10"
|
|
|
+ "node >= 16"
|
|
|
],
|
|
|
"devDependencies": {
|
|
|
- "@babel/core": "^7.15.0",
|
|
|
- "@babel/plugin-transform-runtime": "^7.15.0",
|
|
|
- "@babel/preset-env": "^7.15.0",
|
|
|
+ "@babel/core": "^7.17.8",
|
|
|
+ "@babel/eslint-parser": "^7.17.0",
|
|
|
+ "@babel/plugin-syntax-import-assertions": "^7.16.7",
|
|
|
+ "@babel/plugin-transform-runtime": "^7.17.0",
|
|
|
+ "@babel/preset-env": "^7.16.11",
|
|
|
+ "@babel/runtime": "^7.17.8",
|
|
|
"autoprefixer": "^10.3.1",
|
|
|
- "babel-eslint": "^10.1.0",
|
|
|
- "babel-loader": "^8.2.2",
|
|
|
+ "babel-loader": "^8.2.4",
|
|
|
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
|
- "chromedriver": "^92.0.1",
|
|
|
+ "chromedriver": "^99.0.0",
|
|
|
"cli-progress": "^3.9.0",
|
|
|
"colors": "^1.4.0",
|
|
|
"copy-webpack-plugin": "^9.0.1",
|
|
|
+ "core-js": "^3.21.1",
|
|
|
"css-loader": "5.2.7",
|
|
|
- "eslint": "^7.32.0",
|
|
|
+ "eslint": "^8.11.0",
|
|
|
"exports-loader": "^3.0.0",
|
|
|
"file-loader": "^6.2.0",
|
|
|
"grunt": "^1.4.1",
|
|
@@ -58,7 +67,7 @@
|
|
|
"grunt-contrib-connect": "^3.0.0",
|
|
|
"grunt-contrib-copy": "~1.0.0",
|
|
|
"grunt-contrib-watch": "^1.1.0",
|
|
|
- "grunt-eslint": "^23.0.0",
|
|
|
+ "grunt-eslint": "^24.0.0",
|
|
|
"grunt-exec": "~3.0.0",
|
|
|
"grunt-webpack": "^4.0.3",
|
|
|
"grunt-zip": "^0.18.2",
|
|
@@ -66,7 +75,6 @@
|
|
|
"imports-loader": "^3.0.0",
|
|
|
"mini-css-extract-plugin": "1.3.7",
|
|
|
"nightwatch": "^1.7.8",
|
|
|
- "node-sass": "^5.0.0",
|
|
|
"postcss": "^8.3.6",
|
|
|
"postcss-css-variables": "^0.18.0",
|
|
|
"postcss-import": "^14.0.2",
|
|
@@ -77,7 +85,7 @@
|
|
|
"style-loader": "^3.2.1",
|
|
|
"svg-url-loader": "^7.1.1",
|
|
|
"url-loader": "^4.1.1",
|
|
|
- "webpack": "^5.51.0",
|
|
|
+ "webpack": "^5.70.0",
|
|
|
"webpack-bundle-analyzer": "^4.4.2",
|
|
|
"webpack-dev-server": "3.11.2",
|
|
|
"webpack-node-externals": "^3.0.0",
|
|
@@ -85,7 +93,6 @@
|
|
|
},
|
|
|
"dependencies": {
|
|
|
"@babel/polyfill": "^7.12.1",
|
|
|
- "@babel/runtime": "^7.15.3",
|
|
|
"arrive": "^2.4.1",
|
|
|
"avsc": "^5.7.3",
|
|
|
"babel-plugin-transform-builtin-extend": "1.1.2",
|
|
@@ -101,7 +108,6 @@
|
|
|
"cbor": "5.0.1",
|
|
|
"chi-squared": "^1.1.0",
|
|
|
"codepage": "^1.15.0",
|
|
|
- "core-js": "^3.16.2",
|
|
|
"crypto-api": "^0.8.5",
|
|
|
"crypto-browserify": "^3.12.0",
|
|
|
"crypto-js": "^4.1.1",
|
|
@@ -111,7 +117,6 @@
|
|
|
"diff": "^5.0.0",
|
|
|
"es6-promisify": "^7.0.0",
|
|
|
"escodegen": "^2.0.0",
|
|
|
- "esm": "^3.2.25",
|
|
|
"esprima": "^4.0.1",
|
|
|
"exif-parser": "^0.1.12",
|
|
|
"file-saver": "^2.0.5",
|
|
@@ -139,6 +144,7 @@
|
|
|
"ngeohash": "^0.6.3",
|
|
|
"node-forge": "^0.10.0",
|
|
|
"node-md6": "^0.1.0",
|
|
|
+ "node-sass": "^7.0.1",
|
|
|
"nodom": "^2.4.0",
|
|
|
"notepack.io": "^2.3.0",
|
|
|
"nwmatcher": "^1.4.4",
|
|
@@ -169,13 +175,13 @@
|
|
|
"start": "npx grunt dev",
|
|
|
"build": "npx grunt prod",
|
|
|
"repl": "node src/node/repl.js",
|
|
|
- "test": "npx grunt configTests && node --experimental-modules --no-warnings --no-deprecation tests/node/index.mjs && node --experimental-modules --no-warnings --no-deprecation tests/operations/index.mjs",
|
|
|
+ "test": "npx grunt configTests && node --experimental-modules --experimental-json-modules --no-warnings --no-deprecation tests/node/index.mjs && node --experimental-modules --experimental-json-modules --no-warnings --no-deprecation tests/operations/index.mjs",
|
|
|
"test-node-consumer": "npx grunt testnodeconsumer",
|
|
|
"testui": "npx grunt testui",
|
|
|
"testuidev": "npx nightwatch --env=dev",
|
|
|
"lint": "npx grunt lint",
|
|
|
"postinstall": "npx grunt exec:fixCryptoApiImports",
|
|
|
- "newop": "node --experimental-modules src/core/config/scripts/newOperation.mjs",
|
|
|
+ "newop": "node --experimental-modules --experimental-json-modules src/core/config/scripts/newOperation.mjs",
|
|
|
"getheapsize": "node -e 'console.log(`node heap limit = ${require(\"v8\").getHeapStatistics().heap_size_limit / (1024 * 1024)} Mb`)'",
|
|
|
"setheapsize": "export NODE_OPTIONS=--max_old_space_size=2048"
|
|
|
}
|