Updated dependencies

This commit is contained in:
n1474335 2021-02-01 16:57:42 +00:00
parent e14745a973
commit 372ab32539
4 changed files with 527 additions and 1137 deletions

View File

@ -78,7 +78,6 @@ module.exports = function (grunt) {
grunt.loadNpmTasks("grunt-contrib-watch"); grunt.loadNpmTasks("grunt-contrib-watch");
grunt.loadNpmTasks("grunt-chmod"); grunt.loadNpmTasks("grunt-chmod");
grunt.loadNpmTasks("grunt-exec"); grunt.loadNpmTasks("grunt-exec");
grunt.loadNpmTasks("grunt-accessibility");
grunt.loadNpmTasks("grunt-concurrent"); grunt.loadNpmTasks("grunt-concurrent");
grunt.loadNpmTasks("grunt-contrib-connect"); grunt.loadNpmTasks("grunt-contrib-connect");
grunt.loadNpmTasks("grunt-zip"); grunt.loadNpmTasks("grunt-zip");
@ -197,18 +196,6 @@ module.exports = function (grunt) {
node: ["src/node/**/*.{js,mjs}"], node: ["src/node/**/*.{js,mjs}"],
tests: ["tests/**/*.{js,mjs}"], tests: ["tests/**/*.{js,mjs}"],
}, },
accessibility: {
options: {
accessibilityLevel: "WCAG2A",
verbose: false,
ignore: [
"WCAG2A.Principle1.Guideline1_3.1_3_1.H42.2"
]
},
test: {
src: ["build/**/*.html"]
}
},
webpack: { webpack: {
options: webpackConfig, options: webpackConfig,
web: webpackProdConf(), web: webpackProdConf(),

1588
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -38,21 +38,20 @@
"devDependencies": { "devDependencies": {
"@babel/core": "^7.12.10", "@babel/core": "^7.12.10",
"@babel/plugin-transform-runtime": "^7.12.10", "@babel/plugin-transform-runtime": "^7.12.10",
"@babel/preset-env": "^7.12.10", "@babel/preset-env": "^7.12.11",
"autoprefixer": "^10.1.0", "autoprefixer": "^10.2.4",
"babel-eslint": "^10.1.0", "babel-eslint": "^10.1.0",
"babel-loader": "^8.2.2", "babel-loader": "^8.2.2",
"babel-plugin-dynamic-import-node": "^2.3.3", "babel-plugin-dynamic-import-node": "^2.3.3",
"chromedriver": "^87.0.4", "chromedriver": "^88.0.0",
"cli-progress": "^3.8.2", "cli-progress": "^3.9.0",
"colors": "^1.4.0", "colors": "^1.4.0",
"copy-webpack-plugin": "^7.0.0", "copy-webpack-plugin": "^7.0.0",
"css-loader": "^5.0.1", "css-loader": "^5.0.1",
"eslint": "^7.15.0", "eslint": "^7.19.0",
"exports-loader": "^1.1.1", "exports-loader": "^2.0.0",
"file-loader": "^6.2.0", "file-loader": "^6.2.0",
"grunt": "^1.3.0", "grunt": "^1.3.0",
"grunt-accessibility": "~6.0.0",
"grunt-chmod": "~1.1.1", "grunt-chmod": "~1.1.1",
"grunt-concurrent": "^3.0.0", "grunt-concurrent": "^3.0.0",
"grunt-contrib-clean": "~2.0.0", "grunt-contrib-clean": "~2.0.0",
@ -63,26 +62,26 @@
"grunt-exec": "~3.0.0", "grunt-exec": "~3.0.0",
"grunt-webpack": "^4.0.2", "grunt-webpack": "^4.0.2",
"grunt-zip": "^0.18.2", "grunt-zip": "^0.18.2",
"html-webpack-plugin": "^4.5.0", "html-webpack-plugin": "^4.5.1",
"imports-loader": "^1.2.0", "imports-loader": "^2.0.0",
"mini-css-extract-plugin": "^1.3.3", "mini-css-extract-plugin": "^1.3.5",
"nightwatch": "^1.5.1", "nightwatch": "^1.5.1",
"node-sass": "^5.0.0", "node-sass": "^5.0.0",
"postcss": "^8.2.1", "postcss": "^8.2.4",
"postcss-css-variables": "^0.17.0", "postcss-css-variables": "^0.17.0",
"postcss-import": "^13.0.0", "postcss-import": "^14.0.0",
"postcss-loader": "^4.1.0", "postcss-loader": "^4.2.0",
"prompt": "^1.0.0", "prompt": "^1.1.0",
"sass-loader": "^10.1.0", "sass-loader": "^10.1.1",
"sitemap": "^6.3.3", "sitemap": "^6.3.5",
"style-loader": "^2.0.0", "style-loader": "^2.0.0",
"svg-url-loader": "^7.1.1", "svg-url-loader": "^7.1.1",
"url-loader": "^4.1.1", "url-loader": "^4.1.1",
"webpack": "^5.10.1", "webpack": "^5.19.0",
"webpack-bundle-analyzer": "^4.2.0", "webpack-bundle-analyzer": "^4.4.0",
"webpack-dev-server": "^3.11.0", "webpack-dev-server": "^3.11.2",
"webpack-node-externals": "^2.5.2", "webpack-node-externals": "^2.5.2",
"worker-loader": "^3.0.6" "worker-loader": "^3.0.7"
}, },
"dependencies": { "dependencies": {
"@babel/polyfill": "^7.12.1", "@babel/polyfill": "^7.12.1",
@ -93,7 +92,7 @@
"bcryptjs": "^2.4.3", "bcryptjs": "^2.4.3",
"bignumber.js": "^9.0.1", "bignumber.js": "^9.0.1",
"blakejs": "^1.1.0", "blakejs": "^1.1.0",
"bootstrap": "4.5.3", "bootstrap": "4.6.0",
"bootstrap-colorpicker": "^3.2.0", "bootstrap-colorpicker": "^3.2.0",
"bootstrap-material-design": "^4.1.3", "bootstrap-material-design": "^4.1.3",
"browserify-zlib": "^0.2.0", "browserify-zlib": "^0.2.0",
@ -101,12 +100,12 @@
"buffer": "^6.0.3", "buffer": "^6.0.3",
"chi-squared": "^1.1.0", "chi-squared": "^1.1.0",
"codepage": "^1.14.0", "codepage": "^1.14.0",
"core-js": "^3.8.1", "core-js": "^3.8.3",
"crypto-api": "^0.8.5", "crypto-api": "^0.8.5",
"crypto-browserify": "^3.12.0", "crypto-browserify": "^3.12.0",
"crypto-js": "^4.0.0", "crypto-js": "^4.0.0",
"ctph.js": "0.0.5", "ctph.js": "0.0.5",
"d3": "^6.3.1", "d3": "^6.5.0",
"d3-hexbin": "^0.2.2", "d3-hexbin": "^0.2.2",
"diff": "^5.0.0", "diff": "^5.0.0",
"es6-promisify": "^6.1.1", "es6-promisify": "^6.1.1",
@ -117,23 +116,23 @@
"file-saver": "^2.0.5", "file-saver": "^2.0.5",
"flat": "^5.0.2", "flat": "^5.0.2",
"geodesy": "^1.1.3", "geodesy": "^1.1.3",
"highlight.js": "^10.4.1", "highlight.js": "^10.5.0",
"jimp": "^0.16.1", "jimp": "^0.16.1",
"jquery": "3.5.1", "jquery": "3.5.1",
"js-crc": "^0.2.0", "js-crc": "^0.2.0",
"js-sha3": "^0.8.0", "js-sha3": "^0.8.0",
"jsesc": "^3.0.2", "jsesc": "^3.0.2",
"jsonpath": "^1.0.2", "jsonpath": "^1.1.0",
"jsonwebtoken": "^8.5.1", "jsonwebtoken": "^8.5.1",
"jsqr": "^1.3.1", "jsqr": "^1.3.1",
"jsrsasign": "10.1.4", "jsrsasign": "10.1.5",
"kbpgp": "2.1.15", "kbpgp": "2.1.15",
"libbzip2-wasm": "0.0.4", "libbzip2-wasm": "0.0.4",
"libyara-wasm": "^1.1.0", "libyara-wasm": "^1.1.0",
"lodash": "^4.17.20", "lodash": "^4.17.20",
"loglevel": "^1.7.1", "loglevel": "^1.7.1",
"loglevel-message-prefix": "^3.0.0", "loglevel-message-prefix": "^3.0.0",
"markdown-it": "^12.0.3", "markdown-it": "^12.0.4",
"moment": "^2.29.1", "moment": "^2.29.1",
"moment-timezone": "^0.5.32", "moment-timezone": "^0.5.32",
"ngeohash": "^0.6.3", "ngeohash": "^0.6.3",
@ -149,7 +148,7 @@
"qr-image": "^3.2.0", "qr-image": "^3.2.0",
"scryptsy": "^2.1.0", "scryptsy": "^2.1.0",
"snackbarjs": "^1.1.0", "snackbarjs": "^1.1.0",
"sortablejs": "^1.12.0", "sortablejs": "^1.13.0",
"split.js": "^1.6.2", "split.js": "^1.6.2",
"ssdeep.js": "0.0.2", "ssdeep.js": "0.0.2",
"stream-browserify": "^3.0.0", "stream-browserify": "^3.0.0",

View File

@ -41,11 +41,11 @@ class JSONToCSV extends Operation {
} }
/** /**
* Converts a JSON to csv equivalent. * Converts JSON to a CSV equivalent.
* *
* @returns {string} * @returns {string}
*/ */
toCsv() { toCSV() {
const self = this; const self = this;
// If the JSON is an array of arrays, this is easy // If the JSON is an array of arrays, this is easy
if (this.flattened[0] instanceof Array) { if (this.flattened[0] instanceof Array) {
@ -91,14 +91,14 @@ class JSONToCSV extends Operation {
} }
try { try {
return this.toCsv(); return this.toCSV();
} catch (err) { } catch (err) {
try { try {
this.flattened = flatten(input); this.flattened = flatten(input);
if (!(this.flattened instanceof Array)) { if (!(this.flattened instanceof Array)) {
this.flattened = [this.flattened]; this.flattened = [this.flattened];
} }
return this.toCsv(); return this.toCSV();
} catch (err) { } catch (err) {
throw new OperationError("Unable to parse JSON to CSV: " + err.toString()); throw new OperationError("Unable to parse JSON to CSV: " + err.toString());
} }