From 9d805bb0216283d6a472c274e8501e3199b734e9 Mon Sep 17 00:00:00 2001 From: Rodrigo Fernandes Date: Sun, 6 Aug 2023 19:44:01 +0100 Subject: [PATCH] fix vuln --- .gitignore | 1 - package.json | 9 +++++---- tsconfig.json | 2 +- yarn.lock | 8 ++++---- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.gitignore b/.gitignore index 05f9eb6f..4a08bb1c 100644 --- a/.gitignore +++ b/.gitignore @@ -29,7 +29,6 @@ bower_components/ # Terraform /terraform/.terraform -/_target/ /src/diff2html-templates.* /docs/ /bundles/ diff --git a/package.json b/package.json index 7ffa3478..88d2ef63 100644 --- a/package.json +++ b/package.json @@ -41,9 +41,9 @@ "prettier": "prettier --ignore-path .gitignore '**/*.+(js|jsx|ts|tsx|json|css|html|md|mdx)'", "format:check": "yarn run prettier --check", "format:fix": "yarn run prettier --write", - "build": "yarn run build:css && yarn run build:templates && yarn run build:es5 && yarn run build:esm && yarn run build:bundles && yarn run build:website", - "build:es5": "rm -rf lib; tsc -p tsconfig.json --outDir lib", - "build:esm": "rm -rf lib-esm; tsc -p tsconfig.json -m es6 --outDir lib-esm", + "build": "yarn run build:css && yarn run build:templates && yarn run build:commonjs && yarn run build:esm && yarn run build:bundles && yarn run build:website", + "build:commonjs": "rm -rf lib; tsc -p tsconfig.json --outDir lib", + "build:esm": "rm -rf lib-esm; tsc -p tsconfig.json -m ESNext --outDir lib-esm", "build:bundles": "rm -rf ./bundles/js; webpack --mode production --config webpack.bundles.ts", "build:css": "rm -rf ./bundles/css; postcss --config ./postcss.config.js --no-map -o ./bundles/css/diff2html.min.css ./src/ui/css/diff2html.css", "build:templates": "ts-node ./scripts/hulk.ts --wrapper ts --variable 'defaultTemplates' ./src/templates/*.mustache > ./src/diff2html-templates.ts", @@ -150,7 +150,8 @@ "trim-newlines": ">=3.0.1", "async": ">=2.6.4", "terser": ">=5.14.2", - "semver-regex": ">=4.0.5" + "semver-regex": ">=4.0.5", + "http-cache-semantics": ">=4.1.1" }, "license": "MIT", "files": [ diff --git a/tsconfig.json b/tsconfig.json index 36a9e858..ce36be29 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "include": ["*env.d.ts", "src/**/*", "./typings/**/*"], "exclude": ["node_modules", "src/__tests__/**"], "compilerOptions": { - "outDir": "_target", + "outDir": "lib", "module": "CommonJS", "moduleResolution": "Node", "target": "ES6", diff --git a/yarn.lock b/yarn.lock index 5c1c0fa2..9fd674b6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3923,10 +3923,10 @@ htmlparser2@^6.1.0: domutils "^2.5.2" entities "^2.0.0" -http-cache-semantics@3.8.1: - version "3.8.1" - resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-3.8.1.tgz#39b0e16add9b605bf0a9ef3d9daaf4843b4cacd2" - integrity sha512-5ai2iksyV8ZXmnZhHH4rWPoxxistEexSi5936zIQ1bnNTW5VnA85B6P/VpXiRM017IgRvb2kKo1a//y+0wSp3w== +http-cache-semantics@3.8.1, http-cache-semantics@>=4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz#abe02fcb2985460bf0323be664436ec3476a6d5a" + integrity sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ== human-signals@^1.1.1: version "1.1.1"